/* ============================================================
   Trail: Coming Soon Teaser
   ------------------------------------------------------------
   Self-contained styles for page-trail-coming-soon.php. Scoped
   under .gz-trail-teaser so it can't bleed into the rest of the
   site. Tokens at the top so a future trail variant (different
   palette, different mood) can override locally.

   Class convention: .gz-th__<element>--<modifier>
   ============================================================ */

.gz-trail-teaser {
    /* Brand tokens (mirror v4 vars; declared locally so the
       template renders even on pages that don't load gz-global). */
    --gz-th-dark:        #15191C;   /* deeper tinted blue-black */
    --gz-th-blue:        #364b54;   /* gz dark blue */
    --gz-th-blue-deep:   #243339;   /* deeper for CTA bg */
    --gz-th-blue-shade:  #2D3F47;   /* mid stop for gradients */
    --gz-th-orange:      #EB6B40;   /* gz orange */
    --gz-th-orange-warm: #FFB893;   /* lighter on dark surfaces */
    --gz-th-orange-soft: #F8B79B;   /* tinted for topo decoration */
    --gz-th-aqua:        #42B5BF;   /* gz aqua (used very sparingly) */
    --gz-th-sand:        #F4ECDF;   /* warm sand bg */
    --gz-th-sand-light:  #FAF6F0;   /* warmer almost-white */
    --gz-th-stone:       #3D3D3B;   /* body type, slightly deeper for prose contrast */
    --gz-th-stone-soft:  #6F6E6A;   /* secondary type */
    --gz-th-line:        #E6DFD2;   /* hairline rules */
    --gz-th-line-deep:   rgba(250, 246, 240, 0.16); /* on-dark hairline */

    --gz-th-display: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
    --gz-th-body:    "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --gz-th-ease:    cubic-bezier(0.16, 1, 0.3, 1); /* ease-out-expo */

    font-family: var(--gz-th-body);
    color: var(--gz-th-stone);
    background: var(--gz-th-sand-light);
    line-height: 1.55;
    overflow-x: hidden;
}

/* Reset only what we need locally. */
.gz-trail-teaser *,
.gz-trail-teaser *::before,
.gz-trail-teaser *::after {
    box-sizing: border-box;
}

.gz-trail-teaser img {
    max-width: 100%;
    display: block;
}

/* Brand-colored selection so text highlighting feels intentional. */
.gz-trail-teaser ::selection {
    background-color: rgba(235, 107, 64, 0.85);
    color: var(--gz-th-sand-light);
}

/* Unified focus ring across every interactive element. */
.gz-trail-teaser a:focus-visible,
.gz-trail-teaser button:focus-visible {
    outline: 2px solid var(--gz-th-orange);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============== Shared section pieces ============== */

.gz-th__eyebrow,
.gz-th__section-eyebrow {
    font-family: var(--gz-th-body);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gz-th-orange);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.1rem;
}

.gz-th__eyebrow::before,
.gz-th__section-eyebrow::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: currentColor;
    flex-shrink: 0;
}

.gz-th__eyebrow--bright {
    color: var(--gz-th-orange-warm);
}

.gz-th__section-title {
    font-family: var(--gz-th-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    line-height: 0.98;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    color: var(--gz-th-blue);
    margin: 0 0 1.25rem;
    text-wrap: balance;
}

/* ============== HERO ============== */

.gz-th__hero {
    position: relative;
    min-height: 88vh;
    background-color: var(--gz-th-blue);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    color: var(--gz-th-sand-light);
    padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 5rem) clamp(5rem, 9vw, 7.5rem);
    isolation: isolate;
}

.gz-th__hero--no-image {
    background-image:
        radial-gradient(at 18% 78%, rgba(235, 107, 64, 0.38), transparent 60%),
        radial-gradient(at 82% 22%, rgba(66, 181, 191, 0.18), transparent 60%);
    background-color: var(--gz-th-dark);
}

/* Optional WebM background video. Lives behind the overlay (z:1) and the
   content (z:2). When absent, the hero's background-image carries the page;
   when present, the image is reused as poster + reduced-motion fallback. */
.gz-th__hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    /* Cover any tiny gap from rounding while the video element initialises. */
    background-color: var(--gz-th-dark);
}

@media (prefers-reduced-motion: reduce) {
    .gz-th__hero-video {
        display: none;
    }
}

.gz-th__hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        /* Tighter bottom-left darkness for copy legibility */
        linear-gradient(
            115deg,
            rgba(20, 25, 28, 0.92) 0%,
            rgba(20, 25, 28, 0.55) 42%,
            rgba(20, 25, 28, 0.15) 100%
        ),
        /* Soft fade into the stats bar below — no hard seam */
        linear-gradient(
            to bottom,
            transparent 65%,
            rgba(36, 51, 57, 0.7) 100%
        );
    pointer-events: none;
}

.gz-th__hero-content {
    position: relative;
    z-index: 2;
    max-width: 62rem;
    width: 100%;
}

.gz-th__title {
    font-family: var(--gz-th-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.012em;
    line-height: 0.9;
    font-size: clamp(2.75rem, 8.5vw, 7rem);
    color: var(--gz-th-sand-light);
    margin: 0 0 1.5rem;
    text-wrap: balance;
    text-shadow: 0 1px 30px rgba(0, 0, 0, 0.18);
}

.gz-th__lede {
    font-size: clamp(1.0625rem, 1.45vw, 1.3125rem);
    line-height: 1.55;
    font-weight: 400;
    color: rgba(250, 246, 240, 0.92);
    max-width: 56ch;
    margin: 0;
    text-wrap: pretty;
}

.gz-th__scroll-cue {
    position: absolute;
    bottom: clamp(1.5rem, 3vw, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(250, 246, 240, 0.7);
    font-size: 0.6875rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 700;
    animation: gz-th-cue 2.4s var(--gz-th-ease) 0.4s infinite alternate;
}

.gz-th__scroll-cue-line {
    width: 1px;
    height: 30px;
    background: currentColor;
    opacity: 0.7;
}

@keyframes gz-th-cue {
    from { transform: translate(-50%, 0); opacity: 0.45; }
    to   { transform: translate(-50%, 6px); opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
    .gz-th__scroll-cue { animation: none; }
}

/* ============== STATS STRIP ============== */

.gz-th__stats {
    position: relative;
    background:
        linear-gradient(
            180deg,
            var(--gz-th-blue-shade) 0%,
            var(--gz-th-blue) 100%
        );
    color: var(--gz-th-sand-light);
    padding: clamp(2.25rem, 4.5vw, 3.5rem) clamp(1.25rem, 5vw, 5rem);
}

/* Thin orange accent line at the top, like a horizon. */
.gz-th__stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(3rem, 10vw, 5rem);
    height: 3px;
    background: var(--gz-th-orange);
}

.gz-th__stats-inner {
    max-width: 78rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(1rem, 3vw, 3rem);
    row-gap: 2rem;
}

@media (min-width: 768px) {
    .gz-th__stats-inner {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 0;
    }
    .gz-th__stat + .gz-th__stat {
        border-left: 1px solid var(--gz-th-line-deep);
        padding-left: clamp(1rem, 3vw, 3rem);
    }
}

.gz-th__stat {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.gz-th__stat-label {
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(250, 246, 240, 0.65);
}

.gz-th__stat-value {
    font-family: var(--gz-th-display);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--gz-th-sand-light);
    font-variant-numeric: tabular-nums;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
}

.gz-th__stat--feature .gz-th__stat-value {
    font-size: clamp(2.5rem, 5.75vw, 3.875rem);
    color: var(--gz-th-orange);
    font-weight: 700;
}

/* ============== OVERVIEW ============== */

.gz-th__overview {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--gz-th-sand-light);
}

@media (min-width: 900px) {
    .gz-th__overview {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 38rem;
    }
}

.gz-th__overview-media {
    background: var(--gz-th-sand);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4 / 3;
}

@media (min-width: 900px) {
    .gz-th__overview-media {
        aspect-ratio: auto;
    }
}

.gz-th__overview-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gz-th__overview-placeholder {
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            45deg,
            var(--gz-th-sand) 0px,
            var(--gz-th-sand) 14px,
            rgba(235, 107, 64, 0.08) 14px,
            rgba(235, 107, 64, 0.08) 28px
        );
}

.gz-th__overview-body {
    padding: clamp(2.75rem, 5.5vw, 5.5rem) clamp(1.5rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 38rem;
}

.gz-th__prose {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--gz-th-stone);
    margin: 0 0 1.5rem;
    text-wrap: pretty;
}

.gz-th__prose p {
    margin: 0 0 1rem;
}

.gz-th__prose p:last-child {
    margin-bottom: 0;
}

/* More confident pull quote — Barlow Condensed at heavy display size with
   a deliberate top rule. Replaces a smaller, more decorative treatment. */
.gz-th__pull {
    margin: 2.25rem 0 0;
    padding: 1.75rem 0 0;
    position: relative;
}

.gz-th__pull::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3rem;
    height: 3px;
    background: var(--gz-th-orange);
}

.gz-th__pull blockquote {
    margin: 0;
    font-family: var(--gz-th-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    line-height: 1.18;
    letter-spacing: -0.005em;
    color: var(--gz-th-blue);
    text-wrap: balance;
}

/* ============== TRAILHEAD ============== */

.gz-th__trailhead {
    position: relative;
    background: var(--gz-th-sand);
    padding: clamp(3.25rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem);
    overflow: hidden;
    isolation: isolate;
}

/* Topo decoration lives behind the content but is masked away from the
   center so the meta rows have a clean reading surface. The lines fade
   in from the left and right edges, giving the southwestern feel without
   competing with the type. */
.gz-th__topo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    color: var(--gz-th-orange-soft);
    opacity: 0.55;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0) 28%,
        rgba(0, 0, 0, 0) 72%,
        rgba(0, 0, 0, 0.9) 100%
    );
    mask-image: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0) 28%,
        rgba(0, 0, 0, 0) 72%,
        rgba(0, 0, 0, 0.9) 100%
    );
}

@media (max-width: 720px) {
    .gz-th__topo {
        opacity: 0.2;
        -webkit-mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0) 60%
        );
        mask-image: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0) 60%
        );
    }
}

.gz-th__trailhead-inner {
    position: relative;
    z-index: 1;
    max-width: 56rem;
    margin: 0 auto;
}

.gz-th__meta {
    margin: 2rem 0 1.75rem;
    padding: 0;
    display: grid;
    gap: 0;
}

.gz-th__meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--gz-th-line);
}

.gz-th__meta-row:first-of-type {
    border-top: 1px solid var(--gz-th-line);
}

@media (min-width: 600px) {
    .gz-th__meta-row {
        grid-template-columns: 14rem 1fr;
        gap: 1.5rem;
        align-items: baseline;
    }
}

.gz-th__meta-row dt {
    /* Barlow Condensed gives the labels editorial character. */
    font-family: var(--gz-th-display);
    font-size: 0.9375rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gz-th-stone-soft);
}

.gz-th__meta-row dd {
    margin: 0;
    font-size: 1.0625rem;
    color: var(--gz-th-blue);
    font-weight: 500;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
}

.gz-th__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.75rem;
    font-family: var(--gz-th-body);
    font-size: 0.8125rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--gz-th-orange);
    text-decoration: none;
    padding: 0.45rem 0;
    border-bottom: 2px solid currentColor;
    transition:
        color 0.22s var(--gz-th-ease),
        gap 0.22s var(--gz-th-ease);
}

.gz-th__map-link svg {
    transition: transform 0.22s var(--gz-th-ease);
}

.gz-th__map-link:hover,
.gz-th__map-link:focus-visible {
    color: var(--gz-th-blue);
    gap: 0.85rem;
}

.gz-th__map-link:hover svg,
.gz-th__map-link:focus-visible svg {
    transform: translate(2px, -2px);
}

/* ============== SOCIAL CTA ============== */

.gz-th__cta {
    position: relative;
    background:
        radial-gradient(
            ellipse at 78% 105%,
            rgba(235, 107, 64, 0.28) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 12% -10%,
            rgba(66, 181, 191, 0.10) 0%,
            transparent 50%
        ),
        var(--gz-th-blue-deep);
    color: var(--gz-th-sand-light);
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
    overflow: hidden;
}

.gz-th__cta-inner {
    position: relative;
    max-width: 50rem;
    margin: 0 auto;
}

.gz-th__cta .gz-th__section-eyebrow {
    color: var(--gz-th-orange);
}

.gz-th__cta-title {
    font-family: var(--gz-th-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.012em;
    line-height: 0.94;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--gz-th-sand-light);
    margin: 0 0 1.5rem;
    text-wrap: balance;
}

.gz-th__cta-body {
    font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
    line-height: 1.6;
    color: rgba(250, 246, 240, 0.85);
    max-width: 42rem;
    margin: 0 0 2.5rem;
    text-wrap: pretty;
}

.gz-th__social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2.75rem;
}

/* As the only CTA, the button needs to feel decisive: larger pad,
   heavier weight, and a confident shadow. */
.gz-th__social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 1.75rem;
    background: var(--gz-th-orange);
    color: var(--gz-th-dark);
    font-family: var(--gz-th-body);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 999px;
    border: none;
    box-shadow: 0 8px 24px rgba(235, 107, 64, 0.28);
    transition:
        transform 0.22s var(--gz-th-ease),
        background-color 0.22s var(--gz-th-ease),
        color 0.22s var(--gz-th-ease),
        box-shadow 0.22s var(--gz-th-ease);
}

.gz-th__social-btn svg {
    flex-shrink: 0;
}

.gz-th__social-btn:hover,
.gz-th__social-btn:focus-visible {
    background: var(--gz-th-sand-light);
    color: var(--gz-th-blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(20, 25, 28, 0.35);
}

@media (max-width: 599px) {
    .gz-th__social-btn {
        width: 100%;
        justify-content: center;
        padding: 1.125rem 1.5rem;
    }
}

.gz-th__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(250, 246, 240, 0.7);
    font-size: 0.8125rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.22s var(--gz-th-ease), gap 0.22s var(--gz-th-ease);
}

.gz-th__back:hover,
.gz-th__back:focus-visible {
    color: var(--gz-th-sand-light);
    gap: 0.75rem;
}

.gz-th__back svg {
    transition: transform 0.22s var(--gz-th-ease);
}

.gz-th__back:hover svg,
.gz-th__back:focus-visible svg {
    transform: translateX(-3px);
}

/* ============== Small-screen refinements ============== */

@media (max-width: 599px) {
    .gz-th__hero {
        min-height: 80vh;
    }
    .gz-th__overview-body {
        padding: 2.25rem 1.25rem 2.75rem;
    }
}

@media print {
    .gz-th__hero,
    .gz-th__stats,
    .gz-th__cta {
        background: #fff !important;
        color: #000 !important;
    }
    .gz-th__scroll-cue,
    .gz-th__topo,
    .gz-th__social,
    .gz-th__back {
        display: none !important;
    }
    * {
        -webkit-print-color-adjust: economy;
        print-color-adjust: economy;
    }
}
