/* ===== Chao Dental Studio - Design System ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #2F4A65;
  --primary-dk: #1e3347;
  --primary-lt: #E5F2F2;
  --primary-glow: rgba(47,74,101,0.15);
  --accent: #3a7ca5;
  --accent-dk: #2d6384;
  --dark: #1e293b;
  --dark-lt: #334155;
  --gray-600: #475569;
  --gray-400: #94a3b8;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  --text: #4A4B4C;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-h: 76px;
  --max-w: 1200px;
}
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: var(--sans); color: var(--text); line-height: 1.65; background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
.container { width: 92%; max-width: var(--max-w); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Utilities */
.section { padding: clamp(60px,8vw,100px) 0; }
.section-alt { background: var(--gray-50); }
.section-teal { background: var(--primary-lt); }
.section-dark { background: var(--primary); color: var(--white); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.section-dark .eyebrow { color: var(--primary-lt); }
.section-title { font-family: var(--serif); font-size: clamp(28px,4vw,42px); line-height: 1.2; color: var(--dark); }
.section-dark .section-title { color: var(--white); }
.section-sub { font-size: 17px; color: var(--gray-600); max-width: 600px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: 15px; transition: all 0.3s ease; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 8px 25px var(--primary-glow); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dk); transform: translateY(-2px); }

/* Announcement Bar */
.announce-bar { background: var(--primary); color: var(--white); text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; }
.announce-bar a { color: var(--primary-lt); text-decoration: underline; margin-left: 6px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); height: var(--nav-h); }
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 46px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links > a, .nav-dropdown > span { font-size: 14px; font-weight: 600; color: var(--dark); transition: color 0.2s; cursor: pointer; }
.nav-links > a:hover, .nav-dropdown:hover > span { color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: -16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 12px 0; min-width: 220px; box-shadow: 0 12px 30px rgba(0,0,0,0.1); z-index: 100; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 8px 20px; font-size: 14px; font-weight: 500; color: var(--dark); transition: all 0.2s; }
.nav-dropdown-menu a:hover { background: var(--primary-lt); color: var(--primary); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--dark); font-size: 14px; }
.nav-cta { background: var(--primary); color: var(--white) !important; padding: 10px 22px; border-radius: 50px; font-weight: 700; font-size: 13px; transition: all 0.3s; }
.nav-cta:hover { background: var(--primary-dk); transform: translateY(-1px); }
.hamburger { display: none; width: 28px; height: 20px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburger span { display: block; height: 2.5px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }

/* Mobile nav */
.mobile-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--white); z-index: 2000; padding: 100px 32px 40px; flex-direction: column; gap: 16px; opacity: 0; pointer-events: none; transition: opacity 0.3s; overflow-y: auto; }
.mobile-nav.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-nav a { font-size: 20px; font-weight: 700; color: var(--dark); padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.mobile-close { position: absolute; top: 24px; right: 24px; font-size: 32px; color: var(--dark); cursor: pointer; background: none; border: none; }

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; background: var(--dark); }
.hero-bg { position: absolute; inset: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(47,74,101,0.92) 0%, rgba(30,41,59,0.6) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-inner { display: grid; grid-template-columns: 1fr 400px; gap: 50px; align-items: center; padding: 50px 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(229,242,242,0.15); border: 1px solid rgba(229,242,242,0.3); padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; color: var(--primary-lt); margin-bottom: 20px; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px,5vw,52px); line-height: 1.1; color: var(--white); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--primary-lt); }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 520px; margin-bottom: 14px; line-height: 1.7; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 16px; margin: 20px 0; }
.hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.hero-trust-icon { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--white); }
.hero-buttons { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Hero Form */
.hero-form { background: var(--white); border-radius: 16px; padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.hero-form h3 { font-family: var(--serif); font-size: 20px; text-align: center; color: var(--dark); margin-bottom: 4px; }
.hero-form .form-subtitle { text-align: center; color: var(--gray-600); font-size: 13px; margin-bottom: 14px; }
.form-price { text-align: center; background: var(--primary-lt); border-radius: 10px; padding: 12px; margin-bottom: 16px; }
.form-price .amount { font-size: 32px; font-weight: 800; color: var(--primary); }
.form-price .label { font-size: 12px; color: var(--gray-600); }
.form-embed-placeholder { border: 2px dashed var(--gray-200); border-radius: 12px; padding: 40px 20px; text-align: center; }
.form-embed-placeholder p { color: var(--gray-400); font-size: 14px; }

/* Proof Bar */
.proof-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 28px 0; }
.proof-bar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.proof-stat .number { font-family: var(--serif); font-size: 36px; color: var(--primary); line-height: 1; }
.proof-stat .label { font-size: 13px; color: var(--gray-600); font-weight: 600; margin-top: 4px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { position: relative; border-radius: 16px; overflow: hidden; }
.about-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; }
.about-img-badge { position: absolute; bottom: 20px; right: 20px; background: var(--primary); color: var(--white); padding: 14px 20px; border-radius: 12px; text-align: center; }
.about-img-badge .num { font-size: 28px; font-weight: 800; line-height: 1; }
.about-img-badge .txt { font-size: 11px; font-weight: 600; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
.about-feature { display: flex; align-items: center; gap: 8px; }
.about-feature-icon { width: 22px; height: 22px; border-radius: 6px; background: var(--primary-lt); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.about-feature span { font-size: 14px; font-weight: 600; color: var(--dark); }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.service-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 28px 24px; transition: all 0.3s; text-decoration: none; display: block; }
.service-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 12px 30px var(--primary-glow); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-lt); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 20px; }
.service-card h4 { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.service-card p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.service-card .learn-more { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; }

/* Specials */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.offer-card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--gray-200); transition: all 0.3s; }
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.offer-top { background: linear-gradient(135deg, var(--primary), var(--primary-dk)); padding: 24px; color: var(--white); text-align: center; }
.offer-top .price { font-family: var(--serif); font-size: 42px; line-height: 1; }
.offer-top h4 { font-size: 17px; font-weight: 700; margin-top: 6px; }
.offer-body { padding: 24px; }
.offer-body ul { list-style: none; }
.offer-body li { padding: 5px 0; font-size: 14px; color: var(--gray-600); display: flex; align-items: start; gap: 8px; }
.offer-body li::before { content: "✓"; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.offer-body .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.testimonial-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 14px; padding: 28px; position: relative; }
.testimonial-card::before { content: '\201C'; font-family: var(--serif); font-size: 60px; color: var(--primary-lt); position: absolute; top: 10px; right: 20px; line-height: 1; }
.testimonial-stars { color: #fbbf24; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; color: var(--gray-600); line-height: 1.6; font-style: italic; }
.testimonial-author { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-lt); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.testimonial-name { font-weight: 700; font-size: 14px; }
.testimonial-source { font-size: 12px; color: var(--gray-400); }

/* Insurance */
.insurance-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 32px; }
.insurance-tag { padding: 12px 24px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--dark); transition: all 0.2s; }
.insurance-tag:hover { border-color: var(--primary); background: var(--primary-lt); }

/* Location */
.location-card { background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--gray-200); max-width: 800px; margin: 40px auto 0; }
.location-map { height: 280px; background: var(--gray-100); }
.location-map iframe { width: 100%; height: 100%; border: 0; }
.location-info { padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.location-item { display: flex; align-items: start; gap: 12px; margin-bottom: 14px; }
.location-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--primary-lt); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.location-details h4 { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.location-details p, .location-details a { font-size: 14px; color: var(--gray-600); }

/* CTA Banner */
.cta-banner { padding: clamp(50px,6vw,80px) 0; text-align: center; }
.cta-banner h2 { font-family: var(--serif); font-size: clamp(26px,3.5vw,38px); margin-bottom: 12px; }
.cta-banner p { font-size: 17px; opacity: 0.85; max-width: 550px; margin: 0 auto 24px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 13px; }
.footer-bottom a { margin-left: 16px; }
.footer-bottom a:hover { color: var(--white); }

/* Floating CTA */
.floating-cta { display: none; }

/* Fade animation */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Service Page Layout */
.svc-hero { background: var(--primary); padding: 40px 0; text-align: center; }
.svc-hero h1 { font-family: var(--serif); color: var(--white); font-size: clamp(28px,4vw,40px); }
.svc-hero .breadcrumb { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 8px; }
.svc-hero .breadcrumb a { color: rgba(255,255,255,0.8); }
.svc-layout { display: grid; grid-template-columns: 1fr 340px; gap: 50px; padding: 60px 0; }
.svc-content { color: var(--text); line-height: 1.8; }
.svc-content h2 { font-family: var(--serif); font-size: 26px; color: var(--dark); margin: 36px 0 16px; line-height: 1.3; }
.svc-content h2:first-child { margin-top: 0; }
.svc-content h3 { font-size: 19px; color: var(--dark); margin: 24px 0 12px; font-weight: 700; }
.svc-content p { margin-bottom: 16px; font-size: 16px; }
.svc-content ul, .svc-content ol { margin: 12px 0 16px 24px; }
.svc-content li { margin-bottom: 8px; font-size: 15px; }
.svc-content .faq-q { font-weight: 700; color: var(--dark); }

/* Service Sidebar */
.svc-sidebar { position: relative; }
.svc-sidebar-inner { position: sticky; top: calc(var(--nav-h) + 24px); }
.sidebar-card { background: var(--primary); color: var(--white); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.sidebar-card h4 { font-family: var(--serif); font-size: 18px; margin-bottom: 16px; }
.sidebar-card .phone-link { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 20px; }
.sidebar-hours { font-size: 14px; line-height: 1.8; }
.sidebar-hours .day { font-weight: 600; }
.sidebar-links { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 24px; }
.sidebar-links h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.sidebar-links a { display: block; padding: 8px 0; font-size: 14px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); transition: color 0.2s; }
.sidebar-links a:last-child { border-bottom: none; }
.sidebar-links a:hover { color: var(--primary); }
.sidebar-links a.active { color: var(--primary); font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-right { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .offers-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .proof-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .location-info { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-sidebar { display: none; }
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .floating-cta { display: flex; position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: var(--white); align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 20px var(--primary-glow); z-index: 900; }
}
