/* =========================================================================
   Rantia Storage - Global stylesheet
   Coinbase-institutional design system (see docs/superpowers/specs/
   2026-08-14-rantia-storage-design.md section 2).
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design tokens
   ------------------------------------------------------------------------- */
:root {
    /* Brand & accent */
    --color-primary: #0052ff;
    --color-primary-active: #003ecc;
    --color-primary-disabled: #a8b8cc;
    --color-accent-yellow: #f4b000;

    /* Surface */
    --color-canvas: #ffffff;
    --color-surface-soft: #f7f7f7;
    --color-surface-strong: #eef0f3;
    --color-surface-dark: #0a0b0d;
    --color-surface-dark-elevated: #16181c;
    /* Deep forest-green surface, reserved ONLY for the homepage Commitment
       band, the Featured Storage Solutions band, and the dark column of
       the shared Trust split section - a deliberate, scoped exception to
       --color-surface-dark elsewhere on the site, not a replacement for
       it. --color-surface-green-dark-elevated is the matching "card on
       top of that band" shade, same relationship --color-surface-dark has
       to --color-surface-dark-elevated. */
    --color-surface-green-dark: #0e3026;
    --color-surface-green-dark-elevated: #163a2e;
    /* Lightened primary, for glyphs and heading accents on the two green
       surfaces above. Measured: the spec-default --color-primary (#0052ff)
       reads 5.8:1 on white and ~3.1:1 on --color-surface-dark, but only
       2.2:1 on the green surfaces - green carries far more luminance in
       the channels blue is weakest in. This lightened tint restores
       ~4.8:1 there. Do not use it on light surfaces; --color-primary is
       still the colour everywhere else.

       IMPORTANT: the value below is a tint of the SPEC-DEFAULT primary and
       is only correct while the theme is still that default. The primary
       is admin-configurable (general_settings.theme_primary_color) while
       these two green surfaces are fixed, so includes/header.php
       RE-DERIVES this token from the live theme colour whenever one is
       set, via theme_readable_on() in config/helpers.php. Editing the
       value here changes only the untinted-default case - keep the two in
       agreement. */
    --color-primary-on-green: #7ea6ff;
    /* Lightened primary for text sitting directly on the homepage hero
       PHOTO (assets/css/components/hero.css .heroslider__shade), which is
       a photograph under a 0.82-to-0.38 alpha gradient, not a flat fill.
       Measured on the rendered page: behind the accent word of the three
       hero slides the actual backdrop pixels run from rgb(12,13,14) up to
       rgb(61,62,61), so plain --color-primary lands between 2.8:1 and
       1.7:1 there - below the 3:1 WCAG AA large-text floor on all three
       slides, even though it clears that floor against the flat
       --color-surface-dark the shade gradient is built from. This tint is
       measured against the BRIGHTEST of those backdrops and clears 4.2:1
       there. Like --color-primary-on-green it is re-derived from the live
       theme colour by includes/header.php. */
    --color-primary-on-photo: #73a0ff;

    /* Hairlines */
    --color-hairline: #dee1e6;
    --color-hairline-soft: #eef0f3;
    /* Hairline for use on --color-surface-dark. The spec only defines the two
       light-surface hairlines above, so the on-dark equivalent was being
       written as an ad-hoc rgba() at slightly different alphas in each place
       it was needed; this pins it to one value. */
    --color-hairline-on-dark: rgba(255, 255, 255, 0.12);

    /* Text */
    --color-ink: #0a0b0d;
    --color-body: #5b616e;
    --color-body-strong: #0a0b0d;
    --color-muted: #7c828a;
    --color-muted-soft: #a8acb3;
    --color-on-primary: #ffffff;
    --color-on-dark: #ffffff;
    --color-on-dark-soft: #a8acb3;

    /* Status */
    --color-success: #05b169;
    --color-error: #cf202f;

    /* Spacing (4px base) */
    --sp-xxs: 4px;
    --sp-xs: 8px;
    --sp-sm: 12px;
    --sp-base: 16px;
    --sp-md: 20px;
    --sp-lg: 24px;
    --sp-xl: 32px;
    --sp-xxl: 48px;
    --sp-section: 96px;

    /* Radius */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 100px;
    --r-full: 9999px;

    /* Shadow */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.04);

    /* Type scale */
    --fs-display-mega: 80px; --lh-display-mega: 1.0; --ls-display-mega: -2px;
    --fs-display-xl: 64px;   --lh-display-xl: 1.0;   --ls-display-xl: -1.6px;
    --fs-display-lg: 52px;   --lh-display-lg: 1.0;   --ls-display-lg: -1.3px;
    --fs-display-md: 44px;   --lh-display-md: 1.09;  --ls-display-md: -1px;
    --fs-display-sm: 36px;   --lh-display-sm: 1.11;  --ls-display-sm: -0.5px;
    --fs-title-lg: 32px;     --lh-title-lg: 1.13;    --ls-title-lg: -0.4px;
    --fs-title-md: 18px;     --lh-title-md: 1.33;
    --fs-title-sm: 16px;     --lh-title-sm: 1.25;
    --fs-body-md: 16px;      --lh-body-md: 1.5;
    --fs-body-sm: 14px;      --lh-body-sm: 1.5;
    --fs-caption: 13px;      --lh-caption: 1.5;
    --fs-caption-strong: 12px;
    --fs-number: 18px;       --lh-number: 1.4;
    --fs-button: 16px;       --lh-button: 1.15;
    --fs-nav-link: 14px;     --lh-nav-link: 1.4;

    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

/* -------------------------------------------------------------------------
   2. Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
    margin: 0;
}
ul[class], ol[class] { list-style: none; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: var(--fs-body-md);
    line-height: var(--lh-body-md);
    color: var(--color-body);
    background: var(--color-canvas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------------------------------------------------------
   3. Typography
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--color-ink);
    letter-spacing: -0.01em;
}
.display-mega { font-size: var(--fs-display-mega); line-height: var(--lh-display-mega); letter-spacing: var(--ls-display-mega); font-weight: 400; }
.display-xl   { font-size: var(--fs-display-xl);   line-height: var(--lh-display-xl);   letter-spacing: var(--ls-display-xl);   font-weight: 400; }
.display-lg   { font-size: var(--fs-display-lg);   line-height: var(--lh-display-lg);   letter-spacing: var(--ls-display-lg);   font-weight: 400; }
.display-md   { font-size: var(--fs-display-md);   line-height: var(--lh-display-md);   letter-spacing: var(--ls-display-md);   font-weight: 400; }
.display-sm   { font-size: var(--fs-display-sm);   line-height: var(--lh-display-sm);   letter-spacing: var(--ls-display-sm);   font-weight: 400; }
.title-lg     { font-size: var(--fs-title-lg);     line-height: var(--lh-title-lg);     letter-spacing: var(--ls-title-lg);     font-weight: 600; }
.title-md     { font-size: var(--fs-title-md);     line-height: var(--lh-title-md);     font-weight: 600; }
.title-sm     { font-size: var(--fs-title-sm);     line-height: var(--lh-title-sm);     font-weight: 600; }

/* -------------------------------------------------------------------------
   3b. Sitewide heading treatment (2026-08-16): extra-bold weight plus a
   two-tone accent span, applied per-heading via markup across the public
   marketing site (home.php, includes/trust-section.php, the shared
   includes/page-title-band.php H1, includes/cta-banner.php, and every
   inner page own H2/H3-as-section-heading). Deliberately NOT folded into
   the base h1-h6 rule or the display and title classes above: those
   classes are also used by the admin panel, which loads this same
   stylesheet, and by the customer dashboard (includes/dashboard-shell-
   top.php, pages/account-settings.php title-md usage), both explicitly
   out of scope for this treatment. A separate class applied only where
   wanted keeps admin and dashboard headings untouched instead of quietly
   inheriting a heavier weight.

   heading-xbold needs the Manrope 800 weight actually loaded, see the
   Google Fonts link tag in includes/header.php - weight 700 would be
   faked-bold by the browser otherwise, which looks soft and blurry
   compared to a real cut.

   Three accent variants exist because color-primary does not read at an
   acceptable contrast on every surface this treatment lands on. All three
   resolve through tokens rather than literal hex, so they follow the
   admin-configurable theme colour; the ratios quoted below were measured
   on the live site against the CURRENT theme primary (#007040), with the
   spec-default primary (#0052ff) noted where the two differ materially:
     text-accent            uses color-primary - light surfaces and the
                             plain color-surface-dark bands (6.2 to 1 on
                             white, 5.8 to 1 on color-surface-soft, and
                             3.2 to 1 on color-surface-dark). The last of
                             those clears the WCAG AA large-text floor of
                             3 to 1, which these extra-bold display-size
                             headings qualify for, but only just - it is
                             the tightest margin in the system, so check
                             it first if the theme primary is ever
                             darkened.
     text-accent--on-yellow uses color-primary-active - used inside
                             cta-yellow and security-band__card
                             (background color-accent-yellow). Plain
                             color-primary measures only about 3 to 1 on
                             that yellow, right at the AA-large floor with
                             no margin; color-primary-active measures
                             4.6 to 1, safely past normal-text AA too.
     text-accent--on-green  uses color-primary-on-green - used inside
                             commitment and featured-solutions (background
                             color-surface-green-dark). Plain
                             color-primary measures only about 2.2 to 2.5
                             to 1 on that green surface, see the token
                             comment above under Surface, which fails even
                             large-text AA; color-primary-on-green is
                             built for exactly this surface and measures
                             5.2 to 1. Note that token is re-derived from
                             the live theme colour by includes/header.php,
                             NOT read from its default here - the default
                             is a tint of the spec-default blue and would
                             show as an off-brand blue accent on any other
                             theme.
     text-accent--on-photo  uses color-primary-on-photo - used ONLY by the
                             homepage heroslider title, whose backdrop is a
                             photograph under a partial-alpha shade
                             gradient rather than a flat colour. Measured
                             against the real rendered pixels rather than
                             the gradient's base colour; see the token
                             comment above under Surface for why plain
                             color-primary fails there. Also re-derived
                             per-theme by includes/header.php.
   ------------------------------------------------------------------------- */
.heading-xbold { font-weight: 800; }
.text-accent { color: var(--color-primary); }
.text-accent--on-yellow { color: var(--color-primary-active); }
.text-accent--on-green { color: var(--color-primary-on-green); }
.text-accent--on-photo { color: var(--color-primary-on-photo); }

.mono, .fs-number {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: var(--fs-number);
    line-height: var(--lh-number);
}

/* -------------------------------------------------------------------------
   4. Layout: container + section
   ------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--sp-lg);
    padding-right: var(--sp-lg);
}

.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-lg);
}

.section {
    padding-top: var(--sp-section);
    padding-bottom: var(--sp-section);
}
.section--soft { background: var(--color-surface-soft); }
.section--strong { background: var(--color-surface-strong); }
.section--dark {
    background: var(--color-surface-dark);
    color: var(--color-on-dark-soft);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
    color: var(--color-on-dark);
}

@media (max-width: 768px) {
    .section { padding-top: var(--sp-xxl); padding-bottom: var(--sp-xxl); }
}

/* -------------------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xs);
    font-family: var(--font-body);
    font-size: var(--fs-button);
    line-height: var(--lh-button);
    font-weight: 600;
    border-radius: var(--r-pill);
    padding: 0 var(--sp-xl);
    height: 44px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-on-primary);
}
.btn--primary:hover { background: var(--color-primary-active); }
.btn--primary-active {
    background: var(--color-primary-active);
    color: var(--color-on-primary);
}
.btn--primary-disabled,
.btn--primary:disabled {
    background: var(--color-primary-disabled);
    color: var(--color-on-primary);
    cursor: not-allowed;
}

.btn--secondary-light {
    background: var(--color-surface-strong);
    color: var(--color-ink);
}
.btn--secondary-light:hover { background: var(--color-hairline); }

.btn--secondary-dark {
    background: var(--color-surface-dark-elevated);
    color: var(--color-on-dark);
    border-color: rgba(255,255,255,0.12);
}
.btn--secondary-dark:hover { background: #202329; }

.btn--outline-on-dark {
    background: transparent;
    color: var(--color-on-dark);
    border-color: rgba(255,255,255,0.4);
}
.btn--outline-on-dark:hover {
    border-color: var(--color-on-dark);
    background: rgba(255,255,255,0.08);
}

.btn--tertiary {
    background: transparent;
    color: var(--color-primary);
    padding: 0 var(--sp-xs);
    height: auto;
}
.btn--tertiary:hover { color: var(--color-primary-active); }

.btn--pill-cta {
    height: 56px;
    padding: 0 var(--sp-xxl);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 17px;
}
.btn--pill-cta:hover { background: var(--color-primary-active); }

/* -------------------------------------------------------------------------
   7. Cards
   ------------------------------------------------------------------------- */
.card {
    background: var(--color-canvas);
    border: 1px solid var(--color-hairline-soft);
    border-radius: var(--r-lg);
    padding: var(--sp-xl);
}

.card--feature {
    display: flex;
    flex-direction: column;
    gap: var(--sp-base);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card--feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--color-hairline);
}

.card--product-ui-light {
    background: var(--color-canvas);
    border: 1px solid var(--color-hairline);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
}

.card--product-ui-dark {
    background: var(--color-surface-dark-elevated);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-lg);
    color: var(--color-on-dark);
}
.card--product-ui-dark h1,
.card--product-ui-dark h2,
.card--product-ui-dark h3,
.card--product-ui-dark h4 { color: var(--color-on-dark); }

/* -------------------------------------------------------------------------
   7a. Eyebrow box - a hairline-bordered rectangle, NOT a filled rounded
   pill (that pattern was removed elsewhere in the design). Used ahead of
   section headlines on dark and light bands alike.
   ------------------------------------------------------------------------- */
.eyebrow-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-hairline);
    border-radius: var(--r-xs);
    padding: var(--sp-xs) var(--sp-base);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    /* --color-muted measured 3.62:1 at this 12px size on --color-surface-soft,
       under the 4.5:1 AA threshold. --color-body takes it to 5.8:1. */
    color: var(--color-body);
}
.eyebrow-box--on-dark {
    border-color: var(--color-hairline-on-dark);
    color: var(--color-on-dark-soft);
}

/* -------------------------------------------------------------------------
   7b. Trust split - shared two-column section (includes/trust-section.php),
   required by both pages/home.php and pages/about.php. Left: light column
   with eyebrow, headline, subtext and a closing line. Right: dark column
   with a vertical stack of icon rows.
   ------------------------------------------------------------------------- */
.trust-split {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}
.trust-split__left {
    background: var(--color-surface-soft);
    /* The section that precedes this one is .section--soft on both pages it
       is used on, so without a rule the left column runs seamlessly into it
       and only the right half looks like a new band. */
    border-top: 1px solid var(--color-hairline);
    display: flex;
    align-items: center;
    padding: var(--sp-section) var(--sp-xxl);
}
.trust-split__left-inner { max-width: 440px; }
.trust-split__left-inner .eyebrow-box { margin-bottom: var(--sp-lg); }
.trust-split__left-inner h2 { margin-bottom: var(--sp-base); }
.trust-split__left-inner p { color: var(--color-body); }
.trust-split__signoff {
    margin-top: var(--sp-xl);
    font-style: italic;
    font-weight: 500;
    font-size: var(--fs-title-md);
    color: var(--color-body-strong);
}
.trust-split__right {
    /* Scoped green exception - see the --color-surface-green-dark token
       comment above. This is the only place style.css uses it directly. */
    background: var(--color-surface-green-dark);
    padding: var(--sp-section) var(--sp-xxl);
    display: flex;
    align-items: center;
}
.trust-split__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
    width: 100%;
}
.trust-split__list li {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-lg);
}
.trust-split__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    border: 1px solid var(--color-hairline-on-dark);
    background: rgba(126, 166, 255, 0.14);
    color: var(--color-primary-on-green);
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-split__icon svg { width: 22px; height: 22px; }
.trust-split__list h3 { color: var(--color-on-dark); margin-bottom: var(--sp-xs); }
.trust-split__list p { margin: 0; color: var(--color-on-dark-soft); }

@media (max-width: 900px) {
    .trust-split { grid-template-columns: 1fr; }
    .trust-split__left,
    .trust-split__right { padding: var(--sp-xxl) var(--sp-lg); }
    .trust-split__left-inner { max-width: none; }
}

/* -------------------------------------------------------------------------
   8. Forms
   ------------------------------------------------------------------------- */
.input-text {
    width: 100%;
    height: 48px;
    padding: 0 var(--sp-base);
    border: 1px solid var(--color-hairline);
    border-radius: var(--r-sm);
    background: var(--color-canvas);
    color: var(--color-ink);
    font-size: var(--fs-body-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.input-text {
    height: auto;
    min-height: 120px;
    padding-top: var(--sp-sm);
    resize: vertical;
}
.input-text:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.form-field { margin-bottom: var(--sp-lg); }
.form-label {
    display: block;
    font-size: var(--fs-caption-strong);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    margin-bottom: var(--sp-xs);
}

/* -------------------------------------------------------------------------
   9. CTA band (dark)
   ------------------------------------------------------------------------- */
.cta-band-dark {
    background: var(--color-surface-dark);
    color: var(--color-on-dark-soft);
    border-radius: var(--r-xl);
    padding: var(--sp-xxl);
    text-align: center;
}
.cta-band-dark h2 { color: var(--color-on-dark); margin-bottom: var(--sp-base); }
.cta-band-dark .cta-band-dark__actions {
    display: flex;
    gap: var(--sp-base);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--sp-xl);
}

/* -------------------------------------------------------------------------
   10. Scroll reveal
   ------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* -------------------------------------------------------------------------
   11. Nav (top-nav-light / on-dark)
   ------------------------------------------------------------------------- */
.site-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-surface-dark);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-nav.is-scrolled {
    border-bottom-color: var(--color-hairline-on-dark);
}
.site-nav--on-dark {
    background: transparent;
    position: absolute;
}
.site-nav--on-dark.is-scrolled {
    background: var(--color-surface-dark);
    border-bottom-color: var(--color-hairline-on-dark);
    position: sticky;
}

.site-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-lg);
}

.site-nav__brand {
    font-size: var(--fs-title-md);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-on-dark);
    white-space: nowrap;
}
.site-nav__brand--logo { display: flex; align-items: center; line-height: 0; }
.site-nav__logo-img { display: block; max-height: 40px; max-width: 220px; width: auto; height: auto; }

.site-nav__menu {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
}

.site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-nav-link);
    line-height: var(--lh-nav-link);
    font-weight: 600;
    color: var(--color-on-dark);
    padding: var(--sp-xs) 0;
    white-space: nowrap;
}
.site-nav__link:hover { color: var(--color-primary); }

.site-nav__dropdown { position: relative; }
.site-nav__dropdown-panel {
    position: absolute;
    top: calc(100% + var(--sp-sm));
    left: 0;
    min-width: 220px;
    background: var(--color-canvas);
    border: 1px solid var(--color-hairline-soft);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
    padding: var(--sp-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.site-nav__dropdown:hover .site-nav__dropdown-panel,
.site-nav__dropdown:focus-within .site-nav__dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-nav__dropdown-panel a {
    display: block;
    padding: var(--sp-sm) var(--sp-base);
    border-radius: var(--r-sm);
    font-size: var(--fs-body-sm);
    font-weight: 500;
    color: var(--color-body-strong);
}
.site-nav__dropdown-panel a:hover {
    background: var(--color-surface-soft);
    color: var(--color-primary);
}

.site-nav__right {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}
.site-nav__cta.btn { height: 40px; padding: 0 var(--sp-lg); font-size: var(--fs-body-sm); }

.site-nav__toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--sp-xs);
    flex-direction: column;
    gap: 4px;
}
.site-nav__toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--color-on-dark);
    display: block;
    border-radius: 2px;
    transition: transform 200ms ease, opacity 200ms ease;
}

/* The mobile panel is markup that only ever exists for the collapsed nav, so
   it is hidden outright at every width above the breakpoint - otherwise its
   links render as a stray block of text above the desktop bar and add a
   duplicate set of tab stops. */
.site-nav__mobile-panel { display: none; }

/* Rantia's bar carries six top-level items plus the CTA, which is more than
   fits on a tablet-width row. Between the collapse breakpoint and the width
   where the full row fits, the spacing tightens. Without this the brand and
   every link wrapped onto two lines and burst the 72px bar from 835px all
   the way up to ~1100px. */
@media (min-width: 835px) and (max-width: 1100px) {
    .site-nav__inner { gap: var(--sp-base); padding: 0 var(--sp-base); }
    .site-nav__menu { gap: var(--sp-base); }
    .site-nav__right { gap: var(--sp-base); }
    .site-nav__cta.btn { padding: 0 var(--sp-base); }
}

/* Below 834px the toggle drives a full-width dropdown panel fixed directly
   under the nav bar (not a slide-in side panel). It is always rendered on
   the solid dark surface regardless of the .site-nav--on-dark/scrolled state
   of the bar itself, so the open menu never reads as see-through. All of the
   collapsed-nav mechanics (hiding the desktop links/CTA, the panel's fixed
   positioning, and the toggle-to-X animation) are scoped to this single
   breakpoint, same as Fix It's nav — above 834px none of it applies, even if
   .is-open were ever toggled programmatically. */
@media (max-width: 834px) {
    .site-nav__menu,
    .site-nav__cta {
        display: none;
    }
    .site-nav__toggle { display: flex; }
    .site-nav__toggle.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
    .site-nav__toggle.is-open span:nth-child(2) { opacity: 0; }
    .site-nav__toggle.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

    /* -----------------------------------------------------------------
       Mobile bar is ALWAYS the solid dark surface (client request,
       2026-08-17) - previously it only went dark once the menu was opened
       (.is-menu-open below), so the collapsed bar was --color-canvas white
       on light pages and fully transparent on --on-dark pages.

       Every variant is listed explicitly because two of them would
       otherwise out-specify a bare `.site-nav`: `.site-nav.is-scrolled`
       (0,2,0) sets the light hairline border, and
       `.site-nav--on-dark.is-scrolled` (0,2,0) sets its own background.

       The --on-dark variant is also switched from position:absolute to
       sticky here: absolute was only ever right while the bar was
       transparent and floating over a dark hero. Now that it is opaque it
       has to occupy layout, otherwise it would sit on top of and hide the
       first 72px of the hero. This mirrors what .is-menu-open already does
       for the same reason.

       Text/glyph colours are forced to their on-dark treatment to match,
       reusing the exact values from .site-nav--on-dark .site-nav__brand and
       .site-nav--on-dark .site-nav__toggle span - without this the brand
       text and hamburger bars would be near-black on near-black.
       ----------------------------------------------------------------- */
    .site-nav,
    .site-nav.is-scrolled,
    .site-nav--on-dark,
    .site-nav--on-dark.is-scrolled {
        background: var(--color-surface-dark);
        border-bottom-color: var(--color-hairline-on-dark);
    }
    .site-nav--on-dark,
    .site-nav--on-dark.is-scrolled { position: sticky; }
    .site-nav .site-nav__brand { color: var(--color-on-dark); }
    .site-nav .site-nav__toggle span { background: var(--color-on-dark); }

    /* While the panel is open the bar itself always sits on the solid dark
       surface so bar + panel read as one sheet. The on-dark variant is also
       pinned to the viewport for the duration, because in its default
       position:absolute state it would scroll away from the fixed panel. The
       light variant is left sticky - it is already pinned, and switching it to
       fixed would pull it out of flow and jump the page by 72px on close. */
    .site-nav.is-menu-open {
        background: var(--color-surface-dark);
        border-bottom-color: var(--color-hairline-on-dark);
    }
    .site-nav--on-dark.is-menu-open { position: fixed; }
    .site-nav.is-menu-open .site-nav__brand { color: var(--color-on-dark); }
    .site-nav.is-menu-open .site-nav__toggle span { background: var(--color-on-dark); }

    .site-nav__mobile-panel {
        display: block;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 90;
        background: var(--color-surface-dark);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        padding: var(--sp-xs) var(--sp-lg) var(--sp-xl);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    }
    .site-nav__mobile-panel.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
    .site-nav__mobile-panel a {
        display: block;
        padding: 14px 0;
        font-size: var(--fs-title-sm);
        font-weight: 600;
        color: var(--color-on-dark);
        border-bottom: 1px solid var(--color-hairline-on-dark);
    }
    .site-nav__mobile-panel > a:last-of-type { border-bottom: none; }

    /* Storage Solutions / About Us are collapsed-by-default accordion groups:
       the parent row is a button (not a link) that only expands/collapses its
       sub-list - tapping it never navigates, matching how most responsive nav
       dropdowns handle a group with no page of its own to land on first. Both
       groups start collapsed every time the panel opens. The expand/collapse
       reuses the FAQ accordion's smooth max-height/opacity technique (see
       assets/js/faq-accordion.js) via assets/js/main.js's
       initMobileNavGroups, same 320ms ease timing for visual consistency.
       Each group carries a single hairline instead of one per row so it still
       reads as one block. */
    .site-nav__mobile-group { border-bottom: 1px solid var(--color-hairline-on-dark); }
    .site-nav__mobile-group-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: var(--sp-base);
        padding: 14px 0;
        background: none;
        border: none;
        font-family: inherit;
        font-size: var(--fs-title-sm);
        font-weight: 600;
        color: var(--color-on-dark);
        text-align: left;
        cursor: pointer;
    }
    .site-nav__mobile-chevron {
        flex-shrink: 0;
        width: 11px;
        height: 11px;
        color: var(--color-on-dark-soft);
        transition: transform 250ms ease;
    }
    .site-nav__mobile-group-toggle[aria-expanded="true"] .site-nav__mobile-chevron {
        transform: rotate(180deg);
    }
    /* `visibility` (not just max-height:0) is what takes a collapsed group's
       sub-links out of the tab order and out of the accessibility tree -
       clipping alone leaves them focusable, so a keyboard user tabbing through
       the open panel would hit 10 invisible links with focus seemingly gone.
       It is driven off aria-expanded (which initMobileNavGroups sets before it
       starts each animation) and transitioned so it behaves discretely: it
       flips to visible immediately on expand, and holds visible for the full
       collapse animation before hiding. The visibility transition is also
       repeated in the inline transition initMobileNavGroups writes, since an
       inline `transition` would otherwise override this one. */
    .site-nav__mobile-sub {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        padding-left: var(--sp-base);
        transition: max-height 320ms ease, opacity 320ms ease, visibility 320ms ease;
    }
    .site-nav__mobile-group-toggle[aria-expanded="true"] + .site-nav__mobile-sub {
        visibility: visible;
        padding-bottom: var(--sp-xs);
    }
    .site-nav__mobile-sub a {
        display: block;
        padding: 9px 0;
        font-size: var(--fs-body-sm);
        font-weight: 500;
        color: var(--color-on-dark-soft);
        border-bottom: none;
    }

    .site-nav__mobile-contact {
        margin-top: var(--sp-base);
        padding-top: var(--sp-lg);
        border-top: 1px solid var(--color-hairline-on-dark);
    }
    .site-nav__mobile-contact-brand {
        font-size: var(--fs-title-md);
        font-weight: 700;
        color: var(--color-on-dark);
        margin-bottom: var(--sp-sm);
    }
    .site-nav__mobile-contact a,
    .site-nav__mobile-contact p {
        display: block;
        padding: var(--sp-xxs) 0;
        font-size: var(--fs-body-sm);
        font-weight: 500;
        color: var(--color-on-dark-soft);
        border-bottom: none;
    }
    .site-nav__mobile-cta.btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: var(--sp-base);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav__mobile-panel,
    .site-nav__toggle span,
    .site-nav__mobile-sub,
    .site-nav__mobile-chevron { transition-duration: 1ms !important; }
}

/* -------------------------------------------------------------------------
   12. Footer (footer-light)
   ------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-surface-soft);
    padding-top: var(--sp-xxl);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-xxl);
    padding-bottom: var(--sp-xxl);
    border-bottom: 1px solid var(--color-hairline);
}
.site-footer__brand { font-size: var(--fs-title-md); font-weight: 700; margin-bottom: var(--sp-base); }
.site-footer__brand--logo { line-height: 0; }
.site-footer__logo-img { display: block; max-height: 42px; max-width: 234px; width: auto; height: auto; }
.site-footer__desc { font-size: var(--fs-body-sm); margin-bottom: var(--sp-lg); }
.site-footer__meta { font-size: var(--fs-body-sm); color: var(--color-muted); margin-bottom: var(--sp-xxs); }
.site-footer__col h4 {
    font-size: var(--fs-caption-strong);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
    margin-bottom: var(--sp-base);
}
.site-footer__col a {
    display: block;
    font-size: var(--fs-body-sm);
    color: var(--color-body-strong);
    padding: var(--sp-xxs) 0;
}
.site-footer__col a:hover { color: var(--color-primary); }
.site-footer__social { display: flex; gap: var(--sp-sm); margin-bottom: var(--sp-lg); }
.site-footer__social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-full);
    background: var(--color-surface-strong);
}
.site-footer__social a:hover { background: var(--color-primary); color: var(--color-on-primary); }
.site-footer__corporate {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-base);
    font-size: var(--fs-caption);
}
.legal-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-base);
    padding: var(--sp-lg) 0;
    font-size: var(--fs-caption);
    color: var(--color-muted);
}
.legal-band__links { display: flex; gap: var(--sp-lg); }
.legal-band__links a:hover { color: var(--color-primary); }

@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------------
   13. Utilities
   ------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
