/* ====================================================
   Dr. Baseem Namouz — Design Tokens & Styles
   Warm pediatric medical practice — sage green + coral
   ==================================================== */

/* --- DESIGN TOKENS --- */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
}

/* --- LIGHT MODE (default) --- */
:root, [data-theme="light"] {
  /* Surfaces — warm cream */
  --color-bg:             #faf9f6;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f3ef;
  --color-surface-offset: #eef0ea;
  --color-divider:        #e2dfd8;
  --color-border:         #d4d1c9;

  /* Text */
  --color-text:           #1a2e1a;
  --color-text-muted:     #5e6e5e;
  --color-text-faint:     #9ba69b;
  --color-text-inverse:   #faf9f6;

  /* Primary — Sage Green (trust, calm, medical) */
  --color-primary:        #3d7a5f;
  --color-primary-hover:  #2d6049;
  --color-primary-active: #1f4a36;
  --color-primary-light:  #e8f2ec;
  --color-primary-highlight: #d0e5d8;

  /* Accent — Warm Coral (CTAs, warmth, friendliness) */
  --color-accent:         #d4725c;
  --color-accent-hover:   #c45d47;
  --color-accent-active:  #b04a35;
  --color-accent-light:   #fdf0ed;

  /* Functional */
  --color-success:        #437a22;
  --color-warning:        #b07a00;
  --color-error:          #c44a4a;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.3 0.02 140 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.3 0.02 140 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.3 0.02 140 / 0.12);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --color-bg:             #141a16;
  --color-surface:        #1a221c;
  --color-surface-2:      #202a22;
  --color-surface-offset: #1c241e;
  --color-divider:        #2a342c;
  --color-border:         #354038;

  --color-text:           #d4ddd6;
  --color-text-muted:     #8a978c;
  --color-text-faint:     #5a6a5e;
  --color-text-inverse:   #1a2e1a;

  --color-primary:        #6aab8a;
  --color-primary-hover:  #56987a;
  --color-primary-active: #438568;
  --color-primary-light:  #1e2e24;
  --color-primary-highlight: #253530;

  --color-accent:         #e09580;
  --color-accent-hover:   #d4816a;
  --color-accent-active:  #c86e56;
  --color-accent-light:   #2a201e;

  --color-success:        #6daa45;
  --color-warning:        #e8af34;
  --color-error:          #e07070;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #141a16;
    --color-surface:        #1a221c;
    --color-surface-2:      #202a22;
    --color-surface-offset: #1c241e;
    --color-divider:        #2a342c;
    --color-border:         #354038;
    --color-text:           #d4ddd6;
    --color-text-muted:     #8a978c;
    --color-text-faint:     #5a6a5e;
    --color-text-inverse:   #1a2e1a;
    --color-primary:        #6aab8a;
    --color-primary-hover:  #56987a;
    --color-primary-active: #438568;
    --color-primary-light:  #1e2e24;
    --color-primary-highlight: #253530;
    --color-accent:         #e09580;
    --color-accent-hover:   #d4816a;
    --color-accent-active:  #c86e56;
    --color-accent-light:   #2a201e;
    --color-success:        #6daa45;
    --color-warning:        #e8af34;
    --color-error:          #e07070;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ====================================================
   LAYOUT — RTL & General
   ==================================================== */

html {
  direction: rtl;
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.container--narrow {
  max-width: var(--content-default);
}

/* ====================================================
   SKIP LINK
   ==================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  right: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-2);
}

/* ====================================================
   HEADER & NAVIGATION
   ==================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-4);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.header__logo svg {
  width: 40px;
  height: 40px;
}

.header__logo-image {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background: #fff;
}

.header__logo--institute {
  gap: var(--space-3);
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
}

.header__logo-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.header__nav {
  display: none;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.header__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-block: var(--space-1);
}

.header__nav a:hover {
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-switch {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: oklch(from var(--color-surface) l c h / 0.92);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.lang-switch__btn {
  min-height: 36px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
}

.lang-switch__btn.is-active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

@media (min-width: 768px) {
  .lang-switch {
    display: inline-flex;
  }
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

[dir="ltr"] {
  direction: ltr;
}

[dir="ltr"] .header__logo,
[dir="ltr"] .header__actions,
[dir="ltr"] .hero__buttons,
[dir="ltr"] .cta-buttons,
[dir="ltr"] .about__highlights,
[dir="ltr"] .trust-strip__inner,
[dir="ltr"] .treatments-grid,
[dir="ltr"] .reasons-grid,
[dir="ltr"] .cta-contact-details {
  direction: ltr;
}

[dir="ltr"] .section__header,
[dir="ltr"] .hero__content,
[dir="ltr"] .about__content,
[dir="ltr"] .cta-section,
[dir="ltr"] .footer {
  text-align: left;
}

[dir="ltr"] .clinic-hours__row,
[dir="ltr"] .cta-contact-details__item,
[dir="ltr"] .footer__bottom {
  direction: ltr;
}

[dir="ltr"] .header__nav {
  margin-inline: auto 0;
}

[dir="ltr"] .section__desc {
  margin-inline: 0 auto;
}

.page-about {
  background: linear-gradient(180deg, #fffdf8 0%, #f5f1ea 100%);
}

.page-adhd {
  background: linear-gradient(180deg, #f3faf8 0%, #eef5ff 100%);
}

.page-booking {
  background: linear-gradient(180deg, #fff7f2 0%, #fffdf9 100%);
}

.page-contact {
  background: linear-gradient(180deg, #f7fbfb 0%, #eef7f3 100%);
}

.page-doctors {
  background: linear-gradient(180deg, #faf7ff 0%, #f5f8fb 100%);
}

.page-treatments {
  background: linear-gradient(180deg, #f6fbf4 0%, #fffaf2 100%);
}

.page-portal {
  background: linear-gradient(180deg, #f4f8fb 0%, #eef3f8 100%);
}

.mobile-menu-btn:hover {
  background: var(--color-surface-2);
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 49;
  background: var(--color-bg);
  padding: calc(60px + var(--space-8)) var(--space-6) var(--space-6);
  flex-direction: column;
  gap: var(--space-1);
  overflow-y: auto;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none !important;
  }
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
}

.mobile-nav a:hover,
.mobile-nav a:active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.mobile-nav__cta {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-6);
  background: var(--color-accent);
  color: #fff !important;
  text-align: center;
  border-radius: var(--radius-lg);
  font-weight: 600;
}

.mobile-nav__cta:hover,
.mobile-nav__cta:active {
  background: var(--color-accent-hover) !important;
  color: #fff !important;
}

/* ====================================================
   BUTTONS
   ==================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-lg);
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
  border: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent-hover);
}
.btn--primary:active {
  background: var(--color-accent-active);
}

.btn--secondary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.2);
}
.btn--secondary:hover {
  background: var(--color-primary-highlight);
}
.btn--secondary:active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ====================================================
   HERO SECTION
   ==================================================== */

.hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  background: linear-gradient(
    170deg,
    var(--color-primary-light) 0%,
    var(--color-bg) 50%,
    var(--color-accent-light) 100%
  );
  position: relative;
  overflow: hidden;
}

.page-home {
  background:
    radial-gradient(circle at top right, oklch(from var(--color-accent) l c h / 0.10), transparent 26%),
    radial-gradient(circle at left center, oklch(from var(--color-primary) l c h / 0.09), transparent 28%),
    linear-gradient(180deg, #fffdfa 0%, var(--color-bg) 100%);
}

.page-home .section {
  position: relative;
}

.page-home .section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, oklch(from var(--color-primary) l c h / 0.015) 100%);
}

.hero--institute {
  padding-block: clamp(var(--space-10), 7vw, var(--space-20));
  background:
    radial-gradient(circle at top left, oklch(from var(--color-accent) l c h / 0.14), transparent 24%),
    radial-gradient(circle at top right, oklch(from var(--color-primary) l c h / 0.18), transparent 28%),
    linear-gradient(160deg, #fff9f3 0%, #f8fbfb 48%, #eef7f1 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, oklch(from var(--color-primary) l c h / 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.hero__institute-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__institute-grid {
    grid-template-columns: minmax(320px, 460px) 1fr;
    gap: var(--space-12);
  }
}

.hero__institute-grid--logo-only {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero__institute-grid--logo-only {
    grid-template-columns: minmax(280px, 360px) 1fr;
  }
}

.hero__content {
  order: 1;
}

.hero__content--centered {
  text-align: center;
}

.hero__content--centered .hero__subtitle {
  margin-inline: auto;
}

@media (min-width: 768px) {
  .hero__content {
    order: 0;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  color: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-4);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.15);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  display: inline;
}

.hero h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.hero h1 span {
  color: var(--color-primary);
  display: inline-block;
  white-space: nowrap;
}

.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 55ch;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__buttons--centered {
  justify-content: center;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__institute-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  position: relative;
}

.hero__portrait-card,
.hero__logo-card {
  background: oklch(from var(--color-surface) l c h / 0.92);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  box-shadow: var(--shadow-lg);
}

.hero__portrait-card {
  width: min(100%, 360px);
  aspect-ratio: 4 / 4.9;
  border-radius: 28px;
  overflow: hidden;
}

.hero__portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__logo-card {
  width: min(70%, 240px);
  aspect-ratio: 1;
  border-radius: 28px;
  display: grid;
  place-items: center;
  padding: var(--space-3);
  margin-top: calc(var(--space-4) * -1);
}

.hero__logo-card--hero-only {
  width: min(100%, 320px);
  margin-top: 0;
  padding: var(--space-4);
  border-radius: 32px;
}

.hero__logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__image-wrapper {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero__image-wrapper--photo {
  aspect-ratio: 4 / 4.6;
  max-width: 420px;
  background: linear-gradient(180deg, #fbfbfb 0%, #f3f7f8 100%);
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Decorative element behind hero image */
.hero__visual::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  right: -5%;
  border-radius: var(--radius-2xl);
  background: oklch(from var(--color-primary) l c h / 0.08);
  z-index: -1;
  transform: rotate(-3deg);
}

/* ====================================================
   TRUST INDICATORS (below hero)
   ==================================================== */

.home-quote-box {
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
  border-color: oklch(from var(--color-primary) l c h / 0.16);
}

.trust-strip {
  padding-block: var(--space-6);
  background: var(--color-surface);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.trust-item__number {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
}

.trust-item__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ====================================================
   SECTION — "WHY FAMILIES COME TO US"
   ==================================================== */

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section--alt {
  background: var(--color-surface-2);
}

.page-home #services {
  background:
    linear-gradient(180deg, oklch(from var(--color-primary) l c h / 0.035) 0%, transparent 100%),
    var(--color-surface-2);
}

.page-home #director {
  background:
    radial-gradient(circle at top center, oklch(from var(--color-accent) l c h / 0.06), transparent 34%),
    var(--color-bg);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section__header--start {
  text-align: start;
}

.section__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.section__title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
  line-height: 1.7;
}

.section__header--start .section__desc {
  margin-inline: 0;
}

/* Reasons Grid */
.vision-photo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.vision-photo__frame {
  width: min(100%, 260px);
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.vision-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reason-card {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}

.reason-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reason-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.reason-card__icon svg {
  width: 22px;
  height: 22px;
}

.reason-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.reason-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Feature card with accent color */
.reason-card--accent .reason-card__icon {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* ====================================================
   TREATMENTS SECTION
   ==================================================== */

.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: oklch(from var(--color-surface) l c h / 0.96);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__media {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.service-card__media svg {
  width: 120px;
  height: 120px;
}

.service-card__media--mint {
  background: linear-gradient(180deg, #eef8f2 0%, #f9fdf9 100%);
}

.service-card__media--sky {
  background: linear-gradient(180deg, #edf7ff 0%, #fbfdff 100%);
  color: #4a7da6;
}

.service-card__media--coral {
  background: linear-gradient(180deg, #fff2ed 0%, #fffaf8 100%);
  color: var(--color-accent);
}

.service-card__media--gold {
  background: linear-gradient(180deg, #fff7e9 0%, #fffdf8 100%);
  color: #c89a31;
}

.service-card__media--lavender {
  background: linear-gradient(180deg, #f5f1ff 0%, #fcfbff 100%);
  color: #8461b6;
}

.service-card__media--teal {
  background: linear-gradient(180deg, #edf9f8 0%, #fbfefd 100%);
  color: #2a8b8d;
}

.service-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  padding: var(--space-5) var(--space-5) var(--space-2);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding: 0 var(--space-5) var(--space-5);
}

/* ====================================================
   ABOUT SECTION — Doctor Profile
   ==================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-12);
  }
}

.about__image {
  position: relative;
}

.about__photo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-surface-2);
  margin-inline: auto;
  box-shadow: var(--shadow-md);
}

.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about__content h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.about__content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.about__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.about__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--color-primary-light);
  color: var(--color-primary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ====================================================
   ADHD SECTION — Special Feature
   ==================================================== */

.adhd-section {
  background: linear-gradient(
    175deg,
    var(--color-primary-light) 0%,
    var(--color-bg) 60%
  );
}

.page-home .trust-strip {
  background:
    linear-gradient(180deg, oklch(from var(--color-surface) l c h / 0.98), oklch(from var(--color-surface-2) l c h / 0.96));
}

.adhd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .adhd-grid {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-12);
  }
}

.adhd__content h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.adhd__content > p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.adhd__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.adhd-feature {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.adhd-feature__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.adhd-feature__icon svg {
  width: 20px;
  height: 20px;
}

.adhd-feature__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.adhd-feature__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ADHD Info Box */
.adhd__info-box {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.15);
}

.adhd__info-box h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.adhd__info-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.adhd__info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.adhd__info-list li svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ====================================================
   FUTURE DOCTORS SECTION
   ==================================================== */

.future-section {
  text-align: center;
}

.future-section .section__desc {
  margin-bottom: var(--space-6);
}

.future__coming-soon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px dashed var(--color-border);
}

/* ====================================================
   CTA SECTION
   ==================================================== */

.cta-section {
  background: var(--color-primary);
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, oklch(1 0 0 / 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-3);
}

.cta-section p {
  font-size: var(--text-base);
  color: oklch(1 0 0 / 0.8);
  margin-bottom: var(--space-6);
  max-width: 50ch;
  margin-inline: auto;
  line-height: 1.7;
}

.cta-section .btn--primary {
  background: #fff;
  color: var(--color-primary);
}
.cta-section .btn--primary:hover {
  background: oklch(1 0 0 / 0.9);
}

.cta-section .btn--outline {
  border-color: oklch(1 0 0 / 0.3);
  color: #fff;
}
.cta-section .btn--outline:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(1 0 0 / 0.5);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

.cta-contact-details {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  color: oklch(1 0 0 / 0.9);
  font-size: var(--text-sm);
}

.cta-contact-details__item a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reason-card__text a,
.contact-info-box__item a,
.footer__links a,
.clinic-hours a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.clinic-hours {
  margin-top: var(--space-8);
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  text-align: start;
}

.clinic-hours h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.clinic-hours__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.clinic-hours__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid oklch(1 0 0 / 0.08);
  color: oklch(1 0 0 / 0.88);
  font-size: var(--text-sm);
}

.clinic-hours__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ====================================================
   CONTACT PAGE HELPERS
   ==================================================== */

.contact-info-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.contact-info-box__item {
  color: var(--color-text-muted);
  line-height: 1.8;
  font-size: var(--text-sm);
}

.contact-info-box__item strong {
  color: var(--color-text);
}

.clinic-hours--light {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.clinic-hours--light h3 {
  color: var(--color-text);
}

.clinic-hours--light .clinic-hours__row {
  color: var(--color-text-muted);
  border-bottom-color: oklch(from var(--color-text) l c h / 0.08);
}

/* ====================================================
   FOOTER
   ==================================================== */

.footer {
  background: var(--color-surface-2);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  padding-block: var(--space-12) var(--space-6);
}

.page-home .footer {
  background:
    radial-gradient(circle at bottom left, oklch(from var(--color-primary) l c h / 0.06), transparent 30%),
    var(--color-surface-2);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
  }

  .cta-contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: var(--space-3);
  max-width: 35ch;
}

.footer__links h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.footer__links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links li span {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer__bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--color-primary);
}

.workshop-popup {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.workshop-popup.is-visible {
  display: flex;
}

.workshop-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
}

.workshop-popup__card {
  position: relative;
  width: min(100%, 620px);
  background: linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
  border-radius: 30px;
  padding: 34px 28px 28px;
  box-shadow: 0 28px 70px rgba(30, 27, 75, 0.22);
  text-align: center;
  border: 1px solid rgba(79, 70, 229, 0.14);
}

.workshop-popup__close {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(49, 46, 129, 0.08);
  color: var(--color-primary);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.workshop-popup__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.10);
  color: var(--color-primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.workshop-popup__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #1e1b4b;
  margin-bottom: 14px;
  font-weight: 800;
}

.workshop-popup__text {
  color: #4a4768;
  font-size: 1.08rem;
  line-height: 1.9;
  margin: 0 auto 20px;
  max-width: 500px;
}

.workshop-popup__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.workshop-popup__note {
  margin-top: 14px;
  color: #6d688d;
  font-size: 0.92rem;
}

.workshop-popup__actions .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 640px) {
  .workshop-popup__card {
    padding: 28px 18px 22px;
  }

  .workshop-popup__actions {
    flex-direction: column;
  }
}

/* ====================================================
   SCROLL ANIMATIONS
   ==================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0ms; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 80ms; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 160ms; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 240ms; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 320ms; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
