/*
Theme Name: Visio Wealth
Theme URI: https://visiowealth.in
Description: Purpose-built wealth management theme. No forced content widths. Full-site editing with glass header, responsive footer, and native block patterns.
Version: 4.9.9
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: visio-wealth
*/

/* ══════════════════════════════════════════════════
   SELF-HOSTED FONTS — Ember & Ivory (C2)
   Variable fonts (woff2). format('woff2') used for maximum
   browser compatibility (woff2-variations is not universally
   recognized as a valid format string by all UAs/tools; woff2
   support itself is universal and browsers still parse the
   variable weight/opsz axes fine via the fvar table regardless
   of the format hint used).
══════════════════════════════════════════════════ */
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond-Variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('assets/fonts/EBGaramond-Italic-Variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/GeistMono-Italic-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ══════════════════════════════════════════════════
   --vw-* CANONICAL TOKENS — Ember & Ivory (C2)
   Light = default (:root). Dark = :root[data-theme="dark"] override.
   Shared names across WP theme + engines per brand-system plan Part B/C.
══════════════════════════════════════════════════ */
:root {
  /* ember accent (light mode default) */
  --vw-ember: #C96442;
  --vw-ember-lt: #D97757;
  --vw-ember-deep: #A84B2F;
  --vw-ember-on: #FFFFFF;

  /* gold — retained brand signature, mode-agnostic base stops */
  --vw-gold-dk: #8B7020;
  --vw-gold: #B8952A;
  --vw-gold-lt: #d4aa44;

  /* surfaces — light (ivory / cream heritage) */
  --vw-bg: #F5F0E1;
  --vw-surface: #FBF8EF;
  --vw-card: #FFFFFF;
  --vw-tint: #EFE7D2;
  --vw-text: #211D16;
  --vw-muted: #7A7264;
  --vw-muted-2: #9A9282;
  --vw-border: rgba(33,29,22,0.12);
  --vw-border-soft: rgba(33,29,22,0.06);

  /* footer top hairline — brighter/wider than default gold-on-border use */
  --vw-footer-hairline: rgba(184,149,42,0.5);
  /* footer bg — opposite direction from the header: header floats
     lighter than the page, footer sinks darker. See brand guidelines
     Section 08 (Full Palette Reference, Tint row). */
  --vw-footer-bg: var(--vw-tint);

  /* cascade depth (universal pattern — light: layers lighter, "paper") */
  --vw-cascade-l0: #F3EBD8;
  --vw-cascade-l1: #FAF6EA;
  --vw-cascade-l2: #FFFDF7;

  /* semantic */
  --vw-gain: #2E8B5F;
  --vw-loss: #C23B3B;

  /* glass — main bar keys off --vw-card (brightest light-mode surface) so
     it floats clearly lighter than the page; footer sinks the opposite
     direction onto --vw-tint (see --vw-footer-bg above). Utility bar is
     already --vw-tint-based here, i.e. already equal to --vw-footer-bg —
     the two deliberately bookend the header/page as a matched top/bottom
     pair (translucent glass here, flat/opaque there). */
  --vw-glass-util: rgba(239,231,210,0.75);
  --vw-glass-main: rgba(255,255,255,0.75);

  color-scheme: light;
}

:root[data-theme="dark"] {
  /* ember accent (dark mode swaps to lighter/hover stop for contrast) */
  --vw-ember: #D97757;
  --vw-ember-lt: #E08A6C;
  --vw-ember-deep: #C96442;
  --vw-ember-on: #1F1E1D;

  /* surfaces — dark (Claude warm charcoal — zero blue, zero brown) */
  --vw-bg: #262624;
  --vw-surface: #1F1E1D;
  --vw-card: #30302E;
  --vw-tint: #3A3835;
  --vw-text: #F5F1E8;
  --vw-muted: #A8A296;
  --vw-muted-2: #8A8478;
  --vw-border: rgba(245,241,232,0.10);
  --vw-border-soft: rgba(245,241,232,0.06);

  /* footer top hairline — dark mode swaps to the lighter gold stop
     (matches gold-lt usage everywhere else on dark surfaces) */
  --vw-footer-hairline: rgba(212,170,68,0.55);
  /* footer bg — deliberately deepened Cascade L2 base, flat/opaque.
     The old L2 base (31,30,29) is --vw-surface, only Δ7 from --vw-bg —
     too weak once reused as a full-bleed footer. Reusing/deepening L2
     instead of adding a 5th dark surface token: see Section 08. */
  --vw-footer-bg: #171614;

  /* cascade depth (dark: recedes darker as you drill) */
  --vw-cascade-l0: #33312E;
  --vw-cascade-l1: rgba(58,56,53,0.55);
  --vw-cascade-l2: rgba(23,22,20,0.65);

  /* semantic */
  --vw-gain: #5ABF8A;
  --vw-loss: #E07070;

  /* glass — main bar keys off --vw-tint (lightest dark-mode tone) so it
     floats lighter than the page; footer sinks the opposite direction
     onto --vw-footer-bg (deepened Cascade L2), flat/opaque. Utility bar
     is keyed to the same --vw-footer-bg base as the footer (translucent
     here vs flat there) — the two deliberately bookend the header/page
     as a matched top/bottom pair. */
  --vw-glass-util: rgba(23,22,20,0.75);
  --vw-glass-main: rgba(58,56,53,0.75);

  color-scheme: dark;
}

/* ══════════════════════════════════════════════════
   GLOBAL RESET
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
/* theme.json's styles.color.background is a static hex baked into WP's
   global-styles output (:where() specificity, so this plain rule already
   wins) — without this, the page background never reacted to the
   data-theme toggle, only header/footer chrome did. */
body { background-color: var(--vw-bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* NOTE: do NOT set overflow-x:hidden on body — it kills backdrop-filter on sticky elements */
img { max-width: 100%; height: auto; }
p { text-wrap: pretty; }

/* ══════════════════════════════════════════════════
   WP PRESET COLOR CLASSES — reference only
   (auto-generated by theme.json)
══════════════════════════════════════════════════ */
.has-vw-cream-color      { color: var(--vw-text) !important; }
.has-vw-ink-color        { color: var(--vw-text) !important; }
.has-vw-navy-color       { color: var(--vw-text) !important; }
.has-vw-gold-color       { color: var(--vw-gold) !important; }
.has-vw-muted-color      { color: var(--vw-muted) !important; }
.has-vw-muted-2-color    { color: var(--vw-muted-2) !important; }
.has-vw-cream-tx-color   { color: var(--vw-text) !important; }
.has-vw-header-bar-background-color { background-color: var(--vw-surface) !important; }

/* ══════════════════════════════════════════════════
   STICKY HEADER + GLASS EFFECT
   backdrop-filter needs:
   1. No overflow:hidden on ANY ancestor (use clip instead)
   2. Semi-transparent background (opacity < 1)
   3. No transform or will-change on the sticky element
══════════════════════════════════════════════════ */

/* Force clip (not hidden) on all likely WP.com wrappers.
   overflow:hidden on any ancestor silently kills backdrop-filter. */
html,
body,
.wp-site-blocks,
#page,
#content,
.site,
.site-content,
#wpcontent { overflow-x: clip !important; overflow-y: visible !important; }

header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* NO transform, NO will-change — both kill backdrop-filter */
}

/* ── Glass: utility bars ─────────────────────────────────────────────
   Opacity guide: 0.65 = very glassy · 0.82 = balanced · 0.95 = solid
   Edit the LAST number in rgba() to change opacity. */
.vw-util-desktop,
.vw-util-mobile {
  background-color: var(--vw-glass-util) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

/* ── Glass: main header bar ─────────────────────────────────────────
   Opacity guide: 0.65 = very glassy · 0.82 = balanced · 0.95 = solid
   Edit the LAST number in the --vw-glass-main/--vw-glass-util tokens (:root, top of file) to change opacity. */
.vw-main-bar {
  background-color: var(--vw-glass-main) !important;
  backdrop-filter: blur(24px) saturate(180%) brightness(1.04);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.04);
  box-shadow: 0 1px 0 rgba(184,149,42,0.12);
  transition: box-shadow 0.25s ease;
}
.vw-main-bar.is-scrolled {
  box-shadow: 0 4px 28px rgba(0,0,0,0.13), 0 1px 0 rgba(184,149,42,0.18);
}

/* ══════════════════════════════════════════════════
   UTILITY BAR — SHOW/HIDE BY BREAKPOINT
══════════════════════════════════════════════════ */
@media (min-width: 782px) { .vw-util-mobile { display: none !important; } }
@media (max-width: 781px) { .vw-util-desktop { display: none !important; } }

/* Mobile utility bar — static single line, styled via wp:group block */

/* ══════════════════════════════════════════════════
   UTILITY BAR — TEXT + COLOUR
══════════════════════════════════════════════════ */
.vw-util-desktop p,
.vw-util-mobile p {
  color: var(--vw-muted) !important;
  margin: 0 !important;
}
.vw-util-desktop p a,
.vw-util-mobile p a {
  color: var(--vw-muted) !important;
  text-decoration: none !important;
}
.vw-util-desktop p a:hover,
.vw-util-mobile p a:hover { color: var(--vw-gold-lt) !important; }


/* ══════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════ */
.vw-main-bar .wp-block-navigation a {
  color: var(--vw-text) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
.vw-main-bar .wp-block-navigation a:hover { color: var(--vw-gold) !important; }
/* Ensure nav items have spacing */
.vw-main-bar .wp-block-navigation .wp-block-navigation__container {
  gap: 28px !important;
  flex-wrap: nowrap !important;
}

@media (max-width: 781px) {
  /* Main bar: tighter padding */
  .vw-main-bar { padding: 10px 14px !important; gap: 0 !important; }

  /* Left group (logo+name): allow shrinking, truncate if needed */
  .vw-main-bar > .wp-block-group:first-child {
    flex-shrink: 1 !important;
    min-width: 0 !important;
    gap: 8px !important;
    overflow: hidden;
  }

  /* Logo: fixed size, never squish */
  .vw-main-bar .wp-block-site-logo { flex-shrink: 0 !important; min-width: 34px !important; }
  .vw-main-bar .wp-block-site-logo img { width: 34px !important; height: 34px !important; min-width: 34px !important; object-fit: contain !important; }

  /* Site title: smaller, no overflow */
  .vw-main-bar .wp-block-site-title a {
    font-size: 16px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }
  /* Tagline: keep visible but very small */
  .vw-main-bar .wp-block-site-tagline { font-size: 7.5px !important; letter-spacing: 0.18em !important; }
  /* Name+tagline group: no gap */
  .vw-main-bar > .wp-block-group:first-child > .wp-block-group { gap: 0 !important; }

  /* Right group (nav + button): don't shrink, keep together */
  .vw-main-bar > .wp-block-group:last-child {
    flex-shrink: 0 !important;
    gap: 6px !important;
    align-items: center !important;
  }

  /* Login button: small compact pill — appears before hamburger */
  .vw-main-bar .wp-block-button { order: 1; }
  .vw-main-bar .wp-block-navigation { order: 2; }
  .vw-main-bar .wp-block-button a {
    font-size: 10px !important;
    padding: 6px 10px !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    border-radius: 6px !important;
    letter-spacing: 0 !important;
  }

  /* Hamburger icon: dark, properly sized */
  .vw-main-bar .wp-block-navigation__responsive-container-open {
    padding: 4px !important;
    flex-shrink: 0 !important;
  }
  .vw-main-bar .wp-block-navigation__responsive-container-open svg {
    width: 24px !important;
    height: 24px !important;
    color: var(--vw-text) !important;
    fill: var(--vw-text) !important;
  }
}
.vw-main-bar .wp-block-navigation__responsive-container-open svg { color: var(--vw-text) !important; fill: var(--vw-text) !important; }

/* Mobile overlay nav — full viewport, centered items */
.wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  background: var(--vw-surface) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Nav list: centered column */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Each menu item: centered text */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  text-align: center !important;
  width: 100% !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: block !important;
  text-align: center !important;
  color: var(--vw-text) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  padding: 14px 40px !important;
  text-decoration: none !important;
  transition: color 0.18s !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
  color: var(--vw-gold) !important;
}

/* Close button: top-right, visible */
/* Close button: hidden by default, only visible inside open overlay */
.wp-block-navigation__responsive-container-close { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
  display: flex !important;
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 100001 !important;
  background: var(--vw-border-soft) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--vw-border) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {
  color: var(--vw-text) !important;
  fill: var(--vw-text) !important;
  width: 20px !important;
  height: 20px !important;
}

/* ══════════════════════════════════════════════════
   FOOTER — BACKGROUND LOCK
   theme.json global cream bleeds in; override here.
   Uses --vw-footer-bg (light: --vw-tint, dark: deepened Cascade L2
   #171614) — opposite direction from the header, which floats lighter
   than the page on --vw-card (light) / --vw-tint (dark). This keeps
   header/page/footer three genuinely distinct surfaces in both themes.
   See brand guidelines Section 08, Full Palette Reference.
══════════════════════════════════════════════════ */
footer.wp-block-template-part,
footer.wp-block-template-part > .wp-block-group,
footer.wp-block-template-part .alignfull {
  background-color: var(--vw-footer-bg) !important;
}
/* Individual sections that override navy intentionally keep their own bg */
footer.wp-block-template-part .vw-footer-cta {
  background-color: var(--vw-footer-bg) !important;
}
/* Top hairline — brighter + theme-aware (was a static light-mode-only gold,
   invisible on dark surfaces). Overrides the inline style baked into
   parts/footer.html. */
footer.wp-block-template-part > .wp-block-group {
  border-top: 2px solid var(--vw-footer-hairline) !important;
}

/* ══════════════════════════════════════════════════
   FOOTER — CTA STRIP
══════════════════════════════════════════════════ */
@media (max-width: 781px) {
  .vw-footer-cta {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 32px 24px !important;
    gap: 20px !important;
  }
  .vw-footer-cta h3 { font-size: 22px !important; }
}

/* ══════════════════════════════════════════════════
   FOOTER — COLUMN HEADINGS
══════════════════════════════════════════════════ */
.vw-col-head {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--vw-gold) !important;
  margin-bottom: 14px !important;
}

/* ══════════════════════════════════════════════════
   FOOTER — LINK LISTS (vw-footer-links)
══════════════════════════════════════════════════ */
.vw-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}
.vw-footer-links li { margin: 0 !important; }
.vw-footer-links li a {
  color: var(--vw-muted-2) !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s, padding-left 0.18s;
}
.vw-footer-links li a::before { content: '▸'; font-size: 7px; color: var(--vw-gold); opacity: 0.7; flex-shrink: 0; }
.vw-footer-links li a:hover { color: var(--vw-gold-lt) !important; padding-left: 4px; }

/* ══════════════════════════════════════════════════
   FOOTER — REACH US
══════════════════════════════════════════════════ */
.vw-reach-links { display: flex; flex-direction: column; gap: 10px; }
.vw-reach-links p { margin: 0 !important; font-size: 13.5px !important; }
.vw-reach-links a { color: var(--vw-muted-2) !important; text-decoration: none !important; transition: color 0.18s; }
.vw-reach-links a:hover { color: var(--vw-gold-lt) !important; }

/* ══════════════════════════════════════════════════
   FUND PARTNERS — wp:details as chips
══════════════════════════════════════════════════ */
.vw-fund-section { text-align: center; }

.vw-amc-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  justify-content: center !important;
}

/* Each chip = one wp:details */
.vw-amc-grid .wp-block-details {
  display: inline-block;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.vw-amc-grid .wp-block-details summary {
  background: var(--vw-border-soft);
  border: 1px solid var(--vw-border);
  border-radius: 7px;
  padding: 5px 13px;
  color: var(--vw-muted-2);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
  -webkit-appearance: none;
  user-select: none;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.vw-amc-grid .wp-block-details summary::-webkit-details-marker { display: none; }
.vw-amc-grid .wp-block-details summary:hover { border-color: rgba(184,149,42,0.4); background: rgba(184,149,42,0.07); color: var(--vw-gold-lt); }

/* When expanded: chip expands to show details inline */
.vw-amc-grid .wp-block-details[open] {
  width: 100%;
  border: 1px solid rgba(184,149,42,0.25) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  background: var(--vw-border-soft) !important;
}
.vw-amc-grid .wp-block-details[open] > summary {
  border: none;
  background: transparent;
  padding: 0 0 9px;
  border-bottom: 1px solid rgba(184,149,42,0.18);
  margin-bottom: 9px;
  font-weight: 600;
  color: var(--vw-gold-lt);
  width: 100%;
}
.vw-amc-grid .wp-block-details[open] p {
  color: var(--vw-muted) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ══════════════════════════════════════════════════
   FOOTER — BOTTOM BAR + BADGES
══════════════════════════════════════════════════ */
.vw-footer-badge {
  display: inline-block;
  background: var(--vw-border-soft);
  border: 1px solid var(--vw-border);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 10px;
  color: var(--vw-muted);
  margin: 0 2px;
}

/* ══════════════════════════════════════════════════
   FOOTER — MOBILE RESPONSIVE
   (WP stacks columns natively with is-stacked-on-mobile)
══════════════════════════════════════════════════ */
@media (max-width: 781px) {

  /* Columns: WP auto-stacks; we center-align each */
  .vw-footer-cols.is-stacked-on-mobile {
    padding: 0 !important;
    gap: 0 !important;
  }
  .vw-footer-cols.is-stacked-on-mobile > .wp-block-column {
    width: 100% !important;
    text-align: center !important;
    padding: 22px 24px 10px !important;
    border-bottom: 1px solid var(--vw-border-soft) !important;
  }

  /* Brand */
  .vw-col-brand .wp-block-site-logo { margin: 0 auto 10px !important; }
  .vw-col-brand h4, .vw-col-brand p { text-align: center !important; }
  .vw-col-brand .wp-block-social-links { justify-content: center !important; }

  /* Link lists: center, no arrows */
  .vw-footer-links { align-items: center !important; }
  .vw-footer-links li a { justify-content: center !important; }
  .vw-footer-links li a::before { display: none !important; }
  .vw-footer-links li a:hover { padding-left: 0 !important; }

  /* Reach Us: center */
  .vw-reach-links { align-items: center !important; }
  .vw-reach-links p { text-align: center !important; }

  /* Fund Partners */
  .vw-fund-section { padding: 22px 24px 24px !important; }

  /* AMC chips: keep flex + visible on mobile */
  .vw-amc-grid { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; }
  .vw-amc-grid .wp-block-details { display: inline-block !important; }
  .vw-amc-grid .wp-block-details summary { display: block !important; }

  /* Bottom bar: stack vertically, centered */
  .vw-footer-bottom {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    padding: 20px 24px !important;
  }
  .vw-footer-badges { justify-content: center !important; }

  /* Disclaimer */
  .vw-footer-disclaimer { padding: 0 24px 24px !important; text-align: center !important; }

}

/* ══════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════════ */
.reveal, .reveal-left, .reveal-right, .reveal-scale, .fade-in {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal        { transform: translateY(28px); }
.reveal-left   { transform: translateX(-28px); }
.reveal-right  { transform: translateX(28px); }
.reveal-scale  { transform: scale(0.95); }
.fade-in       { transform: none; }

.reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible,
.reveal-scale.is-visible, .fade-in.is-visible { opacity: 1; transform: none; }

/* Stagger: children animate in sequence */
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }

/* Gold divider line animation */
.vw-divider { display: block; width: 0; height: 2px; background: var(--vw-gold); margin: 12px 0; transition: width 0.9s cubic-bezier(.4,0,.2,1); }
.vw-divider.is-visible { width: 60px; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale, .fade-in, .stagger { opacity: 1 !important; transform: none !important; }
  .stagger > * { opacity: 1 !important; transform: none !important; transition-delay: 0s !important; }
}

/* ══════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════ */
input, textarea, select, button { font-family: inherit; font-size: 100%; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--vw-gold); outline-offset: 2px; }
@media (max-width: 781px) { input, textarea, select { font-size: 16px; } }

/* ══════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════ */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--vw-border); }
th { font-weight: 600; }
@media (max-width: 600px) {
  table { overflow-x: auto; display: block; }
  th, td { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
}

/* ══════════════════════════════════════════════════
   FOOTER — REACH US (pattern HTML version)
══════════════════════════════════════════════════ */
.vw-reach-section { display: flex; flex-direction: column; gap: 10px; }
.vw-reach-head {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--vw-gold); margin-bottom: 4px;
}
.vw-reach-btn {
  display: flex; align-items: center; gap: 10px;
  color: var(--vw-muted-2); text-decoration: none; font-size: 13.5px;
  padding: 6px 0; transition: color 0.18s;
}
.vw-reach-btn:hover { color: var(--vw-gold-lt); }
.vw-reach-icon { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; }
.vw-reach-info { display: flex; flex-direction: column; }
.vw-reach-label { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--vw-muted); }
.vw-reach-value { font-size: 13.5px; color: var(--vw-muted-2); }

/* ══════════════════════════════════════════════════
   FOOTER — AMC CHIPS (pattern HTML version)
══════════════════════════════════════════════════ */
.vw-amc-chips {
  display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-start;
}
.vw-amc-item {
  position: relative; cursor: pointer;
}
.vw-amc-name {
  display: inline-block;
  background: var(--vw-border-soft); border: 1px solid var(--vw-border);
  border-radius: 7px; padding: 5px 13px; color: var(--vw-muted-2); font-size: 12px;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.vw-amc-item:hover .vw-amc-name {
  border-color: rgba(184,149,42,0.4); background: rgba(184,149,42,0.07); color: var(--vw-gold-lt);
}
.vw-amc-tip {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); background: var(--vw-tint); border: 1px solid rgba(184,149,42,0.25);
  border-radius: 6px; padding: 6px 12px; font-size: 11px; color: var(--vw-muted);
  white-space: nowrap; z-index: 10;
}
.vw-amc-item:hover .vw-amc-tip { display: block; }

@media (max-width: 781px) {
  .vw-reach-section { align-items: center; text-align: center; }
  .vw-reach-btn { justify-content: flex-start; }
  .vw-reach-info { align-items: center; }
}

/* ══════════════════════════════════════════════════
   OVERFLOW PROTECTION
   Use clip on site-blocks wrapper only — never on body
   (overflow:hidden on body/html kills backdrop-filter on sticky)
══════════════════════════════════════════════════ */
.wp-site-blocks { overflow-x: clip; }
.wp-block-group.alignfull { max-width: 100%; }
@media (max-width: 781px) {
  .wp-site-blocks { overflow-x: clip; }
}

/* ══════════════════════════════════════════════════
   FOOTER — MOBILE ACCORDION
   Collapses non-brand footer columns into tap-to-expand
   sections. JS in functions.php adds .vw-accordion-open.
══════════════════════════════════════════════════ */
@media (max-width: 781px) {
  .vw-footer-cols .wp-block-column:not(.vw-col-brand) > *:not(.vw-col-head) {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    pointer-events: none;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .vw-footer-cols .wp-block-column:not(.vw-col-brand).vw-accordion-open > *:not(.vw-col-head) {
    max-height: 400px !important;
    opacity: 1;
    pointer-events: auto;
    margin-bottom: 6px !important;
  }
  .vw-footer-cols .wp-block-column:not(.vw-col-brand) .vw-col-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    margin-bottom: 0 !important;
    padding-bottom: 4px;
  }
  .vw-footer-cols .wp-block-column:not(.vw-col-brand) .vw-col-head::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    color: var(--vw-gold);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    flex-shrink: 0;
    margin-left: 8px;
    line-height: 1;
    transition: transform 0.25s ease;
    font-style: normal;
  }
  .vw-footer-cols .wp-block-column:not(.vw-col-brand).vw-accordion-open .vw-col-head::after {
    transform: rotate(45deg);
  }
}

select[multiple] {
  padding: 8px !important;
  background-color: var(--vw-surface) !important;
  color: var(--vw-text) !important;
  border-radius: 6px;
  overflow-y: auto;
}
select[multiple] option {
  padding: 4px 8px;
  margin-bottom: 2px;
  border-radius: 4px;
}
select[multiple] option:checked {
  background-color: rgba(184,149,42,0.4) !important;
  color: var(--vw-text) !important;
}
