/* ============================================================
   SUMMIT RIDGE DENTAL — Design System & Global Styles
   Brand: Mountain Slate #2E4057 | Sunrise Gold #D4943A | Desert Sage #7BA38C
   Fonts: DM Serif Display (headings) | DM Sans (body)
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-primary: #2E4057;
  --color-primary-dark: #1E2D3E;
  --color-primary-light: #3D5573;
  --color-secondary: #D4943A;
  --color-secondary-dark: #B87D2E;
  --color-secondary-light: #E0A854;
  --color-accent: #7BA38C;
  --color-accent-dark: #5F8A71;
  --color-accent-light: #9BBAA7;

  /* Neutrals */
  --color-text: #2D2D2D;
  --color-text-light: #5A5A5A;
  --color-text-muted: #888888;
  --color-bg: #FAFAF7;
  --color-bg-alt: #F2EDE6;
  --color-white: #FFFFFF;
  --color-border: #E0DCD5;
  --color-border-light: #EDEBE7;

  /* Functional Colors */
  --color-emergency: #C0392B;
  --color-emergency-dark: #A33025;
  --color-success: #27AE60;
  --color-star: #F1C40F;
  --color-link: #2E4057;
  --color-link-hover: #D4943A;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;

  /* Type Scale */
  --text-h1: clamp(2rem, 4vw, 3rem);
  --text-h2: clamp(1.625rem, 3vw, 2.25rem);
  --text-h3: clamp(1.375rem, 2.5vw, 1.75rem);
  --text-h4: clamp(1.125rem, 2vw, 1.375rem);
  --text-body: 1rem;
  --text-body-lg: 1.125rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;

  /* Spacing Scale (8px base) */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --content-max: 800px;
  --header-height: 80px;
  --header-height-scrolled: 64px;
  --mobile-bar-height: 60px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-link-hover);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-primary);
  font-weight: 400; /* DM Serif Display only has 400 */
}

h1 { font-size: var(--text-h1); margin-bottom: var(--space-md); }
h2 { font-size: var(--text-h2); margin-bottom: var(--space-sm); }
h3 { font-size: var(--text-h3); margin-bottom: var(--space-sm); }
h4 { font-size: var(--text-h4); margin-bottom: var(--space-xs); }

p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

p:last-child { margin-bottom: 0; }

.text-lg { font-size: var(--text-body-lg); }
.text-sm { font-size: var(--text-small); }
.text-caption { font-size: var(--text-caption); }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-white { color: var(--color-white); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }

.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

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

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.container-narrow {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

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

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

.section-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

/* --- Grid System --- */
.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  min-height: 48px;
  border: 2px solid transparent;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

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

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

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

.btn-outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn-emergency {
  background-color: var(--color-emergency);
  color: var(--color-white);
  border-color: var(--color-emergency);
  animation: pulse-subtle 2s infinite;
}

.btn-emergency:hover {
  background-color: var(--color-emergency-dark);
  border-color: var(--color-emergency-dark);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-small);
  min-height: 40px;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-body-lg);
}

.btn-block {
  width: 100%;
}

@media (max-width: 767px) {
  .btn-block-mobile {
    width: 100%;
  }
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-body {
  padding: var(--space-md);
}

/* Service Card */
.service-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--color-border-light);
}

.service-card .service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  color: var(--color-secondary);
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-xs);
}

.service-card p {
  font-size: var(--text-small);
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.service-card .card-link {
  font-weight: 600;
  color: var(--color-secondary);
  font-size: var(--text-small);
}

.service-card .card-link:hover {
  color: var(--color-secondary-dark);
}

/* Testimonial Card */
.testimonial-card {
  padding: var(--space-lg);
  border-left: 4px solid var(--color-secondary);
  background: var(--color-white);
}

.testimonial-card .stars {
  color: var(--color-star);
  margin-bottom: var(--space-xs);
  font-size: 1.125rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.testimonial-card .attribution {
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-small);
}

.testimonial-card .attribution span {
  font-weight: 400;
  color: var(--color-text-muted);
}

/* Doctor Card */
.doctor-card {
  text-align: center;
  padding: var(--space-lg);
}

.doctor-card .doctor-photo {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-md);
  overflow: hidden;
  border: 4px solid var(--color-bg-alt);
}

.doctor-card .doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card h3 {
  font-size: var(--text-h4);
  margin-bottom: 0.25rem;
}

.doctor-card .credentials {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.doctor-card .specialties {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  margin-bottom: var(--space-sm);
}

.doctor-card .specialty-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-caption);
  font-weight: 500;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-sm) 0;
}

.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-small);
  font-weight: 500;
  white-space: nowrap;
}

.trust-item .trust-icon {
  color: var(--color-secondary);
  font-size: 1.25rem;
}

.trust-item strong {
  font-weight: 700;
}

@media (max-width: 767px) {
  .trust-bar .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    text-align: center;
  }
  .trust-item {
    flex-direction: column;
    gap: 0.25rem;
    font-size: var(--text-caption);
  }
}

/* --- Navigation / Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: var(--header-height);
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 44px;
  width: auto;
}

.header-logo:hover {
  color: var(--color-primary);
}

/* Desktop Nav */
.main-nav {
  display: none;
  align-items: center;
  gap: var(--space-xs);
}

.main-nav a,
.main-nav .nav-dropdown-trigger {
  padding: 0.5rem 0.75rem;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a:hover,
.main-nav .nav-dropdown-trigger:hover {
  color: var(--color-secondary);
}

/* Nav Dropdowns */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-sm);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-small);
  border-radius: var(--radius-sm);
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg-alt);
}

/* Mega Menu for Services */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  width: 680px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}

.mega-menu-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.25rem;
}

.mega-menu a {
  display: block;
  padding: 0.375rem 0.75rem;
  font-size: var(--text-small);
  color: var(--color-text);
  border-radius: var(--radius-sm);
}

.mega-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-secondary);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--text-small);
  text-decoration: none;
}

.header-phone:hover {
  color: var(--color-secondary);
}

.header-phone svg {
  width: 18px;
  height: 18px;
}

.header-book-btn {
  display: none;
}

/* Mobile Header */
.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-secondary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  text-decoration: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-phone { display: flex; }
  .header-book-btn { display: inline-flex; }
  .mobile-call-btn { display: none; }
  .hamburger { display: none; }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-md);
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: var(--text-body-lg);
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
}

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

.mobile-menu .mobile-submenu {
  padding-left: var(--space-md);
}

.mobile-menu .mobile-submenu a {
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--color-text-light);
}

.mobile-menu .mobile-cta-group {
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

/* --- Mobile Bottom Bar --- */
.mobile-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: var(--color-primary);
  height: var(--mobile-bar-height);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
}

.mobile-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--color-white);
  font-size: var(--text-caption);
  font-weight: 600;
  text-decoration: none;
  min-height: 48px;
  transition: background var(--transition-fast);
}

.mobile-bar a:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.mobile-bar a svg,
.mobile-bar a .bar-icon {
  font-size: 1.25rem;
}

@media (min-width: 1024px) {
  .mobile-bar { display: none; }
}

/* Add padding at bottom for mobile bar */
@media (max-width: 1023px) {
  body { padding-bottom: var(--mobile-bar-height); }
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: var(--space-sm) 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-small);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-text-muted);
}

.breadcrumbs li::after {
  content: '›';
  margin-left: 0.25rem;
  color: var(--color-text-muted);
}

.breadcrumbs li:last-child::after {
  content: '';
}

.breadcrumbs a {
  color: var(--color-text-light);
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--color-secondary);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 64, 87, 0.85) 0%, rgba(46, 64, 87, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-sm);
  width: 100%;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  max-width: 720px;
}

.hero .hero-subtitle {
  font-size: var(--text-body-lg);
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .hero {
    min-height: 600px;
  }
  .hero-content {
    padding: var(--space-4xl) var(--space-sm);
  }
}

/* --- Forms --- */
.form-group {
  margin-bottom: var(--space-md);
}

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

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: var(--text-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(212, 148, 58, 0.15);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%232D2D2D'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  font-size: var(--text-small);
  color: var(--color-emergency);
  margin-top: 0.25rem;
}

.form-success {
  padding: var(--space-md);
  background: rgba(39, 174, 96, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-success);
  font-weight: 500;
  text-align: center;
}

/* --- FAQ Accordion --- */
.faq-section {
  max-width: var(--content-max);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  gap: var(--space-sm);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-secondary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding-bottom: var(--space-md);
  color: var(--color-text-light);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

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

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

.footer-col h4 {
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-small);
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-secondary);
}

.footer-locations {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

.footer-location h4 {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: var(--text-body);
  margin-bottom: var(--space-xs);
  text-transform: none;
  letter-spacing: 0;
}

.footer-location p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.footer-location a {
  display: inline;
  padding: 0;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}

.footer-badges img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer-badges img:hover {
  opacity: 1;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1.125rem;
  padding: 0;
  transition: background var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-secondary);
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  display: inline;
  padding: 0;
}

.footer-bottom a:hover {
  color: var(--color-secondary);
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-secondary);
  color: var(--color-white);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: var(--color-white);
}

/* --- Focus Indicators (Accessibility) --- */
*:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-subtle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(192, 57, 43, 0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* --- Utility Classes --- */
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

.mx-auto { margin-left: auto; margin-right: auto; }

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-tablet-up { display: none !important; }
}

@media (max-width: 1023px) {
  .hide-below-desktop { display: none !important; }
}

@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}

/* --- Specific Page Components --- */

/* Entity Summary / AI Answer Block */
.entity-summary {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-secondary);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-body-lg);
  line-height: 1.7;
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Why Choose Us */
.feature-item {
  text-align: center;
  padding: var(--space-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: var(--radius-full);
  color: var(--color-secondary);
  font-size: 1.75rem;
}

.feature-item h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-xs);
}

.feature-item p {
  font-size: var(--text-small);
  color: var(--color-text-light);
}

/* Areas Served */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
}

.area-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.area-link:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

/* Insurance Logos */
.insurance-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.insurance-logos img {
  height: 36px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.6;
  transition: all var(--transition-fast);
}

.insurance-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* NAP Block */
.nap-block {
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.nap-block h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-xs);
}

.nap-block .nap-address,
.nap-block .nap-phone,
.nap-block .nap-hours {
  font-size: var(--text-small);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0.375rem;
}

.nap-block .nap-phone a {
  font-weight: 600;
  color: var(--color-secondary);
}

/* CTA Block */
.cta-block {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3xl) var(--space-sm);
  text-align: center;
}

.cta-block h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-block p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block .btn + .btn {
  margin-left: var(--space-sm);
}

@media (max-width: 767px) {
  .cta-block .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  .cta-block .btn {
    width: 100%;
    max-width: 320px;
  }
  .cta-block .btn + .btn {
    margin-left: 0;
  }
}

/* Map Container */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  max-height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Blog Teaser Cards */
.blog-card {
  border: 1px solid var(--color-border-light);
}

.blog-card .blog-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.blog-card .blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card .card-body {
  padding: var(--space-md);
}

.blog-card .blog-meta {
  font-size: var(--text-caption);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.blog-card h3 {
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-xs);
}

.blog-card p {
  font-size: var(--text-small);
  color: var(--color-text-light);
}

/* Location Tabs */
.location-tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.location-tab {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: var(--text-small);
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.location-tab:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

.location-tab.active {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}

.location-panel {
  display: none;
}

.location-panel.active {
  display: block;
}

/* Emergency Callout */
.emergency-callout {
  background: rgba(192, 57, 43, 0.06);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.emergency-callout .emergency-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.emergency-callout h3 {
  color: var(--color-emergency);
  font-size: var(--text-body-lg);
  margin-bottom: 0.25rem;
}

.emergency-callout p {
  font-size: var(--text-small);
  margin-bottom: 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-xl);
}

.section-header .overline {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: var(--space-xs);
}

.section-header p {
  color: var(--color-text-light);
  font-size: var(--text-body-lg);
}

/* Before/After Gallery Preview */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

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

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item .gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--color-white);
  font-size: var(--text-small);
  font-weight: 600;
  text-align: center;
}

/* New Patient Special Callout */
.special-callout {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  text-align: center;
}

.special-callout .special-price {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  margin-bottom: 0.25rem;
}

.special-callout .special-original {
  text-decoration: line-through;
  opacity: 0.7;
  font-size: var(--text-small);
}

.special-callout .special-description {
  margin: var(--space-sm) 0;
  font-size: var(--text-body-lg);
}

/* Inline Services List for Location Pages */
.services-list-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

@media (min-width: 768px) {
  .services-list-compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-list-compact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: var(--text-small);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.services-list-compact a::before {
  content: '→';
  color: var(--color-secondary);
  font-weight: 700;
}

.services-list-compact a:hover {
  background: var(--color-bg-alt);
  color: var(--color-secondary);
}

/* Doctors at this location grid */
.location-doctors {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

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

.location-doctor-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.location-doctor-card .doc-photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.location-doctor-card .doc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-doctor-card h3 {
  font-size: var(--text-body);
  margin-bottom: 0.125rem;
}

.location-doctor-card .doc-role {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}
