/*
 * CormackCoreWeb 2.0 - Worksop Link
 * Author: Charlie - Cormack Advertising
 *
 * Breakpoints follow the original build: phone <=767px, tablet 768-1024px,
 * laptop 1025-1366px, desktop >=1367px. The horizontal menu shows from 1200px.
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
    --c-orange: #F56138;
    --c-orange-alt: #F4643C;
    --c-sage: #C4D6B0;
    --c-mist: #E5E5F0;
    --c-rust: #8B3620;
    --c-plum: #431C46;
    --c-ink: #26113F;
    --c-ink-alt: #260F40;
    --c-wine: #903A3E;
    --c-mint: #F0FAF9;
    --c-mint-76: rgba(240, 250, 249, .76);
    --c-mint-15: rgba(240, 250, 249, .15);
    --c-teal: #2EC4B5;
    --c-white: #FFFFFF;
    --c-error: #F56C6C;

    --font: "museo-sans-rounded", "Helvetica Neue", Arial, sans-serif;

    --header-h: 60px;
    --gutter: 30px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --card-fade: linear-gradient(180deg, rgba(67, 28, 70, .16) 0%, rgba(67, 28, 70, 0) 100%);
    --header-fill: linear-gradient(90deg, rgba(38, 17, 63, .9) 0%, rgba(144, 58, 62, .9) 35%);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--c-white);
    color: var(--c-plum);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, ul, ol, figure, table {
    margin: 0;
}

:where(ul[role="list"]) {
    list-style: none;
    padding: 0;
}

img,
svg,
iframe,
video {
    max-width: 100%;
}

img {
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

table {
    border-collapse: collapse;
}

th {
    font-weight: inherit;
    text-align: inherit;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--c-orange);
    outline-offset: 3px;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed !important;
    top: 10px;
    left: 10px;
    z-index: 1000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    clip: auto;
    background: var(--c-white);
    color: var(--c-ink);
    border-radius: 100px;
}

.icon {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
}

/* Display headings: thin, widely tracked caps ("accent" type in the original kit) */
.display {
    font-size: 46px;
    font-weight: 100;
    line-height: 46px;
    letter-spacing: 6.6px;
    color: var(--c-white);
}

.display strong {
    font-weight: 400;
}

.display--rust {
    color: var(--c-rust);
}

/* ==========================================================================
   3. Buttons & links
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 50px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    transition: color .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}

.btn--orange {
    background: var(--c-orange);
    border-color: var(--c-orange);
    color: var(--c-white);
}

.btn--orange:hover,
.btn--orange:focus-visible {
    background: transparent;
    color: var(--c-orange);
}

.link-download {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color .3s var(--ease), opacity .3s var(--ease);
}

.link-download .icon {
    width: 14px;
    height: 14px;
    transform: translateY(-1px);
}

/* ==========================================================================
   4. Header & navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    color: var(--c-white);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--header-fill);
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.admin-bar .site-header {
    top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    padding: 0 15px;
}

.site-header__logo {
    display: block;
    flex: none;
}

.site-header__logo img {
    display: block;
    width: 217px;
    height: 28px;
}

.site-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 44px;
    margin-right: -8px;
    padding: 0 8px;
    border: 0;
    background: none;
    color: var(--c-orange-alt);
    cursor: pointer;
    transition: color .3s var(--ease);
}

@media (hover: hover) {
    .site-nav__toggle:hover {
        color: var(--c-white);
    }
}

.site-nav__bars {
    position: relative;
    display: block;
    width: 34px;
    height: 24px;
}

.site-nav__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: currentColor;
    transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}

.site-nav__bars span:nth-child(1) { top: 0; }
.site-nav__bars span:nth-child(2) { top: 10px; }
.site-nav__bars span:nth-child(3) { top: 20px; }

.site-nav__toggle[aria-expanded="true"] .site-nav__bars span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__bars span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] .site-nav__bars span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.site-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__menu a {
    position: relative;
    display: block;
    color: var(--c-white);
    font-size: 16px;
    line-height: 18px;
}

/* Dropdown menu (below 1200px) */
@media (max-width: 1199px) {
    .site-nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        background: var(--c-ink);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
    }

    .site-nav__menu.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity .25s var(--ease), transform .25s var(--ease);
    }

    .site-nav__menu a {
        padding: 10px;
        border-bottom: 1px solid #342547;
        text-align: center;
        transition: background-color .2s var(--ease);
    }

    .site-nav__menu a:hover,
    .site-nav__menu a:focus-visible {
        background: var(--c-orange);
        outline: none;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .site-header__inner {
        padding: 0 30px;
    }
}

/* Horizontal menu */
@media (min-width: 1200px) {
    .site-header--overlay::before {
        opacity: 0;
    }

    .site-header--overlay.is-scrolled::before {
        opacity: 1;
    }

    .site-header__inner {
        padding: 0 50px;
    }

    .site-nav__toggle {
        display: none;
    }

    .site-nav__menu {
        display: flex;
    }

    .site-nav__menu li {
        margin: 0 4px;
    }

    .site-nav__menu li:first-child {
        margin-left: 0;
    }

    .site-nav__menu li:last-child {
        margin-right: 0;
    }

    .site-nav__menu a {
        padding: 20px 7px 22px;
    }

    .site-nav__menu a::after {
        content: "";
        position: absolute;
        left: 7px;
        right: 7px;
        bottom: 14px;
        height: 2px;
        background: var(--c-orange);
        transform: scaleX(0);
        transform-origin: left center;
        transition: transform .35s var(--ease);
    }

    .site-nav__menu a:hover::after,
    .site-nav__menu a:focus-visible::after {
        transform: scaleX(1);
    }

    .site-nav__menu a:focus-visible {
        outline: none;
    }
}

@media (min-width: 1367px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: 25% 75%;
        justify-content: start;
    }

    .site-nav__menu li {
        margin: 0 10px;
    }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    min-height: 100vh;
    background: #1D0F2B url("../img/bg/hero-gradient.webp") center / cover no-repeat;
    color: var(--c-white);
    text-align: center;
}

.hero__main {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.hero__title {
    align-self: stretch;
}

.hero__title-line {
    display: block;
    margin: 10px 0;
}

.hero__title-line--accent {
    color: var(--c-sage);
}

.hero__facts {
    width: calc((100% - 20px) * .25);
    padding: 10px 0;
    color: var(--c-mist);
}

.hero__facts p {
    margin: 0;
}

.hero__facts p:first-child {
    margin-top: 10px;
}

.hero__facts p + p {
    margin-top: 18px;
}

.hero__facts .hero__facts-tight {
    margin-top: 10px;
}

.hero__facts-line {
    display: block;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.hero .btn--orange {
    min-width: 0;
}

.btn--camera {
    display: none;
}

.link-download--hero {
    margin-top: 30px;
    padding: 15px 30px;
    color: var(--c-sage);
}

.link-download--hero:hover,
.link-download--hero:focus-visible {
    color: var(--c-white);
}

.hero__strap {
    grid-row: 3;
    align-self: end;
    margin: 0 0 70px;
    padding: 0 10px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .hero__facts {
        width: calc((100% - 20px) * .6);
    }

    .hero__strap {
        margin-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .hero {
        display: block;
        min-height: 0;
        padding: 98px 30px 72px;
        background-position: left top;
        background-size: auto;
    }

    .hero__main {
        padding: 10px 0 0;
    }

    .hero__facts {
        width: 100%;
        padding: 10px;
    }

    .hero__facts-line + .hero__facts-line {
        margin-top: 10px;
    }

    .hero__actions {
        margin-top: 20px;
    }

    .hero .btn {
        line-height: 18px;
    }

    .btn--camera {
        display: inline-flex;
        margin-top: 15px;
        background: var(--c-white);
        border-color: var(--c-teal);
        color: var(--c-teal);
    }

    .btn--camera:hover,
    .btn--camera:focus-visible {
        background: var(--c-teal);
        color: var(--c-white);
    }

    .link-download--hero {
        margin-top: 15px;
    }

    .hero__strap {
        margin: 10px 0 0;
        padding: 0;
    }

    .hero__strap br {
        display: none;
    }

    .display {
        font-size: 30px;
        line-height: 30px;
    }
}

/* ==========================================================================
   6. Video
   ========================================================================== */
.video-band {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #26302A;
}

.video-band__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.video-band__frame {
    position: relative;
    z-index: 1;
    aspect-ratio: 16 / 9;
}

.video-band__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 767px) {
    .video-band {
        min-height: 0;
    }
}

/* ==========================================================================
   7. Gallery
   ========================================================================== */
.gallery {
    padding: 90px var(--gutter) 30px;
}

.gallery__title {
    margin: 0 0 30px;
    text-align: center;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.gallery__item {
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .gallery {
        padding: 60px var(--gutter) 30px;
    }

    .gallery__title {
        margin-bottom: 20px;
    }

    .gallery__grid {
        gap: 8px;
    }
}

/* ==========================================================================
   8. Accommodation (464 / 86 panels)
   ========================================================================== */
.accommodation {
    padding: 90px var(--gutter) 30px;
    background: #747474 url("../img/bg/gradient-flipped.webp") center / cover no-repeat;
    color: var(--c-mist);
}

.plan.is-entering {
    animation: plan-in .5s var(--ease) both;
}

@keyframes plan-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.plan__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.plan__lead {
    padding: 0 30px 0 clamp(0px, calc((100vw - 1040px) / 2), 200px);
}

.plan__title {
    margin: 10px 0;
}

.plan__text {
    margin: 20px 0 30px;
    color: var(--c-sage);
}

.plan__switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-right: 15px;
}

.plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 44px;
    padding: 10px;
    border: 2px solid var(--c-white);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 300;
    line-height: 18px;
    cursor: pointer;
    transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}

.plan-btn .icon {
    width: 20px;
    height: 20px;
}

.plan-btn--outline {
    background: transparent;
    color: var(--c-white);
}

.plan-btn--outline:hover,
.plan-btn--outline:focus-visible {
    background: var(--c-ink);
    border-color: #E8E8E8;
}

.plan-btn--solid {
    background: var(--c-white);
    color: #000;
}

.plan-btn--solid .icon {
    color: var(--c-ink-alt);
}

.plan-btn--solid:hover,
.plan-btn--solid:focus-visible {
    background: var(--c-wine);
    border-color: rgba(255, 255, 255, .74);
}

.plan__schedule {
    display: flex;
    align-items: flex-end;
    padding-left: 15px;
}

.schedule {
    flex: none;
    width: calc(75% + 10px);
    margin-left: -10px;
    border-collapse: separate;
    border-spacing: 10px 0;
    color: var(--c-white);
    table-layout: fixed;
}

.schedule th,
.schedule td {
    height: 30px;
    padding: 5px;
    border-bottom: 1px solid var(--c-orange);
    text-align: left;
}

.schedule thead th {
    height: auto;
    padding: 10px;
}

.schedule th:not(:first-child),
.schedule td {
    text-align: right;
}

.schedule__total th,
.schedule__total td {
    font-weight: 700;
}

.plan__mark {
    width: calc(25% - 30px);
    margin-left: 30px;
}

.plan__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.plan__drawing,
.plan__specs {
    padding: 30px;
    background: var(--c-mint-15);
}

.plan__drawing {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plan__image {
    display: block;
    cursor: zoom-in;
}

.plan__image img {
    display: block;
    width: 100%;
    transition: transform .6s var(--ease);
}

.plan__image:hover img {
    transform: scale(1.015);
}

.plan__zoom {
    align-self: flex-end;
    margin-top: 4px;
    cursor: zoom-in;
    transition: transform .3s var(--ease);
}

.plan__zoom:hover {
    transform: scale(1.12);
}

.plan__zoom img {
    display: block;
    width: 30px;
    height: auto;
}

.specs {
    display: flex;
    flex-wrap: wrap;
}

.specs__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 33%;
    text-align: center;
}

.specs__icon {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 0 15px;
}

.specs__label {
    display: block;
    margin: 0 0 54px;
    color: var(--c-white);
    letter-spacing: -.4px;
}

.plan__note {
    margin-top: 2px;
    color: var(--c-white);
    letter-spacing: -.4px;
    text-align: right;
}

@media (max-width: 1024px) {
    .plan__intro,
    .plan__body {
        grid-template-columns: 1fr;
    }

    .plan__lead {
        padding: 0;
        margin-bottom: 30px;
    }

    .plan__schedule {
        padding-left: 0;
    }

    .plan__note {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .accommodation {
        padding: 60px var(--gutter) 30px;
    }

    .plan__switch {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .schedule {
        width: calc(100% + 20px);
        margin-right: -10px;
        table-layout: auto;
    }

    .schedule th:first-child {
        width: 42%;
        white-space: nowrap;
    }

    .plan__mark {
        display: none;
    }

    .specs__item {
        width: 50%;
    }

    .plan__zoom {
        margin-top: 0;
    }

    .plan__zoom img {
        width: 27px;
    }
}

/* ==========================================================================
   9. Shared section pieces
   ========================================================================== */
.section-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-bg--bottom {
    object-position: center bottom;
}

.panel--mint {
    background: var(--c-mint-76);
}

.section-intro {
    margin: 40px 365px 50px;
    color: var(--c-plum);
    text-align: center;
}

.section-intro--tight {
    margin: 20px 350px 30px;
    line-height: 16px;
}

@media (max-width: 1024px) {
    .section-intro,
    .section-intro--tight {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ==========================================================================
   10. Sustainability
   ========================================================================== */
.sustainability {
    position: relative;
    min-height: 100vh;
    padding: 90px 30px 30px;
    overflow: hidden;
    background: #A9C3D8;
}

.sustainability__panel {
    position: relative;
    padding: 30px;
    text-align: center;
}

.sustainability__panel .display {
    margin-top: 10px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.features__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 16%;
    border-right: 1px solid var(--c-orange);
}

.features__item:last-child {
    border-right: 0;
}

.features__icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 9px 0 15px;
}

.features__label {
    display: block;
    margin: 0 0 25px;
    color: var(--c-plum);
    letter-spacing: -.4px;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .features__item {
        width: 33%;
    }

    .features__item:nth-child(3n) {
        border-right: 0;
    }
}

@media (max-width: 767px) {
    .sustainability {
        padding: 60px var(--gutter) 30px;
    }

    .sustainability__panel {
        padding: 30px 15px;
    }

    .sustainability__panel .display {
        font-size: 22px;
        line-height: 26px;
    }

    .features__item {
        width: 50%;
        border-right: 0;
    }

    .features__item:nth-child(odd) {
        border-right: 1px solid var(--c-orange);
    }
}

/* ==========================================================================
   11. Labour
   ========================================================================== */
.labour {
    padding: 30px;
    background: var(--c-mint);
}

.labour__head {
    padding: 60px 30px 30px;
    background: var(--c-mint-76);
    text-align: center;
}

.labour__head .display {
    margin-top: 10px;
}

.labour__grid {
    display: grid;
    grid-template-columns: 16fr 16fr 16fr 52fr;
    gap: 20px;
    margin-top: 10px;
}

.stat {
    padding: 15px;
    background: var(--card-fade);
}

.stat + .stat {
    margin-top: 20px;
}

.stat__icon {
    display: block;
    width: 50px;
    height: 50px;
    margin: 5px 0 0;
}

.stat__label {
    margin-top: 25px;
    color: var(--c-plum);
    font-size: 14px;
    letter-spacing: -.35px;
}

.labour__photo {
    margin: 0;
}

.labour__photo img {
    display: block;
    width: 100%;
}

@media (max-width: 1024px) {
    .labour__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .labour__photo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .labour__head {
        padding: 30px 0 15px;
    }

    .labour__head .section-intro--tight {
        margin-bottom: 10px;
    }

    .labour__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat + .stat {
        margin-top: 15px;
    }
}

/* ==========================================================================
   12. Location
   ========================================================================== */
.location {
    padding: 90px 30px 30px;
    background: var(--c-mint) url("../img/bg/gradient.webp") center bottom / cover no-repeat;
    color: var(--c-white);
}

.location__inner {
    display: grid;
    grid-template-columns: 35fr 65fr;
}

.location__text .display {
    margin: 10px 0;
}

.location__intro {
    margin: 40px 0 0;
    color: var(--c-sage);
    line-height: 22px;
}

.tabs {
    margin-top: 30px;
}

.tabs__list {
    display: flex;
    gap: 10px;
}

.tabs__tab {
    flex: 1 1 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-white);
    font-size: 16px;
    line-height: 18px;
    cursor: pointer;
    transition: color .3s var(--ease);
}

.tabs__tab[aria-selected="true"],
.tabs__tab:hover {
    color: #8D8D8D;
}

.tabs__panel {
    margin-top: 10px;
    padding-top: 20px;
}

.tabs__panel:focus-visible {
    outline-offset: 6px;
}

.tabs__panel.is-entering {
    animation: fade-in .35s var(--ease) both;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.distances {
    width: 100%;
    border-top: 1px solid var(--c-orange);
    table-layout: fixed;
}

.distances th,
.distances td {
    height: 30px;
    padding: 5px;
    border-bottom: 1px solid var(--c-orange);
    color: var(--c-white);
    text-align: left;
}

.location__map {
    padding-left: 30px;
}

.location__map iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: 0;
}

@media (max-width: 1024px) {
    .location {
        padding-top: 60px;
    }

    .location__inner {
        grid-template-columns: 1fr;
    }

    .location__map {
        padding: 30px 0 0;
    }
}

@media (max-width: 767px) {
    .location__map iframe {
        height: 450px;
    }
}

@media (max-width: 767px) {
    .tabs__panel {
        margin-top: 0;
    }
}

/* ==========================================================================
   13. Location cards
   ========================================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 40px var(--gutter) 30px;
    background: var(--c-mint);
}

.card {
    color: var(--c-plum);
    line-height: 22px;
}

.card__image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-bottom: 30px;
}

.card__title {
    margin: 10px 0;
    font-size: 16px;
    font-weight: 700;
}

.card__text {
    margin: 10px 0;
}

@media (max-width: 767px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 30px;
    }

    .card__image {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   14. Flexible connections
   ========================================================================== */
.connections {
    padding: 60px 30px 30px;
    background: var(--c-mint) url("../img/bg/gradient.webp") left top / max(100%, 1920px) auto no-repeat;
    color: var(--c-white);
}

.connections__row {
    display: grid;
    grid-template-columns: 20fr 30fr 25fr 25fr;
    margin-bottom: 60px;
}

.connections__title {
    grid-column: 2;
    margin: 10px 0;
}

.connections__text {
    margin: 10px 0;
    color: var(--c-sage);
    line-height: 22px;
}

.connections__text:first-of-type {
    margin-right: 30px;
}

.connections__image {
    display: block;
    width: 100%;
}

@media (max-width: 1366px) {
    .connections__row {
        grid-template-columns: 2fr 48fr 25fr 25fr;
    }
}

@media (max-width: 1024px) {
    .connections__row {
        grid-template-columns: 1fr 1fr;
    }

    .connections__title {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .connections {
        padding: 60px var(--gutter) 30px;
    }

    .connections__row {
        grid-template-columns: 1fr;
        margin-bottom: 25px;
    }

    .connections__text:first-of-type {
        margin-right: 0;
    }
}

/* ==========================================================================
   15. Downloads
   ========================================================================== */
.downloads {
    padding: 90px 30px 60px;
    background: var(--c-mint);
    color: var(--c-plum);
}

.downloads__head {
    margin-bottom: 40px;
    text-align: center;
}

.downloads__head .display {
    margin: 10px 0;
}

.downloads__intro {
    margin: 20px 250px 10px;
    line-height: 24px;
}

.downloads__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.download {
    display: flex;
    flex-direction: column;
}

.download__card {
    padding: 15px;
    background: var(--card-fade);
    line-height: 22px;
}

.download__title {
    margin: 10px 0;
    font-size: 16px;
    font-weight: 700;
}

.download__card p {
    margin: 10px 0;
}

.download__link {
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 0 3px 15px;
    color: var(--c-orange);
    font-weight: 700;
    line-height: 16px;
}

.download__link:hover,
.download__link:focus-visible {
    color: rgba(245, 97, 56, .49);
}

@media (max-width: 1024px) {
    .downloads__intro {
        margin-left: 0;
        margin-right: 0;
    }

    .downloads__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 30px;
    }
}

@media (max-width: 767px) {
    .downloads {
        padding: 60px var(--gutter) 40px;
    }

    .downloads__head {
        margin-bottom: 30px;
    }

    .downloads__grid {
        grid-template-columns: 1fr;
        row-gap: 25px;
    }
}

/* ==========================================================================
   16. Footer / contact
   ========================================================================== */
.site-footer {
    padding: 60px 30px;
    background: linear-gradient(180deg, var(--c-wine) 0%, var(--c-ink) 100%);
    color: var(--c-white);
}

.site-footer__top {
    display: grid;
    grid-template-columns: 80% 20%;
    margin-bottom: 80px;
}

.site-footer__logo {
    display: block;
    grid-column: 2;
    justify-self: end;
    width: 217px;
    height: 28px;
}

.site-footer__agents {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.agent__logo {
    display: block;
    width: auto;
    height: 50px;
}

.agent__logo--cpp {
    width: 78px;
}

.agent__logo--dtre {
    width: 105px;
}

.agent__logo--mxw {
    height: 40px;
    margin-top: 10px;
}

.agent__logo--garbe {
    height: 53px;
    margin-top: 40px;
}

.agent__details {
    margin: 30px 0 10px;
    line-height: 24px;
}

.agent__details a {
    transition: color .3s var(--ease);
}

.agent__details a:hover,
.agent__details a:focus-visible {
    color: var(--c-sage);
}

.agent__label {
    margin: 10px 0;
    color: var(--c-sage);
    line-height: 1px;
}

.site-footer__legal {
    margin-top: 30px;
    padding-top: 15px;
}

.site-footer__legal::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 25px;
    background: var(--c-orange);
}

.site-footer__legal p {
    max-width: 75%;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 14px;
}

@media (max-width: 1024px) {
    .site-footer__top {
        display: block;
        margin-bottom: 30px;
    }

    .site-footer__logo {
        justify-self: start;
    }

    .site-footer__agents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 30px;
    }

    .agent {
        margin-top: 30px;
    }

    .agent__logo--garbe {
        margin-top: 25px;
    }

    .agent__details {
        margin-top: 10px;
    }

    .site-footer__legal p {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .site-footer__agents {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 50px var(--gutter) 30px;
    }
}

/* ==========================================================================
   17. Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 60px;
    align-items: center;
    padding: 5vh 10px;
    background: rgba(12, 6, 18, .9);
    opacity: 0;
    transition: opacity .3s var(--ease);
}

.lightbox.is-open {
    opacity: 1;
}

.lightbox__stage {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90vh;
    margin: 0;
    touch-action: pan-y;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
    transition: opacity .3s var(--ease), transform .4s var(--ease);
}

.lightbox__img.is-loading {
    opacity: 0;
    transform: scale(.98);
}

.lightbox__close,
.lightbox__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(238, 238, 238, .9);
    font-size: 26px;
    cursor: pointer;
    transition: color .2s var(--ease), background-color .2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--c-white);
}

.lightbox__close {
    position: absolute;
    top: 12px;
    right: 12px;
}

.lightbox__nav--prev {
    grid-column: 1;
    justify-self: center;
}

.lightbox__nav--next {
    grid-column: 3;
    justify-self: center;
}

.lightbox.is-single .lightbox__nav {
    visibility: hidden;
}

body.has-lightbox {
    overflow: hidden;
}

@media (max-width: 767px) {
    .lightbox {
        grid-template-columns: 0 minmax(0, 1fr) 0;
        padding: 60px 0;
    }

    .lightbox__nav {
        position: absolute;
        bottom: 12px;
    }

    .lightbox__nav--prev { left: calc(50% - 60px); }
    .lightbox__nav--next { right: calc(50% - 60px); }

    .lightbox__stage {
        height: calc(100vh - 140px);
    }
}

/* ==========================================================================
   18. News posts & plain pages
   ========================================================================== */
.article {
    padding-top: var(--header-h);
    background: var(--c-mint);
}

.article__media {
    max-height: 75vh;
    overflow: hidden;
}

.article__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: cover;
}

.article__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 30px 90px;
}

.article--page .article__inner {
    padding-top: 90px;
}

.article__meta {
    margin-bottom: 15px;
    color: var(--c-rust);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.article__title {
    margin-bottom: 30px;
    color: var(--c-rust);
    font-size: 46px;
    font-weight: 100;
    line-height: 52px;
    letter-spacing: 2px;
}

.entry-content {
    color: var(--c-plum);
    line-height: 24px;
}

.entry-content > * + * {
    margin-top: 16px;
}

.entry-content a {
    color: var(--c-orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content img {
    height: auto;
}

.article__back {
    margin-top: 50px;
}

.article__back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--c-orange);
    font-weight: 700;
    transition: gap .3s var(--ease);
}

.article__back a:hover {
    gap: 10px;
}

.post-list__item + .post-list__item {
    margin-top: 40px;
}

.post-list__title {
    margin-bottom: 10px;
    color: var(--c-rust);
    font-size: 26px;
    font-weight: 300;
    line-height: 32px;
}

@media (max-width: 767px) {
    .article__inner {
        padding: 40px 30px 60px;
    }

    .article__title {
        font-size: 30px;
        line-height: 36px;
    }
}

/* 404 */
.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 100vh;
    padding: 100px 30px 60px;
    background: #1D0F2B url("../img/bg/hero-gradient.webp") center / cover no-repeat;
    text-align: center;
}

.not-found__accent {
    display: block;
    margin-bottom: 10px;
    color: var(--c-sage);
}

/* ==========================================================================
   19. QR landing pages
   ========================================================================== */
.is-landing {
    background: #23113D;
}

.qr {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0 10px;
    background: linear-gradient(180deg, #23113D 0%, #9B4245 100%);
    color: var(--c-white);
    text-align: center;
}

.qr::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    pointer-events: none;
}

.qr__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.qr__inner > :not(img) {
    width: 42%;
}

.qr__wordmark {
    display: block;
    width: 217px;
    height: 28px;
}

.qr__wordmark--large {
    width: 29%;
    height: auto;
}

.qr__title {
    margin: 10px 0 20px;
}

.qr__title > * {
    display: block;
}

.qr__title > * + * {
    margin-top: 10px;
}

.qr__accent {
    color: #C4D6B3;
}

.qr__title--award,
.qr__title--upper {
    margin: 0;
}

.qr__title--award > * + *,
.qr__title--upper > * + * {
    margin-top: 46px;
}

.qr__title--upper {
    text-transform: uppercase;
}

.qr__gift {
    display: block;
    width: 512px !important;
    max-width: 100%;
    height: auto;
}

.qr__note {
    margin: 10px 0;
}

.qr__sygnet {
    display: block;
    width: calc(42% * .15) !important;
    height: auto;
}

.qr__brand {
    padding: 50px 50px 0;
    letter-spacing: 0;
}

.qr__brand strong {
    color: #C4D6B3;
}

.qr__brand span {
    color: #F95B3C;
}

.qr__brand--spaced {
    letter-spacing: 6.6px;
}

.qr__lede {
    margin: 0;
    padding: 50px 50px 10px;
    font-size: 25px;
    font-weight: 100;
    line-height: 27px;
}

.qr__lede strong {
    font-weight: 400;
}

.qr__lede--thanks {
    padding: 50px;
    line-height: 16px;
}

.qr--register .qr__brand {
    padding: 50px;
}

.qr--register .qr__lede {
    padding: 10px;
}

.qr__card {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .28);
    text-align: left;
}

.qr--register .qr__card {
    margin: 10px 10px 0;
    width: calc(42% - 20px);
}

.qr--signup .qr__title {
    margin-bottom: 30px;
}

/* Lead form */
.lead-form {
    padding: 20px;
}

.lead-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
}

.lead-form__field {
    margin-bottom: 20px;
}

.lead-form__field label {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--c-white);
    font-size: 15px;
    font-weight: 500;
    line-height: 25px;
}

.lead-form__req {
    margin-left: 6px;
    color: var(--c-error);
}

.lead-form__field input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 11px 15px;
    border: 1px solid var(--c-white);
    border-radius: 30px;
    background: rgba(255, 255, 255, .51);
    color: #303133;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 15px;
    transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}

.lead-form__field input:focus {
    border-color: var(--c-orange-alt);
    background: rgba(255, 255, 255, .7);
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 100, 60, .25);
}

.lead-form__field.is-invalid input {
    border-color: var(--c-error);
}

.lead-form__error {
    margin-top: 6px;
    color: #FFD5D5;
    font-size: 13px;
    line-height: 16px;
}

.lead-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-form__message {
    margin: 0 0 10px;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .09);
    color: var(--c-white);
}

.lead-form__actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.lead-form__submit {
    min-height: 42px;
    margin-top: 20px;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 30px;
    background: var(--c-orange-alt);
    color: var(--c-white);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    transition: background-color .3s var(--ease), border-color .3s var(--ease), opacity .3s var(--ease);
}

.lead-form__submit:hover,
.lead-form__submit:focus-visible {
    border-color: var(--c-orange-alt);
    background: rgba(255, 255, 255, .1);
}

.lead-form.is-sending .lead-form__submit {
    opacity: .6;
    pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .qr__inner > :not(img) {
        width: 60%;
    }

    .qr__sygnet {
        width: calc(60% * .15) !important;
    }

    .qr--register .qr__card {
        width: calc(60% - 20px);
    }
}

@media (max-width: 767px) {
    .qr {
        padding: 40px 20px;
    }

    .qr__inner > :not(img) {
        width: 100%;
    }

    .qr .display {
        font-size: 20px;
        line-height: 1em;
    }

    .qr--signup .qr__wordmark--large {
        width: 92%;
    }

    .qr--signup .qr__title {
        margin: 35px 0 30px;
    }

    .qr--award .qr__wordmark,
    .qr--thanks .qr__wordmark {
        margin-bottom: 45px;
    }

    .qr--award .qr__title > * + *,
    .qr--thanks .qr__title > * + * {
        margin-top: 20px;
    }

    .qr__gift {
        width: 50% !important;
        margin: 35px auto;
    }

    .qr__sygnet {
        width: 15% !important;
        margin: 0 0 20px;
    }

    .qr--register .qr__card {
        width: 100%;
        margin: 0;
    }

    .qr__brand,
    .qr--register .qr__brand {
        padding: 0;
    }

    .qr__brand--spaced {
        padding: 0;
        letter-spacing: 0;
    }

    .qr__lede {
        font-size: 20px;
        line-height: 1em;
    }

    .qr__lede--thanks {
        padding: 35px 0 0;
    }

    .qr--register .qr__lede {
        padding: 20px 0 25px;
    }

    .qr__card {
        padding: 20px;
    }

    .lead-form {
        padding: 10px;
    }

    .lead-form__grid {
        grid-template-columns: 1fr;
    }

    .lead-form__field input {
        height: 37px;
        padding: 8px;
    }

    .lead-form__submit {
        width: 100%;
        padding: 10px 50px;
    }
}

@media (max-width: 360px) {
    .qr .display {
        letter-spacing: 4px;
    }
}

/* ==========================================================================
   20. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
