/*
=======================================================
  MAIN STREET MEDICAL — SHARED STYLESHEET
  139 Centre St STE 709, New York, NY 10013
  Part of Rendr Care Physicians Network
=======================================================

  COLOR PALETTE RATIONALE:
  Healthcare + NYC Chinatown/Downtown Manhattan cultural context.
  - Deep Navy (#0B2545): Trust, authority, stability — anchors all professional elements.
  - Teal/Emerald (#1A7A6E): Healing, vitality, growth — medical green-forward without clinical sterility.
  - Warm White (#F8F6F2): Approachable and clean — softens the clinical feel for a community practice.
  - Gold Accent (#C9933A): Warmth, excellence, cultural resonance for the Asian-American community.
  - Soft Gray (#E8EBF0): UI backgrounds, cards, surfaces.
  - Danger/Alert (#E05252): CTAs, urgency elements.

  TYPOGRAPHY RATIONALE:
  NYC Downtown + Multicultural Asian-American community context.
  - "Playfair Display" (Display): Refined, authoritative, editorial — evokes trust without coldness.
    Carries the gravitas expected of a respected medical practice in Manhattan.
  - "DM Sans" (Body): Modern, legible, highly readable at all sizes on mobile.
    Clean without being sterile — bridges the professional and approachable.
  Both fonts support extended Latin characters and render beautifully on mobile screens.
=======================================================
*/

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

/* ===========================
   CSS CUSTOM PROPERTIES
=========================== */
:root {
  --navy: #0B2545;
  --navy-light: #163A6B;
  --teal: #1A7A6E;
  --teal-light: #22998A;
  --teal-pale: #E8F5F3;
  --gold: #C9933A;
  --gold-light: #E8B96A;
  --warm-white: #F8F6F2;
  --soft-gray: #E8EBF0;
  --mid-gray: #8A94A6;
  --dark-text: #1A2332;
  --body-text: #3D4A5C;
  --alert: #E05252;
  --white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --shadow-sm: 0 2px 8px rgba(11,37,69,0.08);
  --shadow-md: 0 8px 32px rgba(11,37,69,0.12);
  --shadow-lg: 0 20px 60px rgba(11,37,69,0.18);
  --shadow-xl: 0 32px 80px rgba(11,37,69,0.24);
  --shadow-teal: 0 8px 32px rgba(26,122,110,0.25);

  /* Semantic text aliases */
  --text-primary: #1A2332;
  --text-secondary: #3D4A5C;
  --text-muted: #8A94A6;

  /* Border alias */
  --border: #E8EBF0;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--warm-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
}

input, textarea, select {
  font-family: var(--font-body);
}

/* ===========================
   TYPOGRAPHY SYSTEM
=========================== */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--dark-text);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { line-height: 1.7; margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.75;
}

.caption {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

/* ===========================
   LAYOUT UTILITIES
=========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 4rem 0;
}

.section-alt {
  background: var(--soft-gray);
}

.section-dark {
  background: var(--navy);
  color: var(--warm-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark .section-label {
  color: var(--gold);
}

.section-dark .section-label::before {
  background: var(--gold);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.flex {
  display: flex;
  align-items: center;
}

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

.text-center { text-align: center; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,122,110,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(201,147,58,0.3);
}

.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.22);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* Phone CTA button — always clearly visible on dark BGs */
.btn-phone {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.btn-phone:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  background: #1DB954;
  border-color: #1DB954;
  transform: translateY(-2px);
}

/* ===========================
   NAVIGATION
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.875rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
  flex-wrap: nowrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-teal);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  display: block;
  white-space: nowrap;
}

.nav-logo-tagline {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.1rem;
  white-space: nowrap;
}

.navbar.scrolled .nav-logo-name {
  color: var(--navy);
}

.navbar.scrolled .nav-logo-tagline {
  color: var(--mid-gray);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.navbar.scrolled .nav-link {
  color: var(--body-text);
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  background: var(--teal-pale);
  color: var(--teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}

.navbar.scrolled .nav-phone {
  color: var(--navy);
}

.nav-phone svg {
  width: 14px;
  height: 14px;
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--navy);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.mobile-menu-links a {
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color var(--transition);
}

.mobile-menu-links a:hover {
  color: var(--gold);
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===========================
   CARDS
=========================== */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.card-body {
  padding: 2rem;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* ===========================
   BADGES
=========================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-teal {
  background: var(--teal-pale);
  color: var(--teal);
}

.badge-gold {
  background: rgba(201,147,58,0.12);
  color: var(--gold);
}

.badge-navy {
  background: rgba(11,37,69,0.08);
  color: var(--navy);
}

/* ===========================
   FLOATING WHATSAPP BUTTON
=========================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: white;
  border-radius: 100px;
  padding: 0.875rem 1.5rem;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
  animation: float-pulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 48px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 48px rgba(37,211,102,0.6); }
}

/* ===========================
   PAGE HERO (inner pages)
=========================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--teal) 100%);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero .lead {
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  justify-content: center;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb-sep {
  color: rgba(255,255,255,0.4);
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header.text-center {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header .lead {
  color: var(--body-text);
}

.section-dark .section-header .lead {
  color: rgba(255,255,255,0.75);
}

/* ===========================
   STATS / NUMBERS
=========================== */
.stat-block {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid-gray);
  letter-spacing: 0.04em;
}

/* ===========================
   FORMS
=========================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid var(--soft-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--dark-text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,122,110,0.12);
}

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

.form-hint {
  font-size: 0.78rem;
  color: var(--mid-gray);
  margin-top: 0.375rem;
}

.form-error {
  font-size: 0.78rem;
  color: var(--alert);
  margin-top: 0.375rem;
}

/* ===========================
   STAR RATING
=========================== */
.star-rating {
  display: flex;
  gap: 0.2rem;
}

.star {
  font-size: 1.1rem;
  color: var(--gold);
}

.star-empty {
  color: var(--soft-gray);
}

/* ===========================
   DIVIDERS
=========================== */
.divider {
  width: 60px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin: 1.5rem auto;
}

.divider-left {
  margin-left: 0;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--dark-text);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

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

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.footer h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--teal-light);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--teal-light);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item span {
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.rendr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26,122,110,0.15);
  border: 1px solid rgba(26,122,110,0.3);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  color: var(--teal-light);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 1rem;
}

/* ===========================
   TESTIMONIAL CARD
=========================== */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--teal);
  transition: all var(--transition);
}

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

.testimonial-text {
  font-size: 0.95rem;
  color: var(--body-text);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--teal);
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark-text);
  margin-bottom: 0.15rem;
}

.testimonial-meta {
  font-size: 0.78rem;
  color: var(--mid-gray);
}

/* ===========================
   ALERTS / TOASTS
=========================== */
.toast {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark-text);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  background: var(--teal);
}

.toast.error {
  background: var(--alert);
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* nav-inner alias (same as navbar-inner) */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1A3A6A 50%, var(--teal) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Grid equal-height cards */
.grid-3 {
  align-items: stretch;
}
.grid-3 > * {
  display: flex;
  flex-direction: column;
}
.grid-3 .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}
.grid-3 .card .card-icon {
  flex-shrink: 0;
}
.grid-3 .card p {
  flex: 1;
}
.grid-3 .card h3 {
  margin-bottom: 0.75rem;
}

/* ===========================
   RESPONSIVE
=========================== */

/* Hide phone number from navbar at medium widths to prevent overflow */
@media (max-width: 1100px) {
  .nav-phone { display: none; }
  .nav-link { padding: 0.5rem 0.6rem; font-size: 0.8rem; }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .section-sm { padding: 3rem 0; }
  .cta-section { padding: 4rem 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Hide desktop nav links, show hamburger */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-phone { display: none; }

  /* Keep Book Appointment button visible */
  .nav-actions { gap: 0.5rem; }
  .nav-actions .btn { display: inline-flex; }

  .page-hero { padding: 7rem 0 4rem; }
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem;
    border-radius: 50%;
  }
  .whatsapp-float span { display: none; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 340px; justify-content: center; }
  .section-header { margin-bottom: 2.5rem; }
  h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  h3 { font-size: clamp(1.1rem, 4vw, 1.5rem); }
}

@media (max-width: 480px) {
  :root { font-size: 15px; }
  .container { padding: 0 1rem; }

  /* Tighten navbar on phones */
  .nav-logo-tagline { display: none; }
  .navbar { padding: 0.875rem 0; }
  .navbar.scrolled { padding: 0.625rem 0; }

  /* Compact Book button */
  .nav-actions .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  /* Page hero */
  .page-hero { padding: 5.5rem 0 3rem; }
  .page-hero .lead { font-size: 0.9rem; }
  .page-hero h1 { font-size: clamp(1.4rem, 5vw, 2rem); }

  /* CTA section */
  .cta-section { padding: 3rem 0; }
  .cta-content h2 { font-size: clamp(1.3rem, 5vw, 1.8rem); }

  /* Prevent horizontal scroll */
  body { overflow-x: hidden; }
  img, iframe { max-width: 100%; }

  /* Collapse all grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }

  .btn-lg { padding: 0.875rem 1.5rem; font-size: 0.875rem; }
  .card { width: 100%; }
}

/* ===========================
   ACCESSIBILITY
=========================== */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================
   UTILITY: IMAGE OVERLAY
=========================== */
.img-overlay {
  position: relative;
  overflow: hidden;
}

.img-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.img-overlay:hover img {
  transform: scale(1.05);
}

/* ===========================
   INFO BOX
=========================== */
.info-box {
  background: var(--teal-pale);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.info-box p {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
  margin: 0;
}

/* Highlight chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201,147,58,0.1);
  border: 1px solid rgba(201,147,58,0.25);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.03em;
}

/* Accordion (FAQ) */
.accordion-item {
  border-bottom: 1px solid var(--soft-gray);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-text);
  transition: color var(--transition);
}

.accordion-trigger:hover {
  color: var(--teal);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  background: var(--teal-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition);
  margin-top: 2px;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  background: var(--teal);
  color: var(--white);
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Used by main.js for non-FAQ accordions */
.accordion-content.open {
  max-height: 800px;
}

.accordion-body {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--body-text);
  line-height: 1.75;
}

/* Doctor cards */
.doctor-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  text-align: center;
}

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

.doctor-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  background: var(--soft-gray);
}

.doctor-card-body {
  padding: 1.5rem;
}

.doctor-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.doctor-card-body .specialty {
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.doctor-card-body .languages {
  font-size: 0.78rem;
  color: var(--mid-gray);
}

/* Language tag */
.lang-tag {
  display: inline-block;
  background: var(--soft-gray);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--body-text);
  margin: 0.15rem;
}

/* Service detail card */
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--body-text);
  flex: 1;
}

.service-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--soft-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--teal-pale);
  color: var(--teal);
}
