/* ============================================
   DR. HASNAA RAGUADI — APPLE-INSPIRED DESIGN
   ============================================ */

/* ── Variables ─────────────────────────────── */
:root {
  --brand:       #095c9e;
  --brand-dark:  #074d87;
  --brand-light: rgba(9, 92, 158, 0.08);
  --brand-glow:  rgba(9, 92, 158, 0.25);
  --red:         #c0392b;
  --red-hover:   #a93226;
  --red-light:   rgba(192, 57, 43, 0.08);

  --ink:   #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #a1a1a6;

  --surf:   #f5f5f7;
  --surf-2: #e8e8ed;
  --white:  #ffffff;
  --bg-grad: radial-gradient(1200px 520px at 100% -20%, rgba(9, 92, 158, 0.09), transparent 55%),
             radial-gradient(900px 460px at -10% 0%, rgba(9, 92, 158, 0.06), transparent 60%),
             #ffffff;
  --dark:   #0a1930;
  --dark-2: #111827;

  --nav-glass: rgba(255,255,255,0.72);
  --nav-h: 52px;

  --border:   rgba(0,0,0,0.08);
  --border-2: rgba(0,0,0,0.16);

  --r-s:    8px;
  --r-m:    14px;
  --r-l:    20px;
  --r-xl:   28px;
  --r-pill: 9999px;

  --sh-xs: 0 1px 3px rgba(0,0,0,0.06);
  --sh-sm: 0 2px 8px rgba(0,0,0,0.08);
  --sh-md: 0 4px 20px rgba(0,0,0,0.10);
  --sh-lg: 0 8px 40px rgba(0,0,0,0.13);
  --sh-xl: 0 20px 60px rgba(0,0,0,0.18);

  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --t-fast:   180ms;
  --t-base:   300ms;
  --t-slow:   500ms;
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-grad);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; color: var(--ink); }

/* Improve keyboard accessibility and make interactive elements feel more polished */
a:focus-visible,
button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 72%, white 28%);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── Layout ────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .container { padding: 0 48px; } }
@media (min-width: 1280px) { .container { padding: 0 24px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Hero Animations ───────────────────────── */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.animate-in             { animation: heroIn 700ms var(--ease-out) both; }
.delay-1                { animation-delay: 120ms; }
.delay-2                { animation-delay: 280ms; }
.delay-3                { animation-delay: 440ms; }
.delay-4                { animation-delay: 600ms; }

/* ── Scroll Reveal ─────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal].d-1 { transition-delay: 80ms; }
[data-reveal].d-2 { transition-delay: 160ms; }
[data-reveal].d-3 { transition-delay: 240ms; }
[data-reveal].d-4 { transition-delay: 320ms; }
[data-reveal].d-5 { transition-delay: 400ms; }

/* ════════════════════════════════════════════
   HEADER / NAVIGATION
════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

.header.scrolled {
  background: rgba(255,255,255,0.88);
  border-bottom-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Dark-mode nav over hero */
.header.hero-top {
  background: rgba(10,25,48,0.45);
  border-bottom-color: rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 16px;
}
@media (min-width: 768px)  { .header-inner { padding: 0 48px; } }
@media (min-width: 1280px) { .header-inner { padding: 0 24px; } }

/* Logo */
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img {
  height: 32px; width: auto;
  transition: opacity var(--t-fast);
}
.header-logo:hover img { opacity: 0.75; }
.header.hero-top .header-logo img { filter: brightness(0) invert(1); }

/* Desktop Nav */
.nav-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
}
@media (min-width: 900px) { .nav-desktop { display: flex; } }

.nav-link {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand); }
.header.hero-top .nav-link { color: rgba(255,255,255,0.82); }
.header.hero-top .nav-link:hover { color: var(--white); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--nav-h);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav-dropdown:hover .nav-dropdown-btn { color: var(--brand); }
.header.hero-top .nav-dropdown-btn { color: rgba(255,255,255,0.82); }
.header.hero-top .nav-dropdown:hover .nav-dropdown-btn { color: var(--white); }

.chevron-icon {
  transition: transform var(--t-base) var(--ease);
  flex-shrink: 0;
  opacity: 0.55;
}
.nav-dropdown:hover .chevron-icon { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 6px;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease),
              visibility var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  box-shadow: var(--sh-lg);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-s);
  font-size: 14px;
  color: var(--ink);
  transition: background var(--t-fast), color var(--t-fast);
}
.dropdown-menu li a:hover {
  background: rgba(0,0,0,0.05);
  color: var(--brand);
}

/* CTA button */
.header-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
@media (min-width: 900px) { .header-actions { display: flex; } }

.btn-appointment {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn-appointment:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--brand-glow);
}
.header.hero-top .btn-appointment {
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}
.header.hero-top .btn-appointment:hover {
  background: rgba(255,255,255,0.24);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Hamburger */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-s);
  margin-left: auto;
  transition: background var(--t-fast);
  z-index: 1100;
}
.mobile-menu-btn:hover { background: rgba(0,0,0,0.05); }
@media (min-width: 900px) { .mobile-menu-btn { display: none; } }

.hamburger-line {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--t-base) var(--ease);
}
.header.hero-top .hamburger-line { background: var(--white); }
.hamburger-line + .hamburger-line { margin-top: 5px; }
.mobile-menu-btn.open .hamburger-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-menu-btn.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open .hamburger-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.mobile-menu.open { pointer-events: all; opacity: 1; }

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
}

.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0;
  width: 85%;
  max-width: 340px;
  height: 100%;
  background: var(--white);
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease);
  overflow-y: auto;
  padding: calc(var(--nav-h) + 24px) 24px 32px;
  box-shadow: var(--sh-xl);
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}
.mobile-nav-link:hover { color: var(--brand); }

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}
.mobile-dropdown-toggle:hover { color: var(--brand); }
.mobile-dropdown-toggle .chevron-icon { transition: transform var(--t-base) var(--ease); }
.mobile-dropdown-toggle.active .chevron-icon { transform: rotate(180deg); }

.mobile-dropdown-content {
  display: none;
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-dropdown-content.open { display: block; }
.mobile-dropdown-content a {
  display: block;
  padding: 9px 0;
  font-size: 15px;
  color: var(--ink-2);
  transition: color var(--t-fast);
}
.mobile-dropdown-content a:hover { color: var(--brand); }

.mobile-menu-cta { margin-top: 24px; }
.mobile-menu-cta .btn-appointment {
  display: block;
  text-align: center;
  font-size: 15px;
  padding: 12px 24px;
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  /* Compact: ~90vh min, capped at a readable height on tall screens */
  min-height: min(90vh, 820px);
  background: var(--dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Hero doctor image ─────────────────────
   Desktop: image fills only the RIGHT portion of the hero so text
   on the left stays clear. left: 38% keeps ~38% of width for text.
   object-fit: cover + object-position: top center frames the
   doctor's face/torso correctly without distortion.
──────────────────────────────────────────── */
.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

@media (max-width: 1279px) and (min-width: 900px) {
  .hero-image {
    width: 46%;
    object-position: 56% top;
  }
}

/* Mobile: full-bleed, slightly dimmed so text remains readable */
@media (max-width: 899px) {
  .hero-image {
    right: 0;
    left: 0;
    width: 100%;
    object-position: 60% top;  /* keep face/shoulders in frame */
    opacity: 0.45;              /* darken; hero-fade also helps */
  }
}

/* ── Directional gradient fade ─────────────
   Stronger on the left (covers text area), soft on the right.
   Mobile: full-coverage dark overlay since image is full-bleed.
──────────────────────────────────────────── */
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--dark)              0%,
    var(--dark)              34%,
    rgba(10,25,48, 0.94)    47%,
    rgba(10,25,48, 0.68)    58%,
    rgba(10,25,48, 0.26)    74%,
    transparent             100%
  );
}
@media (max-width: 899px) {
  .hero-fade {
    background: linear-gradient(
      to bottom,
      rgba(10,25,48,0.65) 0%,
      rgba(10,25,48,0.82) 60%,
      var(--dark)         100%
    );
  }
}

.hero-inner {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: var(--nav-h);
}

.hero-text {
  max-width: 560px;
  width: min(46vw, 560px);
  /* Reduced from 80px → 52px top/bottom for a tighter, balanced layout */
  padding: 52px 0 44px;
}

@media (min-width: 900px) {
  .hero-text {
    margin-right: auto;
    padding: 44px 0 36px;
  }
}

@media (max-width: 899px) {
  .hero-text {
    width: 100%;
    max-width: 100%;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  margin-bottom: 14px;
}

/* Two-line SEO H1: large name + smaller keyword line */
.hero h1 {
  margin-bottom: 18px;
}
.hero-h1-name {
  display: block;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero-h1-specialty {
  display: block;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 8px;
}

.hero-lead {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: rgba(255,255,255,0.58);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn-hero-primary {
  background: var(--white);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
}
.btn-hero-primary:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.3);
}

.btn-hero-secondary {
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,0.16);
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
}
.btn-hero-secondary:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.42);
  background: rgba(255,255,255,0.07);
}

/* Stats strip — compact */
.hero-stats {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}
.hero-stat span {
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.07);
  align-self: stretch;
  margin: 10px 0;
}

@media (max-width: 599px) {
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-stat-divider { display: none; }
  .hero-stat { padding: 14px 10px; }
}

/* ════════════════════════════════════════════
   SECTION LABELS
════════════════════════════════════════════ */
.section-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section-eyebrow.red { color: var(--red); }

.section-headline {
  font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 580px;
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
.about {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.75) 0%, rgba(255,255,255,1) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-intro {
  font-size: 1.0625rem;
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 14px;
}

.treatments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 40px;
}

.treatment-card {
  background: var(--surf);
  border-radius: var(--r-m);
  padding: 20px;
  transition: background var(--t-fast) var(--ease);
}
.treatment-card:hover { background: var(--surf-2); }

.treatment-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-s);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--brand);
}

.treatment-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.treatment-card p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

/* Image Carousel */
.carousel-wrap {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  height: 560px;
  background: var(--surf);
  box-shadow: var(--sh-xl);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.carousel-slide.active { opacity: 1; }
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  transition: all var(--t-fast) var(--ease);
  opacity: 0;
  z-index: 10;
  color: var(--ink);
}
.carousel-wrap:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.carousel-btn-prev { left: 12px; }
.carousel-btn-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
}
.carousel-dot.active { background: var(--white); width: 20px; }

/* ════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════ */
.services {
  padding: 100px 0;
  background: var(--surf);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}
.services-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px)  { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-radius: var(--r-l);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease);
}
.service-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--sh-md);
  transform: translateY(-5px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-m);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.service-card:hover .service-icon { background: var(--brand); color: var(--white); }

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  flex-grow: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  transition: gap var(--t-fast);
}
.service-link .arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}
.service-card:hover .service-link .arrow { transform: translateX(4px); }

/* ════════════════════════════════════════════
   TECHNOLOGIES / CONDITIONS
════════════════════════════════════════════ */
.technologies {
  padding: 100px 0;
  background: var(--white);
}

.technologies-header { margin-bottom: 64px; }

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid var(--border);
}
@media (min-width: 768px)  { .tech-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }

.tech-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--t-fast) var(--ease);
}
.tech-card:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  transform: translateY(-2px);
}

.tech-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  opacity: 0.55;
}

.tech-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.tech-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tech-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  transition: gap var(--t-fast) var(--ease);
}
.tech-link:hover { gap: 10px; }
.tech-link svg { flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.tech-link:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════
   TESTIMONIALS — flat grid, 4-col desktop
════════════════════════════════════════════ */
.testimonials {
  padding: 96px 0 80px;
  background: var(--surf);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 56px;
}
.testimonials-header .section-sub { margin: 0 auto; }

/* ── Grid layout ─────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1023px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 599px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ── Card — flat design ──────────────────── */
.t-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--t-fast) var(--ease),
              background  var(--t-fast) var(--ease);
}
.t-card:hover {
  border-color: rgba(9, 92, 158, 0.2);
  background: rgba(9, 92, 158, 0.02);
}

/* Large decorative quotation mark */
.t-card__quote {
  font-size: 3rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.18;
  font-family: Georgia, serif;
  margin-bottom: -6px;
  user-select: none;
}

/* Quote text */
.t-card__text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer: stars + author row */
.t-card__footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.t-card__stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

.t-card__author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.t-card__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.t-card__role {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CTA row ─────────────────────────────── */
.testimonials-cta { text-align: center; margin-top: 48px; }

.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: var(--r-pill);
  transition: all var(--t-base) var(--ease);
}
.btn-review:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--brand-glow);
}

/* Keep legacy compat classes working */
.stars { display: flex; color: #f59e0b; gap: 3px; }
.scroll-btn { display: none !important; }
.testimonials-scroll-wrap { display: none; }

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
.contact { background: var(--dark); }

.contact-body { padding: 100px 0 0; }

.contact-header {
  text-align: center;
  margin-bottom: 64px;
}
.contact-header .section-eyebrow { color: rgba(255,255,255,0.4); }

.contact-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-sub {
  color: rgba(255,255,255,0.45);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

/* Legacy compat */
.contact-desc {
  color: rgba(255,255,255,0.45);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .contact-info-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-info-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--r-l);
  padding: 28px 24px;
  text-align: center;
  transition: background var(--t-base) var(--ease);
}
.contact-info-card:hover { background: rgba(255,255,255,0.1); }

.contact-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.6);
}

.contact-info-card h3 {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.contact-info-card p,
.contact-info-card a {
  color: var(--white);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 64px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--t-fast) var(--ease);
}
.social-btn:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-map { width: 100%; height: 420px; border-top: 1px solid rgba(255,255,255,0.07); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer { background: var(--dark-2); color: rgba(255,255,255,0.55); }

/* ── Main area with columns ──────────────── */
.footer-main { padding: 60px 0 44px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 32px;
}
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0 40px; }
}

/* ── Brand column ────────────────────────── */
.footer-col--brand { display: flex; flex-direction: column; gap: 16px; }

.footer-logo-link { display: inline-block; }
.footer-logo {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.32);
  max-width: 300px;
}

.footer-address {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255,255,255,0.28);
  font-style: normal;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ALL links inside footer share the same base colour */
.footer a,
.footer-tel,
.footer-nav a,
.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer a:hover,
.footer-tel:hover,
.footer-nav a:hover,
.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.88);
}

.footer-tel {
  font-size: 13px;
  font-weight: 500;
}

/* ── Nav columns ─────────────────────────── */
.footer-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  margin-bottom: 16px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 13px;
  line-height: 1.4;
}

/* ── Social icons ────────────────────────── */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.38);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.footer-social-link:hover {
  color: rgba(255,255,255,0.88) !important;
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.07);
}

/* ── Bottom bar ──────────────────────────── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 16px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 12px;
}

/* ════════════════════════════════════════════
   INNER PAGES
════════════════════════════════════════════ */
.page-wrap { padding-top: var(--nav-h); }

.page-banner {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(9,92,158,0.94), rgba(9,92,158,0.78));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-banner-overlay.red {
  background: linear-gradient(to right, rgba(192,57,43,0.95), rgba(169,50,38,0.85));
}

.page-banner h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}
.breadcrumb a { transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--white); }

.page-content { padding: 64px 0; }

.content-wrap { max-width: 820px; margin: 0 auto; }

.content-section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.025em;
}
.content-section-title.red { color: var(--red); border-bottom-color: var(--red-light); }

.content-h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.content-h3.red { color: var(--red); }

.content-p {
  color: var(--ink-2);
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 1.0625rem;
}

.content-ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 1.0625rem;
}
.content-ul li { margin-bottom: 6px; line-height: 1.7; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
}
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr; } }

.info-card {
  background: var(--surf);
  border-radius: var(--r-m);
  padding: 20px;
  border-left: 3px solid var(--brand);
}
.info-card.red { border-left-color: var(--red); }

.info-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.info-card.red h3 { color: var(--red); }

.info-card-list {}
.info-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 14px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 6px;
}
.dot.red   { background: var(--red); }
.dot.white { background: var(--white); }

.blue-card {
  background: var(--brand);
  border-radius: var(--r-m);
  padding: 24px;
  margin: 18px 0;
}
.blue-card h3 { font-size: 1rem; font-weight: 600; color: var(--white); margin-bottom: 10px; }
.blue-card p  { color: rgba(255,255,255,0.82); margin-bottom: 12px; font-size: 14px; }

.blue-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 768px) { .blue-card-list { grid-template-columns: 1fr 1fr; } }

.blue-card-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-s);
  padding: 10px 12px;
  color: var(--white);
  font-size: 14px;
}

.steps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.step-item {
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-s);
  padding: 14px;
  color: var(--white);
}
.step-num { font-size: 1.375rem; font-weight: 700; margin-bottom: 6px; }
.step-item p { font-size: 13px; }

.cta-box {
  background: var(--surf);
  border-radius: var(--r-m);
  padding: 24px;
  margin-top: 28px;
}
.cta-box h3 { font-size: 1rem; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.cta-box.red h3 { color: var(--red); }
.cta-box p { color: var(--ink-2); margin-bottom: 14px; font-size: 14px; }

.btn-cta {
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--r-s);
  transition: background var(--t-fast);
  font-size: 14px;
}
.btn-cta:hover { background: var(--brand-dark); }
.btn-cta.red { background: var(--red); }
.btn-cta.red:hover { background: var(--red-hover); }

/* ════════════════════════════════════════════
   DOCTOR PROFILE
════════════════════════════════════════════ */
.profile-banner {
  position: relative;
  height: 520px;
  background-image: url('../public/hasnaa_raguadi.png');
  background-size: cover;
  background-position: center top;
}
.profile-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(9,92,158,0.95), rgba(9,92,158,0.72));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-banner h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
.profile-banner p {
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-m);
  padding: 14px;
  text-align: center;
}

.stat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  color: var(--white);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.65); }

.profile-content { padding: 80px 0; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}
@media (min-width: 768px) { .profile-grid { grid-template-columns: 5fr 7fr; } }

.profile-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
}

.qualif-section { margin-bottom: 28px; }

.qualif-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.qualif-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-s);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.qualif-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-2);
  margin-bottom: 10px;
  line-height: 1.6;
  font-size: 14px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 28px 0;
}
@media (min-width: 768px) { .expertise-grid { grid-template-columns: 1fr 1fr; } }

.expertise-card {
  background: var(--surf);
  border-radius: var(--r-m);
  padding: 24px;
  transition: background var(--t-fast), transform var(--t-base);
}
.expertise-card:hover { background: var(--surf-2); transform: translateY(-4px); }

.expertise-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.expertise-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-s);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.expertise-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.expertise-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 5px;
}

.profile-cta {
  background: var(--brand);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  text-align: center;
  margin-top: 48px;
}
.profile-cta h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.profile-cta p {
  color: rgba(255,255,255,0.78);
  max-width: 440px;
  margin: 0 auto 28px;
  font-size: 1rem;
  line-height: 1.7;
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 32px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  transition: all var(--t-base) var(--ease);
}
.btn-white:hover {
  background: var(--surf);
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}

/* ════════════════════════════════════════════
   LEGACY / COMPAT
════════════════════════════════════════════ */
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 16px;
}

.about-title-wrap { margin-bottom: 24px; }
.about-title-wrap h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); color: var(--ink); }
.about-title-wrap h3 { font-size: 1.0625rem; color: var(--ink-2); font-weight: 400; margin-top: 6px; }
.title-underline {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand);
  border-radius: var(--r-pill);
  margin-top: 14px;
}
.about-text { color: var(--ink-2); line-height: 1.8; font-size: 1.0625rem; }
.about-text + .about-text { margin-top: 12px; }

/* profile-img-wrap compat */
.profile-img-wrap { position: relative; }

/* Help browser skip rendering below-the-fold sections until needed */
.about,
.services,
.technologies,
.testimonials,
.contact,
.profile-content,
.page-content {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1000px;
}

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

