/* =====================================================================
   GLASS DESIGN CONCEPT (Wes, 28 Oct 2026) — not live, for Gary's approval.
   Loaded AFTER the inline <style> in index.html, so it only overrides.
   Palette from garyrhodes.io (logo + Wix theme):
     navy   #0D0D47  logo wordmark / Wix color_29   -> ink, dark bands
     blue   #060F76  Wix color_19                   -> deep accents
     indigo #505698  Wix color_18                   -> ribbons, secondary
     peri   #A8ADDD  Wix color_16                   -> ribbons, text on dark
     red    #D92F31  logo "GR" mark                 -> primary button
     coral  #F1B5A3  Wix color_21                   -> warm glow in the backdrop
   Derived for contrast: red-ink #B8231F (small text on light), coral-light #FF8A7C (accent on navy),
   ink-2 #3D4280 (secondary text), on-dark-2 #B9BCE3.
   ===================================================================== */
:root {
  --g-navy: #0d0d47;
  --g-blue: #060f76;
  --g-indigo: #505698;
  --g-peri: #a8addd;
  --g-red: #d92f31;
  --g-red-hover: #b8231f;
  --g-base: #e8eaf8;

  --g-glass: rgb(255 255 255 / 0.56);
  --g-glass-strong: rgb(255 255 255 / 0.72);
  --g-glass-solid: rgb(246 247 253 / 0.96);   /* fallback without backdrop-filter */
  --g-edge: rgb(255 255 255 / 0.75);
  --g-edge-soft: rgb(13 13 71 / 0.08);
  --g-blur: blur(22px) saturate(170%);
  --g-shadow: 0 1px 2px rgb(13 13 71 / 0.05), 0 22px 50px -26px rgb(13 13 71 / 0.38);
  --g-shadow-hover: 0 1px 2px rgb(13 13 71 / 0.06), 0 30px 60px -24px rgb(13 13 71 / 0.45);
  --g-sheen: linear-gradient(135deg, rgb(255 255 255 / 0.55) 0%, rgb(255 255 255 / 0.12) 55%, rgb(255 255 255 / 0.3) 100%);
  --g-radius: 24px;
  --g-dark-glass: rgb(13 13 71 / 0.4);

  /* Re-map the site's existing tokens onto the brand palette */
  --x-ivory: #f5f6fc;
  --x-ivory-2: #e6e8f6;
  --x-charcoal: var(--g-navy);
  --x-navy: var(--g-navy);
  --x-gold: #ff8a7c;          /* accents on navy (7:1 on #0D0D47) */
  --x-gold-ink: #9e1b18;     /* eyebrows, rules, links on light: >= 4.7:1 even on the darkest backdrop pixel */
  --x-ink-2: #3d4280;
  --x-body: #262a63;
  --x-ivory-2-ink: #b9bce3;
  --x-rule: rgb(13 13 71 / 0.12);
  --x-rule-on: rgb(245 246 252 / 0.18);
  --text-primary: var(--g-navy);
  --text-secondary: #3d4280;
}

/* ---------- Backdrop: soft flowing ribbons (7 KB WebP) + light gradients ---------- */
/* The page colour lives on <html>; <body> stays clear so the fixed backdrop layer (z-index -1) shows through.
   html.x-over keeps its dark colour for over-scroll above the hero. */
html { background: var(--g-base); }
body, html.x-over body { background: transparent; }
body::before {
  content: ""; position: fixed; inset: -6%; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.22)),  /* veil: keeps bare text AA over the darkest ribbon */
    radial-gradient(60% 50% at 85% 10%, rgb(168 173 221 / 0.4), transparent 70%),
    radial-gradient(50% 45% at 8% 92%, rgb(241 181 163 / 0.28), transparent 70%),
    url("/glass-flow.webp") center / cover no-repeat,
    var(--g-base);
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: g-drift 48s ease-in-out infinite alternate; }
}
@keyframes g-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2.5%, 1.5%, 0) scale(1.05); }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.03); }
}
#main { background: transparent; }

/* ---------- Shared glass surface ---------- */
.x-nav,
.x-adv__card, .x-homepod, .x-bookabout, .x-cal__card, .x-cal__empty, .x-nums li, .x-buybox, .x-disclaimer, .x-faq, .x-rgrid > div, .x-call__card, .x-call__terms,
.x-offer__card,
.x-intro .x-wrap > p, .x-testi figure, .x-creds, .x-formwrap, .x-quote, .x-modal, .r-panel {
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.x-adv__card, .x-homepod, .x-bookabout, .x-cal__card, .x-cal__empty, .x-nums li, .x-buybox, .x-disclaimer, .x-faq, .x-rgrid > div, .x-call__card, .x-call__terms,
.x-offer__card,
.x-intro .x-wrap > p, .x-testi figure, .x-creds, .x-formwrap, .x-quote, .x-modal, .r-panel {
  background: var(--g-sheen), var(--g-glass);
  border: 1px solid var(--g-edge);
  border-radius: var(--g-radius);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.85), var(--g-shadow);
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .x-adv__card, .x-homepod, .x-bookabout, .x-cal__card, .x-cal__empty, .x-nums li, .x-buybox, .x-disclaimer, .x-faq, .x-rgrid > div, .x-call__card, .x-call__terms,
.x-offer__card,
  .x-intro .x-wrap > p, .x-testi figure, .x-creds, .x-formwrap, .x-quote, .x-modal, .r-panel { background: var(--g-glass-solid); }
  .x-nav { background: var(--g-glass-solid) !important; }
  .x-nav__panel { background: var(--g-glass-solid) !important; }
  .x-cine__copy { background: rgb(13 13 71 / 0.82) !important; }
}

/* ---------- Nav: frosted bar ---------- */
.x-nav { background: rgb(240 242 252 / 0.62); border-bottom: 1px solid rgb(255 255 255 / 0.6); box-shadow: 0 8px 30px -22px rgb(13 13 71 / 0.4); }
.x-over .x-nav:not(.is-open) { box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 1100px) {
  .x-nav__panel { background: rgb(236 238 251 / 0.86); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
}
@media (max-width: 820px), (orientation: portrait) {
  .x-over .x-nav:not(.is-open) { background: rgb(13 13 71 / 0.55); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: rgb(255 255 255 / 0.14); }
}

/* ---------- Buttons: pill glass + brand red primary ---------- */
.x-btn {
  background: rgb(255 255 255 / 0.5); border-color: rgb(13 13 71 / 0.22);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 8px 22px -14px rgb(13 13 71 / 0.4);
  transition: background-color 260ms var(--x-ease), color 260ms var(--x-ease), border-color 260ms var(--x-ease), box-shadow 260ms var(--x-ease), transform 260ms var(--x-ease);
}
.x-btn:hover { background: var(--g-navy); color: #fff; border-color: var(--g-navy); transform: translateY(-1px); }
.x-btn--gold, .x-cine .x-btn--gold { background: var(--g-red); border-color: var(--g-red); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 12px 28px -12px rgb(217 47 49 / 0.6); }
.x-btn--gold:hover { background: var(--g-red-hover); border-color: var(--g-red-hover); color: #fff; }
.x-on-dark .x-btn:not(.x-btn--gold), .x-cine .x-btn:not(.x-btn--gold) { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.45); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2); }
.x-on-dark .x-btn:not(.x-btn--gold):hover { background: #fff; color: var(--g-navy); }
.x-nav .x-btn[aria-current="page"] { background: rgb(255 255 255 / 0.5); color: var(--g-navy); }

/* ---------- Home hero: copy on a smoked-glass panel over the photo ---------- */
.x-cine__shade {
  background:
    linear-gradient(to top, rgb(13 13 71 / 0.7) 0%, rgb(13 13 71 / 0.25) 30%, rgb(13 13 71 / 0) 55%, rgb(13 13 71 / 0) 84%, rgb(13 13 71 / 0.4) 100%),
    linear-gradient(to right, rgb(13 13 71 / 0.55) 0%, rgb(13 13 71 / 0.25) 30%, rgb(13 13 71 / 0) 45%);
}
@media (min-width: 821px) and (orientation: landscape) {
  .x-cine__copy {
    width: auto;
    /* Narrower panel, kept in the left third so it never reaches the couple */
    max-width: min(380px, 33vw);
    margin: 0 0 clamp(88px, 13vh, 150px) max(var(--x-pad), calc((100vw - var(--x-max)) / 2 + var(--x-pad)));
    padding: 28px 30px 30px;
    background: linear-gradient(140deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04) 60%), var(--g-dark-glass);
    -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgb(255 255 255 / 0.24); border-radius: 30px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 40px 80px -40px rgb(6 10 22 / 0.7);
  }
  .x-cine__copy > *, .x-cine h1 { max-width: none; }
  .x-cine h1 { font-size: clamp(38px, 3.6vw, 64px); text-shadow: none; }
}
/* Glass hero: the pair stand 29-62% across the photo. Keep the photo near its normal size and slide it right so the
   pair start 32px past the panel's right edge; the uncovered strip on the far left fades into navy behind the panel. */
@media (min-width: 821px) and (orientation: landscape) and (max-aspect-ratio: 2/1) {
  .x-cine { background: var(--g-navy); }
  .x-cine__img {
    max-width: none; width: 124%; object-position: 30% 58%;
    left: calc(max(var(--x-pad), calc((100vw - var(--x-max)) / 2 + var(--x-pad))) + min(380px, 33vw) + 32px - 35.96vw);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 260px); mask-image: linear-gradient(to right, transparent 0, #000 260px);
  }
}
@media (max-width: 820px), (orientation: portrait) {
  .x-cine, .x-cine__copy { background: var(--g-navy) url("/glass-flow-dark.webp") center / cover no-repeat; }
  .x-cine__shade { background: linear-gradient(to bottom, rgb(13 13 71 / 0) 0%, rgb(13 13 71 / 0) 72%, rgb(13 13 71 / 0.6) 90%, var(--g-navy) 100%); }
  .x-cine__copy { background-color: var(--g-navy); background-position: center top; }
}
.x-cine__lede { color: #e6e8f6; }

/* ---------- Light sections ---------- */
.x-sec--tint { background: linear-gradient(180deg, rgb(255 255 255 / 0.3), rgb(255 255 255 / 0.1)); border-block: 1px solid rgb(255 255 255 / 0.55); }
.x-adv { border-top-color: rgb(255 255 255 / 0.55); }
.x-intro .x-wrap > p { padding: clamp(28px, 3.4vw, 52px); max-width: 40em; }
.x-intro p::before { background: var(--g-red); }
.x-testi figure { max-width: 920px; padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px); }
.x-creds { overflow: hidden; }
.x-creds li + li { border-left-color: rgb(13 13 71 / 0.1); }

/* Cards */
.x-adv__card { transition: box-shadow 320ms var(--x-ease), transform 320ms var(--x-ease), background-color 320ms var(--x-ease); }
a.x-adv__card:hover { border-color: rgb(255 255 255 / 0.95); box-shadow: inset 0 1px 0 #fff, var(--g-shadow-hover); background-color: rgb(255 255 255 / 0.7); }
.x-adv__logo { border-bottom-color: rgb(13 13 71 / 0.08); background: rgb(255 255 255 / 0.55); border-radius: 16px; padding: 18px 12px 18px; margin-bottom: 20px; }
.x-nums li { border-radius: 20px; }

/* Clarity Reset sales section */
.x-buybox { padding: clamp(22px, 2.4vw, 32px); }
.x-cover { border-radius: 10px; overflow: hidden; box-shadow: 0 2px 0 rgb(13 13 71 / 0.06), 0 40px 70px -32px rgb(13 13 71 / 0.6); }
.x-rgrid > div { padding: clamp(22px, 2.4vw, 32px); }
.x-faq { padding: 8px clamp(20px, 2.6vw, 36px); }
.x-faq details:first-child { border-top: 0; }
.x-faq details:last-child { border-bottom: 0; }
.x-faq summary { transition: color 200ms var(--x-ease); }
.x-faq summary:hover { color: var(--g-red-hover); }
.x-disclaimer { box-shadow: inset 3px 0 0 var(--g-red), inset 0 1px 0 rgb(255 255 255 / 0.85), var(--g-shadow); }
.x-sec .x-wrap > .x-buybox { max-width: 760px; }
.x-list li { border-bottom-color: rgb(13 13 71 / 0.1); }
.x-list li:first-child { border-top-color: rgb(13 13 71 / 0.1); }

/* Forms and modal */
.x-formwrap { padding: clamp(24px, 3vw, 44px); }
.x-field input, .x-field select, .x-field textarea { border-bottom-color: rgb(13 13 71 / 0.35); }
.x-modal { background: var(--g-sheen), rgb(245 246 252 / 0.86); }
.x-modal::backdrop { background: rgb(13 13 71 / 0.55); }
.x-modal__cover { background: var(--g-navy) url("/glass-flow-dark.webp") center / cover; }

/* About */
.x-ahero__img { border-radius: 32px; box-shadow: 0 40px 80px -40px rgb(13 13 71 / 0.55); }
.x-frame { border-radius: 28px; box-shadow: 0 30px 60px -36px rgb(13 13 71 / 0.5); }

/* ---------- Dark bands: navy with the dark ribbon backdrop ---------- */
.x-open, .x-close, .x-foot { background: var(--g-navy) url("/glass-flow-dark.webp") center / cover no-repeat; }
.x-open p::before { background: var(--x-gold); }

/* ---------- Mobile: lighter blur keeps scrolling smooth ---------- */
@media (max-width: 600px) {
  :root { --g-blur: blur(14px) saturate(160%); --g-radius: 20px; }
  .x-intro .x-wrap > p { padding: 24px 22px; }
  body::before { inset: -3%; }
}

/* ---------- Reduced motion: no drift, no lifts ---------- */
.x-quote.is-featured { border-color: var(--x-gold-ink); }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .x-btn, .x-btn:hover, a.x-adv__card:hover { transition: none; transform: none; }
}

/* A backdrop-filter on the nav would trap the fixed mobile menu panel inside it, so the open menu drops the filter */
.x-nav.is-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(240 242 252 / 0.97); }

/* ---------- Logo: GR seal (round-2 option 3, interim, 2026-10-28) ---------- */
/* Desktop: full seal. ≤820px: ring + GR mark (the ring text is too small to read on a phone). Light art on the frosted bar, white art over the navy hero. */
.x-wordmark.x-logo { min-height: 44px; gap: 14px; line-height: 0; }
.x-logo__name { font: 500 25px/1 var(--x-serif); letter-spacing: .01em; color: var(--g-navy); white-space: nowrap; }
.x-over .x-nav:not(.is-open) .x-logo__name { color: #fff; }
.x-logo picture, .x-logo img { display: block; }
.x-logo img { width: 60px; height: 60px; }
.x-logo__dark { display: none !important; }
.x-over .x-nav:not(.is-open) .x-logo__light { display: none !important; }
.x-over .x-nav:not(.is-open) .x-logo__dark { display: block !important; }
@media (max-width: 820px) { .x-logo img { width: 40px; height: 40px; } .x-wordmark.x-logo { gap: 10px; } .x-logo__name { font-size: 21px; } }
@media (max-width: 370px) { .x-logo__name { display: none; } }  /* mark only when the name would crowd the Menu button */
/* Retreats is an extra item. Tighten the bar only where seven links, the button and Log in would overflow. */
@media (min-width: 1101px) and (max-width: 1360px) {
  .x-nav__bar { gap: 16px; }
  .x-nav__panel { gap: 12px; }
  .x-nav__links { gap: 10px; }
  .x-logo img { width: 48px; height: 48px; }
  .x-logo__name { font-size: 19px; }
  .x-nav .x-btn--small { padding: 0 14px; }
}
