/* ════════════════════════════════════════════════════════════════════════════
   Celvo website — the glass layer (website redesign plan, prototype).

   Loaded after site.css; changes looks only. No markup, wording, link, heading,
   structured data or address depends on it, so search results stay exactly as they
   are, and removing this one file returns the site to the flat brand look. It brings
   the app's glass (css/glass.css, decision 85) to the site: warm light drifting
   behind frosted, see-through panels with a bright rim, rounder corners (controls 10,
   cards 18, panels 20/22), a floating top bar, warm layered shadows, and one light
   sweep across each panel as it comes into view. Palette stays the brand's: warm
   stone, one clay accent. Variables are prefixed --g-, as in the app.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --g-ground: #F2EFE9;
  --g-line: rgb(110 92 72 / .13);
  --g-line-2: rgb(110 92 72 / .20);
  --g-hi: inset 0 1px 0 rgb(255 255 255 / .85);
  --g-sh-1: 0 1px 2px rgb(60 45 31 / .05), 0 8px 20px -10px rgb(60 45 31 / .16);
  --g-sh-2: 0 1px 3px rgb(60 45 31 / .06), 0 14px 32px -14px rgb(60 45 31 / .22);
  --g-sh-3: 0 4px 10px rgb(60 45 31 / .07), 0 26px 56px -18px rgb(60 45 31 / .30);
  --g-card: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-1);
  --g-card-hover: var(--g-hi), 0 0 0 1px var(--g-line-2), var(--g-sh-2);
  --g-frost: linear-gradient(165deg, rgb(255 255 255 / .62) 0%, rgb(255 252 247 / .42) 50%, rgb(255 246 236 / .36) 100%);
  --g-frost-dense: linear-gradient(165deg, rgb(255 255 255 / .86), rgb(255 250 244 / .76));
  --g-rim: linear-gradient(180deg, rgb(255 255 255 / .70) 0px, rgb(255 255 255 / 0) 46px);
  --g-sweep: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .70) 48%, rgb(255 255 255 / .15) 54%, transparent 62%);
  --g-blur: blur(24px) saturate(1.7) brightness(1.04);
  --g-ease: cubic-bezier(.2, .8, .2, 1);
  --radius-lg: 20px; --radius-md: 18px; --radius-sm: 10px;
}

/* ─── Type: faces with a history, not the stock tech sans ───
   Headings: Newsreader (an editorial serif made for reading on screens) with Markazi Text
   (a Naskh drawn from Arabic book and newspaper lettering). Reading text: Source Sans 3
   with Noto Naskh Arabic. Figures and codes keep IBM Plex Mono. */
:root {
  --font-display: 'Newsreader', 'Markazi Text', Georgia, serif;
  --font-text: 'Source Sans 3', 'Noto Naskh Arabic', system-ui, sans-serif;
}
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -.012em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.brand { font-weight: 600; letter-spacing: -.01em; }

/* ─── The room: stone ground with warm and cool lights drifting behind the glass ─── */
body { background: var(--g-ground); isolation: isolate; }
body::before {
  content: ''; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30vw 26vw at 84% 18%, rgb(255 150 84 / .55), transparent 68%),
    radial-gradient(28vw 24vw at 14% 70%, rgb(214 112 70 / .42), transparent 68%),
    radial-gradient(24vw 22vw at 44% 12%, rgb(120 160 205 / .40), transparent 68%),
    radial-gradient(26vw 20vw at 66% 90%, rgb(150 186 96 / .32), transparent 68%),
    radial-gradient(20vw 18vw at 8% 8%, rgb(255 226 170 / .80), transparent 68%),
    radial-gradient(18vw 16vw at 34% 48%, rgb(255 196 140 / .38), transparent 68%);
  filter: blur(30px);
  animation: g-drift 38s ease-in-out infinite alternate;
}
[dir="ltr"] body::before { transform: scaleX(-1); animation-name: g-drift-ltr; }
@keyframes g-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(2.5%, 2%, 0) scale(1.06); } }
@keyframes g-drift-ltr { from { transform: scaleX(-1) translate3d(0, 0, 0) scale(1); } to { transform: scaleX(-1) translate3d(2.5%, 2%, 0) scale(1.06); } }
.hero::before, .close-band::before { display: none; }

/* ─── Top bar: floats as a frosted panel, like the app's ─── */
.site-head { top: 12px; padding-inline: 16px; }
.site-head .bar { height: 64px; padding-inline: 18px; border-radius: 18px; transition: background-color 240ms var(--g-ease), box-shadow 240ms var(--g-ease); }
.site-head.scrolled { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-head.scrolled .bar {
  background: var(--g-rim), var(--g-frost);
  box-shadow: var(--g-hi), 0 0 0 1px rgb(255 255 255 / .7), var(--g-sh-2);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
}
.nav a, .head-end .lang, .head-end .signin { border-radius: 10px; }

/* ─── Buttons: the app's clay button with its soft top-to-bottom shade, and glass ghosts ─── */
.btn { border-radius: 10px; transition: transform 160ms var(--g-ease), box-shadow 160ms var(--g-ease), background-color 160ms var(--g-ease); }
.btn-primary {
  background: linear-gradient(180deg, #B4552B 0%, #9E4521 55%, #8C3C1C 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 1px 2px rgb(60 30 15 / .25), 0 10px 22px -10px rgb(158 69 33 / .65);
}
.btn-primary:hover { background: linear-gradient(180deg, #BE5C30 0%, #A84A24 55%, #933F1D 100%); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 2px 4px rgb(60 30 15 / .25), 0 16px 28px -12px rgb(158 69 33 / .7); }
.btn-primary:active { transform: translateY(0) scale(.985); transition-duration: 90ms; }
.btn-ghost {
  background: var(--g-rim), linear-gradient(165deg, rgb(255 255 255 / .78), rgb(255 250 244 / .60));
  box-shadow: var(--g-hi), 0 0 0 1px var(--g-line-2), var(--g-sh-1);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn-ghost:hover { background: rgb(255 255 255 / .92); box-shadow: var(--g-card-hover); transform: translateY(-1px); }
.btn:focus-visible { box-shadow: 0 0 0 3px rgb(185 87 44 / .22), var(--g-sh-1); }

/* ─── Panels: frosted, see-through, bright rim, deeper corners ─── */
.dwg, .roles, .prod, .tile, .plan, .mods, .dir-card, .window, .role-screen, .faq {
  background: var(--g-sweep) no-repeat, var(--g-rim), var(--g-frost);
  background-size: 260% 100%, auto, auto;
  background-position: 130% 0, 0 0, 0 0;
  box-shadow: var(--g-card);
  -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur);
  border: 0;
}
.dwg, .roles, .window { border-radius: 22px; box-shadow: var(--g-hi), 0 0 0 1px rgb(255 255 255 / .65), var(--g-sh-3); }
.prod, .tile, .plan, .mods, .dir-card { border-radius: 20px; transition: transform 200ms var(--g-ease), box-shadow 200ms var(--g-ease); }
.prod:hover, .tile:hover, .plan:hover, .dir-card:hover { transform: translateY(-2px); box-shadow: var(--g-card-hover); }
.plan.pick { box-shadow: var(--g-hi), 0 0 0 1.5px rgb(158 69 33 / .45), var(--g-sh-2); }
.plan .pick-tag { border-radius: 999px; padding-inline: 12px; }

/* Window chrome inside the hero and role screens becomes the app's frosted top bar */
.app-top, .win-top, .rs-top { background: rgb(255 255 255 / .42); border-bottom: 1px solid var(--g-line); }
.app-top i:nth-child(1), .win-top i:nth-child(1) { background: #DE936F; }
.app-top i:nth-child(2), .win-top i:nth-child(2) { background: #E2C38A; }
.app-top i:nth-child(3), .win-top i:nth-child(3) { background: #A9BE8A; }
.role-screen { border-radius: 18px; }
.card-glass { border-radius: 18px; background: var(--g-rim), var(--g-frost-dense); box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-2); }

/* The order's chain of people: the active person lifts like the app's selected menu item */
.chain li { border-radius: 14px; }
.dwg[data-stage="0"] .chain li:nth-child(1), .dwg[data-stage="1"] .chain li:nth-child(2),
.dwg[data-stage="2"] .chain li:nth-child(3), .dwg[data-stage="3"] .chain li:nth-child(4) {
  background: rgb(255 255 255 / .82); box-shadow: var(--g-hi), 0 0 0 1px rgb(158 69 33 / .30), var(--g-sh-1);
}

/* Who it's for: the tab list reads as the app's side menu */
.role-tabs { background: rgb(255 255 255 / .30); border-inline-end: 1px solid var(--g-line); }
.role-tabs button { border-radius: 12px; }
.role-tabs button[aria-selected="true"] { background: rgb(255 255 255 / .88); box-shadow: var(--g-hi), 0 0 0 1px rgb(158 69 33 / .28), var(--g-sh-1); }
.role-tabs button[aria-selected="true"]::before { inset-block: 10px; width: 3px; border-radius: 3px; }

/* Chips, toggles, small inner cards: rounded and lightly frosted */
.toggle { border-radius: 999px; padding: 4px; background: rgb(255 255 255 / .45); box-shadow: var(--g-hi), 0 0 0 1px var(--g-line); }
.toggle button { border-radius: 999px; }
.toggle button[aria-pressed="true"] { background: #1C1A17; color: #FCFBF8; box-shadow: 0 6px 14px -8px rgb(18 17 15 / .6); }
.prod .who, .tag, .chip, .dir-search .dir-chips span, .mod-chips li { border-radius: 999px; }
.inbox .item, .chip, .dir-search, .dir-profile { border-radius: 14px; background: rgb(255 255 255 / .55); }
.dir-search .field { border-radius: 10px; }

/* Bands */
.strip { background: rgb(255 255 255 / .36); border-block: 1px solid rgb(255 255 255 / .6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.poster { background: transparent; border-top: 0; }
.close-band { background: transparent; border-top: 0; }
.close-band .wrap { max-width: 880px; padding-block: 72px; border-radius: 28px; background: var(--g-rim), var(--g-frost); box-shadow: var(--g-hi), 0 0 0 1px rgb(255 255 255 / .65), var(--g-sh-3); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
.faq { padding-inline: 28px; border-radius: 20px; border-top: 0; }
.faq details:last-child { border-bottom: 0; }
footer { background: rgb(255 255 255 / .38); border-top: 1px solid rgb(255 255 255 / .6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* ─── Motion: panels rise in from a soft blur, then a light sweeps across once ─── */
.rv { transform: translateY(16px) scale(.99); filter: blur(4px); transition: opacity 600ms var(--g-ease), transform 700ms var(--g-ease), filter 600ms var(--g-ease); transition-delay: calc(var(--i, 0) * 70ms); }
.rv.in { filter: none; }
@keyframes g-sweep { from { background-position: 130% 0, 0 0, 0 0; } to { background-position: -40% 0, 0 0, 0 0; } }
:is(.dwg, .prod, .tile, .plan, .dir-card, .roles).rv.in,
.rv.in :is(.prod, .tile, .plan, .dir-card) { animation: g-sweep 1500ms 300ms cubic-bezier(.4, 0, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  body::before, .rv.in, .rv.in * { animation: none !important; }
  .rv { filter: none; transform: none; }
  .btn:hover, .prod:hover, .tile:hover, .plan:hover, .dir-card:hover { transform: none; }
}
@media (max-width: 720px) {
  .site-head { top: 8px; padding-inline: 8px; }
  .site-head .bar { padding-inline: 12px; }
  .close-band .wrap { border-radius: 22px; margin-inline: 12px; }
}
@media print { body::before { display: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dwg, .roles, .prod, .tile, .plan, .mods, .dir-card, .window, .role-screen, .faq, .site-head.scrolled .bar, .close-band .wrap { background: #FCFBF8; }
}
