/* ═══════════════════════════════════════════════════════════════════
   SUPER Q8 — Unified design system
   Editorial / monochrome / black–white–gray
═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette harmonized with diwaniya-theme.css (single monochrome family). */
  --black:    #0A0A0A;
  --ink:      #0A0A0A;
  --char:     #131313;
  --slate:    #1E1E1E;
  --elev:     #1A1A1A;
  --line:     #272727;
  --line-soft:#1B1B1B;
  --mute:     #6E6E6E;
  --soft:     #9A9A9A;
  --paper:    #CFCFCF;
  --bone:     #F4F4F4;
  --white:    #ECECEC;
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-ar: 'Tajawal', 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
  --hair: 1px solid var(--line);
  --hair-soft: 1px solid var(--line-soft);
  /* Radius scale tokens — adopt incrementally; do not bulk-replace existing values. */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ar);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.55;
}
body[dir="ltr"] { font-family: var(--font-en); }
::selection { background: var(--white); color: var(--black); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }

/* ─── LAYOUT ─── */
.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.container-narrow { max-width: 880px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.container-tight { max-width: 640px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section { position: relative; }
.rule { height: 1px; background: var(--line); width: 100%; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(0,0,0,0.55);
  border-bottom: var(--hair-soft);
  transition: background .3s, border-color .3s;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; display: block; }
body.light .brand-mark { filter: invert(1); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--paper); }
.nav-links a { transition: color .2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-btn {
  border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px;
  font-size: 13px; color: var(--paper); transition: .2s; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px;
}
.nav-btn:hover { border-color: var(--white); color: var(--white); }
.nav-btn.solid { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 600; }
.nav-btn.solid:hover { background: var(--bone); }
.nav-btn.icon { width: 38px; padding: 0; border-radius: 50%; }

/* ─── HAMBURGER (mobile nav) ─── */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color .2s;
}
.nav-burger:hover { border-color: var(--white); }
.nav-burger span {
  display: block; width: 14px; height: 1.5px;
  background: var(--white); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-inline-start: 0;
    inset-inline-end: 0;
    top: 68px;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(20px) saturate(140%);
    border-bottom: var(--hair);
    padding: 20px var(--pad) 28px;
    gap: 6px;
    align-items: stretch;
    font-size: 16px;
    z-index: 99;
  }
  .nav-links.open a {
    padding: 12px 6px;
    border-bottom: var(--hair-soft);
    color: var(--white);
  }
  .nav-links.open a:last-child { border-bottom: none; }
  body.light .nav-links.open { background: rgba(246,246,246,0.96); }
}

/* ─── HERO ─── */
.hero { padding: 180px 0 120px; position: relative; overflow: hidden; }
.hero::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,0.06), transparent 70%),
    radial-gradient(800px 400px at 100% 100%, rgba(255,255,255,0.03), transparent 70%);
  pointer-events: none;
}
body.light .hero::before {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(0,0,0,0.024), transparent 70%),
    radial-gradient(800px 400px at 100% 100%, rgba(0,0,0,0.012), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 60px; align-items: end; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--soft); font-family: var(--font-en); font-weight: 500;
}
.eyebrow::before { content:""; width: 28px; height: 1px; background: var(--soft); }
.hero h1 {
  font-size: clamp(46px, 8.4vw, 132px);
  line-height: 1.0; letter-spacing: -0.04em;
  font-weight: 700; margin: 28px 0 0;
  word-spacing: 0.02em;
}
.hero h1 > span { display: block; }
.hero h1 em { font-style: normal; color: var(--mute); font-weight: 300; }
.hero h1 .accent { display: block; font-weight: 200; color: var(--paper); }
.hero-foot {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: end;
  margin-top: 60px; padding-top: 32px; border-top: var(--hair-soft);
}
.hero-lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--paper); max-width: 560px; line-height: 1.7; font-weight: 300; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
body[dir="rtl"] .hero-cta { justify-content: flex-start; }

/* Compact page hero (sub-pages) */
.hero.hero-page { padding: 160px 0 80px; }
.hero.hero-page h1 { font-size: clamp(40px, 6vw, 88px); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; transition: .25s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { background: var(--bone); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.04); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
body[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }
.btn.sm { padding: 10px 18px; font-size: 13px; }
.btn.lg { padding: 20px 32px; font-size: 17px; }

@media (max-width: 760px) {
  .hero { padding: 130px 0 70px; }
  .hero.hero-page { padding: 120px 0 50px; }
  .hero-foot { grid-template-columns: 1fr; gap: 32px; }
  .hero-cta { justify-content: flex-start; }
}

/* ─── SECTION HEADERS ─── */
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: end; padding-block: 40px 56px; }
.section-head .num {
  font-family: var(--font-en); font-size: 12px; letter-spacing: 0.2em;
  color: var(--mute); font-weight: 500;
}
.section-head .num::before { content:""; display:inline-block; width: 24px; height:1px; background: var(--mute); vertical-align: middle; margin-inline-end: 12px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em;
  font-weight: 600; max-width: 900px;
}
.section-head h2 em { font-style: normal; color: var(--mute); font-weight: 300; }
.section-head .sub { color: var(--soft); font-size: 16px; max-width: 520px; margin-top: 16px; line-height: 1.7; font-weight: 300; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; padding-block: 28px 36px; }
}

/* ─── PROSE ─── */
.prose { color: var(--paper); font-size: 16px; line-height: 1.85; font-weight: 300; }
.prose h2 { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.02em; font-weight: 600; color: var(--white); margin: 48px 0 16px; line-height: 1.15; }
.prose h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.015em; font-weight: 600; color: var(--white); margin: 36px 0 12px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin: 0 0 22px; }
.prose li { margin-bottom: 10px; }
.prose a { color: var(--white); border-bottom: 1px solid var(--line); transition: border-color .2s; }
.prose a:hover { border-color: var(--white); }
.prose strong { color: var(--white); font-weight: 600; }
.prose hr { border: none; height: 1px; background: var(--line); margin: 48px 0; }
.prose blockquote {
  border-inline-start: 2px solid var(--white); padding: 6px 22px;
  margin: 24px 0; color: var(--soft); font-style: italic;
}
.prose code {
  background: var(--ink); padding: 2px 8px; border-radius: 6px;
  font-size: 0.9em; font-family: 'SF Mono', Menlo, monospace;
}

/* ─── CARDS GRID ─── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  border: var(--hair); border-radius: 16px;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color .3s, transform .3s;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { border-color: var(--paper); transform: translateY(-2px); }
.card .label { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.2em; color: var(--mute); text-transform: uppercase; }
.card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; color: var(--white); }
.card p { color: var(--soft); font-size: 14px; line-height: 1.6; font-weight: 300; }
.card .arrow { margin-top: auto; padding-top: 16px; font-family: var(--font-en); font-size: 13px; color: var(--paper); display: inline-flex; gap: 8px; align-items: center; }
.card a { display: block; color: inherit; }

/* ─── EDITORIAL SERVICES GRID (used on home + service indexes) ─── */
.svc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: var(--hair); border-left: var(--hair);
}
body[dir="rtl"] .svc-grid { border-left: none; border-right: var(--hair); }
.svc {
  border-right: var(--hair); border-bottom: var(--hair);
  padding: 36px 28px 28px;
  min-height: 240px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .3s, color .3s;
  position: relative; overflow: hidden;
}
body[dir="rtl"] .svc { border-right: none; border-left: var(--hair); }
.svc:hover { background: var(--white); color: var(--black); }
.svc:hover .svc-num, .svc:hover .svc-desc { color: rgba(0,0,0,0.5); }
.svc:hover .svc-arrow { color: var(--black); }
.svc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.svc-top .svc-tag { flex-shrink: 0; }
.svc-num { font-family: var(--font-en); font-size: 11px; color: var(--mute); letter-spacing: 0.16em; font-weight: 500; }
.svc-tag {
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.18em;
  border: 1px solid currentColor; padding: 4px 9px; border-radius: 999px;
  color: var(--paper); text-transform: uppercase;
}
.svc-tag.new { color: var(--white); }
.svc h3 { font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; margin-top: 28px; }
.svc-desc { color: var(--soft); font-size: 14px; margin-top: 10px; line-height: 1.55; font-weight: 300; }
.svc-arrow {
  margin-top: 24px; font-family: var(--font-en); font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--paper); transition: gap .25s;
}
.svc:hover .svc-arrow { gap: 14px; }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px)  { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 200px; padding: 28px 22px; } }

/* ─── FEATURE BANNER ─── */
.feature { padding: 120px 0; border-top: var(--hair); border-bottom: var(--hair); position: relative; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature .num { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.22em; color: var(--mute); }
.feature h2 {
  font-size: clamp(40px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.035em;
  font-weight: 500; margin: 24px 0;
}
.feature h2 em { font-style: normal; color: var(--mute); font-weight: 300; }
.feature p { color: var(--paper); font-size: 17px; line-height: 1.7; max-width: 480px; font-weight: 300; }
.feature ul { list-style: none; margin-top: 32px; display: grid; gap: 14px; max-width: 460px; }
.feature li { display: flex; gap: 14px; padding-block: 14px; border-top: var(--hair-soft); font-size: 15px; color: var(--paper); }
.feature li:last-child { border-bottom: var(--hair-soft); }
.feature li::before { content: attr(data-n); font-family: var(--font-en); color: var(--mute); font-size: 12px; min-width: 28px; padding-top: 2px; }

.visual {
  aspect-ratio: 4/5; background: var(--ink);
  border: var(--hair); position: relative; overflow: hidden;
  display: grid; place-items: center;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.04), transparent 50%);
}
.visual-glyph {
  width: 60%; aspect-ratio: 1;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; position: relative;
  animation: rotate 60s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }
.visual-glyph::before, .visual-glyph::after { content:""; position:absolute; inset: 12%; border-radius:50%; border: 1px solid var(--line-soft); }
.visual-glyph::after { inset: 28%; border-color: var(--line); }
.visual-glyph .core {
  width: 30%; aspect-ratio: 1; background: var(--white);
  border-radius: 50%; position: relative; z-index: 2;
  box-shadow: 0 0 80px rgba(255,255,255,0.4);
}
@media (max-width: 900px) {
  .feature { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .visual { max-width: 420px; margin-inline: auto; }
}

/* ─── FORMS ─── */
.field { display: block; margin-bottom: 20px; }
.field label {
  display: block; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 10px;
  font-family: var(--font-en); font-weight: 500;
}
.input, .textarea, .select {
  width: 100%; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--ink); color: var(--white);
  font-size: 16px; transition: border-color .2s, background .2s;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--white); background: var(--char);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 14px 20px; border-radius: 12px;
  font-size: 15px; font-weight: 500; transition: .2s;
  border: 1px solid var(--line); color: var(--white); background: var(--ink);
  cursor: pointer;
}
.auth-btn:hover { border-color: var(--white); }
.auth-btn.primary { background: var(--white); color: var(--black); border-color: var(--white); }
.auth-btn.primary:hover { background: var(--bone); transform: translateY(-1px); }
.auth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
body.light .auth-btn { background: var(--white); color: var(--black); }
body.light .auth-btn.primary { background: var(--black); color: var(--white); border-color: var(--black); }

/* ─── Compact icon-only auth buttons (X / Google / Email) ─── */
.auth-icons {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; max-width: 220px; margin: 0 auto;
}
.icon-btn {
  width: 100%; aspect-ratio: 1; border-radius: 18px;
  display: grid; place-items: center; transition: .25s;
  border: 1px solid var(--line); background: var(--ink); cursor: pointer;
  color: var(--white);
}
.icon-btn:hover { border-color: var(--white); transform: translateY(-2px); }
.icon-btn svg { width: 38px; height: 38px; }
body.light .icon-btn { background: var(--char); border-color: var(--slate); color: var(--white); }
.email-btn {
  display: grid; place-items: center;
  width: 100%; max-width: 220px; margin: 14px auto 0;
  aspect-ratio: 220/64;
  border-radius: 18px; border: 1px solid var(--line); background: var(--ink);
  cursor: pointer; transition: .25s;
  font-family: inherit; color: var(--white);
}
.email-btn:hover { border-color: var(--white); transform: translateY(-1px); }
.email-btn svg { width: 22px; height: 22px; color: var(--paper); }
body.light .email-btn { background: var(--char); border-color: var(--slate); color: var(--white); }

/* ─── JOIN ─── */
.join { padding: 140px 0 100px; border-top: var(--hair); position: relative; overflow: hidden; }
.join::before { content:""; position: absolute; inset: 0; background: radial-gradient(900px 500px at 50% 0%, rgba(255,255,255,0.04), transparent 70%); pointer-events: none; }
.join-head { text-align: center; margin-bottom: 64px; position: relative; }
.join-head .num { font-family: var(--font-en); font-size: 12px; letter-spacing: 0.22em; color: var(--mute); }
.join-head h2 { font-size: clamp(40px, 6.4vw, 96px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 500; margin: 22px 0 18px; max-width: 16ch; margin-inline: auto; }
.join-head h2 em { font-style: normal; color: var(--mute); font-weight: 300; }
.join-head p { color: var(--paper); font-size: 17px; max-width: 540px; margin: 0 auto; line-height: 1.7; font-weight: 300; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1080px; margin: 0 auto; position: relative; }
.join-card {
  border: var(--hair); border-radius: 20px; padding: 40px 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color .3s, transform .3s;
}
.join-card:hover { border-color: var(--paper); transform: translateY(-3px); }
.join-card .label { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.22em; color: var(--mute); text-transform: uppercase; }
.join-card h3 { font-size: 32px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; margin: 12px 0 10px; }
.join-card .desc { color: var(--soft); font-size: 14px; line-height: 1.6; margin-bottom: 28px; min-height: 44px; font-weight: 300; }
.join-actions { display: flex; flex-direction: column; gap: 10px; }
.join-foot { text-align: center; margin-top: 40px; font-size: 13px; color: var(--mute); }
.join-foot a { color: var(--paper); border-bottom: 1px solid var(--line); }
.join-foot a:hover { color: var(--white); border-color: var(--white); }
@media (max-width: 760px) {
  .join { padding: 80px 0 60px; }
  .join-grid { grid-template-columns: 1fr; }
  .join-card { padding: 32px 24px; }
}

/* ─── DOWNLOAD ─── */
.download { padding: 140px 0 120px; text-align: center; position: relative; overflow: hidden; }
.download::before { content:""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 50% 50%, rgba(255,255,255,0.05), transparent 70%); pointer-events: none; }
.download-eyebrow { font-family: var(--font-en); font-size: 11px; letter-spacing: 0.22em; color: var(--mute); text-transform: uppercase; }
.download h2 { font-size: clamp(44px, 8vw, 112px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500; margin: 24px auto 32px; max-width: 12ch; }
.download h2 em { font-style: normal; color: var(--mute); font-weight: 300; }
.download p { color: var(--paper); max-width: 480px; margin: 0 auto 48px; font-size: 17px; font-weight: 300; line-height: 1.7; }
.stores { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--ink); transition: .25s; min-width: 200px;
}
.store:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.store svg { width: 26px; height: 26px; }
.store-text { text-align: start; line-height: 1.1; font-family: var(--font-en); }
.store-text small { font-size: 10px; color: var(--mute); letter-spacing: 0.1em; text-transform: uppercase; }
.store:hover .store-text small { color: rgba(0,0,0,0.5); }
.store-text b { display: block; font-size: 16px; margin-top: 3px; font-weight: 600; }

/* ─── FOOTER ─── */
footer { border-top: var(--hair); padding: 80px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.foot-brand p { color: var(--soft); font-size: 14px; margin-top: 16px; max-width: 320px; line-height: 1.7; font-weight: 300; }
.foot-col h4 { font-size: 12px; letter-spacing: 0.18em; color: var(--mute); text-transform: uppercase; font-weight: 500; margin-bottom: 18px; font-family: var(--font-en); }
.foot-col a { display: block; padding: 6px 0; color: var(--paper); font-size: 14px; transition: color .2s; }
.foot-col a:hover { color: var(--white); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 30px; border-top: var(--hair-soft);
  font-size: 12px; color: var(--mute); flex-wrap: wrap;
  font-family: var(--font-en); letter-spacing: 0.06em;
}
.foot-bottom .socials { display: flex; gap: 14px; }
.foot-bottom .socials a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: .2s; }
.foot-bottom .socials a:hover { background: var(--white); color: var(--black); border-color: var(--white); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1/-1; } }

/* ─── REVEAL ANIMATION ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform: none; transition: none; } }

/* ─── LIGHT MODE ─── */
body.light {
  background: #f6f6f6; color: var(--black);
  /* Harmonize grays only — keep --white/--black literal so legacy invert-hover patterns stay correct. */
  --line: #E2E2E2; --line-soft: #EEEEEE; --mute: #8A8A8A; --soft: #5A5A5A; --paper: #222222; --bone: #1A1A1A; --ink: #FFFFFF; --char: #F4F4F4;
}
body.light .nav { background: rgba(246,246,246,0.7); }
body.light .nav-btn.solid { background: var(--black); color: var(--white); border-color: var(--black); }
body.light .btn-primary { background: var(--black); color: var(--white); }
body.light .btn-primary:hover { background: var(--char); }
body.light .svc:hover { background: var(--black); color: var(--white); }
body.light .svc:hover .svc-num, body.light .svc:hover .svc-desc { color: rgba(255,255,255,0.6); }
body.light .visual { background: #ececec; }
body.light .visual-glyph .core { background: var(--black); box-shadow: 0 0 80px rgba(0,0,0,0.15); }
body.light .store { background: var(--white); }
body.light .store:hover { background: var(--black); color: var(--white); }
body.light .input, body.light .textarea, body.light .select { background: var(--white); color: var(--black); }

/* ─── PAGE WRAP (ensure footer pushes down on short pages) ─── */
.page-wrap { min-height: calc(100vh - 200px); }

/* ─── RTL: flip directional arrows ─── */
body[dir="rtl"] .btn .arrow svg,
body[dir="rtl"] .svc-arrow svg,
body[dir="rtl"] .arrow svg {
  transform: scaleX(-1);
}
/* Also flip text-arrow glyphs like → */
body[dir="rtl"] [class*="arrow"]::before,
body[dir="rtl"] [class*="arrow"]::after {
  display: inline-block;
  transform: scaleX(-1);
}

/* ─── A11y: keyboard focus ring ─── */
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  border-radius: inherit;
}
body.light :focus-visible {
  outline-color: var(--black);
}
/* Don't apply to non-interactive elements */
div:focus-visible, span:focus-visible, p:focus-visible {
  outline: none;
}

/* ──────────────────────────────────────────────────────────────
   Cover-pattern overlay — adds a subtle monochrome geometric
   noise to gradient covers so they don't feel flat.
   Each card's cover-c1/cover-c2 still defines the base tone.
   ────────────────────────────────────────────────────────────── */
.rest-cover::after,
.hotel-cover::after,
.ch-cover::after,
.d-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.045) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 32%, rgba(255,255,255,0.035) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 72%, rgba(255,255,255,0.04) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 88%, rgba(255,255,255,0.03) 0 1px, transparent 2px),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
  background-size: 80px 80px, 110px 110px, 95px 95px, 70px 70px, 100% 100%;
  mix-blend-mode: overlay;
  opacity: .85;
}
/* Light theme: subtler */
body.light .rest-cover::after,
body.light .hotel-cover::after,
body.light .ch-cover::after,
body.light .d-cover::after {
  opacity: .35;
  mix-blend-mode: multiply;
}
