/* ==========================================================================
   Thrsty (pId 68433) — About Us page.

   Auto-loaded by base.php for the view whose basename is `about`
   (app/Views/themes/ue_override/core_views/thrsty/about.php). Page-scoped by
   the `th-about-*` prefix, so nothing here can reach another page.

   Colours come from the runtime brand tokens base.php injects on <body>
   (--brand-primary #ef6c20, --brand-secondary #110101). No hex literals.
   Mobile-first; desktop starts at 768px.
   ========================================================================== */

/* --- Banner -------------------------------------------------------------- */

/* Full-bleed, never cropped. The source is 2086x754 (2.77:1) and its own
   artwork carries copy, so `cover` would cut the scene at every width. The
   reserved aspect-ratio keeps the block from shifting while it loads. */
.th-about-hero {
    background: var(--brand-secondary-raw);
}

.th-about-hero__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2086 / 754;
}

/* --- Story --------------------------------------------------------------- */

.th-about-story__inner {
    max-width: 720px;
    padding-block: var(--space-8, 32px) var(--space-10, 40px);
}

.th-about-story__title {
    margin: 0 0 var(--space-6, 24px);
    font-family: var(--font-display, inherit);
    font-size: clamp(2rem, 7vw, 3.25rem);
    line-height: 1.05;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
}

.th-about-story__lead {
    margin: 0 0 var(--space-5, 20px);
    font-size: clamp(1.125rem, 2.6vw, 1.375rem);
    line-height: 1.55;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.th-about-story__copy {
    margin: 0 0 var(--space-4, 16px);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary, #555);
}

/* The one line the brand wants read as a statement, not as body copy. */
.th-about-story__pull {
    margin: var(--space-6, 24px) 0;
    padding-inline-start: var(--space-4, 16px);
    border-inline-start: 3px solid var(--brand-primary);
    font-size: clamp(1.125rem, 2.8vw, 1.5rem);
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
}

/* --- Pour. Spike. Serve. ------------------------------------------------- */

.th-about-steps {
    background: var(--brand-secondary-raw);
    color: #fff;
}

.th-about-steps__inner {
    padding-block: var(--space-10, 40px);
    text-align: center;
}

.th-about-steps__title {
    margin: 0 0 var(--space-6, 24px);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: color-mix(in srgb, #fff 70%, transparent);
}

.th-about-steps__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-about-steps__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3, 12px);
}

.th-about-steps__num {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: var(--brand-on-primary, #fff);
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.th-about-steps__word {
    font-family: var(--font-display, inherit);
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 700;
    line-height: 1;
}

/* --- Gallery grid (renders only when the view has images) ----------------- */

.th-about-gallery {
    padding-block: var(--space-10, 40px);
}

.th-about-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3, 12px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.th-about-gallery__cell {
    overflow: clip;
    border-radius: var(--radius-lg, 16px);
    background: var(--bg-surface, #f4f4f4);
}

.th-about-gallery__cell img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* --- Closer -------------------------------------------------------------- */

.th-about-closer__inner {
    max-width: 720px;
    padding-block: var(--space-10, 40px) var(--space-12, 48px);
    text-align: center;
}

.th-about-closer__note {
    margin: 0 0 var(--space-3, 12px);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary, #555);
}

.th-about-closer__tagline {
    margin: 0 0 var(--space-7, 28px);
    font-family: var(--font-display, inherit);
    font-size: clamp(1.375rem, 4.5vw, 2rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--brand-primary);
}

.th-about-closer__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 8px);
    min-height: 44px;
    padding: var(--space-3, 12px) var(--space-5, 20px);
    border: 1px solid var(--brand-primary);
    border-radius: 999px;
    color: var(--brand-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.th-about-closer__social:hover,
.th-about-closer__social:focus-visible {
    background: var(--brand-primary);
    color: var(--brand-on-primary, #fff);
}

.th-about-closer__social:focus-visible {
    outline: 2px solid var(--brand-secondary-raw);
    outline-offset: 2px;
}

.th-about-closer__icon {
    flex: 0 0 auto;
}

/* --- Desktop ------------------------------------------------------------- */

@media (min-width: 768px) {
    .th-about-story__inner,
    .th-about-closer__inner {
        padding-block: var(--space-16, 64px);
    }

    .th-about-steps__inner {
        padding-block: var(--space-14, 56px);
    }

    .th-about-steps__list {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8, 32px);
    }

    .th-about-gallery {
        padding-block: var(--space-14, 56px);
    }

    .th-about-gallery__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-4, 16px);
    }
}
