@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Work+Sans:wght@300;400;500;600;700&display=swap');

/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
  --clr-ivory:        #0F2C55;
  --clr-ivory-deep:    #133766;
  --clr-navy:          #16427A;
  --clr-navy-deep:     #0D2B52;
  --clr-slate:         #4C6480;
  --clr-teal:          #7DB2F0;
  --clr-teal-deep:     #9CC9F7;
  --clr-teal-tint:     rgba(74, 144, 226, 0.16);
  --clr-grey:          rgba(255, 255, 255, 0.22);
  --clr-line:          rgba(255, 255, 255, 0.12);
  --clr-text:          #E6ECF2;
  --clr-text-muted:    rgba(230, 236, 242, 0.72);
  --clr-white:         #FFFFFF;
  --clr-error:         #E2736B;

  --clr-brass:         #B08A57;
  --clr-brass-deep:    #C9A26A;
  --clr-brass-tint:    rgba(201, 162, 106, 0.30);

  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --ff-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1220px;
  --radius-s: 6px;
  --radius-m: 12px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;

  --shadow-card: 0 1px 2px rgba(22, 66, 122, 0.04), 0 12px 28px -14px rgba(22, 66, 122, 0.18);
  --shadow-lift: 0 20px 45px -20px rgba(22, 66, 122, 0.28);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

@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; }
}

body {
  font-family: var(--ff-body);
  color: var(--clr-text);
  background-color: var(--clr-ivory);
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--clr-navy);
  letter-spacing: -0.01em;
}

p { color: var(--clr-text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.section-pad { padding: 112px 0; }
.section-pad--tight { padding: 88px 0; }

.bg-alt { background-color: var(--clr-ivory-deep); }
.bg-navy { background-color: var(--clr-navy); }
.bg-navy p, .bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--clr-white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: var(--clr-brass-deep);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 26px;
  height: 1px;
  background-color: var(--clr-brass);
}
.bg-navy .eyebrow, .hero--dark .eyebrow { color: var(--clr-brass); }
.bg-navy .eyebrow::before, .hero--dark .eyebrow::before { background-color: var(--clr-brass); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  margin-bottom: 18px;
}

.section-head p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--clr-teal-deep);
  color: var(--clr-white);
  box-shadow: 0 14px 28px -14px rgba(61, 98, 89, 0.65);
}
.btn-primary:hover { background-color: var(--clr-navy); transform: translateY(-2px); box-shadow: 0 18px 32px -14px rgba(22, 66, 122, 0.55); }
.btn-primary:focus-visible { outline: 2px solid var(--clr-navy); outline-offset: 3px; }

.btn-outline {
  background-color: transparent;
  color: var(--clr-navy);
  border: 1.5px solid var(--clr-navy);
}
.btn-outline:hover { background-color: var(--clr-navy); color: var(--clr-white); transform: translateY(-2px); }

.btn-on-navy {
  background-color: var(--clr-brass);
  color: var(--clr-navy-deep);
  box-shadow: 0 14px 30px -14px rgba(176, 138, 87, 0.55);
}
.btn-on-navy:hover { background-color: var(--clr-white); transform: translateY(-2px); }

.btn-outline-on-navy {
  background-color: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-on-navy:hover { border-color: var(--clr-brass); background-color: rgba(176,138,87,0.1); transform: translateY(-2px); }

.btn-sm { padding: 11px 22px; font-size: 0.875rem; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--clr-teal-deep);
  outline-offset: 2px;
}

/* ==========================================
   HEADER / NAV
   ========================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background-color: rgba(246, 242, 233, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(176, 138, 87, 0.3);
  background-color: rgba(246, 242, 233, 0.97);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  white-space: nowrap;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--clr-navy);
}
.brand-sub {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--clr-teal-deep);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background-color: var(--clr-teal-deep);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--clr-navy); }
.nav-link:hover::after { width: 100%; }

.nav-cta-wrap { display: flex; align-items: center; gap: 18px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  z-index: 600;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--clr-navy);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  margin: 0 auto;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  padding: 200px 0 120px;
  overflow: hidden;
  position: relative;
}

.hero--dark {
  background-color: var(--clr-navy-deep);
  background-image:
    radial-gradient(circle at 82% 28%, rgba(74, 144, 226, 0.22), transparent 48%),
    radial-gradient(circle at 12% 82%, rgba(176, 138, 87, 0.12), transparent 45%),
    linear-gradient(180deg, var(--clr-navy) 0%, var(--clr-navy-deep) 100%);
}

.hero--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 30%, black, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow { margin-bottom: 24px; }

.hero-title {
  font-size: clamp(2.7rem, 4.7vw, 4.3rem);
  margin-bottom: 20px;
  color: var(--clr-white);
}

.hero-qualification {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--clr-brass);
  margin-bottom: 28px;
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.68);
}

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

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 8%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.28), transparent 68%);
  filter: blur(6px);
  z-index: 0;
}

.hero-visual svg { width: 100%; height: 100%; position: relative; z-index: 1; }
.hero-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: inset 0 0 0 1px rgba(176, 138, 87, 0.35), 0 40px 80px -30px rgba(4, 20, 50, 0.55);
}

.hero-visual-card {
  position: absolute;
  bottom: 4%;
  left: 2%;
  background-color: rgba(13, 43, 82, 0.88);
  border: 1px solid rgba(176, 138, 87, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-m);
  box-shadow: 0 30px 60px -20px rgba(4,20,50,0.5);
  padding: 20px 24px;
  max-width: 240px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  z-index: 2;
}
.hero-visual-card strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 0.9375rem;
  color: var(--clr-white);
  font-weight: 500;
  margin-bottom: 5px;
}

/* ==========================================
   TRUST STRIP
   ========================================== */
.trust-strip {
  background-color: var(--clr-navy-deep);
  border-top: 1px solid var(--clr-brass-tint);
  padding: 34px 0;
  position: relative;
}
.trust-strip::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-brass), transparent);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.trust-item {
  padding: 6px 36px;
  border-right: 1px solid rgba(255,255,255,0.12);
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  color: var(--clr-white);
  font-weight: 500;
}
.trust-item:last-child { border-right: none; }
.trust-item span {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ==========================================
   ABOUT
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.about-mark {
  position: relative;
  background-color: var(--clr-navy);
  background-image:
    radial-gradient(circle at 50% 38%, rgba(74, 144, 226, 0.32), transparent 60%),
    linear-gradient(160deg, var(--clr-navy) 0%, var(--clr-navy-deep) 100%);
  border-radius: var(--radius-m);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(176, 138, 87, 0.28), var(--shadow-lift);
}
.about-mark svg { width: 62%; height: 62%; }
.about-mark img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

.about-name {
  font-size: 1.6rem;
  margin-bottom: 4px;
}
.about-role {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-teal-deep);
  margin-bottom: 22px;
}

.about-bio {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 28px;
}
.about-bio.is-placeholder {
  font-style: italic;
  padding: 16px 18px;
  background-color: var(--clr-ivory-deep);
  border-left: 2px solid var(--clr-teal-deep);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.about-fact-list { display: flex; flex-direction: column; gap: 14px; }
.about-fact {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--clr-line);
  font-size: 0.9375rem;
}
.about-fact dt {
  font-weight: 600;
  color: var(--clr-navy);
  min-width: 130px;
  flex-shrink: 0;
}
.about-fact dd { color: var(--clr-text-muted); }

/* ==========================================
   CREDENTIALS TIMELINE (Education)
   ========================================== */
.cred-timeline {
  display: flex;
  flex-direction: column;
}

.cred-row {
  display: grid;
  grid-template-columns: 160px 40px 1fr;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--clr-line);
}
.cred-row:last-child { border-bottom: 1px solid var(--clr-line); }

.cred-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--clr-teal-deep);
}

.cred-dot-col { display: flex; justify-content: center; position: relative; }
.cred-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background-color: var(--clr-navy);
  border: 3px solid var(--clr-teal-tint);
  z-index: 2;
}

.cred-title {
  font-size: 1.375rem;
  margin-bottom: 4px;
}
.cred-desc { font-size: 0.9375rem; }

/* ==========================================
   INTRO STATEMENT (Orthopaedic Care)
   ========================================== */
.statement {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

.statement-label { padding-top: 6px; }

.statement-text {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  font-weight: 400;
  color: var(--clr-navy);
  line-height: 1.45;
  position: relative;
  padding-top: 26px;
}
.statement-text::before {
  content: '\201C';
  position: absolute;
  top: -34px;
  left: -6px;
  font-family: var(--ff-display);
  font-size: 6rem;
  color: var(--clr-brass);
  opacity: 0.4;
  line-height: 1;
}

/* ==========================================
   CONDITIONS GRID
   ========================================== */
.note-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background-color: var(--clr-teal-tint);
  border-radius: var(--radius-s);
  padding: 16px 20px;
  font-size: 0.875rem;
  color: var(--clr-teal-deep);
  margin-bottom: 44px;
  max-width: 720px;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.condition-card {
  position: relative;
  background-color: var(--clr-white);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-m);
  padding: 36px 28px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.condition-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background-color: var(--clr-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.condition-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.condition-card:hover::before { transform: scaleX(1); }

.condition-icon {
  width: 52px; height: 52px;
  margin-bottom: 24px;
  color: var(--clr-teal-deep);
  background-color: var(--clr-teal-tint);
  border: 1px solid rgba(176, 138, 87, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.condition-icon svg { width: 22px; height: 22px; }

.condition-card h3 { font-size: 1.1875rem; margin-bottom: 11px; }
.condition-card p { font-size: 0.9375rem; margin-bottom: 20px; }

.condition-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.condition-card--placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1.5px dashed var(--clr-grey);
  background-color: transparent;
  color: var(--clr-text-muted);
  font-size: 0.9375rem;
  font-style: italic;
}
.condition-card--placeholder:hover { transform: none; box-shadow: none; border-color: var(--clr-brass); }
.condition-card--placeholder::before { display: none; }

/* ==========================================
   INTERVENTIONS
   ========================================== */
.interventions-panel {
  background-color: var(--clr-navy);
  background-image: radial-gradient(circle at 88% 12%, rgba(176, 138, 87, 0.16), transparent 50%);
  border-radius: var(--radius-m);
  padding: 64px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(176, 138, 87, 0.22);
}

.interventions-tag {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--clr-white);
  border-left: 2px solid var(--clr-brass);
  padding-left: 22px;
}

.interventions-copy p {
  color: rgba(255,255,255,0.72);
  font-size: 1.0625rem;
  font-style: italic;
  margin-bottom: 26px;
}

.intervention-card-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.intervention-card {
  border: 1.5px dashed rgba(255,255,255,0.28);
  border-radius: var(--radius-s);
  padding: 18px 20px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}

/* ==========================================
   WHEN TO SEE
   ========================================== */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 48px;
  margin-bottom: 48px;
}

.sign-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--clr-line);
}
.sign-mark {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--clr-teal-deep);
}
.sign-mark svg { width: 100%; height: 100%; }
.sign-item p { color: var(--clr-text); font-size: 1rem; }

/* ==========================================
   PATIENT JOURNEY
   ========================================== */
.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.journey::before {
  content: '';
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 1px;
  background-color: var(--clr-line);
  z-index: 0;
}

.journey-step { position: relative; z-index: 1; }

.journey-index {
  width: 46px; height: 46px;
  border-radius: 50%;
  background-color: var(--clr-navy);
  box-shadow: 0 0 0 4px var(--clr-ivory), 0 0 0 5px var(--clr-brass-tint);
  color: var(--clr-white);
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}

.journey-step h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.journey-step p { font-size: 0.875rem; }

/* ==========================================
   RESOURCES
   ========================================== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  position: relative;
  background-color: var(--clr-white);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.resource-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background-color: var(--clr-brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.resource-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); border-color: transparent; }
.resource-card:hover::before { transform: scaleY(1); }

.resource-status {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--clr-teal-deep);
  background-color: var(--clr-teal-tint);
  padding: 5px 11px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.resource-card h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.resource-card p { font-size: 0.875rem; }

/* ==========================================
   CTA BAND
   ========================================== */
.cta-band {
  position: relative;
  border-radius: var(--radius-m);
  background-color: var(--clr-navy-deep);
  background-image: radial-gradient(circle at 50% 0%, rgba(74, 144, 226, 0.24), transparent 55%);
  padding: 80px 64px;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(176, 138, 87, 0.22);
}
.cta-band h2 { color: var(--clr-white); font-size: clamp(1.8rem, 2.8vw, 2.5rem); max-width: 600px; margin: 0 auto 22px; }
.cta-band h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background-color: var(--clr-brass);
  margin: 22px auto 0;
}
.cta-band p { color: rgba(255,255,255,0.68); max-width: 520px; margin: 0 auto 36px; font-size: 1.0625rem; }
.cta-band-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ==========================================
   CONTACT
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-list { display: flex; flex-direction: column; }
.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--clr-line);
  font-size: 0.9375rem;
}
.contact-row:last-child { border-bottom: 1px solid var(--clr-line); }
.contact-row dt { font-weight: 600; color: var(--clr-navy); }
.contact-row dd a { color: var(--clr-teal-deep); font-weight: 500; }
.contact-row dd a:hover { text-decoration: underline; }
.contact-row .is-placeholder { color: var(--clr-text-muted); font-style: italic; }

.appt-form {
  background-color: var(--clr-white);
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-m);
  padding: 40px;
}
.appt-form h3 { font-size: 1.25rem; margin-bottom: 6px; }
.appt-form > p { font-size: 0.875rem; margin-bottom: 28px; }

.form-row { margin-bottom: 20px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--clr-line);
  border-radius: var(--radius-s);
  background-color: var(--clr-ivory);
  color: var(--clr-text);
  transition: border-color 0.25s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--clr-teal-deep);
  outline: none;
}
.form-row textarea { resize: vertical; min-height: 90px; }
.error-msg { color: var(--clr-error); font-size: 0.78rem; margin-top: 6px; display: none; }

/* ==========================================
   FOOTER
   ========================================== */
.footer { background-color: var(--clr-navy-deep); padding: 72px 0 28px; border-top: 1px solid var(--clr-brass-tint); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .brand-name { color: var(--clr-white); }
.footer-brand .brand-sub { color: var(--clr-teal); }
.footer-desc { color: rgba(255,255,255,0.55); font-size: 0.9375rem; max-width: 320px; }
.footer-col h4 { color: var(--clr-white); font-family: var(--ff-body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col li { color: rgba(255,255,255,0.6); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--clr-brass); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--clr-white); }
.footer-legal { display: flex; gap: 20px; }

/* ==========================================
   MODALS / TOASTS
   ========================================== */
dialog.custom-modal {
  border: none;
  border-radius: var(--radius-m);
  padding: 0;
  max-width: 560px;
  width: 90%;
  box-shadow: var(--shadow-lift);
}
dialog.custom-modal::backdrop { background-color: rgba(13, 43, 82, 0.55); backdrop-filter: blur(2px); }
.modal-inner { padding: 36px; max-height: 72vh; overflow-y: auto; }
.modal-inner h3 { font-size: 1.3rem; margin-bottom: 16px; }
.modal-inner p { margin-bottom: 14px; font-size: 0.9375rem; }
.modal-close-row { padding: 20px 36px 30px; border-top: 1px solid var(--clr-line); display: flex; justify-content: flex-end; }

.toast-container {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toast { animation: toastIn 0.35s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================
   SCROLL REVEAL
   ========================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ==========================================
   MOBILE NAV OVERLAY
   ========================================== */
@media (max-width: 1100px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(340px, 82vw);
    background-color: var(--clr-navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 550;
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links .nav-link { color: var(--clr-white); font-size: 1.125rem; }
  .nav-links .nav-link::after { background-color: var(--clr-teal); }
  .nav-cta-wrap .btn-primary.nav-desktop-cta { display: none; }
  .hamburger { display: flex; }
}

/* ==========================================
   RESPONSIVE — TABLET / DESKTOP SCALE
   ========================================== */
@media (max-width: 1180px) {
  .container { padding: 0 28px; }
  .interventions-panel { padding: 48px; gap: 40px; }
}

@media (max-width: 1024px) {
  .hero { padding: 150px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .about-mark { max-width: 340px; aspect-ratio: 1/1; margin: 0 auto; }
  .condition-grid { grid-template-columns: repeat(2, 1fr); }
  .interventions-panel { grid-template-columns: 1fr; text-align: left; }
  .intervention-card-row { grid-template-columns: 1fr; }
  .signs-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: repeat(5, 1fr); gap: 18px; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .statement { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 900px) {
  .interventions-tag { border-left: none; padding-left: 0; border-top: 2px solid var(--clr-teal); padding-top: 14px; }
}

@media (max-width: 820px) {
  .section-pad { padding: 84px 0; }
  .section-pad--tight { padding: 68px 0; }
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .journey::before { display: none; }
  .cta-band { padding: 56px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 680px) {
  .nav-inner { height: 76px; }
  .brand-name { font-size: 0.95rem; }
  .hero { padding: 120px 0 64px; }
  .hero-desc { max-width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-visual-card { position: static; margin-top: 18px; max-width: none; }
  .trust-row { flex-direction: column; gap: 0; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--clr-line); width: 100%; padding: 16px 0; }
  .trust-item:last-child { border-bottom: none; }
  .condition-grid { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; gap: 0; }
  .appt-form { padding: 26px; }
  .cred-row { grid-template-columns: 90px 24px 1fr; gap: 12px; }
  .cta-band-actions { flex-direction: column; align-items: stretch; }
  .cta-band-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .interventions-panel { padding: 34px 26px; }
}

/* Outline button legibility on the dark hero */
.hero--dark .btn-outline {
  color: var(--clr-white);
  border-color: rgba(255, 255, 255, 0.45);
}
.hero--dark .btn-outline:hover {
  background-color: var(--clr-white);
  color: var(--clr-navy);
  border-color: var(--clr-white);
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  min-width: 58px;
  padding: 0 16px;
  justify-content: center;
  background-color: #128C4A;
  color: #fff;
  border-radius: 999px;
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: 0 10px 28px -6px rgba(4, 20, 50, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.wa-float:hover { background-color: #0F7A40; transform: translateY(-3px); box-shadow: 0 14px 32px -6px rgba(4, 20, 50, 0.4); }
.wa-float:focus-visible { outline: 3px solid var(--clr-navy); outline-offset: 3px; }
.wa-float svg { flex-shrink: 0; }
.wa-float::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #128C4A;
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 58px; padding: 0; }
  .wa-float-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

.form-row .req { color: var(--clr-error); }
.form-row select { appearance: auto; cursor: pointer; }


/* ==========================================================
   DARK THEME OVERRIDES (dark background, light text)
   Tokens above were re-pointed to dark values; these rules
   fix the components that used navy/white as surface colours.
   ========================================================== */
h1, h2, h3, h4 { color: var(--clr-white); }
.site-header { background-color: rgba(15, 44, 85, 0.85); }
.site-header.is-scrolled { background-color: rgba(15, 44, 85, 0.97); }
.brand-name { color: var(--clr-white); }
.brand-sub { color: var(--clr-teal-deep); }
.nav-link { color: rgba(255, 255, 255, 0.82); }
.nav-link:hover { color: var(--clr-white); }
.nav-link::after { background-color: var(--clr-brass); }
.hamburger span { background-color: var(--clr-white); }

.btn-primary { background-color: var(--clr-brass-deep); color: var(--clr-navy-deep); box-shadow: 0 14px 28px -14px rgba(201, 162, 106, 0.5); }
.btn-primary:hover { background-color: var(--clr-white); color: var(--clr-navy-deep); }
.btn-primary:focus-visible { outline-color: var(--clr-white); }
.btn-outline { color: var(--clr-white); border-color: rgba(255, 255, 255, 0.4); }
.btn-outline:hover { background-color: var(--clr-white); color: var(--clr-navy-deep); }
.btn-wa { background-color: #128C4A; color: #fff; box-shadow: 0 14px 28px -14px rgba(18, 140, 74, 0.6); }
.btn-wa:hover { background-color: #0F7A40; transform: translateY(-2px); }
.btn-wa svg { width: 20px; height: 20px; flex-shrink: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: var(--clr-brass); }
.wa-float:focus-visible { outline-color: var(--clr-white); }

.trust-strip { border-bottom: 1px solid var(--clr-brass-tint); }

/* About */
.about-fact dt, .contact-row dt, .form-row label { color: var(--clr-white); }
.about-role { color: var(--clr-teal-deep); }
.about-mark { box-shadow: inset 0 0 0 1px rgba(176, 138, 87, 0.28), var(--shadow-lift); }

/* Statement */
.statement-text { color: var(--clr-white); }

/* Cards */
.condition-card, .resource-card, .appt-form, .award-card, .offer-card, .review-panel {
  background-color: #183F73;
  border-color: var(--clr-line);
}
.condition-card:hover { box-shadow: 0 20px 45px -20px rgba(4, 20, 50, 0.6); border-color: var(--clr-brass-tint); }
.form-row input, .form-row textarea, .form-row select { background-color: #0F2C55; border-color: rgba(255, 255, 255, 0.18); }
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(230, 236, 242, 0.4); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--clr-brass); }

.journey-index { background-color: #183F73; box-shadow: 0 0 0 4px var(--clr-ivory), 0 0 0 5px var(--clr-brass-tint); color: var(--clr-brass-deep); border: 1px solid var(--clr-brass-tint); }
.cred-dot { background-color: var(--clr-brass); border-color: #133766; box-shadow: 0 0 0 1px var(--clr-brass-tint); }
.sign-item p { color: var(--clr-text); }
.contact-row dd a { color: var(--clr-teal-deep); }
.condition-link { color: var(--clr-brass-deep); }

dialog.custom-modal { background-color: #183F73; color: var(--clr-text); border: 1px solid var(--clr-brass-tint); }
dialog.custom-modal::backdrop { background-color: rgba(6, 24, 58, 0.7); }

/* ==========================================================
   NEW COMPONENTS
   ========================================================== */

/* Hero quick-contact + social */
.hero-quick { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); max-width: 520px; }
.hero-quick-label { font-size: 0.75rem; letter-spacing: 0.1em; font-weight: 600; color: var(--clr-brass); margin-bottom: 14px; display: block; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85); font-size: 0.875rem; font-weight: 500;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.social-link:hover { border-color: var(--clr-brass); color: var(--clr-white); background-color: rgba(176, 138, 87, 0.12); }
.social-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Problem -> solution cards */
.condition-card { display: flex; flex-direction: column; padding: 30px 26px; }
.condition-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.condition-card .problem { font-size: 0.9375rem; margin-bottom: 18px; }
.condition-card .solution { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--clr-line); font-size: 0.875rem; }
.condition-card .solution b {
  display: block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--clr-brass); margin-bottom: 6px;
}

/* Education */
.edu-lead { max-width: 760px; font-family: var(--ff-display); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.5; color: var(--clr-white); margin-bottom: 56px; }
.edu-lead em { color: var(--clr-brass); font-style: italic; }
.cred-row.is-featured { background: linear-gradient(90deg, rgba(176, 138, 87, 0.10), transparent 70%); padding-left: 16px; margin-left: -16px; border-radius: 6px; }
.award-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
.award-card { border: 1px solid var(--clr-line); border-radius: var(--radius-m); padding: 28px 26px; }
.award-card .award-tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; color: var(--clr-brass); display: block; margin-bottom: 12px; }
.award-card h3 { font-size: 1.125rem; margin-bottom: 6px; }
.award-card p { font-size: 0.875rem; }

.approach-panel {
  margin-top: 56px; padding: 44px 48px; border-radius: var(--radius-m);
  background: radial-gradient(circle at 90% 10%, rgba(176, 138, 87, 0.14), transparent 55%), #183F73;
  box-shadow: inset 0 0 0 1px rgba(176, 138, 87, 0.22);
  display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 40px; align-items: center;
}
.approach-panel h3 { font-family: var(--ff-display); font-style: italic; font-size: 1.5rem; border-left: 2px solid var(--clr-brass); padding-left: 20px; }
.approach-panel p { font-size: 1.0625rem; }

/* Treatment / what I offer */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.offer-card { border: 1px solid var(--clr-line); border-radius: var(--radius-m); padding: 28px 24px; }
.offer-card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.offer-card p { font-size: 0.9rem; }
.offer-note { margin-top: 28px; padding: 18px 22px; border-left: 2px solid var(--clr-brass); background: rgba(176, 138, 87, 0.08); border-radius: 0 var(--radius-s) var(--radius-s) 0; max-width: 760px; }
.offer-note p { color: var(--clr-text); font-size: 0.9375rem; }

/* Cases teaser + reviews */
.split-panel {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: var(--radius-m);
  background: radial-gradient(circle at 88% 12%, rgba(74, 144, 226, 0.2), transparent 55%), #183F73;
  box-shadow: inset 0 0 0 1px rgba(176, 138, 87, 0.22);
}
.split-panel h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 14px; }
.split-panel p { font-size: 1.0625rem; }
.split-panel .panel-actions { display: flex; flex-direction: column; gap: 14px; }
.review-panel { border: 1px solid var(--clr-line); border-radius: var(--radius-m); padding: 40px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.review-panel h3 { font-size: 1.375rem; margin-bottom: 8px; }
.review-panel p { max-width: 560px; }

/* Contact tweaks */
.contact-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contact-social { margin-top: 20px; }

/* Cases page */
.page-hero { padding: 168px 0 72px; background: radial-gradient(circle at 82% 28%, rgba(74, 144, 226, 0.2), transparent 50%), linear-gradient(180deg, var(--clr-navy) 0%, var(--clr-navy-deep) 100%); }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 18px; max-width: 800px; }
.page-hero p { font-size: 1.125rem; max-width: 680px; color: rgba(255, 255, 255, 0.72); margin-bottom: 32px; }
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-block { background: #183F73; border: 1px solid var(--clr-line); border-radius: var(--radius-m); padding: 34px 32px; display: flex; flex-direction: column; }
.case-block h3 { font-size: 1.375rem; margin-bottom: 10px; }
.case-block > p { font-size: 0.9375rem; margin-bottom: 18px; }
.case-block ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }
.case-block li { position: relative; padding-left: 20px; font-size: 0.9375rem; color: var(--clr-text); }
.case-block li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1px; background: var(--clr-brass); }
.case-block .btn { margin-top: auto; align-self: flex-start; }
.case-media { border-radius: var(--radius-s); overflow: hidden; margin-bottom: 22px; border: 1px solid var(--clr-line); }

@media (max-width: 1024px) {
  .award-grid, .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-panel, .split-panel { grid-template-columns: 1fr; padding: 40px 32px; }
  .case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .award-grid, .offer-grid { grid-template-columns: 1fr; }
  .social-link { flex: 1 1 auto; justify-content: center; }
  .page-hero { padding: 128px 0 56px; }
  .review-panel { padding: 28px 24px; }
  .contact-cta-row .btn { width: 100%; }
}
.condition-card .solution { margin-bottom: 0; }

/* Mobile fixes */
@media (max-width: 1100px) {
  .nav-cta-wrap .nav-desktop-cta { display: none; }
}
@media (max-width: 680px) {
  .hero-visual { flex-direction: column; aspect-ratio: auto; align-items: stretch; }
  .hero-photo { height: auto; aspect-ratio: 1 / 1; }
  .hero-visual-card { width: 100%; }
}


/* ===== Blue palette refinements ===== */
.hero--dark { background-image: radial-gradient(circle at 82% 28%, rgba(74,144,226,0.28), transparent 50%), radial-gradient(circle at 12% 82%, rgba(176,138,87,0.12), transparent 45%), linear-gradient(180deg, #1B4C8C 0%, #0F2C55 100%); }
.page-hero { background: radial-gradient(circle at 82% 28%, rgba(74,144,226,0.26), transparent 50%), linear-gradient(180deg, #1B4C8C 0%, #0F2C55 100%); }
.trust-strip, .footer { background-color: #0D2B52; }
.hero-photo { box-shadow: inset 0 0 0 1px rgba(201,162,106,0.4), 0 40px 80px -30px rgba(5,25,60,0.7); }

/* Awards with photos */
.award-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.award-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #0F2C55; cursor: zoom-in; border: 0; padding: 0; }
.award-photo img { width: 100%; height: 100%; object-fit: cover; }
.award-body { padding: 24px 26px 28px; }

/* Gallery */
.gallery-head { margin-top: 72px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; display: block; padding: 0; border: 1px solid var(--clr-line); border-radius: var(--radius-s); overflow: hidden; background: #183F73; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

dialog.lightbox { border: 1px solid var(--clr-brass-tint); border-radius: var(--radius-m); padding: 0; background: #0D2B52; max-width: min(1000px, 94vw); width: 94vw; }
dialog.lightbox::backdrop { background: rgba(6, 24, 58, 0.85); }
dialog.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; background: #0D2B52; }
dialog.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; }
dialog.lightbox .lb-cap { font-size: 0.9rem; color: var(--clr-text); }

@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (min-width: 1025px) { .gallery-item:last-child { grid-column: span 2; aspect-ratio: auto; } }

/* ===== Flip cards (conditions) ===== */
.flip-card { perspective: 1200px; height: 410px; cursor: pointer; outline-offset: 4px; border-radius: var(--radius-m); }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.7s var(--ease); }
.flip-card.is-flipped .flip-inner { transform: rotateY(180deg); }
@media (hover: hover) { .flip-card:hover .flip-inner { transform: rotateY(180deg); } }
.flip-card:focus-visible { outline: 2px solid var(--clr-brass); }
.flip-face {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background-color: #183F73; border: 1px solid var(--clr-line); border-radius: var(--radius-m);
  padding: 20px 22px 22px; overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(4, 20, 50, 0.7);
}
.flip-front h3, .flip-back h3 { font-size: 1.2rem; margin-bottom: 8px; }
.flip-front .problem { font-size: 0.875rem; line-height: 1.55; }
.flip-media {
  height: 138px; margin: 0 -22px 16px; padding: 10px 0;
  background: radial-gradient(circle at 50% 40%, rgba(74, 144, 226, 0.35), rgba(15, 44, 85, 0.6));
  border-bottom: 1px solid var(--clr-line);
}
.flip-media svg { width: 100%; height: 100%; }
.flip-media .ln { fill: rgba(156, 201, 247, 0.10); stroke: #9CC9F7; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.flip-media .ac { fill: #C9A26A; stroke: none; }
.flip-media .ac-ln { fill: none; stroke: #C9A26A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flip-media .gl { fill: rgba(201, 162, 106, 0.22); stroke: none; }
.flip-hint { margin-top: auto; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--clr-brass); }
.flip-back {
  transform: rotateY(180deg); visibility: hidden; transition: visibility 0s 0.35s;
  background: radial-gradient(circle at 88% 8%, rgba(201, 162, 106, 0.16), transparent 55%), #1B4A88;
  justify-content: flex-start; gap: 0;
}
.flip-card.is-flipped .flip-back { visibility: visible; transition-delay: 0s; }
@media (hover: hover) { .flip-card:hover .flip-back { visibility: visible; transition-delay: 0s; } }
.flip-eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; color: var(--clr-brass); margin-bottom: 10px; }
.flip-back p { font-size: 0.9375rem; line-height: 1.65; color: var(--clr-text); }
.flip-back .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 680px) { .flip-card { height: 400px; } }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }
.flip-media { margin: -20px -22px 16px; height: 150px; padding: 14px 0 10px; }
.flip-media { padding: 0; }
.flip-media svg { display: block; box-sizing: border-box; padding: 10px 0 8px; }

/* ===== Larger name / brand ===== */
.brand { gap: 14px; }
.brand-mark { width: 50px; height: 50px; }
.brand-name { font-size: 1.5rem; font-weight: 600; letter-spacing: 0; }
.brand-sub { font-size: 0.78rem; letter-spacing: 0.1em; margin-top: 2px; }
.nav-inner { height: 96px; }
.nav-links { gap: 30px; }
html { scroll-padding-top: 100px; }
@media (max-width: 1240px) { .nav-links { gap: 22px; } .brand-name { font-size: 1.35rem; } }
@media (max-width: 680px) {
  .nav-inner { height: 82px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: 0.68rem; }
}
.footer-brand .brand-name { font-size: 1.3rem; }

/* ===== Floating WhatsApp (round, always visible) ===== */
.wa-float {
  right: 22px; bottom: 22px; width: 66px; height: 66px; min-width: 0; padding: 0;
  background-color: #25B45E; border-radius: 50%; z-index: 1000;
  box-shadow: 0 10px 30px -4px rgba(37, 180, 94, 0.55), 0 4px 14px rgba(5, 25, 60, 0.35);
}
.wa-float:hover { background-color: #1FA352; }
.wa-float svg { width: 36px; height: 36px; }
.wa-float::after { border-color: #25B45E; }
.wa-float-label { display: none; }
@media (max-width: 640px) { .wa-float { width: 60px; height: 60px; right: 16px; bottom: 16px; } .wa-float svg { width: 32px; height: 32px; } }

/* ===== Reviews carousel ===== */
.rv-carousel { position: relative; max-width: 900px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.rv-viewport { overflow: hidden; flex: 1; border-radius: var(--radius-m); }
.rv-track { display: flex; transition: transform 0.6s var(--ease); }
.rv-slide {
  flex: 0 0 100%; min-width: 0; margin: 0; padding: 48px 56px; text-align: center;
  background-color: #183F73; border: 1px solid var(--clr-line); border-radius: var(--radius-m);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 340px;
}
.rv-stars { display: flex; gap: 6px; }
.rv-stars svg { width: 24px; height: 24px; fill: #E0AE55; }
.rv-slide blockquote { font-size: 1.125rem; line-height: 1.75; font-style: italic; color: var(--clr-white); max-width: 700px; }
.rv-slide figcaption { font-size: 0.9375rem; font-style: italic; color: var(--clr-text-muted); }
.rv-more { font-size: 0.8125rem; font-weight: 600; color: var(--clr-brass); margin-top: -8px; }
.rv-more:hover { text-decoration: underline; }
.rv-arrow {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; font-size: 1.6rem; line-height: 1;
  color: var(--clr-white); border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.rv-arrow:hover { background: rgba(201, 162, 106, 0.2); border-color: var(--clr-brass); }
.rv-dots { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }
.rv-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); padding: 0; transition: background-color 0.25s, transform 0.25s; }
.rv-dot.is-active { background: var(--clr-brass); transform: scale(1.25); }
@media (max-width: 680px) {
  .rv-arrow { display: none; }
  .rv-slide { padding: 32px 22px; min-height: 380px; }
  .rv-slide blockquote { font-size: 1rem; }
}
.nav-link { white-space: nowrap; }
.nav-links { gap: 36px; }
@media (max-width: 1240px) { .nav-links { gap: 26px; } }

/* ===== Fix: dialogs were pinned top-left because the global reset removed margin:auto ===== */
dialog { margin: auto; }
dialog.lightbox { width: min(1000px, 94vw); max-width: 94vw; max-height: 94vh; overflow: hidden; }
dialog.lightbox[open] { display: flex; flex-direction: column; }
dialog.lightbox img { flex: 1 1 auto; min-height: 0; width: 100%; height: auto; max-height: calc(94vh - 72px); object-fit: contain; }
dialog.lightbox .lb-bar { flex: 0 0 auto; }
dialog.custom-modal { max-height: 90vh; }

/* ===== Header: Book Appointment button ===== */
.nav-desktop-cta { padding: 14px 24px; font-size: 0.9375rem; white-space: nowrap; border-radius: 6px; }
.nav-mobile-cta { display: none; }
.nav-links { gap: 28px; }
@media (max-width: 1240px) { .nav-links { gap: 20px; } .nav-desktop-cta { padding: 12px 18px; } }
@media (max-width: 1100px) {
  .nav-mobile-cta { display: inline-flex; margin-top: 8px; padding: 14px 26px; color: var(--clr-navy-deep); font-size: 1rem; }
  .nav-links .nav-mobile-cta { color: var(--clr-navy-deep); }
  .nav-mobile-cta::after { display: none; }
}

/* ==========================================================
   GALLERY (mosaic + filters + lightbox navigation)
   ========================================================== */
.bg-deep { background-color: var(--clr-navy-deep); background-image: radial-gradient(circle at 12% 0%, rgba(74, 144, 226, 0.16), transparent 45%), radial-gradient(circle at 92% 100%, rgba(201, 162, 106, 0.09), transparent 40%); }

.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -12px 0 40px; }
.g-filter {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.04);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.g-filter em { font-style: normal; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.g-filter:hover { border-color: var(--clr-brass); color: #fff; transform: translateY(-2px); }
.g-filter.is-active { background: var(--clr-brass-deep); border-color: var(--clr-brass-deep); color: var(--clr-navy-deep); font-weight: 600; }
.g-filter.is-active em { background: rgba(13, 43, 82, 0.18); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 16px; }
.gallery-grid .gallery-item {
  position: relative; display: block; padding: 0; margin: 0; aspect-ratio: auto; height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; overflow: hidden; background: #183F73; cursor: zoom-in;
  box-shadow: 0 18px 40px -22px rgba(4, 20, 50, 0.8);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease), opacity 0.45s var(--ease);
  grid-column: auto; grid-row: auto;
}
.gallery-grid .gallery-item.g-feature { grid-column: span 2; grid-row: span 2; }
.gallery-grid .gallery-item.g-tall { grid-row: span 2; }
.gallery-grid .gallery-item.g-wide { grid-column: span 2; }
.gallery-grid .gallery-item:last-child { grid-column: span 2; aspect-ratio: auto; }
.gallery-grid .gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gallery-grid .gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 43, 82, 0) 45%, rgba(13, 43, 82, 0.92) 100%); transition: opacity 0.4s var(--ease); pointer-events: none; }
.gallery-grid .gallery-item:hover { transform: translateY(-5px); border-color: rgba(201, 162, 106, 0.7); box-shadow: 0 30px 60px -24px rgba(4, 20, 50, 0.9), 0 0 0 1px rgba(201, 162, 106, 0.35); }
.gallery-grid .gallery-item:hover img { transform: scale(1.07); }
.gallery-item .g-tag {
  position: absolute; z-index: 2; top: 14px; left: 14px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--clr-navy-deep); background: var(--clr-brass-deep);
}
.gallery-item .g-cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 18px 16px; text-align: left;
  font-family: var(--ff-display); font-size: 1.0625rem; line-height: 1.3; color: #fff; text-shadow: 0 2px 12px rgba(4, 20, 50, 0.6);
}
.gallery-item.g-feature .g-cap { font-size: 1.5rem; padding: 0 24px 22px; }
.gallery-item .g-zoom {
  position: absolute; z-index: 2; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff;
  background: rgba(13, 43, 82, 0.7); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(0.8); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item:hover .g-zoom, .gallery-item:focus-visible .g-zoom { opacity: 1; transform: scale(1); }

.gallery-item.is-hidden { display: none; }
.gallery-item.is-entering { animation: gIn 0.55s var(--ease) both; }
@keyframes gIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
/* when filtered, use a tidy uniform grid */
.gallery-grid.is-filtered .gallery-item, .gallery-grid.is-filtered .gallery-item:last-child { grid-column: span 1; grid-row: span 1; }
.gallery-grid.is-filtered { grid-auto-rows: 260px; }
.gallery-grid.is-filtered.only-one { grid-template-columns: 1fr; grid-auto-rows: 460px; }
.gallery-grid.is-filtered.only-one .gallery-item .g-cap { font-size: 1.5rem; }
.gallery-note { text-align: center; margin-top: 28px; font-size: 0.875rem; }

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; }
  .gallery-grid .gallery-item.g-feature { grid-column: span 2; }
  .gallery-grid .gallery-item.g-wide { grid-column: span 2; }
  .gallery-grid .gallery-item:last-child { grid-column: span 1; }
  .gallery-grid .gallery-item.g-t1 { grid-column: span 1; }
}
@media (max-width: 680px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .gallery-grid .gallery-item.g-feature { grid-column: span 2; grid-row: span 2; }
  .gallery-grid .gallery-item.g-wide { grid-column: span 2; }
  .gallery-grid .gallery-item.g-tall { grid-row: span 2; }
  .gallery-grid .gallery-item:last-child { grid-column: span 2; }
  .gallery-item .g-cap { font-size: 0.875rem; padding: 0 12px 12px; }
  .gallery-item.g-feature .g-cap { font-size: 1.1rem; padding: 0 16px 16px; }
  .gallery-item .g-tag { top: 10px; left: 10px; font-size: 0.625rem; padding: 4px 9px; }
  .gallery-item .g-zoom { display: none; }
  .g-filter { padding: 9px 16px; font-size: 0.875rem; }
  .gallery-grid.is-filtered { grid-auto-rows: 200px; }
  .gallery-grid.is-filtered .gallery-item { grid-column: span 2; }
  .gallery-grid.is-filtered.only-one { grid-auto-rows: 320px; }
}

/* Lightbox navigation */
dialog.lightbox .lb-stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; background: #0D2B52; }
dialog.lightbox .lb-stage img { max-height: calc(94vh - 76px); object-fit: contain; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; color: #fff; background: rgba(13, 43, 82, 0.72); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px); transition: background-color 0.25s, border-color 0.25s;
}
.lb-nav:hover { background: rgba(201, 162, 106, 0.4); border-color: var(--clr-brass); }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-count { font-size: 0.8125rem; color: var(--clr-text-muted); white-space: nowrap; margin-left: auto; }
dialog.lightbox .lb-bar .lb-cap { flex: 1; }
dialog.lightbox.single .lb-nav, dialog.lightbox.single .lb-count { display: none; }
@media (max-width: 680px) { .lb-nav { width: 40px; height: 40px; font-size: 1.5rem; } .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-count { display: none; } }

/* ===== Nav fit with 9 links + Book button ===== */
.nav-links { gap: 24px; }
.nav-link { font-size: 0.9rem; }
.nav-desktop-cta { padding: 12px 20px; }
.brand-name { font-size: 1.4rem; }
@media (max-width: 1340px) { .nav-links { gap: 18px; } .nav-inner { gap: 16px; } }
@media (max-width: 1240px) { .brand-name { font-size: 1.25rem; } .brand-mark { width: 44px; height: 44px; } .nav-links { gap: 15px; } .nav-link { font-size: 0.85rem; } .nav-desktop-cta { padding: 11px 16px; font-size: 0.85rem; } }
@media (max-width: 1180px) {
  .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: min(340px, 82vw); background-color: var(--clr-navy); flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; padding: 40px; transform: translateX(100%); transition: transform 0.4s var(--ease); z-index: 550; }
  .nav-links.active { transform: translateX(0); }
  .nav-links .nav-link { color: var(--clr-white); font-size: 1.125rem; }
  .nav-cta-wrap .nav-desktop-cta { display: none; }
  .hamburger { display: flex; }
  .nav-mobile-cta { display: inline-flex; margin-top: 8px; padding: 14px 26px; color: var(--clr-navy-deep) !important; font-size: 1rem; }
}


/* Employment History & Education and Examinations */
.journey-block { margin-top: 72px; }
.journey-block-title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); color: var(--clr-white); margin-bottom: 22px; }
.journey-block-title::after { content: ""; display: block; width: 44px; height: 2px; background: var(--clr-brass); margin-top: 12px; }
.journey-block .cred-row { align-items: start; padding: 26px 0; }
.journey-block .cred-row--compact { padding: 20px 0; align-items: center; }
.cred-date { text-transform: none; line-height: 1.5; padding-top: 4px; color: var(--clr-brass-deep); }
.cred-row--compact .cred-date { padding-top: 0; }
.journey-block .cred-dot-col { padding-top: 9px; }
.journey-block .cred-row--compact .cred-dot-col { padding-top: 0; }
.cred-title--sm { font-size: 1.1875rem; margin-bottom: 2px; }
.cred-place { font-size: 0.9375rem; font-weight: 500; color: var(--clr-teal-deep); margin-bottom: 8px; }
.cred-row--compact .cred-place { margin-bottom: 0; }
@media (max-width: 640px) {
  .journey-block { margin-top: 52px; }
  .journey-block .cred-row { grid-template-columns: 78px 18px 1fr; gap: 8px; }
}
.journey-block .cred-row.is-featured { padding-left: 16px; }

/* ===== Spectrum of cases / treatments pages ===== */
.spec-tabs { display: inline-flex; gap: 6px; padding: 5px; border: 1px solid var(--clr-line); border-radius: 999px; background: rgba(255, 255, 255, 0.04); margin-bottom: 26px; }
.spec-tab { padding: 10px 22px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--clr-text-muted); transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.spec-tab:hover { color: #fff; }
.spec-tab.is-active { background: var(--clr-brass-deep); color: #0D2B52; }
.spec-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 60px; }
.spec-jump a { font-size: 0.8125rem; padding: 8px 14px; border: 1px solid var(--clr-line); border-radius: 999px; color: var(--clr-text); background: rgba(255, 255, 255, 0.03); transition: border-color 0.25s var(--ease), background 0.25s var(--ease); }
.spec-jump a b { color: var(--clr-brass-deep); font-weight: 600; margin-right: 4px; }
.spec-jump a:hover { border-color: var(--clr-brass); background: var(--clr-brass-tint); }
.spec-group { margin-bottom: 76px; }
.spec-group:last-child { margin-bottom: 0; }
.spec-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--clr-line); }
.spec-num { font-family: var(--ff-display); font-size: 2.4rem; line-height: 1; color: var(--clr-brass-deep); min-width: 34px; }
.spec-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 4px; }
.spec-head p { font-size: 0.9375rem; color: var(--clr-text-muted); max-width: 640px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.spec-grid .flip-back p { font-size: 0.875rem; line-height: 1.6; }
.spec-grid .flip-front h3 { line-height: 1.25; }
.flip-media img { display: block; width: 100%; height: 100%; object-fit: cover; padding: 0; }
@media (max-width: 1100px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) {
  .spec-grid { grid-template-columns: 1fr; }
  .spec-tabs { display: flex; width: 100%; }
  .spec-tab { flex: 1; text-align: center; padding: 10px 8px; font-size: 0.8125rem; }
  .spec-num { font-size: 2rem; }
}

/* ===== Homepage: prominent link to the full spectrum ===== */
.spectrum-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 44px; padding: 30px 36px; border: 1px solid var(--clr-brass-tint); border-radius: var(--radius-m); background: radial-gradient(circle at 92% 20%, rgba(201, 162, 106, 0.18), transparent 55%), #183F73; box-shadow: 0 18px 40px -22px rgba(4, 20, 50, 0.7); transition: transform 0.3s var(--ease), border-color 0.3s var(--ease); }
.spectrum-cta:hover { transform: translateY(-3px); border-color: var(--clr-brass); }
.spectrum-cta-text { display: flex; flex-direction: column; gap: 6px; }
.spectrum-cta-text b { font-family: var(--ff-display); font-weight: 500; font-size: 1.5rem; color: #fff; }
.spectrum-cta-text span { font-size: 1rem; color: var(--clr-text-muted); max-width: 560px; }
.spectrum-cta-btn { flex-shrink: 0; }
@media (max-width: 820px) { .spectrum-cta { flex-direction: column; align-items: flex-start; padding: 26px 24px; } .spectrum-cta-btn { width: 100%; justify-content: center; text-align: center; } }

/* ===== Designer credit ===== */
.footer-credit { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--clr-line); text-align: center; font-size: 0.875rem; color: rgba(255, 255, 255, 0.55); }
.footer-credit a { color: #E0A93B; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color 0.25s var(--ease); }
.footer-credit a:hover { color: #F3C766; }

/* Hero headline: each phrase on its own line */
.hero-title .hero-line { display: block; }
.hero-copy { min-width: 0; container-type: inline-size; }
.hero-title { font-size: clamp(1.6rem, 7vw, 2.8rem); font-size: min(4.3rem, 7.8cqw); line-height: 1.12; }
.hero-title .hero-line { white-space: nowrap; }


/* ===== Search (Conditions / Treatments pages) ===== */
.spec-search { margin: 0 0 30px; max-width: 720px; }
.spec-search-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clr-brass-deep); margin-bottom: 10px; }
.spec-search-box { position: relative; display: flex; align-items: center; }
.spec-search-box > svg { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--clr-text-muted); pointer-events: none; }
.spec-search-box input { width: 100%; padding: 16px 52px 16px 50px; font: inherit; font-size: 1rem; color: var(--clr-white); background: #0F2C55; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 999px; transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); -webkit-appearance: none; appearance: none; }
.spec-search-box input::placeholder { color: rgba(230, 236, 242, 0.5); }
.spec-search-box input:focus { outline: none; border-color: var(--clr-brass); box-shadow: 0 0 0 4px var(--clr-brass-tint); }
.spec-search-box input::-webkit-search-cancel-button { display: none; }
.spec-search-clear { position: absolute; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.spec-search-clear:hover { background: var(--clr-brass-tint); }
.spec-search-status { margin: 10px 4px 0; min-height: 1.4em; font-size: 0.875rem; color: var(--clr-text-muted); }
.spec-empty { margin: 0 0 48px; padding: 34px 28px; border: 1px dashed var(--clr-brass-tint); border-radius: var(--radius-m); text-align: center; background: rgba(255, 255, 255, 0.03); }
.spec-empty b { display: block; font-family: var(--ff-display); font-weight: 500; font-size: 1.35rem; color: #fff; margin-bottom: 8px; }
.spec-empty p { margin: 0 auto 18px; max-width: 460px; }
.spec-search-box input:focus-visible, .spec-search-clear:focus-visible { outline: 2px solid var(--clr-brass); outline-offset: 2px; }
.spec-search-clear[hidden], .spec-empty[hidden], .spec-group.is-filtered-out, .flip-card.is-filtered-out { display: none !important; }
.spec-jump.is-dimmed { display: none; }
.spec-jump { margin-bottom: 44px; }
.spec-search + .spec-empty + .spec-jump, .spec-empty + .spec-jump { margin-top: 0; }
@media (max-width: 540px) { .spec-search-box input { padding-top: 14px; padding-bottom: 14px; font-size: 16px; } }

/* ===== Location (contact section) ===== */
.loc-city { color: var(--clr-white); }
.loc-note { display: inline-block; margin-top: 6px; font-size: 0.8125rem; color: var(--clr-text-muted); }
.map-card { margin-top: 26px; border: 1px solid var(--clr-brass-tint); border-radius: var(--radius-m); overflow: hidden; background: #0F2C55; box-shadow: var(--shadow-card); }
.map-card iframe { display: block; width: 100%; height: 260px; border: 0; }

.offer-note-title { font-family: var(--ff-display); font-weight: 500; font-size: 1.25rem; color: var(--clr-white); margin: 0 0 8px; }
.offer-note { max-width: 820px; }

/* ===== Home hero: name / role / tagline ===== */
.hero-role { font-family: var(--ff-display); font-size: clamp(1.15rem, 2.2vw, 1.55rem); color: var(--clr-brass); margin: 0 0 22px; line-height: 1.35; }
.hero-tagline { font-family: var(--ff-display); font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.35; color: var(--clr-white); max-width: 520px; margin: 0 0 20px; }
.hero-title { margin-bottom: 10px; }
.nav-link.is-current:not(.btn) { color: var(--clr-brass); }

/* ===== About: additional-qualifications lines / Accolades page ===== */
.cred-row .cred-desc + .cred-desc { margin-top: 6px; }
.cred-desc strong { color: var(--clr-white); font-weight: 600; }
.award-grid--two { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
@media (max-width: 680px) { .award-grid--two { grid-template-columns: 1fr; } }

/* ===== Research page: publications & presentations ===== */
.pub-list { max-width: 900px; }
.pub-item { display: grid; grid-template-columns: 150px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--clr-line); }
.pub-item:last-child { border-bottom: 1px solid var(--clr-line); }
.pub-type { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; color: var(--clr-brass); padding-top: 6px; }
.pub-title { font-size: 1.1875rem; line-height: 1.4; margin-bottom: 6px; color: var(--clr-white); }
.pub-meta { font-size: 0.9375rem; margin: 0; }
.pub-role { display: inline-block; margin-top: 10px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--clr-brass); border: 1px solid rgba(201,162,106,0.5); border-radius: 999px; padding: 4px 12px; }
.pres-group { font-family: var(--ff-display); font-size: 1.5rem; color: var(--clr-white); margin: 44px 0 20px; }
.pres-group:first-of-type { margin-top: 8px; }
.pres-event { border: 1px solid var(--clr-line); border-radius: var(--radius-m); padding: 28px 30px; margin-bottom: 18px; display: grid; gap: 30px; }
.pres-event--photo { grid-template-columns: 1fr minmax(220px, 330px); align-items: start; }
.pres-title { font-size: 1.25rem; color: var(--clr-white); margin-bottom: 2px; }
.pres-meta { font-size: 0.875rem; color: var(--clr-brass); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 18px; }
.pres-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pres-list li { display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: baseline; font-size: 0.9688rem; line-height: 1.55; }
.pres-type { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; color: var(--clr-brass); }
.pres-photos { display: flex; flex-direction: column; gap: 14px; }
.pres-photo { margin: 0; }
.pres-photo button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-s); overflow: hidden; cursor: zoom-in; background: #183F73; aspect-ratio: 4 / 3; }
.pres-photo--portrait button { aspect-ratio: 3 / 4; max-width: 300px; margin: 0 auto; }
.pres-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.pres-photo button:hover img { transform: scale(1.04); }
.pres-photo figcaption { font-size: 0.8125rem; margin-top: 8px; color: var(--clr-text-muted); }
.page-hero .social-row { margin-top: 26px; }
@media (max-width: 860px) { .pres-event--photo { grid-template-columns: 1fr; } .pres-photos { flex-direction: row; flex-wrap: wrap; } .pres-photo { flex: 1 1 240px; } }
@media (max-width: 680px) { .pub-item { grid-template-columns: 1fr; gap: 8px; } .pres-event { padding: 22px 20px; } .pres-list li { grid-template-columns: 1fr; gap: 2px; } }


/* ==========================================
   ACCORDION LISTS + DETAIL PAGES
   ========================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spec-tabs { margin-bottom: 26px; }
.acc-group.spec-group { margin-bottom: 14px; border: 1px solid var(--clr-line); border-radius: var(--radius-m); background: rgba(255, 255, 255, 0.03); }
.acc-group.spec-group:last-child { margin-bottom: 0; }
.acc-group .acc-head { display: block; margin: 0; padding: 0; border: 0; }
.acc-btn { display: flex; align-items: center; gap: 20px; width: 100%; padding: 22px 26px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-m); }
.acc-btn:focus-visible { outline: 2px solid var(--clr-brass); outline-offset: -2px; }
.acc-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acc-title { font-family: var(--ff-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--clr-white); }
.acc-desc { font-size: 0.9375rem; color: var(--clr-text-muted); }
.acc-chev { width: 11px; height: 11px; border-right: 2px solid var(--clr-brass-deep); border-bottom: 2px solid var(--clr-brass-deep); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.35s var(--ease); flex: none; }
.acc-group.is-open .acc-chev { transform: rotate(225deg) translate(-2px, -2px); }
.acc-group.is-open .acc-btn { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.acc-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.45s var(--ease), visibility 0s 0.45s; }
.acc-group.is-open .acc-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.acc-panel-inner { min-height: 0; overflow: hidden; }
.acc-panel .spec-grid { padding: 8px 26px 30px; border-top: 1px solid var(--clr-line); padding-top: 26px; }
.acc-group.is-open .acc-panel-inner { overflow: visible; }
@media (max-width: 680px) {
  .acc-btn { padding: 18px; gap: 12px; flex-wrap: wrap; }
  .acc-panel .spec-grid { padding: 22px 18px 24px; }
}
.flip-back { position: absolute; }
.flip-link { margin-top: auto; align-self: flex-start; font-size: 0.875rem; font-weight: 600; color: #0D2B52; background: var(--clr-brass-deep); padding: 9px 16px; border-radius: 999px; }
.flip-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-m); }
.flip-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.875rem; margin-bottom: 18px; color: var(--clr-text-muted); flex-wrap: wrap; }
.crumbs a { color: var(--clr-brass-deep); }
.crumbs a:hover { text-decoration: underline; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.detail-copy h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin: 34px 0 10px; }
.detail-copy h2:first-child { margin-top: 0; }
.detail-copy p { font-size: 1.0625rem; line-height: 1.75; max-width: 62ch; }
.detail-copy p + p { margin-top: 14px; }
.detail-copy .detail-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--clr-line); font-size: 0.9rem; color: var(--clr-text-muted); }
.detail-side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 20px; }
.detail-media { margin: 0; aspect-ratio: 10 / 8; border-radius: var(--radius-m); border: 1px solid var(--clr-line); overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(74, 144, 226, 0.35), rgba(15, 44, 85, 0.6)); }
.detail-media svg { display: block; width: 100%; height: 100%; padding: 22px; }
.detail-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-media .ln { fill: rgba(156, 201, 247, 0.10); stroke: #9CC9F7; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.detail-media .ac { fill: #C9A26A; stroke: none; }
.detail-media .ac-ln { fill: none; stroke: #C9A26A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.detail-media .gl { fill: rgba(201, 162, 106, 0.22); stroke: none; }
.detail-ask { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--clr-line); border-radius: var(--radius-m); background: #183F73; }
.detail-ask h3 { font-size: 1.15rem; }
.detail-ask p { font-size: 0.9375rem; color: var(--clr-text-muted); }
.detail-more { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--clr-line); }
.detail-more h2 { font-size: 1.4rem; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 0.875rem; padding: 8px 14px; border: 1px solid var(--clr-line); border-radius: 999px; color: var(--clr-text); background: rgba(255, 255, 255, 0.03); transition: border-color 0.25s var(--ease), background 0.25s var(--ease); }
.chip:hover { border-color: var(--clr-brass); background: var(--clr-brass-tint); }
.chip.is-here { background: var(--clr-brass-deep); color: #0D2B52; border-color: transparent; font-weight: 600; }
.detail-links { margin-top: 24px; font-size: 0.9375rem; }
.detail-links a { color: var(--clr-brass-deep); font-weight: 600; }
.detail-links a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-side { position: static; order: -1; }
  .detail-media { aspect-ratio: 16 / 9; }
}

/* ===== Header fit: keep nav + Book Appointment inside the viewport at laptop widths ===== */
.nav-inner { max-width: 1360px; gap: 20px; }
.nav-links { gap: 26px; }
@media (max-width: 1360px) {
  .nav-inner { padding: 0 24px; gap: 16px; }
  .brand { gap: 10px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: 0.7rem; letter-spacing: 0.08em; }
  .nav-links { gap: 18px; }
  .nav-link { font-size: 0.875rem; }
  .nav-desktop-cta { padding: 12px 16px; font-size: 0.875rem; }
}
@media (max-width: 1240px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.15rem; }
  .nav-links { gap: 15px; }
}

/* Rating summary above reviews carousel */
.rv-summary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin: 0 auto 36px; }
.rv-score { font-size: 2.5rem; font-weight: 700; line-height: 1; color: var(--clr-white); }
.rv-summary-stars { display: inline-flex; gap: 5px; }
.rv-summary-stars svg { width: 26px; height: 26px; fill: #E0AE55; }
.rv-summary-link { font-size: 1.0625rem; color: var(--clr-text-muted); text-decoration: underline; text-underline-offset: 4px; }
.rv-summary-link:hover { color: var(--clr-brass); }
@media (max-width: 640px) { .rv-score { font-size: 2rem; } .rv-summary-stars svg { width: 22px; height: 22px; } }

/* Clinical and academic work: rotating photo strip (bottom of every page) */
.work-strip { background: #0D2B52; padding: 72px 0 64px; border-top: 1px solid var(--clr-brass-tint); }
.work-strip .section-head { margin-bottom: 32px; }

/* Work carousel: one photo at a time, slides in on its own every ~3s, swipe or tap the dots to go faster.
   Every photo is shown whole (never cropped) over a soft blurred copy of itself; the caption sits in its own bar below the picture. */
.work-carousel { max-width: 880px; margin: 0 auto; outline-offset: 8px; }
.work-stage { position: relative; }
.work-viewport { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(201, 162, 106, 0.35); border-radius: 18px; background: #0A2347; box-shadow: 0 24px 50px -22px rgba(2, 10, 28, 0.85), 0 0 0 6px rgba(255, 255, 255, 0.03); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.work-viewport.is-dragging { cursor: grabbing; }
.work-slide { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; overflow: hidden; background: #0A2347; transform: translateX(100%); transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1); will-change: transform; }
.work-slide::before { content: ""; position: absolute; inset: -40px; background-image: var(--bg); background-size: cover; background-position: center; filter: blur(28px) brightness(0.5) saturate(1.15); }
.work-slide img { position: relative; z-index: 1; flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain; display: block; -webkit-user-drag: none; pointer-events: none; }
.work-slide figcaption { position: relative; z-index: 1; flex: 0 0 auto; padding: 13px 22px 14px; text-align: center; font-size: 0.9375rem; line-height: 1.4; letter-spacing: 0.01em; color: #fff; background: rgba(6, 22, 52, 0.9); border-top: 1px solid rgba(201, 162, 106, 0.3); }
.work-arrow { position: absolute; top: calc(50% - 22px); z-index: 3; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(6, 22, 52, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0.9; transition: background 0.25s ease, transform 0.25s ease, opacity 0.25s ease; }
.work-arrow:hover { background: var(--clr-brass); border-color: var(--clr-brass); color: #0A2347; transform: scale(1.06); }
.work-arrow svg { width: 20px; height: 20px; }
.work-arrow--prev { left: 14px; }
.work-arrow--next { right: 14px; }
.work-dots { display: flex; justify-content: center; align-items: center; gap: 2px; margin-top: 16px; }
.work-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.work-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); transition: width 0.35s ease, background 0.35s ease; }
.work-dot:hover::before { background: rgba(255, 255, 255, 0.65); }
.work-dot.is-active::before { width: 26px; background: var(--clr-brass); }
@media (min-width: 900px) { .work-viewport { aspect-ratio: 3 / 2; } }
@media (hover: none) { .work-arrow { display: none; } }
@media (max-width: 560px) { .work-strip { padding: 56px 0 48px; } .work-viewport { border-radius: 14px; aspect-ratio: 1 / 1; } .work-slide figcaption { font-size: 0.8125rem; padding: 10px 14px 11px; } }
@media (prefers-reduced-motion: reduce) { .work-slide { transition-duration: 0.01s; } .work-dot::before, .work-arrow { transition: none; } }

/* Why see a specialist */
.why-text { max-width: 820px; display: flex; flex-direction: column; gap: 20px; }
.why-text p { font-size: 1.0625rem; line-height: 1.8; color: var(--clr-text); }

/* Page header photo: wide, softly faded photo on the right; header is tall enough that faces are not cropped */
.page-hero--photo { position: relative; overflow: hidden; }
.page-hero--photo > .container { position: relative; z-index: 1; }
.page-hero--photo::after {
  content: ""; position: absolute; right: 0; bottom: 0; top: 96px; width: 40%;
  background-image: var(--hero-img); background-size: cover; background-repeat: no-repeat;
  background-position: center var(--hero-y, 30%);
  opacity: 0.75; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
          mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
@media (min-width: 981px) {
  .page-hero--photo { min-height: 440px; display: flex; align-items: center; padding: 112px 0 48px; }
  .page-hero--photo > .container { width: 100%; }
  .page-hero--photo h1, .page-hero--photo p { max-width: 52%; }
}
@media (max-width: 980px) {
  .page-hero--photo::after { top: 0; width: 100%; opacity: 0.14; background-position: center 15%; -webkit-mask-image: none; mask-image: none; }
}


/* ==========================================================
   MOBILE POLISH  (phones & small tablets only; desktop untouched)
   Loaded last so it wins the cascade.
   ========================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: rgba(201, 162, 106, 0.18); }

@media (max-width: 1100px) {
  /* Menu drawer: true viewport height on phones, scrolls on short screens, dimmed backdrop */
  .nav-links {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    justify-content: flex-start;
    gap: 6px;
    padding: 96px 28px 40px;
    padding-top: calc(96px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    box-shadow: -30px 0 60px -20px rgba(2, 12, 32, 0.6);
  }
  .nav-links .nav-link { width: 100%; padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--clr-line); }
  .nav-links .nav-link::after { display: none; }
  .nav-links .nav-mobile-cta { margin-top: 18px; text-align: center; justify-content: center; border-bottom: none; padding: 16px 20px; }
  .hamburger { min-width: 48px; min-height: 48px; align-items: center; justify-content: center; }
  body.nav-open { overflow: hidden; }
  /* dim the page behind the open drawer (drawn by the drawer itself, so it can never cover the links) */
  .nav-links.active { box-shadow: 0 0 0 100vmax rgba(3, 14, 36, 0.62), -30px 0 60px -20px rgba(2, 12, 32, 0.6); }
}

@media (max-width: 680px) {
  .container { padding-left: 20px; padding-right: 20px; }
  html { scroll-padding-top: 84px; }

  /* Safe areas for notched phones */
  .site-header { padding-top: env(safe-area-inset-top, 0px); }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

  /* Tighter, more even vertical rhythm */
  .section-pad { padding: 60px 0; }
  .section-pad--tight { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  h2 { font-size: clamp(1.7rem, 7.4vw, 2.1rem); line-height: 1.18; }

  /* ---------- HOME HERO: face first, then name and actions ---------- */
  .hero { padding: 100px 0 44px; }
  .hero-grid { gap: 28px; }
  .hero-visual { order: -1; max-width: none; width: 100%; aspect-ratio: 5 / 4; margin: 0; }
  .hero-visual::before { inset: 0; }
  .hero-photo { height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 22%; border-radius: 18px; }
  .hero-copy { text-align: left; }
  .hero-title { margin-bottom: 8px; }
  .hero-role { font-size: 1.1rem; margin-bottom: 14px; }
  .hero-tagline { font-size: 1.3rem; margin-bottom: 14px; max-width: none; }
  .hero-desc { font-size: 1rem; line-height: 1.65; margin-bottom: 4px; }
  .hero-actions { gap: 12px; margin-top: 22px; }
  .hero-quick { margin-top: 28px; padding-top: 22px; }

  /* Sub-page headers */
  .page-hero { padding: 108px 0 44px; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); margin-bottom: 14px; }
  .page-hero p { font-size: 1.02rem; line-height: 1.65; margin-bottom: 24px; }
  .page-hero--photo { min-height: 0; }

  /* Buttons: comfortable thumb targets */
  .btn { min-height: 52px; padding-top: 14px; padding-bottom: 14px; }
  .btn-sm { min-height: 44px; }
  .social-row { gap: 10px; }
  .social-link { min-height: 48px; }
  .social-row .social-link { flex: 1 1 calc(50% - 5px); justify-content: center; }
  .social-row .social-link:last-child:nth-child(odd) { flex-basis: 100%; }

  /* Floating WhatsApp: smaller, safe-area aware, never hides content */
  .wa-float { width: 56px; height: 56px; right: 14px; bottom: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-float svg { width: 30px; height: 30px; }

  /* Trust strip */
  .trust-item { text-align: center; }

  /* Contact details stack so long emails never push the page wider */
  .contact-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .contact-row dd, .contact-row dd a { overflow-wrap: anywhere; word-break: break-word; }

  /* Forms: 16px text stops iOS zooming in on focus */
  input, textarea, select { font-size: 16px; }
  .appt-form { padding: 22px 18px; }

  /* Footer */
  .footer-grid { gap: 30px; }
  .footer-col a { display: inline-block; padding: 6px 0; }
  .footer-credit { text-align: left; }

  /* Reading-heavy pages: slightly tighter leading, no sideways scroll from long words */
  p, li, dd, td { overflow-wrap: break-word; }
  .why-text p { font-size: 1rem; line-height: 1.7; }
  table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  iframe { max-width: 100%; }
}

@media (max-width: 380px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 0.9rem; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-visual { aspect-ratio: 1 / 1; }
}

/* Closed drawer is fully hidden (no phantom width, not reachable by Tab / screen readers) */
html { overflow-x: clip; }
@media (max-width: 1100px) {
  .nav-links { visibility: hidden; transition: transform 0.4s var(--ease), visibility 0s linear 0.4s; }
  .nav-links.active { visibility: visible; transition: transform 0.4s var(--ease), visibility 0s; }
}

/* Phone hero photo: same full square framing as desktop (head, shoulders and coat all visible) */
@media (max-width: 680px) {
  .hero-visual { aspect-ratio: 1 / 1; width: 100%; max-width: none; }
  .hero-photo { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; }
}

/* Touch screens: only the "Read the full page" button opens the page.
   Tapping anywhere else on the back of a card flips it back (desktop keeps the whole-card link on hover). */
@media (hover: none), (pointer: coarse) {
  .flip-link::after { display: none; }
  .flip-link { position: relative; z-index: 2; min-height: 44px; display: inline-flex; align-items: center; padding: 11px 20px; }
  .flip-back::after {
    content: "Tap anywhere else to flip back \21BB";
    margin-top: 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--clr-brass-deep);
  }
}

/* ==========================================================
   Photo page headers on phones/tablets: keep faces fully visible.
   The fixed header covers the top of the hero, so start the photo below it
   and give it enough height to show the faces. Desktop (>980px) untouched.
   ========================================================== */
@media (max-width: 980px) {
  .page-hero--photo {
    min-height: calc(env(safe-area-inset-top, 0px) + 82px + min(66vw, 520px));
  }
  .page-hero--photo::after {
    top: calc(env(safe-area-inset-top, 0px) + 82px);
    background-size: cover;
    background-position: center var(--hero-y-m, 0%);
  }
}

/* Full-width feature award card (keeps an odd last card from leaving a blank half-row) */
.award-grid--two .award-card--wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.award-grid--two .award-card--wide .award-photo { width: 46%; flex: 0 0 46%; aspect-ratio: auto; min-height: 340px; }
.award-grid--two .award-card--wide .award-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 36px 44px; }
.award-grid--two .award-card--wide h3 { font-size: 1.5rem; margin-bottom: 10px; }
.award-grid--two .award-card--wide p { font-size: 1rem; }
@media (max-width: 680px) {
  .award-grid--two .award-card--wide { flex-direction: column; }
  .award-grid--two .award-card--wide .award-photo { width: 100%; flex: none; aspect-ratio: 4 / 3; min-height: 0; }
  .award-grid--two .award-card--wide .award-body { padding: 24px 26px 28px; }
}

/* Contact page: equal WhatsApp + Call buttons */
.contact-cta-row--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; }
.contact-cta-row--pair .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding-left: 16px; padding-right: 16px; }
.contact-cta-row--pair .btn svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 420px) { .contact-cta-row--pair { grid-template-columns: 1fr; } }
