:root {
  --primary: #339af0;
  --primary-dark: #1864ab;
  --primary-light: #74c0fc;
  --accent: #ff8787;
  --accent-soft: #ffd43b;
  --text: #1f2937;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f0f9ff;
  --bg-warm: #fff9db;
  --border: #e5e7eb;
  --shadow: 0 10px 40px rgba(51, 154, 240, 0.12);
  --radius: 18px;
  --max-width: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

.container { width: min(100% - 2rem, var(--max-width)); margin-inline: auto; }

.top-bar { background: var(--primary-dark); color: #fff; font-size: 0.9rem; padding: 0.55rem 0; }
.top-bar .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; align-items: center; }
.top-bar a { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; }
.logo { display: flex; align-items: center; gap: 0.75rem; color: var(--primary-dark); font-weight: 800; font-size: 1rem; line-height: 1.2; }
.logo img { height: 50px; width: auto; }

.nav-toggle { display: none; border: none; background: var(--primary); color: #fff; padding: 0.55rem 0.85rem; border-radius: 8px; cursor: pointer; }
.main-nav { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--text); font-weight: 600; font-size: 0.92rem; }
.main-nav a.active, .main-nav a:hover { color: var(--primary); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.85rem 1.5rem; border-radius: 999px; border: none; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(51,154,240,0.3); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #fa5252; color: #fff; }

.hero { position: relative; min-height: 80vh; display: grid; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(24,100,171,0.88), rgba(51,154,240,0.78)), url("../assets/images/clinic-exterior.png") center/cover; filter: saturate(1.05); }
.hero .container { position: relative; z-index: 1; padding: 4rem 0; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.85rem; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 1rem; max-width: 18ch; }
.hero p { font-size: 1.15rem; max-width: 54ch; opacity: 0.96; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-soft); }
.section-warm { background: var(--bg-warm); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0 0 0.75rem; color: var(--primary-dark); }
.section-header p { color: var(--text-muted); margin: 0; font-size: 1.05rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: -3rem; position: relative; z-index: 2; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 1.5rem; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--accent-soft); }
.stat-card strong { display: block; font-size: 2rem; color: var(--primary); line-height: 1; margin-bottom: 0.35rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.2s; }
.card:hover { transform: translateY(-4px); }
.card-body { padding: 1.5rem; }
.card h3 { margin: 0 0 0.5rem; color: var(--primary-dark); }
.card p { margin: 0; color: var(--text-muted); }

.service-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem; }
.image-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.image-frame img { width: 100%; object-fit: cover; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.video-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.video-card iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video-card figcaption { padding: 0.85rem 1rem; font-size: 0.9rem; color: var(--text-muted); }

.testimonial { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border-left: 4px solid var(--accent); }
.testimonial blockquote { margin: 0 0 1rem; font-style: italic; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--primary-dark); }

.info-box { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.info-box h3 { margin-top: 0; color: var(--primary-dark); }

.cta-band { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); color: #fff; text-align: center; padding: 4rem 0; }
.cta-band h2 { margin: 0 0 0.75rem; font-size: 2rem; }
.cta-band p { margin: 0 0 1.5rem; opacity: 0.95; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-list li { display: flex; gap: 0.85rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-list strong { min-width: 5.5rem; color: var(--primary-dark); }

.contact-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; margin-bottom: 1rem; }
.contact-form textarea { min-height: 140px; resize: vertical; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 360px; }
.map-wrap iframe { width: 100%; min-height: 360px; border: 0; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.55rem 0; border-bottom: 1px solid var(--border); }
.hours-table td:last-child { text-align: right; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.gallery img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }

.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature-list li { padding: 0.45rem 0 0.45rem 1.5rem; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

.insurance-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.insurance-tag { background: var(--bg-soft); border: 1px solid var(--border); padding: 0.5rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: var(--primary-dark); }

.timeline { border-left: 3px solid var(--primary-light); padding-left: 1.5rem; margin-left: 0.5rem; }
.timeline-item { margin-bottom: 1.5rem; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -1.85rem; top: 0.35rem; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary-light); }
.timeline-item strong { color: var(--primary-dark); display: block; margin-bottom: 0.25rem; }

.site-footer { background: #0f172a; color: #cbd5e1; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; margin: 0 0 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; font-size: 0.9rem; text-align: center; }

.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 4rem 0; text-align: center; }
.page-hero h1 { margin: 0 0 0.5rem; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { margin: 0; opacity: 0.92; font-size: 1.1rem; }

@media (max-width: 960px) {
  .stats, .grid-3, .grid-4, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .stats, .grid-3, .grid-4, .video-grid, .gallery { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}
