:root {
  --navy: #16245c;
  --navy-dark: #0b1638;
  --red: #c41e2a;
  --red-dark: #9c1722;
  --white: #ffffff;
  --bg-light: #f6f7fb;
  --gray: #5b6478;
  --border: #e3e6ee;
  --shadow: 0 10px 30px rgba(11, 22, 56, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 700;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}
html[dir="rtl"] .skip-link {
  left: auto;
  right: -9999px;
  border-radius: 0 0 0 8px;
}
html[dir="rtl"] .skip-link:focus {
  right: 0;
}

body {
  font-family: 'Inter', 'Arial', sans-serif;
  color: var(--navy-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[lang="he"] body, html[dir="rtl"] body {
  font-family: 'Rubik', 'Arial', sans-serif;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Arial', sans-serif;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: 'Rubik', 'Arial', sans-serif;
}

p { margin: 0 0 16px; color: var(--gray); }
a { color: var(--red); text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(196,30,42,0.35); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 56px; width: 344px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--red); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
}
.lang-switch a { padding: 6px 12px; color: var(--gray); }
.lang-switch a.active { background: var(--navy); color: var(--white); }

.phone-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
  white-space: nowrap;
}
.phone-pill svg { width: 16px; height: 16px; fill: var(--red); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: var(--red);
  opacity: .15;
  border-radius: 50%;
}
html[dir="rtl"] .hero::after { right: auto; left: -60px; }
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 86px 24px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196,30,42,0.18);
  border: 1px solid rgba(196,30,42,0.5);
  color: #ffd9dc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 { color: var(--white); font-size: 42px; margin-bottom: 18px; }
.hero p.lead { color: #c9d0e8; font-size: 18px; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-hours {
  margin-top: 36px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-hours .item { font-size: 14px; color: #c9d0e8; }
.hero-hours .item strong { display: block; color: var(--white); font-size: 16px; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  color: var(--navy-dark);
}
.hero-card h2 { margin-bottom: 14px; }
.hero-card ul { margin: 0; padding: 0; list-style: none; }
.hero-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--gray);
}
.hero-card li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}
.bg-light { background: var(--bg-light); }

/* ---------- Service / Blog cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,22,56,0.14); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 26px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; flex-grow: 1; }
.card .card-link { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }

.blog-card { display: flex; flex-direction: column; }
.blog-card .meta { font-size: 13px; color: var(--red); font-weight: 700; margin-bottom: 8px; }
.blog-card h3 { font-size: 18px; }

/* ---------- About / Doctor ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.doctor-photo {
  background: linear-gradient(160deg, var(--navy), var(--navy-dark));
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 70px;
}
.credentials { list-style: none; margin: 22px 0 0; padding: 0; }
.credentials li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 15px;
}
.credentials li span.dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 9px;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.testimonial .stars { color: var(--red); font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p { color: var(--navy-dark); font-size: 15.5px; font-style: italic; }
.testimonial .who { font-weight: 700; color: var(--navy); font-style: normal; margin-top: 12px; font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--red);
  color: var(--white);
  text-align: center;
  border-radius: var(--radius);
  padding: 56px 32px;
}
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: #ffe1e3; margin-bottom: 26px; }

/* ---------- Hours & Location ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.hours-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours-table td { padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 15px; color: var(--navy-dark); }
.hours-table td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
html[dir="rtl"] .hours-table td:last-child { text-align: left; }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 280px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #aab3d1;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-grid h3 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-grid a { color: #aab3d1; }
.footer-grid a:hover { color: var(--white); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-logo-badge {
  display: inline-block;
  background: var(--white);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.footer-logo-badge img { height: 36px; width: 221px; display: block; }

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: var(--shadow);
}
.trust-badge img { height: 34px; width: auto; }
.trust-badge span { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #7c87ad;
}

/* ---------- Page header (services/blog/post) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #c9d0e8; max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #aab3d1; margin-bottom: 14px; }
.breadcrumb a { color: #c9d0e8; }

/* ---------- Single post / service ---------- */
.post-wrap { max-width: 760px; margin: 0 auto; }
.post-meta { font-size: 13px; color: var(--red); font-weight: 700; margin-bottom: 12px; }
#post-body { min-height: 1400px; }
#service-body { min-height: 500px; }
.post-body h2 { font-size: 22px; margin-top: 32px; }
.post-body h3 { font-size: 18px; margin-top: 24px; }
.post-body p { font-size: 16px; color: var(--navy-dark); }
.post-body ul { color: var(--navy-dark); padding-inline-start: 22px; }
.post-body li { margin-bottom: 8px; }
.post-faq h3 { font-size: 17px; margin-top: 22px; margin-bottom: 6px; }
.post-author { font-size: 14px; color: #5a6489; margin-top: -4px; }
.post-toc { background: #f4f6fb; border: 1px solid #e3e7f3; border-radius: 12px; padding: 18px 22px; margin: 24px 0; }
.post-toc strong { display: block; margin-bottom: 8px; color: var(--navy); }
.post-toc ul { margin: 0; padding-inline-start: 18px; }
.post-toc li { margin-bottom: 6px; }
.post-img { width: 100%; height: auto; border-radius: 14px; margin: 24px 0 6px; display: block; }
.post-img-credit { font-size: 12px; color: var(--gray); margin: 0 0 24px; }
.post-img-credit a { color: var(--gray); text-decoration: underline; }
.back-to-top { text-align: center; margin-top: 32px; }
.back-to-top a { font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; margin-bottom: 28px; }

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  background: #25D366;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 200;
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; }
  .about-grid { grid-template-columns: 1fr; }
  .doctor-photo { max-width: 280px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .header-inner { flex-wrap: wrap; padding: 12px 18px; gap: 10px; }
  .logo-link { width: 100%; justify-content: center; order: 0; }
  .logo-link img { height: 52px; width: 320px; }
  .header-actions { width: 100%; justify-content: space-between; order: 1; }
  .header-actions .phone-pill-text { display: none; }
  .main-nav { display: none; width: 100%; order: 2; }
  .main-nav.nav-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }
  .main-nav.nav-open a { padding: 12px 4px; text-align: center; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
}
