@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
  --ink: #20211e;
  --muted: #686d64;
  --paper: #f8f5ee;
  --surface: #fffdf8;
  --stone: #ded8ca;
  --line: rgba(32, 33, 30, 0.12);
  --sage: #768071;
  --moss: #354139;
  --warm: #b49a75;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Geist, "Avenir Next", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", Geist, ui-sans-serif, system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(180, 154, 117, 0.55); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-180%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 245, 238, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
}
.brand span {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}
.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}
.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid transparent;
}
.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--ink);
  border-color: var(--warm);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.book-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.84rem;
  font-weight: 700;
}
.language-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.language-toggle:hover,
.book-link:hover {
  border-color: var(--warm);
}
.mobile-language {
  width: 100%;
  justify-content: center;
}
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}
.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 17px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
  content: "";
}
.menu-button span { margin-block: 5px; }

.mobile-nav {
  position: fixed;
  inset: 72px 0 auto;
  z-index: 25;
  display: none;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px;
}
.mobile-nav.open { display: grid; }
.mobile-nav a:not(.button) {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--moss);
  border-radius: 999px;
  background: var(--moss);
  color: white;
  padding: 0 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button.light {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--surface);
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 0.84rem;
  font-weight: 700;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: break-word;
}
h1 {
  max-width: 780px;
  font-size: clamp(2.2rem, 4.4vw, 4.35rem);
  font-weight: 550;
}
h2 {
  max-width: 700px;
  font-size: clamp(1.68rem, 3vw, 3rem);
  font-weight: 550;
}
h3 {
  font-size: 1.08rem;
  font-weight: 650;
}
p { color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(56px, 8vw, 112px) clamp(18px, 4vw, 48px);
}
.hero-copy p:not(.kicker) {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}
.hero-image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--stone);
}
.hero-image img {
  aspect-ratio: 1.08 / 1;
  object-fit: cover;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.48);
}
.trust-strip div {
  min-height: 128px;
  border-right: 1px solid var(--line);
  padding: clamp(22px, 4vw, 38px);
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
}
.trust-strip span { color: var(--muted); }

.page-lead {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 58px) clamp(18px, 4vw, 48px) clamp(10px, 2vw, 20px);
}
.page-lead h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(1.95rem, 3.4vw, 3.2rem);
}
.page-lead p:not(.kicker) {
  max-width: 640px;
  font-size: 1.04rem;
}

.section,
.image-text,
.result-feature,
.result-case,
.booking-layout,
.contact-panel {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 48px);
}
.page-lead + .section,
.page-lead + .image-text,
.page-lead + .result-case,
.page-lead + .booking-layout,
.page-lead + .contact-panel {
  padding-top: clamp(18px, 3vw, 34px);
}
.section.tight { padding-top: clamp(28px, 5vw, 56px); }
.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.text-link {
  display: inline-flex;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  color: var(--ink);
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quiet-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}
.quiet-card p { margin-bottom: 20px; }
.quiet-card a,
.doctor-item span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.doctor-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.doctor-card img {
  aspect-ratio: 1 / 1.22;
  object-fit: cover;
  object-position: center top;
}

.doctor-card div {
  padding: 22px;
}

.doctor-card p {
  margin-bottom: 8px;
}

.doctor-card span {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.image-text,
.result-feature,
.result-case,
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: center;
}
.image-text.reverse img { order: 2; }
.image-text img,
.result-feature img,
.result-case img,
.booking-layout img {
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
  background: var(--stone);
}
.result-feature {
  background: #eeebe3;
}
.result-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.result-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.result-tile img {
  aspect-ratio: 1.1 / 0.86;
  object-fit: cover;
}
.result-tile div {
  padding: 18px;
}
.result-tile h3 {
  margin-bottom: 0;
}
.result-case img {
  aspect-ratio: 1.45 / 1;
}

.result-case + .result-case {
  padding-top: 0;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--ink);
  font-weight: 600;
}

.case-notes {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}
.case-notes div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.case-notes dt {
  color: var(--ink);
  font-weight: 700;
}
.case-notes dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}
.contact-links {
  display: grid;
  gap: 12px;
}
.contact-links a:not(.button) {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 600;
}

.booking-layout {
  align-items: start;
}
.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.booking-form label {
  display: grid;
  gap: 8px;
}
.booking-form span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 14px;
}
.booking-form .full,
.booking-form button,
.form-note { grid-column: 1 / -1; }
.form-note {
  margin: 0;
  border-radius: 8px;
  background: #e9eee5;
  color: var(--ink);
  padding: 14px;
}

.consult-cta {
  margin: clamp(18px, 4vw, 48px);
  border-radius: 8px;
  background: var(--moss);
  color: white;
  padding: clamp(34px, 5vw, 58px);
}
.consult-cta h2,
.consult-cta .kicker { color: white; }
.consult-cta h2 { margin-bottom: 20px; }

.footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  background: #20211e;
  color: white;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 4vw, 48px) 94px;
}
.footer p,
.footer a,
.footer span,
.footer small { color: rgba(255, 255, 255, 0.68); }
.footer a,
.footer span { display: block; margin-bottom: 8px; }
.footer-brand span { color: white; }

.mobile-cta { display: none; }

html[dir="rtl"] .desktop-nav a,
html[dir="rtl"] .button,
html[dir="rtl"] .book-link,
html[dir="rtl"] .language-toggle {
  letter-spacing: 0;
}

html[dir="rtl"] .case-notes dd {
  margin-right: 0;
}

html[dir="rtl"] .page-lead,
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .image-text div,
html[dir="rtl"] .result-feature > div,
html[dir="rtl"] .result-case > div,
html[dir="rtl"] .contact-panel,
html[dir="rtl"] .booking-form,
html[dir="rtl"] .quiet-card,
html[dir="rtl"] .doctor-card div,
html[dir="rtl"] .footer {
  text-align: right;
}

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  .hero,
  .image-text,
  .result-feature,
  .result-case,
  .booking-layout,
  .contact-panel,
  .footer {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .hero-image img {
    aspect-ratio: 1.25 / 1;
  }
  .image-text.reverse img { order: 0; }
  .card-grid,
  .card-grid.two,
  .card-grid.three,
  .doctor-grid,
  .result-preview-grid,
  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  body { padding-bottom: 72px; }
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }
  html[dir="rtl"] .site-header,
  html[dir="rtl"] .mobile-cta {
    direction: ltr;
  }
  html[dir="rtl"] .site-header .brand,
  html[dir="rtl"] .mobile-cta a {
    direction: rtl;
  }
  .brand small,
  .book-link,
  .header-actions > .language-toggle { display: none; }
  .mobile-nav { inset-block-start: 66px; }
  h1 { font-size: clamp(2rem, 8.6vw, 2.68rem); line-height: 1.14; }
  h2 { font-size: clamp(1.65rem, 8vw, 2.35rem); }
  html[dir="rtl"] h1 { font-size: clamp(1.82rem, 7.4vw, 2.24rem); line-height: 1.22; }
  html[dir="rtl"] h2 { font-size: clamp(1.5rem, 7vw, 2.05rem); line-height: 1.26; }
  .hero,
  .section,
  .image-text,
  .result-feature,
  .result-case,
  .booking-layout,
  .contact-panel {
    padding-inline: 16px;
  }
  .hero {
    display: block;
    gap: 28px;
    padding-top: 40px;
  }
  .hero-copy,
  .hero-image {
    width: 100%;
    max-width: min(358px, calc(100vw - 32px));
  }
  html[dir="rtl"] .hero-copy,
  html[dir="rtl"] .hero-image {
    margin-inline: auto 0;
  }
  .hero-copy {
    margin-bottom: 28px;
  }
  .button-row,
  .booking-form,
  .card-grid,
  .card-grid.two,
  .card-grid.three,
  .doctor-grid,
  .result-preview-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }
  .button-row { display: grid; }
  .button { width: 100%; }
  .trust-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .quiet-card {
    min-height: auto;
    padding: 22px;
  }
  .hero-image img,
  .image-text img,
  .result-feature img,
  .result-case img,
  .booking-layout img {
    aspect-ratio: 1 / 0.92;
  }
  .section-top {
    align-items: flex-start;
    flex-direction: column;
  }
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 100vw;
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 8px;
  }
  .mobile-cta a {
    display: flex;
    min-width: 0;
    width: 100%;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
