/*
   SmileCare Syria — editorial redesign
   Visual-only layer: intentionally leaves page copy, links, images, and heading levels untouched.
   Direction: Arabic medical editorial / print-inspired, warm paper, ink, terracotta and cobalt.
*/
:root {
  --navy: #20292b;
  --navy-2: #151d1f;
  --teal: #ce563d;
  --teal-dark: #a63f2b;
  --mint: #f3e4dc;
  --sand: #d7b66c;
  --cream: #f5f0e7;
  --white: #fffdf8;
  --ink: #22292b;
  --muted: #687074;
  --line: #dfd7ca;
  --shadow: 0 22px 70px rgba(43, 35, 28, .12);
  --shadow-soft: 0 10px 28px rgba(43, 35, 28, .07);
  --radius: 18px;
  --ease: cubic-bezier(.2,.75,.25,1);
  --primary: #ce563d;
  --primary-dark: #a63f2b;
  --primary-light: #f3e4dc;
  --accent: #3758b5;
  --text-main: #22292b;
  --text-muted: #687074;
  --bg-light: #f5f0e7;
  --border-color: #dfd7ca;
}

html { scroll-behavior: smooth; background: var(--cream); }
body {
  color: var(--ink);
  background: var(--cream);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.9;
}
body::before {
  opacity: .42;
  background-image: linear-gradient(rgba(68, 54, 42, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(68, 54, 42, .025) 1px, transparent 1px);
  background-size: 34px 34px;
}
::selection { color: #fff; background: var(--teal-dark); }
:focus-visible { outline: 3px solid rgba(55, 88, 181, .55); outline-offset: 4px; }

/* Clean editorial masthead; no rainbow navigation or pill-like menu chips. */
.site-header {
  background: rgba(250, 247, 240, .96);
  border-bottom: 1px solid rgba(80, 68, 53, .17);
  box-shadow: 0 5px 20px rgba(33, 38, 37, .035);
  backdrop-filter: blur(16px);
}
.site-header .header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(245px, auto) minmax(0, 1fr) auto;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 2vw, 30px);
  min-height: 92px;
  padding-block: 10px;
}
.site-header .brand { color: var(--ink); gap: 12px; white-space: normal; }
.site-header .brand-mark {
  width: 48px; height: 48px; flex: 0 0 48px;
  color: #fff; background: var(--teal); border-radius: 4px 16px 4px 16px;
  box-shadow: 4px 4px 0 var(--sand);
}
.site-header .brand > span:last-child { color: var(--ink); font-size: 15px; font-weight: 900; letter-spacing: -.035em; line-height: 1.3; }
.site-header .brand > span:last-child small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.5; }
.site-header .header-inner > nav { order: 2; width: auto; min-width: 0; height: auto; overflow: visible; }
.site-header .nav-list {
  position: static; display: flex; flex-flow: row wrap; justify-content: center; align-items: center;
  gap: 3px; max-height: none; overflow: visible; padding: 0; background: transparent;
  border: 0; border-radius: 0; box-shadow: none; list-style: none;
}
.site-header .nav-list li { flex: 0 0 auto; min-width: 0; }
.site-header .nav-list li:nth-child(n) a {
  display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 40px;
  padding: 7px 10px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  color: #4d5656; background: transparent; box-shadow: none;
  font-size: 12px; font-weight: 700; white-space: nowrap; text-align: center;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.site-header .nav-list li:nth-child(n) a:hover {
  color: var(--teal-dark); background: rgba(206, 86, 61, .055); border-color: var(--teal);
  box-shadow: none; filter: none; transform: none;
}
.site-header .nav-list li a[aria-current="page"] {
  color: var(--teal-dark); background: transparent; border-bottom-color: var(--teal);
  outline: 0; box-shadow: none;
}
.site-header .header-cta, .site-header .header-inner > a.btn-primary.wa-dynamic-btn {
  order: 3; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin: 0; padding: 9px 14px; border: 1px solid var(--ink);
  border-radius: 3px 14px 3px 14px; color: #fff; background: var(--ink);
  box-shadow: 4px 4px 0 var(--sand); font-size: 12px; font-weight: 800; white-space: nowrap;
}
.site-header .header-cta:hover, .site-header .header-inner > a.btn-primary.wa-dynamic-btn:hover {
  color: #fff; background: var(--teal-dark); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sand);
}
.site-header .nav-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px 12px 4px 12px;
  color: var(--ink); background: var(--white);
}

/* Typography and controls */
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-family: Tahoma, Arial, sans-serif; letter-spacing: -.035em; }
h1 { font-weight: 900; }
h2, h3 { font-weight: 850; }
p { color: inherit; }
.btn, .header-cta {
  min-height: 48px; padding: 0 21px; border-radius: 4px 15px 4px 15px;
  font-weight: 800; letter-spacing: 0;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-primary {
  color: #fff; background: var(--teal); border-color: var(--teal);
  box-shadow: 5px 5px 0 var(--sand);
}
.btn-primary:hover { color: #fff; background: var(--teal-dark); box-shadow: 7px 7px 0 var(--sand); transform: translate(-2px,-2px); }
.btn-ghost { border-color: rgba(255,255,255,.65); color: #fff; background: rgba(255,255,255,.08); box-shadow: none; }
.btn-ghost:hover { color: var(--ink); background: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; box-shadow: 4px 4px 0 rgba(215,182,108,.7); }
.btn-outline:hover { color: #fff; border-color: var(--ink); background: var(--ink); }
.kicker, .section-head .kicker { color: var(--teal-dark); font-size: 11px; font-weight: 900; letter-spacing: .11em; }
.eyebrow { color: var(--teal-dark); font-weight: 900; }

/* Full-bleed photography kept intact, reframed as a high-contrast editorial cover. */
.hero {
  height: auto; min-height: 650px; padding: 16px 0 20px;
  overflow: hidden; color: #fff; background: var(--ink);
}
.hero-slide { inset: 16px 0 20px; border-radius: 4px 34px 4px 34px; background-position: center; }
.hero-slide::before {
  background: linear-gradient(270deg, rgba(27,31,32,.94) 0%, rgba(27,31,32,.78) 39%, rgba(27,31,32,.20) 100%);
}
.hero::after {
  content: ""; position: absolute; z-index: 1; top: 48px; right: max(18px, calc((100vw - 1160px)/2));
  width: 9px; height: 112px; background: var(--sand); border-radius: 0 0 0 9px;
}
.hero-content { min-height: 610px; align-items: center; }
.hero-copy { max-width: 730px; padding-block: 110px 105px; }
.hero h1, .hero h2 { color: #fff; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.18; letter-spacing: -.045em; }
.hero p { max-width: 630px; color: rgba(255,255,255,.84); font-size: clamp(16px, 1.6vw, 19px); }
.hero .eyebrow { display: inline-flex; padding: 6px 12px; border: 1px solid rgba(255,255,255,.42); border-radius: 3px 12px 3px 12px; color: #fff; background: rgba(206,86,61,.88); }
.slider-controls { z-index: 4; bottom: 40px; left: max(28px, calc((100vw - 1160px)/2)); gap: 10px; }
.slider-controls button[data-slide-prev], .slider-controls button[data-slide-next] { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.65); color: #fff; background: rgba(32,41,43,.32); }
.slider-controls button[data-slide-prev]:hover, .slider-controls button[data-slide-next]:hover { color: var(--ink); background: var(--sand); }
.slider-controls button.slider-dot { width: 10px; height: 5px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.52); }
.slider-controls button.slider-dot.is-active { width: 24px; border-radius: 999px; background: var(--sand); }
.slider-dot.is-active { background: var(--sand); }

/* Page titles, breadcrumbs and content blocks */
.page-hero {
  padding: clamp(65px, 8vw, 112px) 0 clamp(58px, 7vw, 96px);
  color: var(--ink); background: var(--sand); border-bottom: 1px solid rgba(34,41,43,.14);
}
.page-hero::after {
  left: 6%; top: 18%; width: 230px; height: 230px;
  border: 1px solid rgba(34,41,43,.2); box-shadow: 0 0 0 26px rgba(34,41,43,.045), 0 0 0 54px rgba(34,41,43,.035);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--teal-dark); }
.page-hero h1 { color: var(--ink); max-width: 900px; font-size: clamp(38px, 5.4vw, 70px); line-height: 1.2; }
.page-hero p { max-width: 720px; color: #41494a; font-size: 17px; }
.breadcrumbs { color: rgba(34,41,43,.66); }
.breadcrumbs a { color: var(--teal-dark); font-weight: 800; }
.section { padding: clamp(68px, 8vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.25; }
.section-head p { color: var(--muted); }
.section-head .kicker { display: inline-flex; align-items: center; gap: 10px; }
.section-head .kicker::after { content: ""; width: 42px; height: 2px; background: var(--teal); }

/* Cards and images use crisp editorial frames instead of soft teal tiles. */
.grid-3, .grid-2 { gap: 22px; }
.card {
  position: relative; overflow: hidden; padding: clamp(23px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: 3px 20px 3px 20px;
  background: var(--white); box-shadow: 6px 7px 0 rgba(215,182,108,.24);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s ease;
}
.card::before { content: ""; position: absolute; top: 0; right: 0; width: 56px; height: 4px; background: var(--teal); }
.card:hover { border-color: rgba(206,86,61,.45); box-shadow: 10px 12px 0 rgba(215,182,108,.36); transform: translateY(-4px); }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); }
.card-link, .sidebar-links a { color: var(--accent); font-weight: 850; }
.card-img-wrapper { border-radius: 2px 14px 2px 14px; }
.blog-card { padding: 0; }
.blog-card::before { z-index: 1; }
.blog-card img { aspect-ratio: 16 / 10; }
.blog-card-body { padding: 23px; }
.blog-meta { color: var(--teal-dark); letter-spacing: .04em; }
.icon { color: var(--teal-dark); background: var(--mint); border-radius: 4px 14px 4px 14px; }
.check-list li::before { color: var(--teal-dark); background: var(--mint); }
.callout { border-right: 4px solid var(--teal); border-radius: 3px 14px 3px 14px; color: var(--ink); background: #efe4ce; }
.feature-band { color: #fff; background: var(--ink); }
.feature-band .eyebrow { color: var(--sand); }

/* Reading pages, FAQ and contact: preserve the existing copy and structure. */
.article-layout { gap: clamp(26px, 5vw, 64px); }
.article {
  border: 1px solid var(--line); border-radius: 3px 24px 3px 24px;
  background: var(--white); box-shadow: 8px 9px 0 rgba(215,182,108,.26);
}
.article h1 { font-size: clamp(34px, 4.5vw, 58px); }
.article h2 { padding-top: 6px; border-top: 1px solid var(--line); }
.article h3 { color: var(--teal-dark); }
.article-lead, .prose { color: #50595b; }
.article-cover { border-radius: 3px 18px 3px 18px; }
.sidebar-card { border-top: 4px solid var(--accent); border-radius: 3px 16px 3px 16px; }
.sidebar-links li + li { border-color: var(--line); }
.faq-list { gap: 13px; }
details { border: 1px solid var(--line); border-radius: 3px 16px 3px 16px; background: var(--white); }
summary { color: var(--ink); }
summary::before { color: #fff; background: var(--teal); }
details p { color: var(--muted); }
.contact-grid { gap: 24px; }
.contact-card {
  color: #fff; border-radius: 3px 24px 3px 24px;
  background: var(--ink); box-shadow: 8px 9px 0 rgba(206,86,61,.22);
}
.contact-card h2 { color: #fff; }
.contact-card .eyebrow { color: var(--sand); }
.contact-card .icon { color: var(--sand); background: rgba(255,255,255,.1); }
.form-card { border: 1px solid var(--line); border-radius: 3px 24px 3px 24px; background: var(--white); box-shadow: 6px 7px 0 rgba(55,88,181,.10); }
.form-card h2 { font-size: 30px; }
.field label { color: var(--ink); }
.field input, .field textarea { border-color: #cfc7b9; border-radius: 3px 12px 3px 12px; background: #fffefa; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline-color: rgba(55,88,181,.14); }
.notice { border: 1px solid #dfc98f; border-radius: 3px 12px 3px 12px; color: #584a2f; background: #f7efd9; }
.form-status { color: var(--teal-dark); }

/* The clinic WhatsApp destination, wording and behavior stay unchanged. */
.whatsapp-float {
  border: 2px solid rgba(255,255,255,.86); border-radius: 4px 18px 4px 18px;
  color: #fff; background: #138765; box-shadow: 5px 6px 0 rgba(32,41,43,.20);
}
.whatsapp-float:hover { color: #fff; background: #0d6f52; box-shadow: 7px 8px 0 rgba(32,41,43,.23); }
.whatsapp { border-radius: 4px 18px 4px 18px; }
.whatsapp:hover { color: #fff; }

/* Footer and error page */
.site-footer { padding: 76px 0 26px; color: rgba(255,255,255,.78); background: #20292b; border-top: 8px solid var(--teal); }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { box-shadow: 3px 3px 0 var(--sand); }
.site-footer .brand small { color: rgba(255,255,255,.62); }
.footer-title { color: var(--sand); letter-spacing: .04em; }
.footer-links a { color: rgba(255,255,255,.76); }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.60); }
.empty-404 .number { color: var(--teal); }

@media (max-width: 1100px) {
  .site-header .header-inner { display: flex; flex-wrap: wrap; min-height: 76px; padding-block: 9px; gap: 8px; }
  .site-header .header-inner > .brand { order: 1; min-width: 0; max-width: calc(100% - 56px); }
  .site-header .header-inner > .nav-toggle { display: grid; order: 2; flex: 0 0 44px; margin-inline-start: auto; place-items: center; }
  .site-header .header-inner > .header-cta, .site-header .header-inner > a.btn-primary.wa-dynamic-btn { display: none !important; }
  .site-header .header-inner > nav { order: 3; flex: 0 0 100%; width: 100%; height: 0; overflow: visible; }
  .site-header .nav-list { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 1000; display: none; flex-flow: row wrap; justify-content: center; gap: 8px; max-height: min(70vh, 520px); overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 3px 18px 3px 18px; background: var(--white); box-shadow: var(--shadow); }
  .site-header .nav-list.is-open { display: flex; }
  .site-header .nav-list li { flex: 0 1 calc(50% - 8px); }
  .site-header .nav-list li:nth-child(n) a { display: flex; width: 100%; min-height: 42px; padding: 9px 10px; justify-content: flex-start; white-space: normal; text-align: right; }
  .hero { min-height: 590px; }
  .hero-content { min-height: 550px; }
}
@media (max-width: 700px) {
  .site-header .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .site-header .brand > span:last-child { max-width: min(68vw, 320px); font-size: 13px; }
  .site-header .brand > span:last-child small { font-size: 9px; }
  .hero { min-height: 560px; padding: 10px 0 14px; }
  .hero-slide { inset: 10px 0 14px; border-radius: 3px 22px 3px 22px; background-position: 58% center; }
  .hero-slide::before { background: linear-gradient(270deg, rgba(27,31,32,.92), rgba(27,31,32,.60)); }
  .hero::after { top: 28px; right: 18px; width: 6px; height: 74px; }
  .hero-content { min-height: 536px; }
  .hero-copy { padding-block: 74px 84px; }
  .hero h1, .hero h2 { font-size: clamp(33px, 9vw, 46px); }
  .hero-actions .btn, .actions .btn { width: 100%; }
  .slider-controls { left: 18px; bottom: 22px; }
  .page-hero { padding: 64px 0 60px; }
  .page-hero h1 { font-size: clamp(34px, 9vw, 46px); }
  .page-hero p { font-size: 15px; }
  .section { padding: 68px 0; }
  .section-head h2 { font-size: clamp(29px, 8vw, 39px); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 17px; }
  .card, .article, .form-card, .contact-card { padding: 22px; }
  .contact-grid, .article-layout, .split { grid-template-columns: 1fr; gap: 22px; }
  .about-doctor-photo { margin: -22px -22px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  body { padding-bottom: 78px; }
  .whatsapp-float { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); min-height: 52px; padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 420px) {
  .site-header .brand > span:last-child { max-width: calc(100vw - 112px); }
  .site-header .brand > span:last-child small { line-height: 1.35; }
  .hero .container { width: calc(100% - 34px); }
  .page-hero .container { width: calc(100% - 34px); }
  .whatsapp-float { max-width: calc(100vw - 28px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Consistent read-article affordance: arrows remain visible on every card, even if source markup omits the SVG. */
.blog-card .card-link { display: inline-flex; align-items: center; gap: 8px; }
.blog-card .card-link svg { display: none; }
.blog-card .card-link::after {
  content: "←";
  display: inline-block;
  color: currentColor;
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease;
}
.blog-card .card-link:hover::after { transform: translateX(-4px); }


/* Floating contact widget: doctor's name sits above the WhatsApp action. */
.whatsapp-widget {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1202;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  max-width: calc(100vw - 32px);
  direction: rtl;
}
.whatsapp-float-name {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid var(--sand);
  border-radius: 3px 12px 3px 12px;
  color: #fff;
  background: var(--ink);
  box-shadow: 3px 3px 0 rgba(215,182,108,.8);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}
.whatsapp-widget .whatsapp-float {
  position: relative;
  right: auto;
  bottom: auto;
  max-width: 100%;
}
@media (max-width: 560px) {
  body { padding-bottom: 112px; }
  .whatsapp-widget {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    gap: 6px;
    max-width: calc(100vw - 28px);
  }
  .whatsapp-float-name { min-height: 28px; padding: 4px 10px; font-size: 11px; }
  .whatsapp-widget .whatsapp-float { min-height: 52px; padding: 10px 14px; font-size: 13px; }
}
