/* ==========================================================================
   Capital of Creativity (CoC) — main site styles
   Palette: deep violet -> magenta, white, Saudi sand/gold, off-white.
   Logical properties are used throughout so RTL (Arabic) and LTR work.
   ========================================================================== */

:root {
  --violet-950: #14041F;
  --violet-900: #1C0633;
  --violet-800: #2A0A4A;
  --violet-700: #3D1066;
  --violet-600: #561887;
  --magenta: #8E1AA0;
  --magenta-400: #B54BC4;
  --sand: #C9A46A;
  --sand-300: #DFC596;
  --sand-100: #F1E6D2;
  --off: #F7F3EE;
  --white: #FFFFFF;
  --ink: #1D1327;
  --ink-2: #4A3F57;
  --muted: #6B6077;
  --line: rgba(42, 10, 74, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);

  /* business-line accents */
  --safety: #E2553F;
  --safety-ink: #B23A25;
  --hr: #1E9C97;
  --hr-ink: #11706B;
  --brands: #C9A46A;
  --brands-ink: #8A6630;

  --accent: var(--magenta);
  --accent-ink: var(--magenta);

  --grad: linear-gradient(135deg, var(--violet-800) 0%, var(--violet-600) 48%, var(--magenta) 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -20px rgba(42, 10, 74, 0.35);
  --shadow-lg: 0 30px 80px -30px rgba(42, 10, 74, 0.55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
  --gutter: 16px;
  --max: 1200px;

  --font-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
}
html[lang="en"] {
  --font-display: 'Sora', 'Readex Pro', system-ui, sans-serif;
  --font-body: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* page-level accent themes */
body.theme-safety { --accent: var(--safety); --accent-ink: var(--safety-ink); }
body.theme-hr { --accent: var(--hr); --accent-ink: var(--hr-ink); }
body.theme-brands { --accent: var(--brands); --accent-ink: var(--brands-ink); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.pre-en:not(.i18n-ready) body { opacity: 0; }
body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.6; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.01em; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.025em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--sand); color: var(--violet-900); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible, .section--light :focus-visible { outline-color: var(--magenta); }
::selection { background: var(--magenta); color: #fff; }
.placeholder { background: rgba(201, 164, 106, .18); border: 1px dashed var(--sand); border-radius: 6px; padding: 0 .35em; font-size: .92em; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--sand); --b-fg: var(--violet-900);
  position: relative; display: inline-flex; align-items: center; gap: .6em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg); font: 600 1rem/1.2 var(--font-display);
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(201, 164, 106, .7); }
.btn:hover::after { transform: translateX(120%); }
.btn .arrow { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn--ghost { --b-bg: transparent; --b-fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff, 0 14px 30px -14px rgba(0,0,0,.4); }
.btn--violet { --b-bg: var(--violet-800); --b-fg: #fff; }
.btn--violet:hover { box-shadow: 0 14px 30px -12px rgba(42,10,74,.6); }
.btn--outline { --b-bg: transparent; --b-fg: var(--violet-800); box-shadow: inset 0 0 0 1.5px var(--violet-800); }
.btn--accent { --b-bg: var(--accent); --b-fg: #fff; }
.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .92rem; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s;
  color: #fff;
}
.site-header.is-scrolled, .site-header.is-solid { background: rgba(28, 6, 51, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.site-header .container { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name b { font: 700 1rem var(--font-display); letter-spacing: .01em; }
.brand-name small { font-size: .74rem; opacity: .75; }
.nav { margin-inline-start: auto; display: none; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { position: relative; display: block; padding: 8px 12px; text-decoration: none; font: 500 .95rem var(--font-display); color: rgba(255,255,255,.86); border-radius: 10px; transition: color .25s; }
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--sand); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .35s var(--ease); }
[dir="rtl"] .nav a::after { --origin: right; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav + .header-actions { margin-inline-start: 8px; }
.lang-toggle {
  min-width: 48px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5);
  background: transparent; color: #fff; font: 600 .95rem 'IBM Plex Sans Arabic', 'Manrope', sans-serif; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.lang-toggle:hover { background: #fff; color: var(--violet-800); border-color: #fff; }
.header-cta { display: none; }
.burger { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .35s var(--ease), background-color .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; inset-inline-start: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1080px) {
  .nav { display: block; }
  .burger { display: none; }
  .header-cta { display: inline-flex; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--violet-900);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 8px;
  clip-path: circle(0% at var(--cx, 90%) 36px); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s linear .6s;
  overflow-y: auto;
}
[dir="rtl"] .drawer { --cx: 10%; }
.menu-open .drawer { clip-path: circle(150% at var(--cx, 90%) 36px); visibility: visible; transition: clip-path .7s var(--ease); }
.drawer a { color: #fff; text-decoration: none; font: 600 1.6rem var(--font-display); padding: 10px 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; align-items: center; }
.drawer a[aria-current="page"] { color: var(--sand); }
.drawer .btn { margin-top: 20px; align-self: flex-start; font-size: 1rem; border: 0; padding: .7em 1.4em; }
.drawer::before { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: var(--najdi) repeat-x bottom / 64px 32px; opacity: .25; pointer-events: none; }
body.menu-open { overflow: hidden; }

/* ---------- Saudi motifs ---------- */
:root {
  /* Najdi parapet: stepped triangles with a small triangular void */
  --najdi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath d='M0 32 L16 4 L32 32 Z M32 32 L48 4 L64 32 Z' fill='%23C9A46A'/%3E%3Cpath d='M12 30 L16 22 L20 30 Z M44 30 L48 22 L52 30 Z' fill='%231C0633'/%3E%3C/svg%3E");
  /* Mashrabiya-style lattice: interlocking diamonds and stars */
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Cpath d='M30 12 L48 30 L30 48 L12 30 Z'/%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3Ccircle cx='0' cy='0' r='4'/%3E%3Ccircle cx='60' cy='0' r='4'/%3E%3Ccircle cx='0' cy='60' r='4'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3C/g%3E%3C/svg%3E");
  --lattice-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%232A0A4A' stroke-width='1'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z'/%3E%3Cpath d='M30 12 L48 30 L30 48 L12 30 Z'/%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
.najdi-edge { height: 28px; background: var(--najdi) repeat-x bottom / 56px 28px; }
.najdi-edge--flip { transform: scaleY(-1); }
.najdi-rule { display: flex; align-items: center; gap: 10px; color: var(--sand); }
.najdi-rule::before, .najdi-rule::after { content: ""; height: 10px; width: 44px; background: var(--najdi) repeat-x center / 20px 10px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .85rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 18px; height: 9px; background: var(--najdi) repeat-x center / 18px 9px; }
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--sand-300); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; overflow: hidden;
  color: #fff; background: var(--violet-900);
  padding: calc(var(--header-h) + 32px) 0 96px;
}
.hero__bg { position: absolute; inset: 0; background: linear-gradient(120deg, var(--violet-950), var(--violet-800) 30%, var(--violet-600) 55%, var(--magenta) 75%, var(--violet-800)); background-size: 300% 300%; animation: gradientSweep 16s ease-in-out infinite; }
.hero__lattice { position: absolute; inset: -60px; background: var(--lattice) repeat / 60px 60px; opacity: .07; mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 45%, #000 20%, transparent 75%); animation: latticeDrift 60s linear infinite; }
[dir="rtl"] .hero__lattice { mask-image: radial-gradient(ellipse 70% 70% at 30% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 45%, #000 20%, transparent 75%); }
.hero__glow { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; background: radial-gradient(circle, rgba(181, 75, 196, .45), transparent 60%); inset-inline-end: -15vmax; top: -10vmax; filter: blur(20px); animation: glowPulse 9s ease-in-out infinite; }
.hero .container { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 700; line-height: 1.12; margin-bottom: .35em; }
html[lang="ar"] .hero h1 { line-height: 1.3; }
.hero h1 .grad-text { background: linear-gradient(90deg, var(--sand-300), #fff 45%, var(--sand)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: textShine 6s linear infinite; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.84); max-width: 38em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__lines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; padding: 0; list-style: none; }
.hero__lines li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); font-size: .9rem; }
.hero__lines li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.hero .najdi-edge { position: absolute; bottom: 0; inset-inline: 0; }

/* animated shield */
.shield-stage { position: relative; display: grid; place-items: center; justify-self: center; width: min(60vw, 420px); aspect-ratio: 741 / 1065; }
.shield-stage__ring { position: absolute; inset: -10%; border-radius: 50%; border: 1px solid rgba(201,164,106,.35); animation: spin 40s linear infinite; }
.shield-stage__ring::before { content: ""; position: absolute; top: -5px; inset-inline-start: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 18px var(--sand); }
.shield-stage__ring--2 { inset: -2%; border-style: dashed; border-color: rgba(255,255,255,.14); animation-duration: 70s; animation-direction: reverse; }
.shield-stage__ring--2::before { display: none; }
.shield { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 40px 60px rgba(10, 0, 30, .55)); }
.shield img { width: 100%; height: 100%; object-fit: contain; }
.shield__shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../img/coc-shield-640.png") center / contain no-repeat; mask: url("../img/coc-shield-640.png") center / contain no-repeat;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 48%, rgba(255, 230, 190, .35) 52%, transparent 65%);
  background-size: 300% 100%; background-position: 150% 0; animation: shieldShine 5.5s var(--ease) 1.6s infinite;
  mix-blend-mode: soft-light;
}

@keyframes gradientSweep { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes latticeDrift { to { transform: translate(60px, 60px); } }
@keyframes glowPulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: .6; } }
@keyframes textShine { to { background-position: 200% center; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shieldShine { 0% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }

/* intro animation (CSS fallback, GSAP refines) */
.js .shield img { animation: shieldIn 1.4s var(--ease) .2s both; }
@keyframes shieldIn { from { clip-path: inset(100% 0 0 0 round 30px); transform: translateY(30px) scale(.94); } to { clip-path: inset(0 0 0 0 round 0); transform: none; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--violet-900); padding: calc(var(--header-h) + 64px) 0 96px; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, var(--violet-950), var(--violet-800) 45%, color-mix(in srgb, var(--accent) 70%, var(--violet-700))); background-size: 200% 200%; animation: gradientSweep 18s ease-in-out infinite; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: var(--lattice) repeat / 56px 56px; opacity: .06; mask-image: linear-gradient(to bottom, #000, transparent 85%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.page-hero .container { position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .page-hero .container { grid-template-columns: 1.3fr .7fr; } }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
.page-hero p.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 40em; }
.page-hero .najdi-edge { position: absolute; bottom: 0; inset-inline: 0; z-index: 1; }
.page-hero__art { justify-self: center; width: min(60vw, 280px); aspect-ratio: 1; position: relative; }
.page-hero__art svg { width: 100%; height: 100%; }
.crumbs { display: flex; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 18px; list-style: none; padding: 0; flex-wrap: wrap; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--white { background: #fff; }
.section--sand { background: var(--sand-100); }
.section--dark { background: var(--violet-900); color: #fff; }
.section--dark p { color: rgba(255,255,255,.8); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section--dark .section-head p { color: rgba(255,255,255,.78); }

/* business line cards */
.lines { display: grid; gap: 20px; }
@media (min-width: 860px) { .lines { grid-template-columns: repeat(3, 1fr); } }
.line-card {
  --c: var(--magenta);
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 26px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  overflow: hidden; isolation: isolate; box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.line-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 220px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 14%, transparent), transparent 70%); opacity: 0; transition: opacity .4s; }
.line-card::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--c); transform: scaleX(.18); transform-origin: var(--o, left); transition: transform .6s var(--ease); }
[dir="rtl"] .line-card::after { --o: right; }
.line-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.line-card:hover::before { opacity: 1; }
.line-card:hover::after { transform: scaleX(1); }
.line-card__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c-ink, var(--c)); transition: transform .6s var(--ease); }
.line-card:hover .line-card__icon { transform: rotate(-8deg) scale(1.08); }
.line-card__icon svg { width: 32px; height: 32px; }
.line-card h3 { font-size: 1.4rem; margin: 6px 0 0; }
.line-card p { color: var(--ink-2); margin: 0; }
.line-card ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.line-card ul li { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--off); color: var(--ink-2); }
.line-card .more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font: 600 .98rem var(--font-display); color: var(--c-ink, var(--c)); }
.line-card .more svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
[dir="rtl"] .line-card .more svg { transform: scaleX(-1); }
.line-card:hover .more svg { transform: translateX(5px); }
[dir="rtl"] .line-card:hover .more svg { transform: scaleX(-1) translateX(5px); }
.c-safety { --c: var(--safety); --c-ink: var(--safety-ink); }
.c-hr { --c: var(--hr); --c-ink: var(--hr-ink); }
.c-brands { --c: var(--brands); --c-ink: var(--brands-ink); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.stat { padding: 24px 20px; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; inset-inline-end: -20px; bottom: -20px; width: 90px; height: 90px; background: var(--lattice) center / 45px 45px; opacity: .1; }
.stat b { display: block; font: 700 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-display); color: var(--sand-300); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; color: rgba(255,255,255,.82); font-size: .98rem; }
.stat--ph b { font-size: 1.1rem; line-height: 1.4; color: var(--sand-300); }

/* principles / features */
.features { display: grid; gap: 18px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .features--3 { grid-template-columns: repeat(3, 1fr); } .features--4 { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent-ink); margin-bottom: 16px; }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--ink-2); margin: 0; }
.feature ul { margin: 10px 0 0; padding-inline-start: 1.1em; color: var(--ink-2); }
.feature ul li::marker { color: var(--accent); }

/* split blocks */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--rev > :first-child { order: 2; } }
.panel { border-radius: var(--radius); background: var(--grad); color: #fff; padding: 36px; position: relative; overflow: hidden; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; }
.panel::before { content: ""; position: absolute; inset: 0; background: var(--lattice) repeat / 50px 50px; opacity: .1; }
.panel > * { position: relative; }
.panel h3 { font-size: 1.6rem; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* process steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 24px 20px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s; }
.steps li:hover { transform: translateY(-4px); border-color: var(--accent); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 1.9rem/1 var(--font-display); color: var(--accent); margin-bottom: 12px; }
.steps h3 { font-size: 1.08rem; margin-bottom: .3em; }
.steps p { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* brands strip */
.brand-row { display: grid; gap: 20px; }
@media (min-width: 860px) { .brand-row { grid-template-columns: repeat(3, 1fr); } }
.brand-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: #fff; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.brand-tile:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
.brand-tile__logo { height: 70px; display: flex; align-items: center; }
.brand-tile__logo img { max-height: 70px; width: auto; transition: transform .6s var(--ease); }
.brand-tile:hover .brand-tile__logo img { transform: scale(1.08) rotate(-3deg); }
.brand-tile h3 { font-size: 1.3rem; margin: 18px 0 .3em; }
.brand-tile p { margin: 0; opacity: .85; font-size: .98rem; }
.brand-tile--o8 { background: radial-gradient(120% 90% at 80% 0%, #3a3a3f, #0d0d10 70%); }
.brand-tile--design { background: linear-gradient(160deg, #EFE7DC, #D8C7B1); color: #2b2420; }
.brand-tile--creamery { background: #B49AE8; color: #3B2E5A; }
.brand-tile--creamery::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../../creamery/assets/img/pattern-lavender.webp") center / 320px; opacity: .25; }
.wordmark-design { font: 600 2.1rem/1 'Sora', sans-serif; letter-spacing: .02em; color: #1a1512; }
.wordmark-design span { font-weight: 400; letter-spacing: .18em; font-size: .7em; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); padding: clamp(36px, 6vw, 72px); background: var(--grad); color: #fff; display: grid; gap: 24px; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.4fr auto; } }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--lattice) repeat / 64px 64px; opacity: .08; }
.cta-band::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 22px; background: var(--najdi) repeat-x bottom / 44px 22px; opacity: .8; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #fff; padding: 18px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
[dir="rtl"] .marquee__track { animation-name: marqueeRtl; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; font: 600 clamp(1.1rem, 2.4vw, 1.6rem) var(--font-display); color: var(--violet-800); white-space: nowrap; }
.marquee__track span::after { content: ""; width: 26px; height: 13px; background: var(--najdi) center / 26px 13px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }

/* info list / facts */
.facts { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.facts div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts div { grid-template-columns: 200px 1fr; } }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; transition: background-color .3s, color .3s, transform .3s var(--ease); }
.chips li:hover { background: var(--violet-800); color: #fff; transform: translateY(-2px); }
.chips--dark li { background: rgba(255,255,255,.08); border-color: var(--line-dark); color: #fff; }

/* brands page */
.brand-block { display: grid; gap: 36px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: calc(var(--radius) + 6px); position: relative; overflow: hidden; }
@media (min-width: 960px) { .brand-block { grid-template-columns: 1fr 1fr; gap: 56px; } }
.brand-block + .brand-block { margin-top: 28px; }
.brand-block--o8 { background: radial-gradient(120% 120% at 100% 0%, #34343a, #0c0c0f 65%); color: #fff; }
.brand-block--o8 p { color: rgba(255,255,255,.8); }
.brand-block--design { background: linear-gradient(160deg, #F4EEE6, #E3D5C2); color: #2b2420; }
.brand-block--creamery { background: #E6DCFA; color: #3B2E5A; }
.brand-block h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.brand-block .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: 14px; text-decoration: none; font: 600 .98rem var(--font-display); background: #fff; color: #111; transition: transform .35s var(--ease), box-shadow .35s; }
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.store-btn small { display: block; font-weight: 400; font-size: .75rem; opacity: .7; }
.store-btn--o8 { background: linear-gradient(135deg, #b8862f, #f0d48a 50%, #c4943a); color: #1a1408; box-shadow: 0 10px 26px -14px rgba(217,161,59,.8); }
.store-btn--o8 small { opacity: .75; }
.store-btn--soon { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .75; cursor: default; }
.store-btn--soon:hover { transform: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.o8-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
@media (min-width: 560px) { .o8-cats { grid-template-columns: repeat(3, 1fr); } }
.o8-cat { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font: 600 .98rem var(--font-display); transition: background-color .3s, transform .4s var(--ease); }
.o8-cat:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.o8-cat small { display: block; font: 400 .8rem var(--font-body); opacity: .7; }
.o8-cat--gold { background: linear-gradient(135deg, #8a6a2b, #e2c27a 50%, #9b7731); color: #1a1408; border: 0; grid-column: 1 / -1; }
.o8-visual { display: grid; place-items: center; position: relative; min-height: 280px; }
.o8-visual img { width: min(60%, 260px); filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.o8-visual::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(226, 194, 122, .25), transparent 65%); }
.lookbook { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.lookbook figure { margin: 0; border-radius: 16px; overflow: hidden; grid-column: span 2; aspect-ratio: 3/4; background: #ddd; }
.lookbook figure:nth-child(1), .lookbook figure:nth-child(2) { grid-column: span 3; }
.lookbook img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.lookbook figure:hover img { transform: scale(1.06); }
.creamery-visual { position: relative; display: grid; place-items: center; }
.creamery-visual img { width: min(80%, 360px); border-radius: 24px; box-shadow: var(--shadow-lg); transform: rotate(-3deg); transition: transform .6s var(--ease); }
.creamery-visual:hover img { transform: rotate(0) scale(1.03); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font: 600 .8rem var(--font-display); background: var(--sand); color: var(--violet-900); }

/* ---------- contact form ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.4fr .8fr; gap: 40px; align-items: start; } }
.form-card { background: #fff; border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .req { color: var(--safety-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid #D9D0E2; background: #FCFAFE;
  font: 400 1rem var(--font-body); color: var(--ink); transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9a8cc; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(142, 26, 160, .15); background: #fff; }
.field .hint { font-size: .85rem; color: var(--muted); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--safety-ink); }
.field .err { display: none; font-size: .85rem; color: var(--safety-ink); }
.field.is-invalid .err { display: block; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #D9D0E2; font-weight: 500; transition: all .25s var(--ease); }
.seg span i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--magenta)); }
.seg input:checked + span { background: var(--violet-800); border-color: var(--violet-800); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--magenta); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-foot small { color: var(--muted); }
.form-success { display: none; text-align: center; padding: 36px 10px; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; animation: popIn .7s var(--ease) both; }
.form-success svg { width: 96px; height: 96px; margin: 0 auto 16px; }
.form-success .tick { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.contact-info { display: grid; gap: 14px; }
.info-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.info-card__icon { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--magenta) 12%, #fff); color: var(--magenta); }
.info-card__icon svg { width: 22px; height: 22px; }
.info-card b { display: block; font-family: var(--font-display); }
.info-card span { color: var(--ink-2); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { position: relative; background: var(--violet-950); color: rgba(255,255,255,.78); padding: 72px 0 28px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 24px; background: var(--najdi) repeat-x top / 48px 24px; opacity: .55; transform: scaleY(-1); }
.site-footer::after { content: ""; position: absolute; inset-inline-end: -120px; bottom: -120px; width: 420px; height: 420px; background: var(--lattice) repeat / 52px; opacity: .05; border-radius: 50%; }
.footer-grid { display: grid; gap: 36px; position: relative; z-index: 1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 74px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 30em; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--sand-300); }
.footer-bottom { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .88rem; }
.site-footer .placeholder { color: var(--sand-300); background: rgba(201,164,106,.12); }

/* ---------- reveal helpers (only hidden once JS animation is ready) ---------- */
.anim-ready [data-reveal] { opacity: 0; transform: translateY(28px); }
.anim-ready [data-reveal="fade"] { transform: none; }
.anim-ready [data-reveal="scale"] { transform: scale(.94); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .anim-ready [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .shield img { animation: none; }
}

[hidden] { display: none !important; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

.creamery-visual img { width: auto; max-width: min(80%, 320px); max-height: 440px; object-fit: cover; }
.o8-visual img { width: min(50%, 220px); }
.o8-visual { min-height: 220px; }
.lang-toggle { min-width: 64px; padding: 0 14px; }
@media (max-width: 380px) { .brand-name small { display: none; } }

/* Owner direction 2026-10-12: Saudi feel stays modern and understated.
   Najdi / lattice accents are kept small and quiet, never the main event. */
.najdi-edge { height: 14px; background-size: 28px 14px; opacity: .45; }
.cta-band::after { height: 12px; background-size: 24px 12px; opacity: .35; }
.site-footer::before { height: 12px; background-size: 24px 12px; opacity: .25; }
.drawer::before { opacity: .12; }
.eyebrow::before { width: 12px; height: 6px; background-size: 12px 6px; opacity: .7; }
.marquee__track span::after { width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }
.hero__lattice { opacity: .045; }
.page-hero::after { opacity: .04; }
.panel::before, .cta-band::before { opacity: .06; }

/* CLAUDE.md 2026-10-12: Saudi devices never overlay images or text.
   Lattice textures are removed from behind copy; Najdi edges stay only as thin section borders. */
.page-hero::after, .cta-band::before, .panel::before, .stat::after, .drawer::before, .site-footer::after { display: none; }
.hero__lattice { -webkit-mask-image: radial-gradient(ellipse 40% 60% at 92% 10%, #000 10%, transparent 60%); mask-image: radial-gradient(ellipse 40% 60% at 92% 10%, #000 10%, transparent 60%); }
[dir="rtl"] .hero__lattice { -webkit-mask-image: radial-gradient(ellipse 40% 60% at 8% 10%, #000 10%, transparent 60%); mask-image: radial-gradient(ellipse 40% 60% at 8% 10%, #000 10%, transparent 60%); }
.hero__lattice { display: none; }

/* ==========================================================================
   Quick-access banners on the home page (2026-10-12):
   O8 Creamery (lavender world) + O8 store (dark carbon world).
   ========================================================================== */
.quick { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 72px); background: var(--off); }
.quick__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 960px) { .quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick__item { display: flex; min-width: 0; }
.quick__item > .qb { flex: 1; min-width: 0; }
.qb { position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 100%; padding: clamp(26px, 3.4vw, 40px); padding-top: clamp(64px, 6vw, 84px); border-radius: calc(var(--radius) + 8px); overflow: hidden; isolation: isolate; box-shadow: var(--shadow); transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.qb:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.qb__body { position: relative; z-index: 2; min-width: 0; }
.qb__logo { height: 44px; width: auto; margin-bottom: 16px; }
.qb__title { font-size: clamp(1.75rem, 3.3vw, 2.6rem); font-weight: 700; line-height: 1.2; margin: 12px 0 .4em; }
html[lang="ar"] .qb__title { line-height: 1.35; }
.qb__link { color: inherit; text-decoration: none; }
.qb__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.qb .qb__link:focus-visible { outline: none; }
.qb:has(.qb__link:focus-visible) { outline: 3px solid var(--sand); outline-offset: 4px; }
.qb__body p { max-width: 46ch; margin-bottom: 0; font-size: 1.02rem; }
.qb__ctas { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qb-btn { display: inline-flex; align-items: center; gap: .55em; min-height: 50px; padding: .7em 1.4em; border-radius: 999px; font: 700 1rem/1.2 var(--font-display); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s; }
.qb-btn:hover { transform: translateY(-3px); }
.qb-btn .arrow { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.qb-btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .qb-btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .qb-btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.qb__art { position: relative; z-index: 2; margin-top: auto; }
.qb__art figure { margin: 0; }

/* Creamery: lavender world */
.qb--creamery { --cr-display: 'Baloo Bhaijaan 2', 'Quicksand', var(--font-display); background: #B49AE8; color: #3B2E5A; }
html[lang="en"] .qb--creamery { --cr-display: 'Quicksand', 'Baloo Bhaijaan 2', var(--font-display); }
.qb--creamery::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../../creamery/assets/img/pattern-lavender.webp") center / 300px; opacity: .16; }
.qb--creamery .qb__title, .qb--creamery .qb-btn, .qb--creamery .qb__tag { font-family: var(--cr-display); }
.qb--creamery .qb__title { font-weight: 800; letter-spacing: 0; }
.qb--creamery :focus-visible, .qb--creamery:has(.qb__link:focus-visible) { outline-color: #3B2E5A; }
.qb__drip { position: absolute; top: -1px; inset-inline: 0; height: 64px; z-index: 1; background: var(--off); -webkit-mask: url("../../creamery/assets/svg/drip.svg") repeat-x top / 260px 100%; mask: url("../../creamery/assets/svg/drip.svg") repeat-x top / 260px 100%; transform-origin: top; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.qb--creamery:hover .qb__drip { transform: scaleY(1.22); }
.qb__tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: #fff; color: #3B2E5A; font-size: .86rem; font-weight: 700; box-shadow: 0 3px 0 rgba(59, 46, 90, .15); }
.qb__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #CDE6B1; box-shadow: 0 0 0 3px rgba(205, 230, 177, .5); }
.qb-btn--plum { background: #3B2E5A; color: #fff; box-shadow: 0 5px 0 #241b3a; }
.qb-btn--plum:hover { box-shadow: 0 8px 0 #241b3a; }
.qb-btn--light { background: #fff; color: #3B2E5A; box-shadow: 0 5px 0 rgba(59, 46, 90, .25); }
.qb-btn--light:hover { box-shadow: 0 8px 0 rgba(59, 46, 90, .25); }
.qb__art--cups { padding-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); align-items: end; }
.qb-cup { min-width: 0; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #fff; border: 5px solid #fff; box-shadow: 0 22px 40px -22px rgba(59, 46, 90, .6); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.qb-cup img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.qb-cup--2 { transform: translateY(-12px); }
.qb--creamery:hover .qb-cup { transform: translateY(-6px); }
.qb--creamery:hover .qb-cup--2 { transform: translateY(-20px); }
@media (max-width: 420px) { .qb-cup { border-width: 3px; border-radius: 14px; } .qb-cup img { border-radius: 11px; } }
.qb__sprinkle { position: absolute; z-index: 1; width: 22px; height: 7px; border-radius: 6px; animation: qbFloat 5s ease-in-out infinite; pointer-events: none; }
.qb__sprinkle--1 { background: #FFC4A3; top: 17%; inset-inline-end: 8%; rotate: 30deg; }
.qb__sprinkle--2 { background: #F28DB2; top: 25%; inset-inline-end: 17%; rotate: -25deg; animation-delay: -1.6s; }
.qb__sprinkle--3 { background: #CDE6B1; top: 12%; inset-inline-end: 26%; rotate: 70deg; animation-delay: -3s; }
@keyframes qbFloat { 50% { transform: translateY(-10px); } }

/* O8 store: dark carbon world */
.qb--o8 { color: #fff; background:
  radial-gradient(90% 70% at 85% 0%, rgba(217, 161, 59, .22), transparent 60%),
  repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 6px),
  repeating-linear-gradient(-45deg, rgba(0,0,0,.35) 0 2px, transparent 2px 6px),
  radial-gradient(130% 120% at 100% 0%, #2c2c31, #0b0b0d 62%); }
[dir="rtl"] .qb--o8 { background:
  radial-gradient(90% 70% at 15% 0%, rgba(217, 161, 59, .22), transparent 60%),
  repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 2px, transparent 2px 6px),
  repeating-linear-gradient(-45deg, rgba(0,0,0,.35) 0 2px, transparent 2px 6px),
  radial-gradient(130% 120% at 0% 0%, #2c2c31, #0b0b0d 62%); }
.qb--o8 .qb__body p { color: rgba(255, 255, 255, .78); }
.qb__cats-bar { position: absolute; top: 0; inset-inline: 0; height: 5px; z-index: 2; background: linear-gradient(90deg, #2FD37A 0 14.28%, #4DA8FF 0 28.57%, #FF5A5F 0 42.85%, #FFC83D 0 57.14%, #8B5CF6 0 71.42%, #FF8A3D 0 85.71%, #D9A13B 0); transform-origin: left; transition: height .4s var(--ease); }
.qb--o8:hover .qb__cats-bar { height: 8px; }
.qb__brand { display: flex; align-items: center; gap: 12px; font: 600 .85rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
html[lang="ar"] .qb__brand { letter-spacing: 0; }
.qb__logo--o8 { height: 46px; margin: 0; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); transition: transform .6s var(--ease); }
.qb--o8:hover .qb__logo--o8 { transform: rotate(-6deg) scale(1.06); }
.qb__cats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.qb__cats li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); font: 600 .8rem var(--font-display); direction: ltr; transition: background-color .3s, border-color .3s, transform .35s var(--ease); }
.qb__cats li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.qb__cats li:hover { transform: translateY(-2px); border-color: var(--c); }
.qb__cats li.is-gold { background: linear-gradient(135deg, rgba(217,161,59,.35), rgba(240,212,138,.18)); border-color: rgba(217, 161, 59, .6); color: #f0d48a; }
.qb-btn--gold { background: linear-gradient(135deg, #b8862f, #f0d48a 50%, #c4943a); background-size: 200% auto; color: #1a1408; box-shadow: 0 14px 30px -14px rgba(217, 161, 59, .9); transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-position .6s var(--ease); }
.qb-btn--gold:hover { background-position: 100% 0; box-shadow: 0 18px 34px -12px rgba(217, 161, 59, .95); }
.qb-btn--glass { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.qb-btn--glass:hover { background: rgba(255, 255, 255, .14); }
.qb__art--o8 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.qb-hero { position: relative; border-radius: 20px; overflow: hidden; background: #050505; aspect-ratio: 1 / 1; box-shadow: 0 0 0 1px rgba(217, 161, 59, .3), 0 24px 50px -24px rgba(217, 161, 59, .55); }
.qb-hero img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.qb--o8:hover .qb-hero img { transform: scale(1.07); }
.qb-tiles { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-content: stretch; }
.qb-tile { border-radius: 16px; overflow: hidden; background: #fff; aspect-ratio: 1 / 1; box-shadow: 0 14px 28px -18px rgba(0, 0, 0, .9); transition: transform .5s var(--ease); }
.qb-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.qb--o8:hover .qb-tile { transform: translateY(-6px); }
.qb--o8:hover .qb-tile:nth-child(2) { transition-delay: .05s; }
.qb--o8:hover .qb-tile:nth-child(3) { transition-delay: .1s; }
.qb--o8:hover .qb-tile:nth-child(4) { transition-delay: .15s; }
.qb-tile:hover img { transform: scale(1.08); }
@media (max-width: 420px) { .qb__art--o8 { grid-template-columns: minmax(0, 1fr); } .qb-hero { aspect-ratio: 4 / 3; } .qb-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .qb-tile { border-radius: 12px; } }
@media (max-width: 600px) { .qb__sprinkle { display: none; } .qb__drip { height: 48px; -webkit-mask-size: 200px 100%; mask-size: 200px 100%; } .qb-btn { min-height: 48px; padding: .65em 1.15em; } }
@media (prefers-reduced-motion: reduce) { .qb:hover, .qb--creamery:hover .qb-cup { transform: none; } .qb--creamery:hover .qb-cup--2 { transform: translateY(-12px); } }

/* Contact form: spam trap + send error (2026-10-12) */
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.form-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(200, 40, 40, .08); color: var(--safety-ink); font-size: .95rem; }
.form-card button[aria-busy="true"] { opacity: .6; cursor: progress; }
