/* Glass layer (2026-10-25). A restrained frosted-material pass, after the
   Apple Liquid Glass idea that glass belongs to the layer that floats above
   content (navigation, controls, the cards you choose between), never to the
   text you read. Loaded last on the homepages, services and pricing.

   Rules this file keeps:
   - Every text colour holds at least 4.5:1 against the worst point of the
     glass it sits on (numbers in the 2026-10-25 Glass Design summary).
   - Grounds are soft colour fields, never a photo behind text.
   - backdrop-filter only on chrome that floats (nav, menus, chips); the
     chrome itself lives in feerasta.css.
   - prefers-reduced-transparency, prefers-contrast and missing
     backdrop-filter support all fall back to solid paper or navy.
   - Uses the existing accent tokens and never edits them; the only new
     colours are low-alpha warm tints in the ground fields. */

:root{
  --glass-fill:color-mix(in srgb,var(--gradient-soft,#1A2236) 64%,transparent);
  --glass-fill-strong:color-mix(in srgb,var(--gradient-soft,#1A2236) 88%,transparent);
  --glass-edge:rgba(243,238,226,.13);
  --glass-hi:rgba(255,255,255,.07);
  --glass-shadow:0 1px 1px rgba(0,0,0,.22),0 18px 40px -20px rgba(0,0,0,.65);
  --glass-shadow-lift:0 2px 2px rgba(0,0,0,.24),0 26px 50px -22px rgba(0,0,0,.7);
  --glass-blur:blur(18px) saturate(150%);
  --glass-ease:cubic-bezier(.2,.8,.2,1);
  --glass-mesh:
    radial-gradient(55% 60% at 8% 0%,color-mix(in srgb,var(--gradient-accent,#EEA784) 6%,transparent),transparent 70%),
    radial-gradient(45% 55% at 92% 18%,rgba(238,167,132,.05),transparent 70%),
    radial-gradient(60% 50% at 50% 105%,color-mix(in srgb,var(--gradient-accent,#EEA784) 5%,transparent),transparent 70%);
}
:root[data-theme="light"]{
  --glass-fill:color-mix(in srgb,#faf8f3 66%,transparent);
  --glass-fill-strong:color-mix(in srgb,#faf8f3 82%,transparent);
  --glass-edge:rgba(20,27,43,.16);
  --glass-hi:rgba(255,255,255,.78);
  --glass-shadow:0 1px 2px rgba(20,27,43,.06),0 16px 36px -20px rgba(20,27,43,.30);
  --glass-shadow-lift:0 2px 3px rgba(20,27,43,.08),0 24px 48px -22px rgba(20,27,43,.36);
  --glass-mesh:
    radial-gradient(55% 60% at 8% 0%,rgba(156,63,27,.09),transparent 70%),
    radial-gradient(45% 55% at 92% 18%,rgba(238,167,132,.30),transparent 70%),
    radial-gradient(60% 50% at 50% 105%,rgba(238,167,132,.16),transparent 70%);
}

/* 1. Grounds: a quiet warm colour field behind the hero and the card sections,
   so the glass has something to frost. No image, no motion. */
.op-hero,
#tiers,
.op-section:has(.op-families),
.hero-doors{background-image:var(--glass-mesh);background-repeat:no-repeat;background-size:100% 100%}

/* 2. Navigation bar: glass treatment lives in centered-navigation.css so every
   page shares it. */

/* 3. Card material: plan cards, family cards, offer rows, panels and homepage
   service cards share one tint, edge and highlight with no blur. They are
   content, and content is never glass (see feerasta.css "Glass chrome"). */
.op-tier,
.op-family{
  /* 29 Oct 2026: plan and family cards hold prices and body copy, so they are content and
     stay solid (glass-design rule 1). Same edge and highlight, no backdrop blur. */
  background:var(--glass-fill-strong);
  border-color:var(--glass-edge);
  border-radius:18px;
  box-shadow:inset 0 1px 0 var(--glass-hi),var(--glass-shadow);
}
.op-cards .offer-row,
.op-panel,
.service-card{
  background:var(--glass-fill-strong);
  border-color:var(--glass-edge);
  border-radius:18px;
  box-shadow:inset 0 1px 0 var(--glass-hi),var(--glass-shadow);
}
.op-tier.op-featured{border-color:var(--gradient-accent)}
.op-badge{box-shadow:0 4px 12px -4px rgba(0,0,0,.25)}

/* Hover lift: feedback that the whole card is one target. Pointer devices only. */
@media (hover:hover){
  .op-tier,.op-family,.op-cards .offer-row,.service-card{
    transition:transform .22s var(--glass-ease),box-shadow .22s var(--glass-ease),border-color .2s ease;
  }
  .op-family:hover,.op-cards .offer-row:hover,.service-card:hover,.op-tier:hover{
    transform:translateY(-3px);
    box-shadow:inset 0 1px 0 var(--glass-hi),var(--glass-shadow-lift);
  }
}

/* 4. No floating section pill: the site keeps hash-free links by decision
   (test/site-usability.test.cjs), so in-page jump links are not used. */

/* 5. Fallbacks. Solid surfaces whenever glass would hurt reading or speed. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .op-tier,.op-family{background:var(--gradient-soft)}
  :root[data-theme="light"] .op-tier,:root[data-theme="light"] .op-family{background:#faf8f3}
}
@media (prefers-reduced-transparency:reduce){
  .op-tier,.op-family,.op-cards .offer-row,.op-panel,.service-card{
    background:var(--gradient-soft);-webkit-backdrop-filter:none;backdrop-filter:none}
  :root[data-theme="light"] .op-tier,:root[data-theme="light"] .op-family,
  :root[data-theme="light"] .op-cards .offer-row,
  :root[data-theme="light"] .op-panel,:root[data-theme="light"] .service-card{background:#faf8f3}
  .op-hero,#tiers,.op-section:has(.op-families),.hero-doors{background-image:none}
}
@media (prefers-contrast:more){
  .op-tier,.op-family,.op-cards .offer-row,.op-panel,.service-card{
    background:var(--gradient-canvas);-webkit-backdrop-filter:none;backdrop-filter:none;
    border-color:var(--gradient-ink);box-shadow:none}
}
@media (prefers-reduced-motion:reduce){
  .op-tier,.op-family,.op-cards .offer-row,.service-card{transition:none}
  .op-family:hover,.op-cards .offer-row:hover,.service-card:hover,.op-tier:hover{transform:none}
}
