/*
 * Araxi Travel landing page (templates/index.html only). Colour tokens, the header and the footer
 * are in site-chrome.css (shared with the product pages), which is loaded before this file.
 * Colours are taken from the logo (static/images/logo.png): the navy "A",
 * the river teal, the sand/ochre mountains and the snow-cream background.
 */

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

html.menu-open { overflow: hidden; }

body.landing {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* :where() keeps these resets at class-level specificity so components can override them. */
.landing :where(img) { max-width: 100%; display: block; }
.landing :where(h1, h2, h3, p, figure) { margin: 0; }
.landing :where(ul) { margin: 0; padding: 0; list-style: none; }
.landing :where(a) { color: inherit; }
.landing :where(button, input, textarea) { font: inherit; color: inherit; }

.landing [hidden] { display: none !important; }
.landing .hidden { display: none; }

.skip-link {
    position: fixed;
    top: .75rem; left: .75rem;
    z-index: 100;
    padding: .6rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--cream-100);
    color: var(--navy-900);
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }

.landing :focus-visible {
    outline: 2px solid var(--ochre-500);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 48px;
    padding: .8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn .icon { transition: transform .3s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }
.btn:disabled { opacity: .6; cursor: progress; }

.btn--accent {
    background: var(--ochre-500);
    color: var(--navy-950);
    box-shadow: 0 10px 30px -10px rgba(197, 144, 84, .7);
}
.btn--accent:hover { background: var(--sand-300); }

.btn--primary {
    background: var(--navy-700);
    color: var(--cream-100);
}
.btn--primary:hover { background: var(--navy-800); }

.btn--outline {
    background: transparent;
    color: var(--navy-700);
    border-color: rgba(12, 68, 100, .35);
}
.btn--outline:hover { border-color: var(--navy-700); background: rgba(12, 68, 100, .05); }

.btn--block { width: 100%; }

.round-btn {
    display: inline-grid;
    place-items: center;
    width: 52px; height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(4, 24, 42, .28);
    color: var(--white);
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color .25s, border-color .25s, transform .25s var(--ease-out);
}
.round-btn:hover { background: rgba(248, 245, 237, .18); border-color: rgba(255, 255, 255, .8); }
.round-btn:active { transform: scale(.94); }
.round-btn .icon { width: 22px; height: 22px; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 560px;
    max-height: 1100px;
    overflow: hidden;
    background: var(--navy-950);
    color: var(--white);
    isolation: isolate;
}

.hero__stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    touch-action: pan-y;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
}
.hero.is-dragging .hero__stage { cursor: grabbing; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* DOM renderer layers */
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}
.hero__image.is-fade { transition: opacity var(--hero-duration, .7s) var(--ease-in-out); }
.hero__image.is-fade.is-active { opacity: 1; }
.hero__image.is-iris {
    opacity: 1;
    clip-path: circle(0% at 50% 50%);
    transform: scale(1.14);
    transition: clip-path var(--hero-duration) var(--ease-in-out), transform var(--hero-duration) var(--ease-out);
}
.hero__image.is-iris.is-active { clip-path: circle(75% at 50% 50%); transform: scale(1); }
.hero__image.is-active { animation: hero-pan 22s ease-in-out infinite alternate; }
.hero.is-paused .hero__image.is-active { animation-play-state: paused; }

@keyframes hero-pan {
    from { object-position: 30% 50%; }
    to { object-position: 70% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__image.is-active { animation: none; }
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(4, 24, 42, .82) 0%, rgba(4, 24, 42, .35) 32%, rgba(4, 24, 42, 0) 58%),
        linear-gradient(to right, rgba(4, 24, 42, .45) 0%, rgba(4, 24, 42, 0) 55%);
}

.hero__content {
    position: absolute;
    z-index: 2;
    left: 0; right: 0;
    top: calc(var(--header-h) + 1.5rem);
    bottom: clamp(7.5rem, 17vh, 11rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
    pointer-events: none;
}
.hero__content > * { max-width: 46rem; flex: none; }
.hero__content > .hero__title { max-width: 58rem; }
.hero__content a { pointer-events: auto; }

.hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.3rem, min(1.3rem + 4.6vw, 10.5vh), 5.75rem);
    line-height: 1.04;
    letter-spacing: -.005em;
    text-wrap: balance;
    overflow-wrap: break-word;
    text-shadow: 0 2px 30px rgba(4, 24, 42, .35);
}
/* Staff can enter long titles (Armenian words are long too): scale them down. */
.hero__title.is-long { font-size: clamp(2rem, min(1rem + 3.4vw, 8vh), 4.25rem); }
.hero__title.is-xlong { font-size: clamp(1.75rem, min(.9rem + 2.5vw, 6.5vh), 3.25rem); }
.hero__subtitle {
    margin-top: 1.1rem;
    font-size: clamp(1.02rem, .9rem + .5vw, 1.3rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, .88);
    text-wrap: pretty;
    max-width: 36rem;
}
.hero__cta { margin-top: 2rem; }

/* Bold / italic / underline set on parts of a slide title or subtitle (Staff > Slides) */
.hero .fmt-b { font-weight: 700; }
.hero .fmt-i { font-style: italic; }
.hero .fmt-u { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; }

/* Text enters line by line after each transition */
@media (prefers-reduced-motion: no-preference) {
    .hero__content > * {
        opacity: 0;
        transform: translateY(28px);
    }
    .hero__content.is-in > * {
        opacity: 1;
        transform: none;
        transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
    }
    .hero__content.is-in > :nth-child(2) { transition-delay: .1s; }
    .hero__content.is-in > :nth-child(3) { transition-delay: .2s; }
    .hero__content.is-out > * {
        opacity: 0;
        transform: translateY(-18px);
        transition: opacity .35s ease-in, transform .45s ease-in;
    }
}

.hero__controls {
    position: absolute;
    z-index: 3;
    left: 0; right: 0;
    bottom: clamp(1.75rem, 5vh, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.hero__dots { display: flex; gap: .5rem; flex-wrap: wrap; }
.hero__dot {
    position: relative;
    width: clamp(28px, 5vw, 56px);
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.hero__dot::before,
.hero__dot-fill {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
}
.hero__dot::before { background: rgba(255, 255, 255, .35); transition: background-color .25s; }
.hero__dot:hover::before { background: rgba(255, 255, 255, .7); }
.hero__dot-fill {
    display: block;
    background: var(--ochre-500);
    transform: scaleX(0);
    transform-origin: left;
}
.hero.is-paused .hero__dot.is-active .hero__dot-fill { background: var(--white); }

.hero__buttons { display: flex; gap: .6rem; }
.hero .icon--play { display: none; }
.hero.is-paused .icon--play { display: block; }
.hero.is-paused .icon--pause { display: none; }

.hero__scroll {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    transform: translateX(-50%);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, .75);
}
.hero__scroll-line {
    position: relative;
    width: 1px; height: 38px;
    overflow: hidden;
    background: rgba(255, 255, 255, .25);
}
.hero__scroll-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateY(-100%);
}
@media (prefers-reduced-motion: no-preference) {
    .hero__scroll-line::after { animation: scroll-line 2.2s var(--ease-in-out) infinite; }
}
@keyframes scroll-line {
    0% { transform: translateY(-100%); }
    50% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.hero__loader {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    background: radial-gradient(ellipse at 50% 60%, var(--navy-800), var(--navy-950) 70%);
    transition: opacity .9s var(--ease-out), visibility 0s .9s;
}
.hero__loader img {
    width: 120px;
    height: auto;
    padding: 18px 16px;
    border-radius: 22px;
    background: var(--cream-100);
}
@media (prefers-reduced-motion: no-preference) {
    .hero__loader img { animation: loader-breathe 1.8s ease-in-out infinite; }
}
@keyframes loader-breathe {
    0%, 100% { opacity: .55; transform: scale(.97); }
    50% { opacity: 1; transform: scale(1); }
}
.hero__loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }   /* never blocks the controls while fading */

/* No slides yet: a branded hero instead of an empty frame */
.hero--brand .hero__stage {
    cursor: default;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='xMidYMax slice'%3E%3Cpath d='M0 610 L230 500 L380 560 L640 380 L840 530 L1010 450 L1220 570 L1440 480 V900 H0Z' fill='%234596b2' fill-opacity='.45'/%3E%3Cpath d='M596 410 L640 380 L688 413 L662 406 L641 420 L620 404Z' fill='%23f8f5ed' fill-opacity='.92'/%3E%3Cpath d='M0 700 L270 590 L500 670 L760 560 L1010 660 L1250 590 L1440 640 V900 H0Z' fill='%230c4464'/%3E%3Cpath d='M0 790 L330 700 L580 765 L840 700 L1110 775 L1440 715 V900 H0Z' fill='%23072339'/%3E%3Cpath d='M-20 875 C 300 790 520 890 770 830 S 1180 760 1460 805' fill='none' stroke='%2315698a' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / cover no-repeat,
        linear-gradient(to bottom, #072339 0%, #0c4464 45%, #6f9fae 78%, #ddbf98 100%);
}
.hero--brand .hero__scroll { display: flex; }

@media (max-width: 899px) {
    .hero { min-height: 520px; }
    .hero__content { bottom: 8.5rem; }
    .hero__scroll { display: none; }
    .round-btn { width: 46px; height: 46px; }
    .hero__buttons [data-hero-toggle] { order: 3; }
}

@media (max-width: 480px) {
    .hero__shade {
        background: linear-gradient(to top, rgba(4, 24, 42, .88) 0%, rgba(4, 24, 42, .45) 40%, rgba(4, 24, 42, .05) 70%);
    }
    .hero__controls { flex-direction: column-reverse; align-items: stretch; gap: .9rem; }
    .hero__buttons { justify-content: flex-start; }
    .hero__content { bottom: 10.5rem; }
    .hero__dots { gap: .35rem; }
}

@media (max-height: 560px) and (orientation: landscape) {
    .hero { min-height: 100svh; }
    .hero__content { bottom: 5.5rem; }
    .hero__title { font-size: clamp(1.9rem, 6vh + 1rem, 3rem); }
    .hero__subtitle { display: none; }
    .hero__cta { margin-top: 1rem; }
    .hero__scroll { display: none; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--river-600);
}
.eyebrow::before {   /* the river from the logo */
    content: "";
    width: 34px; height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 10'%3E%3Cpath d='M1 7 C 7 1, 12 1, 17 5 S 27 9, 33 3' fill='none' stroke='%23c59054' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.eyebrow--light { color: var(--sand-300); }

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -.005em;
    color: var(--navy-900);
    text-wrap: balance;
}
.section-lead {
    margin-top: 1.1rem;
    font-size: 1.08rem;
    color: var(--ink-600);
    text-wrap: pretty;
}

/* Reveal on scroll (enabled from JS so content is never hidden without it) */
.has-reveal .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
}
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Journeys ---------- */

.journeys { background: var(--cream-50); }

.journeys__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.journey {
    position: relative;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: box-shadow .45s var(--ease-out), transform .45s var(--ease-out);
}
.has-reveal .journey.reveal { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), box-shadow .45s var(--ease-out); }
.journey:hover,
.has-reveal .journey.reveal.is-visible:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-6px); }

.journey__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: inherit;
}

.journey__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(135deg, var(--cream-200), var(--sand-200));
}
.journey__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .6s, transform 1.2s var(--ease-out);
}
.journey__media.is-loaded img { opacity: 1; transform: scale(1); }
.journey:hover .journey__media.is-loaded img { transform: scale(1.06); }
.journey__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 24, 42, .35), rgba(4, 24, 42, 0) 45%);
    pointer-events: none;
}
.journey__media--empty {
    background:
        url("../images/logo-mark.png") center / 34% auto no-repeat,
        linear-gradient(135deg, var(--cream-100), var(--sand-200));
}
.journey__media--empty::after { display: none; }


.journey__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .7rem;
    padding: 1.4rem 1.5rem 1.5rem;
}
.journey__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.45rem;
    line-height: 1.2;
    color: var(--navy-900);
    overflow-wrap: break-word;
}
.journey__text {
    color: var(--ink-600);
    font-size: .96rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.journey__more {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: auto;
    padding-top: .5rem;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--river-600);
}
.journey__more .icon { transition: transform .35s var(--ease-out); }
.journey:hover .journey__more .icon { transform: translateX(5px); }

.journey--skeleton { box-shadow: none; background: var(--cream-100); }
.journey--skeleton .journey__media { background: var(--cream-200); }
.journey--skeleton .journey__body span {
    display: block;
    height: 14px;
    border-radius: 7px;
    background: var(--cream-200);
}
.journey--skeleton .journey__body span:first-child { width: 70%; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
    .journey--skeleton { animation: skeleton 1.4s ease-in-out infinite; }
}
@keyframes skeleton { 50% { opacity: .55; } }

.journeys__status {
    padding: 2.5rem 1.5rem;
    border: 1px dashed rgba(12, 68, 100, .25);
    border-radius: var(--radius);
    text-align: center;
    color: var(--ink-600);
}
.journeys__more { display: flex; justify-content: center; margin-top: 3rem; }
.journeys__more:has(> [hidden]) { display: none; }

/* ---------- About ---------- */

.about {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cg fill='none' stroke='%23f8f5ed' stroke-opacity='.05' stroke-width='1.2'%3E%3Cpath d='M-50 480 C 100 380 220 430 330 330 S 560 160 850 250'/%3E%3Cpath d='M-50 510 C 110 410 230 460 345 360 S 575 190 850 280'/%3E%3Cpath d='M-50 540 C 120 440 240 490 360 390 S 590 220 850 310'/%3E%3Cpath d='M-50 570 C 130 470 250 520 375 420 S 605 250 850 340'/%3E%3Cpath d='M-50 600 C 140 500 260 550 390 450 S 620 280 850 370'/%3E%3C/g%3E%3C/svg%3E") right bottom / 900px auto no-repeat,
        var(--navy-900);
    color: rgba(248, 245, 237, .82);
    overflow: hidden;
}
.about .section-title { color: var(--cream-100); }

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    grid-template-areas: "text arch" "pillars pillars";
    gap: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 6vw, 6rem);
    align-items: center;
}
.about__text { grid-area: text; }
.about__text p:not(.eyebrow) { margin-top: 1.2rem; font-size: 1.08rem; max-width: 38rem; }

.about__arch {
    grid-area: arch;
    position: relative;
    justify-self: center;
    width: min(100%, 340px);
    aspect-ratio: 3 / 4;
    margin: 0;
    display: grid;
    place-items: center;
    border-radius: 999px 999px 18px 18px;   /* the arch of Armenian church portals */
    background: linear-gradient(to bottom, var(--cream-100), var(--sand-200));
}
.about__arch::before {
    content: "";
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(197, 144, 84, .55);
    border-radius: 999px 999px 26px 26px;
}
.about__arch img { width: 64%; height: auto; }

.pillars {
    grid-area: pillars;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid rgba(248, 245, 237, .14);
}
.pillar__num {
    display: block;
    margin-bottom: .9rem;
    font-size: .8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .18em;
    color: var(--ochre-500);
}
.pillar h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--cream-100);
    margin-bottom: .6rem;
}
.pillar p { font-size: .98rem; }
.pillars .pillar:nth-child(2) { transition-delay: .1s; }
.pillars .pillar:nth-child(3) { transition-delay: .2s; }

@media (max-width: 899px) {
    .about__grid { grid-template-columns: 1fr; grid-template-areas: "text" "arch" "pillars"; }
    .about__arch { width: min(70%, 260px); }
    .pillars { grid-template-columns: 1fr; }
}

/* ---------- Contacts ---------- */

.contacts { background: var(--cream-100); }

.contacts__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.contact-links { display: grid; gap: .25rem; margin-top: 2rem; }
.contact-links__item {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    padding: .55rem 0;
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--navy-700);
    overflow-wrap: anywhere;
}
.contact-links__item .icon { color: var(--ochre-600); transition: transform .3s var(--ease-out); }
.contact-links__item:hover span { text-decoration: underline; text-underline-offset: 4px; }
.contact-links__item:hover .icon { transform: translate(2px, -2px); }

.newsletter {
    margin-top: 2.75rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(12, 68, 100, .14);
}
.newsletter__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--navy-900); }
.newsletter > p { margin-top: .4rem; color: var(--ink-600); }
.newsletter__form { display: flex; gap: .6rem; margin-top: 1.2rem; }
.newsletter__form input { flex: 1; min-width: 0; }

.message-card {
    padding: clamp(1.6rem, 4vw, 2.75rem);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-card);
}
.message-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
    color: var(--navy-900);
    margin-bottom: 1.5rem;
}
.messageForm { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field--wide, .messageForm .btn { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-600); }

.contacts input,
.contacts textarea {
    width: 100%;
    min-height: 48px;
    padding: .75rem 1rem;
    border: 1px solid #ccc;
    border-radius: var(--radius-sm);
    background: var(--cream-50);
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.contacts textarea { resize: vertical; min-height: 140px; }
.contacts input:focus,
.contacts textarea:focus {
    outline: none;
    border-color: var(--river-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(21, 105, 138, .15);
}

.form-status {
    display: none;
    margin: 0 0 1.2rem;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
}
.form-status p { margin: 0; }
/* Newsletter message (above the email field): slides open and closed instead of popping in.
   script.js still toggles .hidden / style.display; here it stays in the layout and animates. */
.newsletter .form-status {
    display: block !important;
    max-height: 0;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0 !important;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height .4s var(--ease-out), margin .4s var(--ease-out), padding .4s var(--ease-out),
                border-width .4s var(--ease-out), opacity .25s ease, visibility 0s .4s;
}
.newsletter .form-status:not(.hidden) {
    max-height: 10rem;
    margin-top: 1rem;
    padding-top: .8rem;
    padding-bottom: .8rem;
    border-width: 1px !important;
    opacity: 1;
    visibility: visible;
    transition: max-height .4s var(--ease-out), margin .4s var(--ease-out), padding .4s var(--ease-out),
                border-width .4s var(--ease-out), opacity .35s ease .1s, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
    .newsletter .form-status,
    .newsletter .form-status:not(.hidden) { transition: none; }
}

/* Invalid fields (newsletter and message form): the site's blue instead of red */
.contacts input.is-invalid,
.contacts textarea.is-invalid {
    border-color: var(--river-600);
    box-shadow: 0 0 0 3px rgba(21, 105, 138, .18);
}

/* Failed validation scrolls here; the fixed header is covered by html scroll-padding-top */
.message-card__title { scroll-margin-top: 1rem; }

@media (max-width: 899px) {
    .contacts__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .messageForm { grid-template-columns: 1fr; }
    .newsletter__form { flex-direction: column; }
}
