/* About Us section (Plant Tour) — approved Option 03, applied 2026-10-08.
   Loaded only by index.php. Every rule is scoped under .vxa--o3. */

.vxa--o3 {
    --o3-head: #17202a;      /* headings, values, active labels */
    --o3-body: #4b5563;      /* paragraphs */
    --o3-muted: #6b7280;     /* labels on white */
    --o3-muted-s: #5f6672;   /* labels on the grey surface (#6b7280 is 4.47:1 there; this keeps ≥4.5:1) */
    --o3-surface: #f5f6f7;   /* filmstrip and step note */
    --o3-line: #e4e7ea;      /* hairlines */
    --o3-control: #d5dadf;   /* ‹ › button borders */
    --o3-photo-bg: #e9ebee;  /* behind a photo while it loads */
    background: #fff;
    color: var(--o3-body);
    padding: 22px 0 8px;
    font-family: "Nunito", sans-serif;
    /* live page: the fixed header must not cover the eyebrow after an "About Us" nav jump. main.js sets --header-h
       to the real header height; 0px fallback as in style.css, so pages without that header are not offset */
    scroll-margin-top: var(--header-h, 0px);
}
.vxa--o3 .o3-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "facts" "viewer" "detail" "cta";
}

/* ---- Identity: eyebrow, headline, who we are ---- */
.vxa--o3 .o3-head { grid-area: head; }
.vxa--o3 .o3-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font: 600 13px/16px "Poppins", "Nunito", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--o3-head);
}
.vxa--o3 .o3-eyebrow::before {
    content: "";
    flex: 0 0 20px;
    height: 2px;
    background: var(--accent-color);
}
.vxa--o3 .o3-title {
    margin: 0 0 8px;
    font: 700 24px/1.2 "Poppins", "Nunito", sans-serif;
    letter-spacing: -.015em;
    color: var(--o3-head);
    text-wrap: balance;
}
.vxa--o3 .o3-intro {
    margin: 0 0 14px;
    font: 500 15px/1.5 "Nunito", sans-serif;
    color: var(--o3-body);
    text-wrap: pretty;
}

/* ---- Two key facts ---- */
.vxa--o3 .o3-facts {
    grid-area: facts;
    display: flex;
    margin: 0 0 16px;
}
.vxa--o3 .o3-fact {
    min-width: 0;
    padding: 0 20px;
    border-left: 1px solid var(--o3-line);
}
.vxa--o3 .o3-fact:first-child { padding-left: 0; border-left: 0; }
.vxa--o3 .o3-fact dt {
    margin: 0 0 3px;
    font: 600 12px/16px "Poppins", "Nunito", sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--o3-muted);
}
.vxa--o3 .o3-fact dd {
    margin: 0;
    font: 600 15px/1.35 "Poppins", "Nunito", sans-serif;
    color: var(--o3-head);
}

/* ---- Viewer: photo + filmstrip, one block ---- */
.vxa--o3 .o3-viewer {
    grid-area: viewer;
    display: flex;
    flex-direction: column;
    background: var(--o3-surface);
    border-radius: 8px 8px 0 0;
    overflow: hidden; /* rounds the photo corners only */
}
.vxa--o3 .o3-photos { order: -1; } /* above its filmstrip (the tablist comes first in the DOM) */
.vxa--o3 .o3-photo {
    position: relative;
    margin: 0;
    height: clamp(150px, 22vh, 210px);
    height: clamp(150px, 22svh, 210px);
    background: var(--o3-photo-bg);
}
.vxa--o3 .o3-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.04) saturate(1.04);
}
.vxa--o3 .o3-photo:focus-visible { outline: none; }
.vxa--o3 .o3-photo:focus-visible::after { /* two-tone ring, visible on light and dark parts of a photo */
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid var(--o3-head);
    outline: 2px solid #fff;
    outline-offset: -4px;
    border-radius: inherit;
    pointer-events: none;
}
.vxa--o3 .o3-img--1 { object-position: 42% 45%; }
.vxa--o3 .o3-img--2 { object-position: 40% 55%; }
.vxa--o3 .o3-img--3 { object-position: 48% 50%; }
.vxa--o3 .o3-img--4 { object-position: 40% 50%; }
.vxa--o3 .o3-img--5 { object-position: 62% 58%; }

.vxa--o3 .o3-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 6px 4px; /* ≥4px all round keeps the tab focus ring clear of the clipped edge */
}
.vxa--o3 .o3-tab {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--o3-body);
    font: 600 13px/1.3 "Poppins", "Nunito", sans-serif;
    text-align: center;
    cursor: pointer;
}
.vxa--o3 .o3-thumb { /* only the picture fades on inactive steps; the labels stay solid and readable */
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 3px solid transparent;
    border-radius: 3px 3px 0 0;
    opacity: .7;
    transition: opacity .15s ease;
}
.vxa--o3 .o3-tab__label { /* the 2px underline turns charcoal on the selected step (same height as before: gap 3 + 1 + 2) */
    display: inline-block;
    align-self: center;
    padding-bottom: 1px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.vxa--o3 .o3-tab__num { font-variant-numeric: tabular-nums; color: var(--o3-muted-s); } /* #5f6672: 5.35:1 on the grey strip */
.vxa--o3 .o3-tab__name { /* phones: number only; the name stays for screen readers */
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.vxa--o3 .o3-tab__name { color: var(--o3-body); } /* #4b5563: 6.97:1 on the grey strip */
.vxa--o3 .o3-tab:hover .o3-thumb { opacity: .9; }
.vxa--o3 .o3-tab[aria-selected="true"] .o3-thumb { opacity: 1; border-bottom-color: var(--accent-color); }
.vxa--o3 .o3-tab[aria-selected="true"] .o3-tab__label { border-bottom-color: var(--o3-head); }
.vxa--o3 .o3-tab[aria-selected="true"] .o3-tab__num,
.vxa--o3 .o3-tab[aria-selected="true"] .o3-tab__name { color: var(--o3-head); }
.vxa--o3:not(.is-js) .o3-strip { display: none; } /* script failed or off: the steps are all shown, so the buttons would do nothing */

/* ---- Step note (fused under the filmstrip on phones) ---- */
.vxa--o3 .o3-detail {
    grid-area: detail;
    position: relative;
    background: var(--o3-surface);
    border-radius: 0 0 8px 8px;
    padding: 8px 14px 14px;
}
.vxa--o3 .o3-step__head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 44px; /* level with the ‹ › buttons */
}
.vxa--o3 .o3-step__label {
    margin: 0;
    font: 600 12px/16px "Poppins", "Nunito", sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--o3-muted-s);
}
/* "How a panel is made · Step 2 of 5" frames the tour on every screen (on phones it is the only place that says so);
   see the phone blocks below for how it fits beside the ‹ › buttons */
.vxa--o3 .o3-step__name {
    margin: 2px 0 0;
    font: 600 16px/21px "Poppins", "Nunito", sans-serif;
    color: var(--o3-head);
}
.vxa--o3 .o3-step__text {
    margin: 6px 0 0;
    font: 500 15px/1.45 "Nunito", sans-serif;
    color: var(--o3-body);
    text-wrap: balance; /* two even lines, never a lone "to site." */
}

.vxa--o3 .o3-nav { display: none; }
.vxa--o3.is-js .o3-nav {
    position: absolute;
    top: 8px;
    right: 14px;
    display: flex;
    gap: 8px;
}
.vxa--o3.is-js .o3-step__head { padding-right: 100px; }
.vxa--o3 .o3-nav__btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--o3-control);
    border-radius: 6px;
    background: #fff;
    color: var(--o3-head);
    cursor: pointer;
    transition: border-color .15s ease, opacity .15s ease;
}
.vxa--o3 .o3-nav__btn svg { display: block; width: 20px; height: 20px; }
.vxa--o3 .o3-nav__btn:hover { border-color: var(--o3-head); }
.vxa--o3 .o3-nav__btn[aria-disabled="true"] { opacity: .4; cursor: default; }
.vxa--o3 .o3-nav__btn[aria-disabled="true"]:hover { border-color: var(--o3-control); }

/* ---- JS on: all states share one grid cell, so the height never changes ---- */
.vxa--o3.is-js .o3-photos,
.vxa--o3.is-js .o3-steps { display: grid; }
.vxa--o3.is-js .o3-photo,
.vxa--o3.is-js .o3-step {
    grid-area: 1 / 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s ease, visibility 0s linear .15s;
}
.vxa--o3.is-js .o3-step { align-self: start; }
.vxa--o3.is-js .o3-photo.is-active,
.vxa--o3.is-js .o3-step.is-active {
    visibility: visible;
    opacity: 1;
    transition: opacity .15s ease, visibility 0s;
}

/* ---- Action ---- */
.vxa--o3 .o3-cta {
    grid-area: cta;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 14px;
}
.vxa--o3 .o3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    font: 600 15px/1.2 "Poppins", "Nunito", sans-serif;
    white-space: nowrap;
    text-align: center;
    transition: background-color .15s ease;
}
.vxa--o3 .o3-btn:hover { background: var(--primary-dark); color: #fff; }
.vxa--o3 .o3-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font: 600 15px/1.2 "Poppins", "Nunito", sans-serif;
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    white-space: nowrap;
}
.vxa--o3 .o3-tel:hover { color: var(--primary-dark); }

.vxa--o3 .o3-tab:focus-visible,
.vxa--o3 .o3-nav__btn:focus-visible,
.vxa--o3 .o3-btn:focus-visible,
.vxa--o3 .o3-tel:focus-visible {
    outline: 2px solid var(--o3-head);
    outline-offset: 2px;
}

/* ---- Phones and small tablets (≤767): one card flow ---- */
@media (max-width: 767px) {
    .vxa--o3 { padding: 20px 0 16px; }
    .vxa--o3 .o3-title { margin-bottom: 6px; }
    .vxa--o3 .o3-intro { margin-bottom: 12px; }
    .vxa--o3 .o3-photo { height: clamp(150px, 20.5vh, 230px); height: clamp(150px, 20.5svh, 230px); }
    .vxa--o3 .o3-cta { flex-direction: row; align-items: center; gap: 16px; } /* one row: keeps the whole section on one phone screen */
    .vxa--o3 .o3-btn { flex: 1 1 auto; padding: 0 16px; }
    .vxa--o3 .o3-tel { flex: 0 0 auto; }
}
/* ---- Phones ---- */
@media (max-width: 575px) {
    .vxa--o3 .container { padding-left: 16px; padding-right: 16px; }
    .vxa--o3 .o3-intro__hint, /* height: the step label ("How a panel is made · Step 1 of 5") carries the framing instead */
    .vxa--o3 .o3-facts { display: none; } /* both facts are already in the intro (and the stats strip above) */
}
@media (min-width: 385px) and (max-width: 575px) { /* 390, 412…: the full label fits on one line beside the buttons */
    .vxa--o3 .o3-step__label { letter-spacing: .05em; }
    .vxa--o3.is-js .o3-step__head { padding-right: 96px; }
    .vxa--o3.is-js .o3-nav { gap: 6px; }
}
@media (min-width: 360px) and (max-width: 384px) { /* 360, 375: not enough width, so the framing takes its own line (+16px) */
    .vxa--o3 .o3-step__pre { display: block; }
    .vxa--o3 .o3-step__sep { display: none; }
}
@media (max-width: 359px) { /* 320×568: no height left; "Step 1 of 5" only */
    .vxa--o3 .o3-step__pre { display: none; }
}
@media (max-width: 374px) {
    .vxa--o3 .o3-intro { font-size: 14.5px; }
    .vxa--o3 .o3-btn,
    .vxa--o3 .o3-tel { font-size: 14px; }
    .vxa--o3 .o3-cta { gap: 12px; }
    .vxa--o3 .o3-btn { padding: 0 12px; }
    .vxa--o3 .o3-photo { height: clamp(130px, 18vh, 170px); height: clamp(130px, 18svh, 170px); }
}
@media (max-width: 767px) and (max-height: 700px) { /* short phones (375×667, 320×568) */
    .vxa--o3 { padding-top: 16px; }
    .vxa--o3 .o3-photo { height: clamp(84px, 18.5vh, 140px); height: clamp(84px, 18.5svh, 140px); }
    .vxa--o3 .o3-cta { margin-top: 12px; }
}
@media (max-width: 359px) {
    .vxa--o3 .o3-title { font-size: 22px; }
    .vxa--o3 .o3-detail { padding-left: 12px; padding-right: 12px; }
    .vxa--o3.is-js .o3-nav { right: 12px; }
    .vxa--o3.is-js .o3-nav { gap: 6px; }
    .vxa--o3.is-js .o3-step__head { padding-right: 98px; }
    .vxa--o3 .o3-step__name { font-size: 15px; }
    .vxa--o3 .o3-step__text { font-size: 14px; }
    .vxa--o3 .o3-cta { flex-direction: column; align-items: stretch; gap: 0; } /* 320px: no room for one row */
    .vxa--o3 { padding-bottom: 6px; }
}
@media (max-width: 359px) and (max-height: 700px) { /* 320×568 */
    .vxa--o3 { padding-top: 14px; }
    .vxa--o3 .o3-eyebrow { margin-bottom: 6px; }
    .vxa--o3 .o3-title { margin-bottom: 4px; }
    .vxa--o3 .o3-intro { margin-bottom: 10px; }
    .vxa--o3 .o3-photo { height: clamp(84px, 17vh, 120px); height: clamp(84px, 17svh, 120px); }
    .vxa--o3 .o3-cta { margin-top: 10px; }
}

/* ---- Tablet portrait: identity across the top; viewer left, facts + step note + action right ---- */
@media (min-width: 768px) and (max-width: 991px) {
    .vxa--o3 { padding: 32px 0; }
    .vxa--o3 .o3-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        grid-template-rows: auto auto 1fr auto auto; /* facts level with the photo top; step note + action level with the filmstrip bottom */
        grid-template-areas: "head head" "viewer facts" "viewer ." "viewer detail" "viewer cta";
        column-gap: 28px;
    }
    .vxa--o3 .o3-head { margin-bottom: 24px; max-width: 660px; }
    .vxa--o3 .o3-eyebrow { margin-bottom: 12px; }
    .vxa--o3 .o3-title { font-size: 30px; line-height: 1.16; margin-bottom: 12px; }
    .vxa--o3 .o3-intro { font-size: 16px; line-height: 1.6; margin: 0; text-wrap: balance; }
    .vxa--o3 .o3-facts { flex-direction: column; margin-bottom: 16px; }
    .vxa--o3 .o3-fact { padding: 0; border: 0; }
    .vxa--o3 .o3-fact + .o3-fact { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--o3-line); }
    .vxa--o3 .o3-viewer { align-self: stretch; border-radius: 8px; }
    .vxa--o3 .o3-photos { flex: 1 1 auto; min-height: clamp(260px, 30vh, 340px); } /* grows to the text column's height */
    .vxa--o3 .o3-photo { height: clamp(260px, 30vh, 340px); } /* without JS: each stacked photo */
    .vxa--o3.is-js .o3-photo { height: auto; }
    .vxa--o3.is-js .o3-photo img { position: absolute; inset: 0; }
    .vxa--o3 .o3-step__label { letter-spacing: .06em; }
    .vxa--o3 .o3-strip { gap: 8px; padding: 8px 8px 4px; }
    .vxa--o3 .o3-thumb { aspect-ratio: 4 / 3; }
    .vxa--o3 .o3-detail { border-radius: 6px; padding: 14px 16px 16px; }
    .vxa--o3.is-js .o3-step__head { padding-right: 0; min-height: 0; }
    .vxa--o3 .o3-step__name { font-size: 17px; line-height: 22px; margin-top: 4px; }
    .vxa--o3 .o3-step__text { margin-top: 6px; }
    .vxa--o3.is-js .o3-nav { position: static; margin-top: 12px; }
    .vxa--o3 .o3-cta { margin-top: 16px; }
}

/* ---- Desktop: About Us text left, viewer right ---- */
@media (min-width: 992px) {
    .vxa--o3 { padding: clamp(32px, 4.4vh, 56px) 0; }
    .vxa--o3 .o3-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        /* both edges fixed: the eyebrow is level with the photo top and the action with the filmstrip bottom;
           any spare height opens between the facts and the step note, which then sits beside the strip it describes */
        grid-template-rows: auto auto 1fr auto auto;
        grid-template-areas: "head   viewer" "facts  viewer" ".      viewer" "detail viewer" "cta    viewer";
        column-gap: 56px;
    }
    .vxa--o3 .o3-eyebrow { margin-bottom: 14px; }
    .vxa--o3 .o3-title { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.16; margin-bottom: 14px; }
    .vxa--o3 .o3-intro { font-size: 16.5px; line-height: 1.65; margin-bottom: 22px; text-wrap: balance; }
    .vxa--o3 .o3-facts { margin-bottom: 22px; }

    .vxa--o3 .o3-viewer {
        align-self: stretch;
        justify-self: end;
        width: 100%;
        max-width: 704px; /* keeps the 600px gallery photos at ≤1.17× */
        border-radius: 8px;
    }
    .vxa--o3 .o3-photos { flex: 1 1 auto; min-height: clamp(300px, 42vh, 440px); } /* grows when the text column is taller */
    .vxa--o3 .o3-photo { height: clamp(300px, 42vh, 440px); } /* without JS: each stacked photo */
    .vxa--o3.is-js .o3-photo { height: auto; }
    .vxa--o3.is-js .o3-photo img { position: absolute; inset: 0; }
    .vxa--o3 .o3-strip { gap: 8px; padding: 10px 10px 6px; }
    .vxa--o3 .o3-thumb { aspect-ratio: 4 / 3; }
    .vxa--o3 .o3-tab { gap: 7px; text-align: left; }
    .vxa--o3 .o3-tab__label { align-self: flex-start; padding-bottom: 2px; } /* gap 7 + 2 + 2px underline = the old 7 + 4 */
    .vxa--o3 .o3-tab__num { margin-right: 2px; }
    .vxa--o3 .o3-tab__name { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }

    .vxa--o3 .o3-detail { border-radius: 6px; padding: 16px 20px 18px; }
    .vxa--o3 .o3-step__name { font-size: 18px; line-height: 24px; margin-top: 4px; }
    .vxa--o3 .o3-step__text { margin-top: 8px; line-height: 1.5; }
    .vxa--o3.is-js .o3-nav { top: 16px; right: 20px; }
    .vxa--o3.is-js .o3-step__head { padding-right: 108px; }

    .vxa--o3 .o3-cta { flex-direction: row; align-items: center; gap: 26px; margin-top: 24px; }
}
@media (min-width: 992px) and (max-width: 1199px) { /* 1024: a wider text column keeps the intro to 4 lines and the full step label */
    .vxa--o3 .o3-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); column-gap: 36px; }
    .vxa--o3 .o3-intro { font-size: 15.5px; line-height: 1.6; }
    .vxa--o3 .o3-step__label { letter-spacing: .06em; }
    .vxa--o3 .o3-tab__num,
    .vxa--o3 .o3-tab__name { display: block; } /* narrower thumbs: number above the name */
}

@media (min-width: 992px) and (max-height: 820px) { /* 1366×768, 1280×800, 1024×768: a slightly tighter text stack */
    .vxa--o3 { padding: clamp(28px, 3.8vh, 56px) 0; }
    .vxa--o3 .o3-eyebrow { margin-bottom: 12px; }
    .vxa--o3 .o3-title { font-size: clamp(28px, 2.35vw, 32px); margin-bottom: 12px; }
    .vxa--o3 .o3-intro { font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
    .vxa--o3 .o3-facts { margin-bottom: 18px; }
    .vxa--o3 .o3-detail { padding-top: 14px; padding-bottom: 16px; }
    .vxa--o3.is-js .o3-nav { top: 14px; }
    .vxa--o3 .o3-cta { margin-top: 20px; }
}
@media (min-width: 992px) and (max-width: 1199px) and (max-height: 820px) {
    .vxa--o3 .o3-intro { font-size: 15.5px; line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
    .vxa--o3 .o3-thumb,
    .vxa--o3 .o3-btn,
    .vxa--o3 .o3-nav__btn,
    .vxa--o3.is-js .o3-photo,
    .vxa--o3.is-js .o3-step,
    .vxa--o3.is-js .o3-photo.is-active,
    .vxa--o3.is-js .o3-step.is-active { transition: none; }
}
