/* ============================================================
   About Us — editorial customer-facing styles
   ============================================================ */

.about-page {
    /* Body type inherits the site's default sans-serif. The variable name is
       preserved for stability, but the value is now `inherit` — every rule
       that says `font-family: var(--about-serif)` resolves to the site font. */
    --about-serif: inherit;
    --about-section-gap-desktop: 96px;
    --about-section-gap-mobile: 64px;
    --about-text-max: 720px;
    --about-text-color: #2a2a2a;
    --about-muted: #6b6b6b;
}

.about-page section[data-about-section] {
    padding: var(--about-section-gap-desktop) 0;
}
.about-page section[data-about-section]:first-child { padding-top: 0; }

/* Hero and full-width banner sections are edge-to-edge — the aspect-ratio
   sets the visual height, no section padding fighting it. */
.about-page section.about-hero,
.about-page section.about-story--banner {
    padding: 0;
}

@media (max-width: 768px) {
    .about-page section[data-about-section] {
        padding: var(--about-section-gap-mobile) 0;
    }
    .about-page section.about-hero,
    .about-page section.about-story--banner {
        padding: 0;
    }
}

.about-page .container--narrow {
    max-width: var(--about-text-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Hero ---------- */
.about-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--secondary-color, #2a2a2a);
}
.about-hero.aspect-16x5 { aspect-ratio: 16 / 5; }
.about-hero.aspect-16x6 { aspect-ratio: 16 / 6; }
.about-hero.aspect-16x7 { aspect-ratio: 16 / 7; }
/* Custom (free) crop: section has no fixed aspect — the image's natural ratio
   drives the section height, same pattern as the homepage image banner. */
.about-hero.aspect-free { aspect-ratio: auto; }
.about-hero:not(.has-image) { aspect-ratio: auto; min-height: 360px; display: flex; align-items: center; }

.about-hero__image {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
/* For free aspect, let the image flow at natural height instead of cover-cropping. */
.about-hero.aspect-free.has-image .about-hero__image {
    position: relative; inset: auto; height: auto;
}
.about-hero.has-image.has-overlay::after {
    content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45);
}
.about-hero__inner {
    position: relative; z-index: 2;
    text-align: center;
    padding: 40px 20px;
    margin: auto;
}
.about-hero.has-image .about-hero__inner {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.about-hero__eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 16px;
}
.about-hero__title {
    font-family: var(--about-serif);
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;          /* base.css sets a dark default on every h1/h2 — override it explicitly */
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.about-hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    max-width: 640px; margin: 0 auto;
    opacity: 0.92;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

/* ---------- Intro band ---------- */
.about-intro { background: #fafafa; }
.about-intro__title {
    font-family: var(--about-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
    margin: 0 0 12px;
    color: var(--about-text-color);
}
.about-intro__subtitle {
    text-align: center;
    color: var(--about-muted);
    max-width: var(--about-text-max);
    margin: 0 auto 48px;
    font-size: 1.05rem;
    line-height: 1.6;
}
.about-intro__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.about-intro__card {
    text-align: center;
    padding: 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}
.about-intro__card i { font-size: 2rem; color: var(--primary-color); display: block; margin-bottom: 12px; }
.about-intro__card strong {
    display: block;
    font-family: var(--about-serif);
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.about-intro__card p { margin: 0; color: var(--about-muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Story: text ---------- */
.about-story--text .about-story__body {
    font-family: var(--about-serif);
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--about-text-color);
}
.about-story--text .about-story__body p { margin: 0 0 1.4em; }
.about-story--text .about-story__body p:last-child { margin-bottom: 0; }
.about-story--text .about-story__pullquote {
    font-family: var(--about-serif);
    font-style: italic;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.3;
    margin: 48px 0 0;
    padding: 0 0 0 24px;
    border-left: 3px solid var(--primary-color, #213a86);
    color: var(--about-text-color);
}

/* ---------- Story: image + text split ---------- */
.about-story--image-split .about-story__split {
    display: grid;
    grid-template-columns: 60fr 40fr;
    gap: 64px;
    align-items: center;
}
.about-story--image-right .about-story__split {
    grid-template-columns: 40fr 60fr;
    direction: rtl;
}
.about-story--image-right .about-story__split > * { direction: ltr; }
.about-story--image-split .about-story__image img {
    width: 100%; height: auto; display: block; border-radius: 2px;
}
.about-story--image-split .about-story__title {
    font-family: var(--about-serif);
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.2;
    margin: 0 0 16px;
}
.about-story--image-split .about-story__body {
    font-family: var(--about-serif);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--about-text-color);
}
@media (max-width: 768px) {
    .about-story--image-split .about-story__split,
    .about-story--image-right .about-story__split {
        grid-template-columns: 1fr; gap: 24px; direction: ltr;
    }
    .about-story--image-right .about-story__image { order: -1; }
}

/* ---------- Story: banner ----------
   Mirrors the homepage image-banner pattern: the image displays at its natural
   aspect ratio (width:100% / height:auto), so the section's height = whatever
   the vendor uploaded. If a headline is provided, it overlays the image. */
.about-story--banner {
    position: relative;
    width: 100%;
    padding: 0 !important;
    overflow: hidden;
    color: #fff;
}
.about-story--banner .about-story__banner-image {
    width: 100%;
    height: auto;
    display: block;
}
.about-story--banner .about-story__banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.about-story--banner .about-story__banner-headline {
    font-family: var(--about-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    margin: 0 0 12px;
    color: #fff;          /* override base.css h1/h2 dark default */
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.about-story--banner .about-story__banner-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 640px;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* ---------- Story: video ---------- */
.about-story--video .about-story__video {
    max-width: 960px; margin: 0 auto;
    position: relative; padding-top: 56.25%; /* 16:9 */
}
.about-story--video .about-story__video iframe {
    position: absolute; inset: 0; width: 100%; height: 100%;
    border: 0; border-radius: 4px;
}
.about-story--video .about-story__video-caption {
    text-align: center; color: var(--about-muted);
    font-size: 0.95rem; margin: 16px 0 0;
}

/* ---------- Story: quote ---------- */
.about-story--quote .about-story__quote {
    text-align: center;
    margin: 0;
    position: relative;
}
.about-story--quote .about-story__quote-mark {
    font-family: var(--about-serif);
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1;
    color: var(--primary-color, #213a86);
    opacity: 0.3;
    display: block;
}
.about-story--quote .about-story__quote-text {
    font-family: var(--about-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    line-height: 1.35;
    margin: -16px 0 24px;
    color: var(--about-text-color);
}
.about-story--quote .about-story__quote-attr {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--about-muted);
}

/* ---------- CTA ----------
   The About CTA reuses the homepage's .cta-section / .cta-content / .cta-title /
   .cta-subtitle / .cta-button classes from /assets/css/components/cta.css. The
   shared component already sets `padding: 100px 0`, but the broader
   `.about-page section[data-about-section] { padding: 96px 0 }` rule has equal
   specificity, so we restate cta-section's spacing with a more specific
   selector to make sure the homepage-matching padding wins. */
.about-page section.about-cta { padding: 100px 0; }
@media (max-width: 768px) {
    .about-page section.about-cta { padding: 64px 0; }
}

/* ---------- Empty state ---------- */
.about-empty {
    text-align: center;
    padding: 120px 20px;
    color: var(--about-muted);
}
.about-empty i { font-size: 4rem; color: #ddd; display: block; margin-bottom: 20px; }

/* ---------- Quill output normalization (mirrors existing /about quill styling) ---------- */
.ql-content { font-family: var(--about-serif); color: var(--about-text-color); }
.ql-content p { margin: 0 0 1.4em; }
.ql-content p:last-child { margin-bottom: 0; }
.ql-content a { color: var(--primary-color, #213a86); text-decoration: underline; }
.ql-content .ql-align-center { text-align: center; }
.ql-content .ql-align-right  { text-align: right; }
.ql-content .ql-align-justify { text-align: justify; }
.ql-content ul, .ql-content ol { list-style: none; padding-left: 1.5em; }
.ql-content li[data-list="bullet"]::before { content: '\2022'; position: absolute; left: -1.2em; }
.ql-content li[data-list="ordered"]::before { content: counter(list-0, decimal) '.'; position: absolute; left: -1.5em; width: 1.2em; text-align: right; }
.ql-content ol { counter-reset: list-0; }
.ql-content li[data-list="ordered"] { counter-increment: list-0; position: relative; }
.ql-content li[data-list="bullet"]  { position: relative; }

/* ---------- Scroll fade-in (opt-in, requires .about-page.fade-ready added by JS) ---------- */
/* Sections are visible by default. The fade-in effect only applies once the JS
   has hooked up the IntersectionObserver and added the .fade-ready class to
   .about-page. If JS fails to load or errors, content stays visible. */
.about-page.fade-ready section[data-about-section] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.about-page.fade-ready section[data-about-section].is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .about-page.fade-ready section[data-about-section] {
        opacity: 1; transform: none; transition: none;
    }
}
