/* Contacts Page Styles
   Hero reuses .about-hero from about-us.css (loaded alongside this file), so
   only the contact-specific blocks live here. */

.contacts-hero {
    padding-bottom: 70px;
}

.contacts-section {
    padding: clamp(56px, 6vw, 80px) 0 90px;
    background: var(--ivory-bg);
}

/* .ast-container is Astra's flex-row utility — reset it to a plain wrapper so
   the grid sits under the heading instead of beside it. */
.contacts-section .ast-container,
.contacts-video-section .ast-container {
    display: block !important;
}

/* Primary card: the mail address gets the full content width instead of a
   quarter of the row, so it never breaks mid-address. */
.contact-primary {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: clamp(42px, 6vw, 82px);
    align-items: stretch;
    padding: clamp(42px, 4.5vw, 64px);
    background: #fff;
    /* Flat bottom: the channel strip below is attached to this card. */
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    border-top: 4px solid var(--gold-muted);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}

.contact-label {
    font-family: var(--sans-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.contact-primary__copy h2 {
    max-width: 12ch;
    margin: 14px 0 18px;
    color: #382252 !important;
    font-size: clamp(2.15rem, 3.2vw, 3.25rem) !important;
    line-height: 0.98 !important;
}

.contact-primary__copy p {
    max-width: 54ch;
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.7;
    color: #4b3a5e;
}

.contact-primary__action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    padding-inline-start: clamp(34px, 4vw, 62px);
    border-inline-start: 1px solid rgba(181, 129, 37, 0.28);
}

.contact-action-label {
    color: var(--gold-ink);
    font-family: var(--sans-body);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.contact-primary__mail {
    font-family: var(--sans-body);
    /* Scales with the viewport so the address stays on one line down to the
       narrowest phone instead of wrapping at a fixed size. */
    font-size: clamp(1rem, 0.72rem + 1.15vw, 1.45rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #382252;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid rgba(212, 173, 96, 0.6);
    padding-bottom: 4px;
}

.contact-primary__mail:hover,
.contact-primary__mail:focus-visible {
    color: var(--gold-ink);
    border-bottom-color: var(--gold-ink);
}

.contact-primary__btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 15px 34px;
    background: #6f528e;
    border: 1px solid #6f528e;
    border-radius: var(--btn-radius);
    font-family: var(--sans-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ivory-bg);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-primary__btn:hover,
.contact-primary__btn:focus-visible {
    background: var(--gold-muted);
    border-color: var(--gold-muted);
    color: #2a1345;
    text-decoration: none;
}

/* Secondary strip: social channels, one bordered row hanging off the
   primary card. Hairline dividers instead of three separate rounded boxes,
   and the sans face on every value. */
.contacts-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
    border: 1px solid rgba(212, 173, 96, 0.28);
    border-top: 0;
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    background: #fff;
    overflow: hidden;
}

.contacts-strip__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 26px;
    text-decoration: none;
    border-left: 1px solid rgba(212, 173, 96, 0.22);
    transition: background 0.25s ease;
}

.contacts-strip__item:first-child {
    border-left: 0;
}

a.contacts-strip__item:hover,
a.contacts-strip__item:focus-visible {
    background: var(--surface-sage);
    text-decoration: none;
}

.contacts-strip__name {
    font-family: var(--sans-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.contacts-strip__handle {
    font-family: var(--sans-body);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.35;
    color: #382252;
}

@media (max-width: 900px) {
    .contact-primary {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .contact-primary__action {
        padding-block-start: 30px;
        padding-inline-start: 0;
        border-block-start: 1px solid rgba(181, 129, 37, 0.28);
        border-inline-start: 0;
    }
}

@media (max-width: 1000px) {
    .contacts-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacts-strip__item:nth-child(odd) {
        border-left: 0;
    }
    .contacts-strip__item:nth-child(n + 3) {
        border-top: 1px solid rgba(212, 173, 96, 0.22);
    }
}

@media (max-width: 560px) {
    .contacts-strip {
        grid-template-columns: 1fr;
    }
    .contacts-strip__item {
        border-left: 0;
        border-top: 1px solid rgba(212, 173, 96, 0.22);
    }
    .contacts-strip__item:first-child {
        border-top: 0;
    }
}

.contacts-video-section {
    padding: 90px 0 110px;
    background: #fff;
}

.contacts-video-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

html[data-design="2"] body .contacts-video-section h2::after {
    content: none;
}

.contacts-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 40px;
}

.contacts-video {
    margin: 0;
}

.contacts-video a.contacts-video__frame {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    aspect-ratio: 16 / 9;
    padding: clamp(22px, 3vw, 38px);
    border-radius: var(--card-radius);
    overflow: hidden;
    background: radial-gradient(circle at 50% 45%, #1d6956 0%, #0b4939 48%, #073629 100%);
    color: #fffaf2;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(6, 70, 53, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.contacts-video a.contacts-video__frame::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 33, 28, .48), transparent 30%, transparent 55%, rgba(5, 33, 28, .6));
    pointer-events: none;
}

.contacts-video__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 250ms ease;
}

.contacts-video a.contacts-video__frame:hover .contacts-video__poster,
.contacts-video a.contacts-video__frame:focus-visible .contacts-video__poster {
    transform: scale(1.035);
}

.contacts-video__eyebrow,
.contacts-video__play,
.contacts-video__action {
    position: relative;
    z-index: 2;
}

.contacts-video a.contacts-video__frame:hover,
.contacts-video a.contacts-video__frame:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(6, 70, 53, .22);
    color: #fffaf2;
}

.contacts-video a.contacts-video__frame:focus-visible {
    outline: 3px solid #c09645;
    outline-offset: 4px;
}

.contacts-video__eyebrow {
    align-self: flex-start;
    color: #e4b958;
    font-family: var(--sans-body);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.contacts-video__play {
    display: grid;
    place-items: center;
    width: clamp(68px, 7vw, 92px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 250, 242, .7);
    border-radius: 50%;
    background: rgba(255, 250, 242, .12);
}

.contacts-video__play::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 20px solid #fffaf2;
}

.contacts-video__action {
    color: #fffaf2;
    font-family: var(--sans-body);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
}

.contacts-video figcaption {
    margin-top: 16px;
    text-align: center;
    font-family: var(--sans-body);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.45;
    color: #2a1345;
}

@media (max-width: 768px) {
    .contacts-hero h1 {
        font-size: 3rem;
    }
    .contacts-video-section {
        padding: 60px 0 70px;
    }

    .contacts-section {
        padding: 48px 0 64px;
    }

    .contact-primary {
        padding: 34px 26px;
    }

    .contact-primary__copy h2 {
        font-size: 2.15rem !important;
    }
}

@media (max-width: 420px) {
    .contact-primary__mail {
        max-width: 100%;
        font-size: 1rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .contact-primary__btn {
        width: 100%;
    }
}
