/* ============ Fonts (self-hosted, SIL Open Font License) ============ */
@font-face {
  font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/noto-sans-arabic-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/noto-sans-arabic-latin.woff2") format("woff2");
  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: "Noto Sans Hebrew"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/noto-sans-hebrew-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* ============ Tokens ============ */
:root {
  --gold: #c9a24a;          /* fills, from the logo */
  --gold-strong: #8a6a1f;   /* gold text on light backgrounds */
  --gold-soft: #f6efdd;
  --ink: #232323;
  --ink-2: #555;
  --line: #e6e1d6;
  --bg: #fffdf9;
  --bg-alt: #f7f4ee;
  --card: #fff;
  --wa: #25d366;
  --wa-ink: #0b3d1f;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(30, 25, 10, .08);
  --nav-h: 64px;
  --font: "Noto Sans Arabic", "Noto Sans Hebrew", system-ui, sans-serif;
  --font-brand: "Playfair Display", Georgia, serif;
}
html[lang="he"] { --font: "Noto Sans Hebrew", "Noto Sans Arabic", system-ui, sans-serif; }

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-strong); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 40px; height: 40px; color: var(--gold); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-text { font-family: var(--font-brand); font-weight: 600; letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Placeholder for details still to be filled in */
.todo {
  display: inline-block;
  padding: 0 .5em;
  border: 1.5px dashed #d08700;
  border-radius: 6px;
  background: #fff6dc;
  color: #7a4f00;
  font-size: .9em;
}
.todo::before { content: "⟨ "; }
.todo::after { content: " ⟩"; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.5em;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .95em; }
.btn-gold { background: var(--gold); color: #1f1a0e; }
.btn-gold:hover { background: #d8b45f; }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-wa { background: var(--wa); color: var(--wa-ink); width: 100%; }
.btn-wa:hover { background: #3ee07b; }
.link { font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  color: #fff;
  transition: background .25s, box-shadow .25s, color .25s;
}
.nav.scrolled, .nav:has(.nav-links.open) { background: rgba(255,253,249,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(6px); }
.nav-inner { max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.nav-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-size: 1.15em; margin-inline-end: auto; }
.nav-brand img { background: #fff; border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { color: inherit; text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.nav-links a:not(.btn):hover { background: rgba(127,127,127,.15); }
.nav-links .btn { margin-inline-start: 8px; }
.lang-btn {
  font: inherit; font-weight: 700; color: inherit; background: transparent;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 4px 14px; cursor: pointer;
}
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn .ic { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); color: var(--ink);
    padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin: 12px 0 0; }
}

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  color: #fff; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #4a4334 0%, #1d1b17 70%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.hero-video.on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.45) 60%, rgba(0,0,0,.65)); }
.hero-content { position: relative; padding: calc(var(--nav-h) + 24px) 16px 48px; max-width: 720px; }
.hero-logo { margin: 0 auto 16px; width: 120px; background: #fff; border-radius: 50%; padding: 6px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: .2em; }
.hero-tagline { font-size: clamp(1.2rem, 3.5vw, 1.6rem); font-weight: 400; margin-bottom: .3em; }
.hero-doctor { color: var(--gold); font-weight: 700; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Quick cards ============ */
.quick {
  position: relative; z-index: 2;
  max-width: 1180px; margin: -64px auto 0; padding: 0 16px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.quick-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 24px; text-align: center; border-top: 4px solid var(--line);
}
.quick-card-main { border-top-color: var(--gold); }
.quick-card .ic-lg { margin: 0 auto 10px; }
.quick-card h2 { font-size: 1.2rem; }
.quick-card p { color: var(--ink-2); }
@media (max-width: 800px) {
  .quick { grid-template-columns: 1fr; margin-top: -40px; }
}

/* ============ Sections ============ */
.section { max-width: 1180px; margin: 0 auto; padding: 88px 16px; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: 1148px; margin-inline: auto; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.3rem); position: relative; padding-bottom: .4em; margin-bottom: .9em; }
.section-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; }
.section-title.center { text-align: center; }
.section-title.center::after { inset-inline-start: 50%; transform: translateX(50%); }
html[dir="ltr"] .section-title.center::after { transform: translateX(-50%); }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.about-img { background: linear-gradient(180deg, var(--gold-soft), transparent); border-radius: 200px 200px var(--radius) var(--radius); padding: 24px 24px 0; max-width: 420px; justify-self: center; }
.about-doctor { font-size: 1.25rem; font-weight: 700; color: var(--gold-strong); }
.about-text p { color: var(--ink-2); font-size: 1.05rem; }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-img { max-width: 280px; }
}

/* Services */
.services { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.service { background: var(--card); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service .ic-lg { margin-bottom: 12px; }
.service h3 { font-size: 1.15rem; }
.service p { color: var(--ink-2); margin: 0; }

/* Booking */
.book-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: 48px; align-items: start; }
.book-head p { color: var(--ink-2); }
.wa-direct { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #0b7a3b; text-decoration: none; direction: ltr; }
.book-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px;
}
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #8f8676; border-radius: 10px; padding: 10px 12px; min-height: 48px; width: 100%;
}
.field input[type="tel"] { text-align: right; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,162,74,.3); }
.field select:disabled { background: #f3f1ec; color: #888; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .85rem; min-height: 1.4em; margin: 2px 0 6px; }
.form-note { margin-top: 14px; }
.form-note:empty { display: none; }
.form-note-ok { color: #11663a; font-weight: 700; }
.form-note-warn { background: #fff6dc; border: 1.5px dashed #d08700; border-radius: 10px; padding: 12px 14px; color: #5d3d00; }
.form-note-warn p { margin: 0 0 8px; font-weight: 700; }
.form-note-warn pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: .95rem; }
@media (max-width: 800px) {
  .book-wrap { grid-template-columns: 1fr; gap: 24px; }
  .book-form { grid-template-columns: 1fr; padding: 20px; }
}

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--gold-strong); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details[open] summary { color: var(--gold-strong); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: stretch; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list li > .ic { width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.contact-list h3 { font-size: 1rem; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.contact-list p { margin: 0; color: var(--ink-2); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.nav-links-inline { font-size: .95rem; margin-top: 4px !important; }
.tag { font-size: .75rem; font-weight: 700; background: #fff6dc; color: #7a4f00; border: 1px dashed #d08700; border-radius: 999px; padding: 0 8px; }
.hours { border-collapse: collapse; color: var(--ink-2); font-size: .95rem; }
.hours th { text-align: start; font-weight: 400; padding: 2px 0; padding-inline-end: 24px; }
.hours td { padding: 2px 0; text-align: start; }
.hours td[dir="ltr"] { text-align: right; }
.hours .closed { color: #6b6b6b; }
.hours .today { color: var(--ink); font-weight: 700; }
.hours .today th { font-weight: 700; }
.map { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 300px; }
}

/* Footer */
.footer { background: #1d1b17; color: #d9d4c7; padding: 40px 16px 28px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; color: #fff; }
.footer-brand img { background: #fff; border-radius: 50%; }
.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social a { color: #fff; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.footer-social a:hover { background: var(--gold); color: #1f1a0e; border-color: var(--gold); }
.copyright { width: 100%; margin: 12px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: #a9a396; text-align: center; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: var(--wa-ink); box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float .ic { width: 30px; height: 30px; }

/* Hero video pause/play (WCAG 2.2.2) */
.video-btn {
  position: absolute; bottom: 84px; inset-inline-end: 20px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,0,0,.55); color: #fff; border: 1.5px solid rgba(255,255,255,.7); cursor: pointer;
}
.video-btn:hover { background: rgba(0,0,0,.75); }
.video-btn[hidden] { display: none; }

.noscript { margin: 0; padding: 12px 16px; background: #fff6dc; color: #5d3d00; text-align: center; font-weight: 700; padding-top: calc(var(--nav-h) + 12px); }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #e8e2d3; text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--gold); }

/* ============ Secondary pages (accessibility, privacy, 404) ============ */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.page-head {
  display: flex; align-items: center; gap: 12px;
  max-width: 860px; width: 100%; margin: 0 auto; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.page-head .lang-btn { color: var(--ink); }
.legal { flex: 1; max-width: 860px; width: 100%; margin: 0 auto; padding: 40px 16px 64px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: #3d3d3d; }
.legal ul { padding-inline-start: 1.3em; }
.legal li { margin-bottom: .4em; }
.contact-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.contact-dl dt { font-weight: 700; }
.contact-dl dd { margin: 0; }
.updated { margin-top: 2.5em; color: var(--ink-2); font-size: .95rem; }
.footer-slim { padding: 20px 16px; }
.footer-slim .copyright { border: 0; margin: 0; padding: 0; }
.not-found { text-align: center; padding-top: 72px; }
.big-404 { font-family: var(--font-brand); font-size: 5rem; line-height: 1; margin-bottom: .2em; }
