/* Shared clinic palette, typography and service grouping. */
:root {
  --navy: #303733;
  --navy-deep: #29322d;
  --teal: #267e5b;
  --teal-dark: #1d684b;
  --cream: #f7faf8;
  --mist: #edf6f0;
  --ink: #353c37;
  --muted: #606963;
  --gold: #83b69a;
  --white: #fff;
  --line: #e1e9e3;
  --shadow: 0 8px 26px rgba(42, 64, 50, .07);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --container: min(1100px, calc(100% - 48px));
}

body { background: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.75; }
html[lang="ar"] body { font-family: Tahoma, Arial, sans-serif; font-size: 17px; line-height: 1.9; }
h1, h2, h3, h4 { margin-top: 0; font-weight: 600; letter-spacing: 0; }
[id] { scroll-margin-top: 100px; }
section { padding: 76px 0; }
.topbar { background: #f1f7f3; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .82rem; }
.topbar-inner { min-height: 36px; }
.top-item svg { color: var(--teal); }
.language-switch { border-color: #d8e5dc; background: #fff; }
.language-switch button { min-width: 38px; min-height: 28px; color: var(--muted); font-weight: 500; font-size: .8rem; }
.language-switch button.active { background: var(--teal); color: #fff; }
.site-header { background: rgba(255,255,255,.97); border-bottom-color: var(--line); backdrop-filter: blur(8px); }
.site-header.scrolled { box-shadow: 0 2px 12px rgba(42,64,50,.04); }
.nav-wrap { min-height: 80px; gap: 20px; }
.brand { min-width: 0; gap: 10px; }
.brand-mark { width: 50px; height: 50px; }
.brand-title { max-width: 245px; color: var(--navy); font-weight: 600; font-size: .93rem; line-height: 1.45; }
.nav-links { gap: 22px; }
.nav-links a { color: #515b54; font-weight: 400; font-size: .9rem; }
.nav-links a:hover { color: var(--teal); }
.btn { min-height: 46px; padding: 11px 20px; border-radius: 9px; font-weight: 500; font-size: .94rem; box-shadow: none; }
.btn:hover { transform: none; }
.btn-primary, .btn-primary:hover { box-shadow: none; }
.btn-secondary { background: #fff; border-color: #cedfd3; color: var(--teal); }
.btn-secondary:hover { box-shadow: none; background: var(--mist); }
.eyebrow { padding: 5px 12px; border-radius: 999px; background: var(--mist); color: var(--teal); font-weight: 600; font-size: .77rem; letter-spacing: .035em; line-height: 1.5; margin-bottom: 18px; }
.eyebrow::before { display: none; }
.hero, html[dir="rtl"] .hero { padding: 68px 0 60px; background: #f4f9f6; }
.hero-grid { grid-template-columns: 1.15fr .85fr; gap: 60px; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 600; line-height: 1.24; letter-spacing: -.015em; margin-bottom: 22px; }
html[lang="ar"] .hero h1 { font-size: clamp(2rem, 3.5vw, 2.65rem); line-height: 1.55; letter-spacing: 0; }
.hero h1 span { color: var(--teal); }
.hero-copy { color: var(--muted); font-size: 1.03rem; line-height: 1.85; margin-bottom: 28px; }
.trust-row { gap: 18px; margin-top: 28px; }
.trust-item { color: var(--muted); font-weight: 400; font-size: .87rem; }
.trust-icon { background: #e4f1e9; }
.hero-visual { min-height: 400px; }
.visual-ring, .floating-card { display: none; }
.doctor-card { width: min(330px, 95%); min-height: 0; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.doctor-photo { height: 300px; filter: none; }
.doctor-caption { padding: 17px 20px; color: var(--navy); background: #fff; backdrop-filter: none; }
.doctor-caption strong { font-weight: 600; }
.doctor-caption span { color: var(--muted); font-size: .86rem; }
.quick-services { margin-top: -20px; }
.quick-grid { border-color: var(--line); border-radius: 12px; box-shadow: 0 4px 18px rgba(42,64,50,.05); }
.quick-item { padding: 22px 24px; }
.quick-icon { background: var(--mist); border-radius: 12px; }
.quick-item strong { font-size: .96rem; font-weight: 600; }
.quick-item span { color: var(--muted); font-size: .85rem; }
.section-head { margin-bottom: 30px; }
.section-head h2, .about-content h2 { font-size: clamp(1.65rem, 2.6vw, 2.1rem); line-height: 1.4; letter-spacing: 0; font-weight: 600; margin-bottom: 16px; }
html[lang="ar"] .section-head h2, html[lang="ar"] .about-content h2 { line-height: 1.65; letter-spacing: 0; }
.section-head p, .about-content > p { font-size: 1rem; line-height: 1.85; }
.service-category-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 48px; }
.service-category-nav a { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 22px; color: var(--teal); background: #fff; border: 1px solid #cbded2; border-radius: 9px; font-size: .96rem; font-weight: 500; }
.service-category-nav a:hover { background: var(--mist); }
.service-category-nav a:focus-visible { outline: 3px solid #83b69a; outline-offset: 3px; }
.service-overview-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.service-overview-card { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.service-overview-card:nth-last-child(2) { grid-column: 2 / span 2; }
.service-overview-card:last-child { grid-column: 4 / span 2; }
.service-overview-card:hover { border-color: #accdb8; box-shadow: 0 5px 20px rgba(42,64,50,.05); }
.service-overview-card:focus-visible { outline: 3px solid #83b69a; outline-offset: 4px; }
.service-overview-card > img { display: block; width: 100%; height: 160px; object-fit: cover; }
.service-overview-copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 23px 24px; }
.service-overview-label { color: var(--teal); font-size: .77rem; margin-bottom: 8px; }
.service-overview-copy h3 { color: var(--navy); font-size: 1.16rem; line-height: 1.5; margin-bottom: 10px; }
.service-overview-copy p { color: var(--muted); font-size: .96rem; margin: 0 0 20px; }
.service-overview-more { color: var(--teal); font-size: .94rem; margin-top: auto; }
.service-overview-card.is-private { background: #f2f8f4; border-color: #d3e5d9; }
.service-overview-action { display: flex; justify-content: center; margin-top: 32px; }
.service-group + .service-group { margin-top: 56px; }
.service-group-head { max-width: 720px; margin-bottom: 26px; }
.service-group-head h3 { margin: 0 0 8px; color: var(--navy); font-size: 1.6rem; font-weight: 600; }
.service-group-head p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; }
.service-card { grid-column: span 2; min-height: 380px; padding: 208px 24px 68px; border-color: var(--line); background: #fff; border-radius: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.general-grid .service-card:nth-last-child(2) { grid-column: 2 / span 2; }
.general-grid .service-card:last-child { grid-column: 4 / span 2; }
.service-card::before, .service-card::after, .service-number { display: none; }
.service-card:hover { transform: none; border-color: #accdb8; box-shadow: 0 5px 20px rgba(42,64,50,.06); }
.service-card .service-image { height: 184px; border-bottom: 1px solid var(--line); transition: none; }
.service-card:hover .service-image { transform: none; }
.service-card h4 { position: relative; z-index: 2; color: var(--navy); font-size: 1.12rem; font-weight: 600; line-height: 1.5; margin: 0 0 10px; }
.service-card p { font-size: .96rem; line-height: 1.8; color: var(--muted); }
.service-open { inset-inline-start: 24px; inset-block-end: 25px; color: var(--teal); font-size: .93rem; font-weight: 500; }
.service-open span { text-decoration: underline; text-underline-offset: 3px; }
.service-status, .service-status.partial, .service-status.upcoming, .service-status.rapid { inset-block-start: 14px; inset-inline-end: 14px; max-width: calc(100% - 28px); background: rgba(245,250,246,.97); color: #395e49; border: 1px solid #dce9df; box-shadow: none; font-size: .75rem; font-weight: 500; backdrop-filter: none; }
.private-services { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #f2f8f4; }
.private-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.private-grid .service-card { grid-column: auto; }
.service-dialog-backdrop { background: rgba(29,41,33,.52); backdrop-filter: blur(4px); }
.service-dialog { width: min(800px, 100%); padding: 38px 40px; border-radius: 16px; box-shadow: 0 18px 60px rgba(25,47,32,.16); }
.service-dialog h2 { font-size: clamp(1.55rem, 2.8vw, 1.9rem); line-height: 1.45; letter-spacing: 0; font-weight: 600; }
.service-dialog-kicker { color: var(--teal); font-weight: 500; letter-spacing: .025em; }
.service-dialog-content { color: var(--muted); font-size: 1rem; line-height: 1.85; }
.service-dialog-content h3 { font-size: 1.12rem; font-weight: 600; }
.service-dialog-note { border-color: #d4e6da; background: var(--mist); font-weight: 400; font-size: .96rem; }
.service-dialog-call { background: var(--teal); border-radius: 9px; box-shadow: none; font-weight: 500; font-size: .94rem; }
.service-dialog-close { border-color: var(--line); background: var(--mist); }
.service-dialog-content .vitamin-d-lead { font-size: 1.08rem; font-weight: 500; }
.about { background: #f7faf8; }
.about-grid { gap: 58px; }
.about-visual { min-height: 460px; border: 1px solid var(--line); border-radius: 16px; background: var(--mist); box-shadow: none; }
.about-visual::before, .about-visual::after, .about-photo-shade { display: none; }
.about-badge { inset-inline: 20px; inset-block-end: 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: rgba(255,255,255,.96); backdrop-filter: none; }
.about-badge strong { font-size: 1.03rem; font-weight: 600; }
.about-badge span { color: var(--muted); }
.feature-check, .faq-toggle { background: #e5f1e9; }
.feature-list strong { font-weight: 600; }
.feature-list span, .cv-item { font-size: .96rem; line-height: 1.8; }
.cv-summary h3 { font-weight: 600; }
.cv-item::before { width: 6px; height: 6px; box-shadow: none; background: #77a88a; }
.online { background: #fff; }
.online-card { padding: 26px; border-color: var(--line); border-radius: 12px; }
.online-card:hover { transform: none; border-color: #accdb8; box-shadow: 0 5px 20px rgba(42,64,50,.06); }
.online-card-image { border-radius: 9px; border-color: var(--line); box-shadow: none; }
.online-card:hover .online-card-image { transform: none; }
.online-card h3 { font-size: 1.12rem; font-weight: 600; }
.online-card p { color: var(--muted); font-size: .96rem; line-height: 1.8; }
.text-link { color: var(--teal); font-weight: 500; font-size: .94rem; }
.faq { background: #f5f9f6; }
.faq-item, .faq-item[open] { border-color: var(--line); border-radius: 10px; box-shadow: none; }
.faq-item summary { font-size: 1rem; font-weight: 500; }
.faq-answer p { font-size: .97rem; line-height: 1.85; }
.phone-number { font-weight: 600; }
.hours-card, .contact-card { padding: 30px; border-radius: 12px; box-shadow: none; }
.card-heading h3 { font-size: 1.2rem; font-weight: 600; }
.hours-row { font-size: .96rem; padding: 12px 0; }
.hours-row strong { font-weight: 500; }
.notice { color: var(--muted); font-size: .91rem; }
.contact-row small { font-size: .82rem; }
.contact-row strong, .contact-row a { font-weight: 500; font-size: .98rem; }

.social-panel {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
  margin-block-start: 22px;
  padding: clamp(22px, 3.6vw, 38px);
  border: 1px solid #d5e7da;
  border-radius: var(--radius-lg);
  background: linear-gradient(118deg, #e6f2e9, #f3f9f5);
}
.social-kicker { display: block; margin-block-end: 6px; color: var(--teal-dark); font-size: .79rem; font-weight: 700; }
.social-intro h3 { margin: 0 0 8px; color: var(--navy-deep); font-size: clamp(1.45rem, 2.5vw, 1.9rem); line-height: 1.35; }
.social-intro p { max-width: 35ch; margin: 0 0 10px; color: #4d6055; font-size: .96rem; }
.social-overview { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--teal-dark); font-weight: 700; font-size: .89rem; }
.social-overview:hover { text-decoration: underline; text-underline-offset: 4px; }
.social-overview svg { width: 17px; height: 17px; }
[dir="rtl"] .social-overview svg { transform: rotate(180deg); }
.social-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.social-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "icon external" "copy copy";
  align-items: start;
  gap: 10px;
  min-height: 122px;
  padding: 13px;
  border: 1px solid #dce9df;
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.social-link:hover { border-color: #9abfa9; box-shadow: 0 5px 16px rgba(35, 80, 53, .08); }
.social-link:focus-visible, .social-overview:focus-visible { outline: 2px solid var(--teal-dark); outline-offset: 3px; }
.social-facebook { --platform: #1b5ebc; --platform-bg: #e9f1fd; }
.social-instagram { --platform: #9e326b; --platform-bg: #f9eaf2; }
.social-tiktok { --platform: #242632; --platform-bg: #eeeff3; }
.social-icon { grid-area: icon; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--platform); background: var(--platform-bg); }
.social-icon svg { width: 21px; height: 21px; }
.social-link-copy { grid-area: copy; display: grid; gap: 3px; min-width: 0; }
.social-link-copy strong { color: var(--navy-deep); font-size: .96rem; line-height: 1.3; }
.social-link-copy small { color: #54625a; font-size: .78rem; line-height: 1.45; }
.social-external { grid-area: external; color: #53685b; font-size: 1.1rem; line-height: 1.2; }

@media (max-width: 900px) {
  .social-panel { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .social-intro p { max-width: none; }
}
@media (max-width: 560px) {
  .social-links { grid-template-columns: minmax(0, 1fr); }
  .social-link {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-areas: "icon copy external";
    align-items: center;
    min-height: 66px;
    padding: 11px 12px;
  }
}
.emergency { border-color: #eadcda; background: #fcf8f7; }
.emergency strong { font-weight: 600; }
.emergency p { font-size: .9rem; }
.cta-box { padding: 36px 40px; color: var(--navy); border: 1px solid #d5e7da; background: var(--mist); box-shadow: none; border-radius: 12px; }
.cta-box::after { display: none; }
.cta-copy h2 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); line-height: 1.45; font-weight: 600; }
.cta-copy p { color: var(--muted); }
.cta .btn { background: var(--teal); color: #fff; }
footer { background: #f5f8f6; color: var(--muted); padding: 46px 0 24px; border-top: 1px solid var(--line); }
footer .brand-mark img { filter: none; opacity: 1; }
footer .brand-title, .footer-title { color: var(--navy); font-weight: 600; }
footer .brand-name { color: var(--muted); }
.footer-about, .footer-links { font-size: .9rem; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom { border-top-color: var(--line); font-size: .82rem; }
.reveal { opacity: 1; transform: none; transition: none; }

@media (max-width: 1020px) {
  .nav-links { gap: 17px; }
  .service-grid, .private-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card, .general-grid .service-card:nth-last-child(2), .general-grid .service-card:last-child { grid-column: auto; }
  .hero-grid { gap: 36px; }
  .service-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-overview-card, .service-overview-card:nth-last-child(2), .service-overview-card:last-child { grid-column: auto; }
  .service-overview-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .service-overview-card:last-child > img { height: 100%; min-height: 190px; }
}

@media (max-width: 820px) {
  .nav-wrap { min-height: 72px; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-title { max-width: 255px; font-size: .88rem; }
  .hero, html[dir="rtl"] .hero { padding: 44px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero h1, html[lang="ar"] .hero h1 { font-size: 2.2rem; }
  .hero-visual { min-height: 0; margin-top: 0; }
  .doctor-card { width: min(330px, 100%); }
  section { padding: 58px 0; }
  .private-services { padding: 24px; }
  .about-grid { gap: 32px; }
  .about-visual { min-height: 420px; }
  .cta-box { padding: 30px; }
}

@media (max-width: 600px) {
  :root { --container: calc(100% - 32px); }
  html[lang="ar"] body { font-size: 16px; }
  .brand-title { max-width: 215px; font-size: .84rem; }
  .hero h1, html[lang="ar"] .hero h1 { font-size: 1.95rem; line-height: 1.4; }
  html[lang="ar"] .hero h1 { line-height: 1.6; }
  .hero-copy { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 12px; }
  .doctor-photo { height: 290px; }
  .quick-item { padding: 19px 20px; }
  .service-grid, .private-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { min-height: 360px; }
  .private-services { padding: 20px 16px; margin-inline: -4px; }
  .service-group-head h3 { font-size: 1.4rem; }
  .service-category-nav { gap: 9px; margin-bottom: 34px; }
  .service-category-nav a { padding-inline: 15px; font-size: .9rem; }
  .service-dialog-backdrop { padding: 14px; }
  .service-dialog { padding: 30px 22px; border-radius: 14px; }
  .service-dialog h2 { font-size: 1.5rem; }
  .service-dialog-close { inset-block-start: 16px; inset-inline-end: 16px; }
  .hours-card, .contact-card { padding: 24px 20px; }
  .hours-row { gap: 12px; font-size: .86rem; }
  .footer-grid { gap: 28px; }
  .about-visual { min-height: 380px; }
  .service-overview-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-overview-card, .service-overview-card:last-child { display: flex; grid-column: auto; }
  .service-overview-card > img, .service-overview-card:last-child > img { height: 160px; min-height: 0; }
}
