/* Sanad Coaching — one stylesheet for all five languages.
   Brand: sage #62786A and ink #1F2A24 from the logo package, mint #E9EFE9 from the favicon. */
:root {
  --sage: #62786A;
  --sage-deep: #4E6155;
  --ink: #1F2A24;
  --ink-soft: #46524B;
  --mint: #E9EFE9;
  --mint-2: #DCE5DD;
  --cream: #F7F6F2;
  --white: #FFFFFF;
  --line: #D9DED8;
  --wa: #25D366;
  --wa-dark: #128C4B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 42, 36, .06), 0 8px 28px rgba(31, 42, 36, .07);
  --wrap: 1160px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: var(--sans);
  --head: var(--serif);
  --fs-body: 1.0625rem;
  --lh: 1.65;
}
html[lang="ar"] { --body: "IBM Plex Sans Arabic", var(--sans); --head: "IBM Plex Sans Arabic", var(--sans); --fs-body: 1.125rem; --lh: 1.85; }
html[lang="fa"] { --body: "Vazirmatn", var(--sans); --head: "Vazirmatn", var(--sans); --fs-body: 1.0625rem; --lh: 1.9; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--ink); font: 400 var(--fs-body)/var(--lh) var(--body); }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--sage-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; line-height: 1.45; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--body); letter-spacing: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
mark.todo { background: #FFE9A8; color: #5A4200; padding: 0 4px; border-radius: 4px; }
.small { font-size: .9rem; color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font: 600 1.0625rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-wa { background: var(--wa); color: #0B2E19; }
.btn-wa:hover { background: #1EBE5B; color: #0B2E19; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mint); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cream); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { flex: none; display: block; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav > a, .nav summary, .nav .dd > button { font: 600 1rem/1 var(--body); color: var(--ink); text-decoration: none; padding: 12px 12px; border-radius: 10px; cursor: pointer; background: none; border: 0; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .nav summary:hover { background: var(--mint); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--sage-deep); }
.nav summary { list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.chev { width: 14px; height: 14px; transition: transform .2s; }
details[open] > summary .chev { transform: rotate(180deg); }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 8px; display: grid; }
.dd-panel a { padding: 11px 14px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.dd-panel a:hover, .dd-panel a[aria-current="page"] { background: var(--mint); }
.lang .dd-panel { min-width: 190px; inset-inline-start: auto; inset-inline-end: 0; }
.lang summary svg.globe { width: 19px; height: 19px; }
.lang .dd-panel a[lang="ar"], .lang .dd-panel a[lang="fa"] { font-family: "IBM Plex Sans Arabic", "Vazirmatn", var(--sans); }
.nav > a.btn { min-height: 46px; padding: 10px 22px; margin-inline-start: 8px; font-size: 1rem; background: var(--ink); color: #fff; border-radius: 999px; }
.nav > a.btn:hover, .nav > a.btn[aria-current="page"] { background: var(--sage-deep); color: #fff; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 0; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; margin: auto; }
.menu-btn:hover { background: var(--mint); }

@media (max-width: 1060px) {
  .logo img { height: 42px; }
  .menu-btn { display: grid; }
  .nav { display: none; position: fixed; inset: 76px 0 0 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 120px; overflow-y: auto; border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  body.menu-open { overflow: hidden; }
  .nav > a, .nav summary { padding: 16px 8px; font-size: 1.125rem; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; justify-content: space-between; }
  .nav .lang { order: -1; }
  .dd-panel { position: static; box-shadow: none; border: 0; background: transparent; padding: 4px 0 8px; min-width: 0; }
  .dd-panel a { padding: 12px 16px; }
  .lang .dd-panel { display: flex; flex-wrap: wrap; gap: 6px; }
  .lang .dd-panel a { border: 1px solid var(--line); background: #fff; padding: 10px 16px; border-radius: 999px; }
  .nav > a.btn { margin: 20px 0 0; min-height: 54px; justify-content: center; border-bottom: 0; border-radius: 999px; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-white { background: var(--white); }
.section-mint { background: var(--mint); }
.section-ink { background: var(--ink); color: #E7ECE8; }
.section-ink h2 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .875rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 16px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.lead { font-size: 1.1875rem; color: var(--ink-soft); }
html[lang="ar"] .lead { font-size: 1.25rem; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero.plain .hero-grid { grid-template-columns: 1fr; max-width: 860px; }
.hero h1 .accent { color: var(--sage-deep); }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-weight: 600; font-size: .98rem; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--sage); flex: none; }
.media { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--mint); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.art { display: grid; place-items: center; background: linear-gradient(150deg, var(--mint) 0%, var(--mint-2) 100%); }
.art .emblem { width: 52%; max-width: 280px; height: auto; aspect-ratio: 1; object-fit: contain; }
.art::before, .art::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid rgba(98, 120, 106, .28); }
.art::before { width: 82%; aspect-ratio: 1; }
.art::after { width: 104%; aspect-ratio: 1; border-style: dashed; border-color: rgba(98, 120, 106, .18); }
.media-tag { position: absolute; inset-inline-start: 18px; bottom: 18px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; font-size: .95rem; line-height: 1.35; max-width: calc(100% - 36px); }
.media-tag svg { width: 28px; height: 28px; color: var(--sage); flex: none; }
.media-tag strong { display: block; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 26px; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.section-white .card { background: var(--cream); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.card .icon { width: 54px; height: 54px; border-radius: 16px; background: var(--mint); color: var(--sage-deep); display: grid; place-items: center; margin-bottom: 20px; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); flex: 1; }
.card .more { font-weight: 600; color: var(--sage-deep); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-align: start; }
.card .more::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .more svg { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(3px); }
html[dir="rtl"] .card .more svg, html[dir="rtl"] .arrow { transform: scaleX(-1); }
html[dir="rtl"] .card:hover .more svg { transform: scaleX(-1) translateX(3px); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 30px 26px; position: relative; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.25rem/1 var(--body); margin-bottom: 18px; }
html[lang="fa"] .steps li::before { content: counter(step, persian); }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Why */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.ticks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.ticks .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--sage-deep); display: grid; place-items: center; margin-top: 1px; }
.section-mint .ticks .tick { background: #fff; }
.ticks .tick svg { width: 16px; height: 16px; }
.ticks strong { color: var(--ink); }
.ticks span { color: var(--ink-soft); }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 880px; }
.faq details { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.section-white .faq details { background: var(--cream); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font: 600 1.125rem/1.4 var(--body); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; transition: transform .2s; }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details[open] .pm { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 20px; color: var(--ink-soft); }
.faq .answer p:last-child { margin: 0; }

/* CTA band */
.cta { text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.cta p { color: #C9D3CC; font-size: 1.1875rem; }
.cta .btns { justify-content: center; }
.cta .hint { margin-top: 18px; font-size: .95rem; color: #A9B6AD; }

/* Inner pages */
.page-hero { background: var(--mint); padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.page-hero .hero-grid { grid-template-columns: 1.15fr .85fr; }
.page-hero.plain .hero-grid { grid-template-columns: 1fr; max-width: 820px; }
.page-hero .media { aspect-ratio: 4 / 3; background: #F3F6F2; }
.page-hero .art { background: linear-gradient(150deg, #F5F8F4, #E4EBE4); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul.ticks { margin: 0 0 1.2em; }
.prose ol.numbered { list-style: none; counter-reset: n; padding: 0; margin: 0 0 1.2em; display: grid; gap: 14px; }
.prose ol.numbered li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.prose ol.numbered li::before { content: counter(n); width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; }
html[lang="fa"] .prose ol.numbered li::before { content: counter(n, persian); }
.note { background: #fff; border-inline-start: 4px solid var(--sage); border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.6em 0; }
.note strong { display: block; margin-bottom: 2px; }
.note p { margin: 0; }
.inline-link { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.inline-link svg { width: 18px; height: 18px; }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h2, .panel h3 { font-size: 1.25rem; font-family: var(--body); margin-bottom: 14px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.facts li:first-child { padding-top: 0; }
.facts b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sage-deep); font-weight: 700; margin-bottom: 2px; }
html[dir="rtl"] .facts b { letter-spacing: 0; font-size: .875rem; text-transform: none; }
.panel-ink { background: var(--ink); color: #DDE4DF; border: 0; }
.panel-ink h2, .panel-ink h3 { color: #fff; }
.panel-ink .btn { width: 100%; }
.panel-ink .btn + .btn { margin-top: 10px; }
.panel-ink p { font-size: .98rem; }

/* AVGS modules */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; }
.module .weeks { align-self: flex-start; background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.module p { color: var(--ink-soft); flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
.chips li { background: var(--mint); border-radius: 8px; padding: 5px 10px; font-size: .875rem; color: var(--ink); }

/* Related */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.channels { display: grid; gap: 12px; }
.channel { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
a.channel:hover { border-color: var(--sage); box-shadow: var(--shadow); color: var(--ink); }
.channel .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--mint); color: var(--sage-deep); display: grid; place-items: center; }
.channel .icon svg { width: 26px; height: 26px; }
.channel.wa .icon { background: var(--wa); color: #fff; }
.channel small { display: block; color: var(--ink-soft); font-size: .9rem; }
.channel strong { font-size: 1.1rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .95rem; color: var(--ink-soft); }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap; opacity: 0; pointer-events: none; }
.req { color: #B3261E; font-weight: 700; }
.opt { font-weight: 400; color: var(--ink-soft); }
.req-note { margin: 0 0 4px; }
.status { border-radius: 12px; padding: 14px 18px; font-weight: 600; }
.status.ok { background: #E3F4E8; color: #14532D; }
.status.err { background: #FDECEC; color: #7F1D1D; }
.map { margin-top: 56px; border-radius: var(--radius); overflow: hidden; background: var(--mint); min-height: 340px; display: grid; place-items: center; text-align: center; padding: 28px; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; }
.map.loaded { padding: 0; display: block; }
.map p { max-width: 440px; color: var(--ink-soft); margin: 14px auto; }

/* Legal */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; font-family: var(--body); margin-top: 1.8em; }
.legal-note { background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 28px; border-inline-start: 4px solid var(--sage); }
.legal-body { direction: ltr; text-align: left; font-family: var(--sans); }

/* Footer */
.site-footer { background: var(--ink); color: #C3CDC6; padding: 72px 0 0; font-size: .98rem; }
.site-footer a { color: #E7ECE8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 92px; width: auto; margin-bottom: 18px; }
.foot-brand p { max-width: 320px; }
.site-footer h2 { color: #fff; font: 700 .875rem/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
html[dir="rtl"] .site-footer h2 { letter-spacing: 0; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-bottom { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0 96px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .9rem; color: #97A69C; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* WhatsApp float (roadmap § 9) */
.wa-float { position: fixed; bottom: 20px; right: 20px; z-index: 60; display: flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; border-radius: 999px; padding: 12px 18px 12px 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); font: 600 15px/1 var(--body); text-decoration: none; animation: wa-pulse 2.5s infinite; }
.wa-float:hover { background: #1EBE5B; color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
[dir="rtl"] .wa-float { right: auto; left: 20px; padding: 12px 14px 12px 18px; }
@keyframes wa-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); } }

/* Responsive */
@media (max-width: 1060px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .page-hero .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .steps, .modules, .related { grid-template-columns: 1fr; }
  .hero .media { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .btns .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .wa-label { display: none; }
  .wa-float, [dir="rtl"] .wa-float { padding: 14px; bottom: 16px; }
  body { padding-bottom: 76px; } /* keeps the float from covering the last buttons */
  .header-in { min-height: 68px; }
  .nav { inset: 68px 0 0 0; }
  .section-head { margin-bottom: 32px; }
}

/* Cookie consent — same look and behaviour as the other Sanad sites (banner + settings dialog). */
.consent h2 { font-family: var(--head); color: var(--ink); margin: 0; }
.consent-banner { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 70; padding: 18px; border-radius: var(--radius); background: var(--white); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(31, 42, 36, .22); }
.consent-banner[hidden] { display: none; }
.consent-banner h2 { font-size: 1.1rem; line-height: 1.3; }
.consent-banner p { margin: 6px 0 0; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.consent .btn { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.consent .text-btn { display: block; width: 100%; min-height: 44px; margin-top: 4px; background: none; border: 0; font: 600 .95rem/1.2 var(--body); color: var(--ink-soft); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.consent dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(31, 42, 36, .28); }
.consent dialog::backdrop { background: rgba(31, 42, 36, .45); }
.consent-panel { position: relative; padding: 28px 24px 24px; }
.consent-panel h2 { font-size: 1.35rem; line-height: 1.25; padding-inline-end: 44px; }
.consent-panel .sub { margin: 10px 0 0; color: var(--ink-soft); font-size: .95rem; }
.consent .x { position: absolute; top: 12px; inset-inline-end: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; font-size: 26px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.consent .x:hover { background: var(--mint); }
.consent .rows { margin-top: 20px; border-top: 1px solid var(--line); }
.consent .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.consent .txt { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.consent .txt strong { font-size: 1rem; color: var(--ink); }
.consent .row input { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .2s; }
.consent .row input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(31, 42, 36, .25); transition: transform .2s; }
.consent .row input:checked { background: var(--sage); }
.consent .row input:checked::after { transform: translateX(18px); }
[dir="rtl"] .consent .row input:checked::after { transform: translateX(-18px); }
.consent .row input:disabled { cursor: default; opacity: .8; }
.consent .row input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.consent .note { margin: 14px 0 0; font-size: .9rem; }
.consent .actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #E7ECE8; cursor: pointer; text-align: start; }
.link-btn:hover { color: #fff; text-decoration: underline; }
@media (min-width: 640px) { .consent-banner { inset-inline: 20px auto; bottom: 20px; max-width: 26rem; } }
/* on phones the banner sits above the floating WhatsApp button */
@media (max-width: 639px) { .consent-banner { bottom: 86px; } }
