/* =============================================
   GLOBAL STYLES — Psychiatrist Website
   Palette: Calm Violet + Warm Cream
   Fonts: Cormorant Garamond + DM Sans + Noto Naskh Arabic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  /* Colors — Dr. Hamouda brand: warm brown / cream */
  --clr-bg:         #FAF7F4;
  --clr-bg-alt:     #F4EDE6;
  --clr-surface:    #FFFFFF;
  --clr-primary:    #7B3A10;
  --clr-primary-lt: #9E5227;
  --clr-primary-dk: #4E2008;
  --clr-accent:     #B07848;
  --clr-accent-lt:  #D9BC9E;
  --clr-gold:       #C4933A;
  --clr-text:       #2A1A0E;
  --clr-text-mid:   #5A4030;
  --clr-text-light: #9E8070;
  --clr-border:     #E8D8C8;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-arabic:  'Noto Naskh Arabic', serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 48px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(92,74,127,0.07);
  --shadow-md: 0 8px 32px rgba(92,74,127,0.12);
  --shadow-lg: 0 20px 60px rgba(92,74,127,0.16);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 300ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--clr-primary-dk);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--clr-text-mid); font-size: 1.05rem; line-height: 1.8; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Arabic text */
.ar {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

/* ── Layout Utilities ───────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background-color: var(--clr-bg-alt);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clr-text-mid);
  max-width: 520px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--clr-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(92,74,127,0.3);
}

.btn-primary:hover {
  background: var(--clr-primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(92,74,127,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-accent);
}

.btn-outline:hover {
  background: var(--clr-bg-alt);
  border-color: var(--clr-primary);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
}

/* ── Navigation ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--dur) var(--ease);
}

.nav.scrolled {
  background: rgba(250,248,245,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--clr-border);
  padding: 0.7rem 0;
}

.nav.nav-over-dark:not(.scrolled) {
  background: rgba(46,14,0,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-hero .nav-logo-name { color: white; }
.nav-hero .nav-logo-clinic { color: rgba(255,255,255,0.92); }
.nav-hero .nav-logo-tagline { color: rgba(255,255,255,0.55); }
.nav-hero .nav-links a { color: rgba(255,255,255,0.78); }
.nav-hero .nav-links a:hover,
.nav-hero .nav-links a.active { color: white; }
.nav-hero .nav-links a::after { background: white; }
.nav-hero .nav-lang { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.25); }
.nav-hero .nav-hamburger span { background: white; }

.nav.scrolled .btn-ghost {
  background: transparent;
  color: var(--clr-primary);
  border: 1.5px solid var(--clr-accent);
  backdrop-filter: none;
}

.nav.scrolled .btn-ghost:hover {
  background: var(--clr-bg-alt);
  border-color: var(--clr-primary);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  line-height: 1.2;
}

.nav-logo-img {
  height: 42px;
  width: 42px;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 2px;
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-clinic {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--clr-accent);
  line-height: 1.35;
  margin-bottom: 0.15rem;
}

.nav-logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-primary-dk);
}

.nav-logo-tagline {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  font-weight: 500;
  line-height: 1.35;
  color: var(--clr-text-light);
  margin-top: 0.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-mid);
  transition: color var(--dur) var(--ease);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--clr-primary);
  transition: width var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-lang {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-accent);
  cursor: pointer;
  border: 1px solid var(--clr-accent-lt);
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  transition: all var(--dur) var(--ease);
}

.nav-lang:hover {
  background: var(--clr-bg-alt);
  color: var(--clr-primary);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
  transition: all var(--dur) var(--ease);
  display: block;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
}

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

/* ── Decorative ─────────────────────────────── */
.deco-blob {
  position: absolute;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: var(--clr-accent-lt);
  opacity: 0.18;
  pointer-events: none;
}

.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-accent));
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── Tags / Badges ──────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--clr-bg-alt);
  color: var(--clr-primary);
  border: 1px solid var(--clr-accent-lt);
}

/* ── Footer ─────────────────────────────────── */
.footer {
  background: var(--clr-primary-dk);
  color: rgba(255,255,255,0.75);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 520px;
  gap: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-md);
}

.footer-brand h3 {
  font-family: var(--font-display);
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-col h4 {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover { color: white; }

.footer-clinics {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  direction: rtl;
  text-align: right;
}

.footer-clinics > h4 {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-clinics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
}

.footer-clinic {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  align-items: start;
  text-align: right;
}

.footer-clinic h5 {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0;
}

.footer-clinic p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 0;
  align-self: start;
  text-shadow: none;
}

.footer-clinic-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--clr-accent-lt);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--dur) var(--ease);
}

.footer-clinic-phone:hover { color: var(--clr-gold); }

.footer-clinic-phones {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem 0.75rem;
  width: 100%;
  align-self: start;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  text-align: right;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom-start {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  direction: rtl;
}

.footer-copyright-mark {
  unicode-bidi: isolate;
}

.footer-credit {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
}

.footer-credit a {
  color: var(--clr-accent-lt);
  font-weight: 700;
  transition: color var(--dur) var(--ease);
  unicode-bidi: isolate;
}

.footer-credit a:hover { color: var(--clr-gold); }

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}

.social-link:hover { background: rgba(255,255,255,0.2); }

.social-link svg { width: 16px; height: 16px; }

.intro-social-wrap { margin-top: 1.5rem; }

.intro-social-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

.intro-social {
  display: flex;
  gap: 0.6rem;
}

.intro-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur) var(--ease);
}

.intro-social a:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
}

.intro-social a:hover svg { color: white; }

.intro-social svg {
  width: 16px;
  height: 16px;
  color: var(--clr-primary);
  fill: currentColor;
}

/* ── Page Hero (inner pages) ────────────────── */
.page-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--clr-bg-alt) 0%, var(--clr-bg) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.15rem; max-width: 500px; }

/* ── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.anim-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) forwards;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

/* ── Form elements ──────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text);
}

.form-control {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--clr-text);
  background: var(--clr-surface);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  width: 100%;
}

.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(92,74,127,0.12);
}

.form-control.is-invalid,
.form-control-select.is-invalid {
  border-color: #c53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.12);
}

.form-control.is-invalid:focus,
.form-control-select.is-invalid:focus {
  border-color: #c53030;
  box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.16);
}

.field-error {
  display: none;
  font-size: 0.82rem;
  color: #c53030;
  line-height: 1.5;
}

.field-error.is-visible {
  display: block;
}

textarea.form-control { resize: vertical; min-height: 140px; }

/* ── Quote mark ─────────────────────────────── */
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--clr-accent-lt);
  margin-bottom: 0.5rem;
  display: block;
}

/* ── Stars ──────────────────────────────────── */
.stars {
  color: var(--clr-gold);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* ── Mobile nav ─────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: 99;
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
}

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

.mobile-nav-close {
  position: absolute;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-nav-close span {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--clr-primary-dk);
  border-radius: 2px;
  display: block;
}

.mobile-nav-close span:first-child { transform: rotate(45deg); }
.mobile-nav-close span:last-child { transform: rotate(-45deg); }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--clr-primary-dk);
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 1rem;
}

/* ── Certificates ───────────────────────────── */
.certs-section {
  padding: var(--space-xl) 0;
  background: var(--clr-bg-alt);
}

.certs-header {
  text-align: center;
  margin-bottom: 3rem;
}

.certs-header .divider {
  margin: 1rem auto 1.5rem;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr auto;
  gap: 1.25rem;
  align-items: stretch;
}

.cert-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  background: var(--clr-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  padding: 0;
  width: 100%;
  text-align: inherit;
  font: inherit;
  align-items: stretch;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent);
}

.cert-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  height: 100%;
  background: var(--clr-bg-alt);
  padding: 0.65rem;
  line-height: 0;
}

.cert-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: calc(var(--radius-md) - 4px);
}

.cert-info {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem 1rem;
  text-align: center;
  min-height: 4.25rem;
}

.cert-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.55;
  margin: 0;
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cert-lightbox.open { display: flex; }

.cert-lightbox-inner {
  position: relative;
  max-width: min(920px, 90vw);
  max-height: 88vh;
  animation: fadeUp 0.3s var(--ease);
}

.cert-lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.cert-lightbox-close {
  position: fixed;
  top: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
  z-index: 1001;
}

.cert-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.cert-lightbox-close svg { width: 20px; height: 20px; color: white; }

.cert-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
  z-index: 1001;
}

.cert-lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.cert-lightbox-nav svg { width: 22px; height: 22px; color: white; }
.cert-lightbox-prev { inset-inline-start: 1.25rem; }
.cert-lightbox-next { inset-inline-end: 1.25rem; }

.cert-lightbox-title {
  margin: 1rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  max-width: 520px;
  margin-inline: auto;
}

/* ── Therapists ─────────────────────────────── */
.therapists-section {
  padding: var(--space-xl) 0;
  background: var(--clr-bg);
}

.therapists-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.therapists-header .section-subtitle {
  margin-top: 0;
  max-width: 520px;
}

.therapists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.therapist-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: all var(--dur) var(--ease);
}

.therapist-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent-lt);
}

.therapist-card-photo {
  position: relative;
  background: linear-gradient(180deg, var(--clr-bg-alt) 0%, #efe4d8 100%);
  overflow: hidden;
}

.therapist-card-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-accent));
}

.therapist-card-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.therapist-card-body {
  padding: 1rem 1rem 1.15rem;
  text-align: center;
}

.therapist-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--clr-primary-dk);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.therapist-card-role {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--clr-accent);
  line-height: 1.55;
  margin: 0;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .therapists-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-clinics-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 1.75rem;
  }

  .footer-clinic {
    grid-row: auto;
    grid-template-rows: auto auto auto;
    row-gap: 0.5rem;
  }

  .footer-clinic p {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.8;
  }
}

@media (max-width: 768px) {
  :root { --space-xl: 4rem; --space-lg: 3rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav .btn-primary { color: white; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .certs-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    max-width: 520px;
    margin-inline: auto;
  }

  .cert-card {
    grid-row: auto;
    grid-template-rows: auto auto;
  }

  .cert-lightbox-nav { display: none; }
  .cert-lightbox { padding: 1rem; }
  .therapists-grid { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .therapists-header { flex-direction: column; align-items: flex-start; }
}
