@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Dubai W23";
  src: url("/fonts/DubaiW23-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Dubai W23";
  src: url("/fonts/DubaiW23-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "Dubai W23";
  src: url("/fonts/DubaiW23-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --wine: #451A23;
  --wine-deep: #35131a;
  --gold: #D5B887;
  --gold-deep: #735B37;
  --paper: #F5F1E9;
  --paper-light: #FBF9F4;
  --sand: #E8E0D3;
  --ink: #292321;
  --muted: #5C524B;
  --line: #d8cfc1;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "DM Sans", "Dubai W23", system-ui, -apple-system, sans-serif;
  --arabic: "Dubai W23", "DM Sans", system-ui, -apple-system, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); overflow-x: clip; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 3px;
}
[hidden] { display: none !important; }

[dir="rtl"] { font-family: var(--arabic); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; font-family: var(--arabic); }

.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

/* Header & Navigation */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 241, 233, 0.96);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
}
.brand img { display: block; height: 34px; width: auto; aspect-ratio: 152 / 36; }

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 6px;
  padding-block: 4px;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--wine);
  text-decoration: underline;
  font-weight: 600;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--wine);
  border-radius: 4px;
  background: var(--wine);
  color: var(--paper-light);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--wine-deep); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #b9aa98;
  border-radius: 4px;
  background: transparent;
  color: var(--wine);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lang-toggle:hover { background: var(--sand); }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #b9aa98;
  border-radius: 4px;
  background: var(--paper-light);
  color: var(--wine);
  font-size: .88rem;
  font-weight: 650;
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-light);
  box-shadow: 0 18px 40px rgba(41, 35, 33, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
}
.mobile-menu-panel a {
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 550;
  color: var(--ink);
}
.mobile-menu-panel a:hover,
.mobile-menu-panel a.is-active {
  background: var(--sand);
  color: var(--wine);
}
.mobile-menu-panel .mobile-cta {
  background: var(--wine);
  color: var(--paper-light);
  text-align: center;
  font-weight: 700;
}
.mobile-menu-panel .mobile-cta:hover { background: var(--wine-deep); color: var(--paper-light); }

/* Breadcrumbs */
.breadcrumbs {
  padding-top: 24px;
  font-size: .86rem;
  color: var(--muted);
}
.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--gold-deep);
}
.breadcrumbs a {
  text-decoration: none;
  color: var(--muted);
}
.breadcrumbs a:hover {
  color: var(--wine);
  text-decoration: underline;
}
.breadcrumbs [aria-current="page"] {
  color: var(--wine);
  font-weight: 600;
}

/* Home Hero & Sections (Preserves Kafi Editorial Design) */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(290px, .84fr);
  gap: clamp(40px, 8vw, 112px);
  align-items: center;
  padding-block: clamp(64px, 9vw, 120px) clamp(64px, 8vw, 108px);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset-block-start: 10%;
  inset-inline-end: -180px;
  width: 570px;
  height: 570px;
  border: 1px solid #d9cdb9;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 48px var(--paper), 0 0 0 49px #e1d8ca, 0 0 0 112px var(--paper), 0 0 0 113px #e5ddcf;
  opacity: .64;
}
[dir="rtl"] .hero::after { inset-inline-start: -180px; inset-inline-end: auto; }
.hero-copy, .hero-aside { position: relative; z-index: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .74rem;
  font-weight: 700;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold-deep); }
[dir="rtl"] .kicker { letter-spacing: 0; text-transform: none; font-size: .82rem; }

.page-home h1 {
  max-width: 760px;
  margin: 20px 0 22px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.6vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.09;
}
[dir="rtl"] .page-home h1 {
  font-family: var(--arabic);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
}

.lead {
  max-width: 630px;
  margin: 0;
  color: #514841;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.85;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid var(--wine);
  border-radius: 4px;
  background: var(--wine);
  color: var(--paper-light);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: background .18s ease, transform .18s ease;
}
.button:hover { background: var(--wine-deep); transform: translateY(-1px); }
.button.secondary {
  background: var(--paper-light);
  color: var(--wine);
  border-color: var(--gold-deep);
}
.button.secondary:hover { background: var(--sand); }
.button .arrow { font-size: 1.1rem; line-height: 1; }

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  color: var(--wine);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.text-link.outlined {
  border: 1px solid var(--gold-deep);
  border-radius: 4px;
  text-decoration: none;
}
.text-link.outlined:hover { background: var(--sand); }

.hero-aside {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line);
  background: #f9f6ef;
  box-shadow: 12px 14px 0 #eae2d6;
}
.aside-label {
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .7rem;
  font-weight: 700;
}
[dir="rtl"] .aside-label { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.hero-aside h2 {
  margin: 14px 0 22px;
  color: var(--wine);
  font: 400 1.48rem/1.38 var(--serif);
}
[dir="rtl"] .hero-aside h2 { font-family: var(--arabic); font-weight: 700; }

.asset-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.asset-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-top: 1px solid var(--line);
  color: #493f38;
  font-size: .91rem;
}
.asset-list li::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(56px, 8vw, 92px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(250px, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}
.section-head h2 {
  margin: 12px 0 0;
  color: var(--wine);
  font: 400 clamp(1.85rem, 3.6vw, 2.85rem)/1.18 var(--serif);
  letter-spacing: -.035em;
}
[dir="rtl"] .section-head h2 { font-family: var(--arabic); font-weight: 700; letter-spacing: 0; }
.section-head p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.capability { min-height: 165px; padding: 24px 22px 24px 0; }
.capability + .capability { padding-inline-start: 22px; border-inline-start: 1px solid var(--line); }
[dir="rtl"] .capability { padding: 24px 0 24px 22px; }
[dir="rtl"] .capability + .capability { padding-inline: 22px 0; }
.cap-no { color: var(--gold-deep); font: 500 .78rem var(--serif); }
.capability h3 { margin: 16px 0 8px; color: var(--wine); font-size: 1.04rem; }
.capability p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

.info-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.info-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-light);
}
.info-card h3 {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 1.08rem;
}
.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.75;
}
.info-card ul {
  margin: 12px 0 0;
  padding-inline-start: 18px;
  color: #4a403a;
  font-size: .91rem;
  line-height: 1.8;
}

.hub-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.hub-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-light);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.hub-link-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(69, 26, 35, 0.08);
}
.hub-link-card h3 {
  margin: 6px 0 0;
  color: var(--wine);
  font-size: 1.2rem;
}
.hub-link-card p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.7;
}
.hub-link-cta {
  color: var(--wine);
  font-weight: 700;
  font-size: .9rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.preview-card {
  padding: 24px;
  border: 1px solid #665557;
  border-radius: 12px;
  background: #211b1d;
  color: #f5f1e9;
  box-shadow: 10px 12px 0 #eae2d6;
}
.preview-value { margin: 16px 0; color: #d5b887; font-size: 1.6rem; font-weight: 700; }
.preview-chart { display: block; width: 100%; height: 104px; }
.preview-assets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.preview-assets span {
  padding: 7px 10px;
  border-radius: 6px;
  background: #302629;
  color: #e9dcc6;
  font-size: .78rem;
}

.privacy-band { background: var(--wine); color: var(--paper-light); }
.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-block: clamp(54px, 7.5vw, 84px);
}
.privacy-inner .kicker { color: var(--gold); }
.privacy-inner .kicker::before { background: var(--gold); }
.privacy-inner h2 {
  margin: 16px 0 0;
  max-width: 520px;
  font: 400 clamp(2rem, 3.8vw, 3.1rem)/1.18 var(--serif);
  letter-spacing: -.035em;
}
[dir="rtl"] .privacy-inner h2 { font-family: var(--arabic); font-weight: 700; letter-spacing: 0; }
.privacy-copy { color: #e8ded3; line-height: 1.85; }
.privacy-copy p { margin: 0 0 14px; }
.privacy-copy a { color: var(--gold); text-underline-offset: 4px; }

.disclosure { padding-block: 36px 44px; }
.disclosure-box,
.disclaimer-box {
  padding: 20px 24px;
  border-inline-start: 4px solid var(--gold-deep);
  border-radius: 6px;
  background: #ece5da;
}
.disclosure-box { display: grid; grid-template-columns: 190px 1fr; gap: 24px; }
.disclosure-box h2,
.disclaimer-box strong {
  display: block;
  margin: 0 0 6px;
  color: var(--wine);
  font-size: .98rem;
}
.disclosure-box p,
.disclaimer-box p {
  margin: 0;
  color: #4f463e;
  font-size: .92rem;
  line-height: 1.75;
}
.disclaimer-box { margin-top: 32px; }
.disclaimer-zakat {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(115, 91, 55, 0.25);
}

/* Article & Hub Layouts */
.article-shell {
  padding-block: 24px 68px;
  max-width: 860px;
}
.hub-shell {
  padding-block: 24px 68px;
}

.prose {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 4.5vw, 48px);
  box-shadow: 0 14px 36px rgba(69, 26, 35, 0.05);
}
.prose h1 {
  margin: 12px 0 18px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -.03em;
}
[dir="rtl"] .prose h1 { font-family: var(--arabic); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.prose h2 {
  margin: 2em 0 .65em;
  color: var(--wine);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  padding-top: 12px;
  border-top: 1px solid #ece4d8;
}
.prose h3 {
  margin: 1.5em 0 .5em;
  color: var(--wine);
  font-size: 1.12rem;
}
.prose p {
  margin: 0 0 1.15em;
  color: #362e2a;
  font-size: 1.01rem;
  line-height: 1.85;
}
.prose p.intro {
  font-size: 1.12rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5em;
}
.prose ul, .prose ol {
  margin: 0 0 1.3em;
  padding-inline-start: 1.4em;
  color: #362e2a;
  line-height: 1.85;
}
.prose li { margin-bottom: .45em; }
.prose a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--gold-deep); }
.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--sand);
  font-size: .88em;
}
.prose blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-inline-start: 3px solid var(--gold-deep);
  background: #f2ece2;
  border-radius: 4px;
}
.prose blockquote p { margin: 0; color: #4a403a; }

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.5em 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  background: #fff;
}
.prose th, .prose td {
  padding: 12px 14px;
  border-bottom: 1px solid #ece4d8;
  text-align: start;
  vertical-align: top;
}
.prose th {
  background: #f3ede3;
  color: var(--wine);
  font-weight: 700;
}

.article-figure {
  margin: 1.75em 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3ede3;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(69, 26, 35, 0.14);
}
.article-figure figcaption {
  margin-top: 10px;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
}
.article-meta a {
  color: var(--wine);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hub Card Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hub-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(69, 26, 35, 0.08);
}
.hub-card-tag {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: .06em;
}
[dir="rtl"] .hub-card-tag { letter-spacing: 0; text-transform: none; }
.hub-card h2 {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
  font-size: 1.15rem;
  color: var(--wine);
}
.hub-card p {
  margin: 0;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.65;
}
.hub-card-link {
  font-size: .88rem;
  font-weight: 700;
  color: var(--wine);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 16px 20px;
}
.faq-list summary {
  color: var(--wine);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
}
.faq-list p {
  margin: 12px 0 0;
  color: #4a403a;
  font-size: .96rem;
  line-height: 1.75;
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--wine);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c9beae;
  border-radius: 6px;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button {
  justify-self: start;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  background: var(--wine);
  color: var(--paper-light);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.contact-form button:hover { background: var(--wine-deep); }
.contact-form button:disabled { opacity: .65; cursor: wait; }
.contact-form select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c9beae;
  border-radius: 6px;
  background: var(--paper-light);
  color: var(--ink);
  font: inherit;
}
.contact-hp {
  position: absolute;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.contact-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.6;
}
.contact-status-info { background: #f2ece2; color: var(--ink); border: 1px solid var(--line); }
.contact-status-success { background: #ebf5ee; color: #174c2b; border: 1px solid #96c7a5; }
.contact-status-error { background: #fdf0f0; color: #7f1d1d; border: 1px solid #e5b3b3; }

/* Policy-gated AdSlot (reserved height for zero CLS, strictly off by default) */
.ad-slot {
  margin: 28px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3ede3;
  text-align: center;
  contain: layout style;
}
.ad-slot-label {
  display: block;
  margin-bottom: 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
[dir="rtl"] .ad-slot-label { letter-spacing: 0; text-transform: none; }
.ad-slot-frame { width: 100%; }

/* Related Links & App CTA */
.related-section {
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #efe9de;
}
.related-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.related-head h2 {
  margin: 0;
  color: var(--wine);
  font-size: 1.25rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-light);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.related-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}
.related-card strong { color: var(--wine); font-size: .96rem; line-height: 1.35; }
.related-card span { color: var(--muted); font-size: .84rem; line-height: 1.55; }

/* Unified Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #efe9de;
  padding-block: 48px 34px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.footer-col h3 {
  margin: 0 0 12px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: .06em;
}
[dir="rtl"] .footer-col h3 { letter-spacing: 0; text-transform: none; font-size: .92rem; }
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.footer-col a {
  font-size: .88rem;
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 4px;
}
.footer-col a:hover { color: var(--wine); text-decoration: underline; }
.footer-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-light);
  font-size: .84rem;
  color: var(--muted);
}
.footer-identity strong { color: var(--wine); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
}
.footer-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.footer-privacy-btn {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.footer-privacy-btn:hover { color: var(--gold-deep); }

/* Consent Banner (non-blocking bottom card, equal-weight buttons — zero CLS) */
.consent-banner {
  position: fixed;
  z-index: 40;
  inset-inline: 16px;
  bottom: 16px;
  max-width: 440px;
  margin-inline-start: auto;
  margin-inline-end: 0;
  padding: 18px;
  border: 1px solid var(--gold-deep);
  border-radius: 12px;
  background: #fffaf2;
  box-shadow: 0 14px 40px rgba(33, 27, 29, 0.22);
  font-size: .88rem;
  line-height: 1.6;
  contain: layout style paint;
}
.consent-title {
  display: block;
  margin-bottom: 6px;
  color: var(--wine);
  font-size: .96rem;
}
.consent-banner p { margin: 0 0 12px; color: var(--ink); }
.consent-banner a { color: var(--wine); font-weight: 700; }
.consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.consent-btn {
  min-height: 40px;
  padding: 8px 10px;
  border: 1.5px solid var(--wine);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--wine);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.consent-btn:hover { background: var(--sand); }
.consent-manage-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}
.consent-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: var(--ink);
  cursor: pointer;
}
.consent-toggle-row input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--wine);
  flex-shrink: 0;
}
.consent-toggle-row span { display: grid; gap: 2px; }
.consent-toggle-row strong { color: var(--wine); font-size: .85rem; }
.consent-toggle-row small { color: var(--muted); font-size: .78rem; line-height: 1.45; }
.consent-save-btn { width: 100%; }

/* Root Language Chooser (/) */
.page-chooser {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: var(--paper);
}
.chooser-wrap { width: min(1040px, 100%); }
.chooser-card {
  background: var(--paper-light);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(69, 26, 35, 0.08);
}
.chooser-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8f4ec;
}
.chooser-sub { margin: 0; color: var(--muted); font-size: .94rem; font-weight: 500; }
.chooser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.chooser-panel {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chooser-panel + .chooser-panel { border-inline-start: 1px solid var(--line); }
.chooser-panel h1,
.chooser-panel h2 {
  margin: 4px 0 0;
  color: var(--wine);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
}
.chooser-panel[dir="ltr"] h2 { font-family: var(--serif); font-weight: 400; }
.chooser-panel[dir="rtl"] h1 { font-family: var(--arabic); font-weight: 700; }
.chooser-panel p { margin: 0; color: var(--muted); line-height: 1.8; font-size: .98rem; }
.chooser-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.chooser-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eae2d6;
  font-size: .88rem;
}
.chooser-links a {
  color: var(--wine);
  text-decoration: none;
  font-weight: 550;
}
.chooser-links a:hover { text-decoration: underline; }
.chooser-footer {
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  background: #efe9de;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .84rem;
  color: var(--muted);
}
.chooser-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.chooser-footer-links a { text-decoration: none; color: var(--muted); }
.chooser-footer-links a:hover { color: var(--wine); text-decoration: underline; }

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .nav { display: none; }
  .mobile-menu { display: block; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 48px 60px; }
  .hero-aside { max-width: 580px; }
  .hero::after { inset-block-start: 40%; inset-inline-end: -260px; width: 460px; height: 460px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .capabilities { grid-template-columns: 1fr 1fr; }
  .capability:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .capability:nth-child(4) { border-top: 1px solid var(--line); }
  .info-columns { grid-template-columns: 1fr; }
  .hub-links-grid { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .privacy-inner { grid-template-columns: 1fr; gap: 28px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chooser-grid { grid-template-columns: 1fr; }
  .chooser-panel + .chooser-panel { border-inline-start: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .topbar { min-height: 66px; }
  .brand img { height: 30px; }
  .asset-list { grid-template-columns: 1fr; }
  .capabilities { grid-template-columns: 1fr; }
  .capability,
  .capability + .capability,
  [dir="rtl"] .capability,
  [dir="rtl"] .capability + .capability {
    padding: 20px 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    min-height: auto;
  }
  .capability:first-child { border-top: 0; }
  .disclosure-box { grid-template-columns: 1fr; gap: 10px; padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .chooser-header, .chooser-panel, .chooser-footer { padding: 22px 20px; }
  .related-section { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
