/* ============================================
   SECTION: Center — Hero
   Two columns (copy + framed video) on a cream background.
   ============================================ */

.center-hero {
    position: relative;
    background: #fdf8eb;
    overflow: hidden;
}

.center-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin-inline: auto;
    /* Side padding at every width — without it, Coming Soon (1-col) and
       mid viewports under the 1240 container sit flush to the edge (~961–1240). */
    padding: 84px var(--section-side-padding) 110px;
    display: grid;
    grid-template-columns: 1fr 600px;
    align-items: center;
    gap: 48px;
}

/* ----- Copy (left) ----- */
.center-hero__copy {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.center-hero__badge {
    display: flex;
    align-items: center;
    gap: 12px;
}
.center-hero__badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffdc69;
    border-radius: 100px;
    color: #b57611;
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    line-height: 20px;
}
.center-hero__badge-text {
    color: var(--color-accent-yellow);   /* #e09b2b */
    font-size: 13px;
    font-weight: var(--font-weight-semibold);
    line-height: 20px;
}

.center-hero__heading {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: var(--font-weight-normal);
    line-height: 58px;
    letter-spacing: -2px;
    color: var(--color-text-heading);
    margin: 0;
}
.center-hero__heading .accent-script {
    font-size: 56px;
    line-height: 58px;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.center-hero__text {
    max-width: 520px;
    font-size: 17px;
    font-weight: var(--font-weight-medium);
    line-height: 28px;
    color: var(--color-text-heading);
    margin: 0;
}

/* ----- Coming Soon variant ----- */
.center-hero--coming-soon .center-hero__inner {
    grid-template-columns: 1fr;
}

.center-hero__badge-pill--soon {
    background: var(--color-primary);
    color: var(--color-white);
}

.center-hero__address {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    max-width: 520px;
    font-size: 17px;
    font-weight: var(--font-weight-semibold);
    line-height: 28px;
    color: var(--color-text-heading);
}

.center-hero__address img {
    flex-shrink: 0;
    margin-top: 4px;
}

/* ----- Video (right) -----
   The yellow swirl is a FRAME that wraps the video: it overlays the
   media box, and the video sits inset inside it so the hand-drawn
   border shows around the photo. */
.center-hero__media {
    position: relative;
    justify-self: end;
    width: 600px;
    max-width: 100%;
    aspect-ratio: 635 / 611;
}

/* The frame, on top, wrapping the video (clicks pass through to it) */
.center-hero__swirl {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: url("../../../images/centers/video-frame.c0d11b7a9513.svg") no-repeat center / contain;
    pointer-events: none;
}

.center-hero__video {
    position: absolute;
    z-index: 3;
    top: 12%;
    right: 6%;
    bottom: 9%;
    left: 7%;
    display: block;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 32px rgba(0, 0, 0, 0.05);
}

.center-hero__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.center-hero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    box-shadow: 0 8px 61px rgba(166, 78, 101, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast);
}
.center-hero__video:hover .center-hero__play {
    transform: translate(-50%, -50%) scale(1.06);
}

/* ----- Video modal (lightbox) ----- */
.center-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.center-video-modal[hidden] {
    display: none;
}
.center-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}
.center-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
}
.center-video-modal__video {
    display: block;
    width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.center-video-modal__close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}
.center-video-modal__close:hover {
    opacity: 0.8;
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
    .center-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 56px var(--section-side-padding) 72px;
    }
    .center-hero__media {
        justify-self: stretch;
        width: 100%;
        aspect-ratio: 16 / 10;
    }
    .center-hero__swirl {
        display: none;
    }
    .center-hero__video {
        inset: 0;   /* fill the box on mobile (no frame) */
    }
    .center-hero__copy {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .center-hero__heading,
    .center-hero__heading .accent-script {
        font-size: 36px;
        line-height: 42px;
    }
}

/* ----- Phones -----
   Centred copy with a full-width Contact Us. The video box is untouched. */
@media (max-width: 600px) {
    .center-hero__copy {
        align-items: center;
        text-align: center;
    }

    .center-hero__badge {
        justify-content: center;
        flex-wrap: wrap;
    }

    .center-hero__address {
        justify-content: center;
        text-align: left;
    }

    /* The actions wrapper is a flex item, so it has to stretch before the
       button inside it can fill the width. */
    .center-hero__actions {
        align-self: stretch;
    }

    .center-hero__actions .btn {
        display: block;
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
        line-height: 24px;
        text-align: center;
    }
}
