/* ============================================
   Bright Smile Dental — v2
   Aesthetic: Soft Clinical Warmth
   Sage green + warm cream, rounded forms,
   airy spacing, calming and reassuring
   ============================================ */

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

:root {
  --sage: #5b8a72;
  --sage-dark: #477060;
  --sage-light: #e8f0ec;
  --sage-glow: rgba(91, 138, 114, 0.1);
  --warm: #f8f5f0;
  --cream: #fdfcfa;
  --sand: #e8e0d6;
  --gold: #c9a96e;
  --white: #ffffff;
  --text: #2d3436;
  --text-muted: #6b7c85;
  --text-light: #8d9da6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --max-width: 1140px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 100px;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================ HEADER */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(91, 138, 114, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-logo { font-family: var(--font-display); font-size: 1.35rem; color: var(--sage-dark); font-weight: 700; }
.nav-menu {
  display: none; flex-direction: column; position: absolute;
  top: 72px; left: 0; right: 0; background: var(--cream);
  padding: var(--space-sm) 0; border-bottom: 1px solid var(--sand);
}
.nav-menu.active { display: flex; }
.nav-menu a { display: block; padding: var(--space-sm) var(--space-md); color: var(--text-muted); font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--sage); }
.nav-cta { margin: var(--space-xs) var(--space-md); }
.hamburger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; padding: 4px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--sage); border-radius: 1px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================ BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.75rem; font-size: 0.9rem; font-weight: 700; border-radius: var(--radius-full); transition: all 0.3s var(--ease); border: 2px solid transparent; line-height: 1; }
.btn-primary { background: var(--sage); color: var(--white); border-color: var(--sage); }
.btn-primary:hover { background: var(--sage-dark); border-color: var(--sage-dark); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(91, 138, 114, 0.25); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: var(--white); color: var(--sage); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--sage); border-color: var(--sage); }
.btn-outline-dark:hover { background: var(--sage); color: var(--white); }

/* ============================================ HERO */
.hero {
  position: relative; min-height: 90vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #e8f0ec 0%, #f0ebe4 40%, #f8f5f0 100%);
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; top: -30%; right: -10%; width: 70%; height: 140%; background: radial-gradient(ellipse, rgba(91, 138, 114, 0.06) 0%, transparent 70%); border-radius: 50%; }
.hero::after { content: ''; position: absolute; bottom: -20%; left: 10%; width: 50%; height: 100%; background: radial-gradient(ellipse, rgba(201, 169, 110, 0.05) 0%, transparent 70%); border-radius: 50%; }
.hero .container { position: relative; z-index: 2; padding-top: 72px; }
.hero-content { max-width: 620px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1.1rem; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius-full); color: var(--sage); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--space-md); box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--sage); border-radius: 50%; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 3.8rem); line-height: 1.12; color: var(--text); margin-bottom: var(--space-md); letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; color: var(--sage); }
.hero-text { font-size: 1.1rem; color: var(--text-muted); max-width: 480px; margin-bottom: var(--space-lg); line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero-buttons .btn-outline { color: var(--sage); border-color: var(--sage); }
.hero-buttons .btn-outline:hover { background: var(--sage); color: var(--white); }
.hero-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--sand); }
.hero-feature-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.hero-feature-text { font-size: 0.85rem; font-weight: 600; color: var(--text); line-height: 1.4; }

/* ============================================ SECTIONS */
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--warm); }
.section-label { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage); margin-bottom: var(--space-sm); }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: var(--space-sm); }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; line-height: 1.65; }
.section-header { margin-bottom: var(--space-lg); }
.section-header-center { text-align: center; margin-bottom: var(--space-lg); }
.section-header-center .section-subtitle { margin: 0 auto; }

/* ============================================ SERVICES */
.services-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.service-card { background: var(--white); border: 1px solid rgba(91, 138, 114, 0.08); border-radius: var(--radius-lg); padding: var(--space-md); transition: all 0.35s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(91, 138, 114, 0.1); }
.service-card-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: var(--sage-light); border-radius: 12px; margin-bottom: var(--space-sm); }
.service-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); margin-bottom: var(--space-xs); }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.service-card .price { display: inline-block; margin-top: var(--space-xs); font-weight: 700; font-size: 0.85rem; color: var(--sage); }
.services-cta { text-align: center; margin-top: var(--space-lg); }

/* ============================================ TESTIMONIALS */
.testimonials-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
.testimonial-card { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-md); border: 1px solid rgba(91, 138, 114, 0.08); position: relative; }
.testimonial-card::before { content: '\201C'; font-family: var(--font-display); font-size: 4rem; color: var(--sage); opacity: 0.15; position: absolute; top: 0.5rem; left: 1.25rem; line-height: 1; }
.testimonial-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.15em; margin-bottom: var(--space-xs); }
.testimonial-card blockquote { font-size: 0.95rem; font-style: italic; color: var(--text); margin-bottom: var(--space-sm); line-height: 1.7; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.testimonial-title { font-size: 0.8rem; color: var(--text-light); }

/* ============================================ CTA BANNER */
.cta-banner { background: var(--sage); color: var(--white); padding: var(--space-xl) 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%); }
.cta-banner .container { position: relative; }
.cta-banner h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--white); margin-bottom: var(--space-xs); }
.cta-banner p { font-size: 1.05rem; opacity: 0.9; margin-bottom: var(--space-md); }
.cta-banner .btn-outline { border-color: var(--white); color: var(--white); }
.cta-banner .btn-outline:hover { background: var(--white); color: var(--sage); }

/* ============================================ PAGE HEADER */
.page-header { background: linear-gradient(135deg, #e8f0ec 0%, #f0ebe4 100%); padding: calc(72px + var(--space-xl)) 0 var(--space-xl); text-align: center; }
.page-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--text); margin-bottom: var(--space-xs); }
.page-header p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto; }

/* ============================================ ABOUT */
.about-content { max-width: 700px; margin: 0 auto; }
.about-content p { font-size: 1.05rem; line-height: 1.8; color: var(--text); margin-bottom: var(--space-md); }

/* ============================================ CONTACT */
.contact-section { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; }
.contact-form-wrapper h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); margin-bottom: var(--space-xs); }
.contact-form-wrapper .text-light { color: var(--text-muted); margin-bottom: var(--space-md); }
.contact-form { display: flex; flex-direction: column; gap: var(--space-sm); }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.form-group input, .form-group textarea, .form-group select { padding: 0.8rem 1rem; border: 1px solid var(--sand); border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-glow); }
.form-group input.error, .form-group textarea.error { border-color: #ef4444; }
.form-group .error-message { color: #ef4444; font-size: 0.8rem; display: none; }
.form-group .error-message.visible { display: block; }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-status { padding: var(--space-sm); border-radius: var(--radius); font-size: 0.9rem; display: none; }
.form-status.success { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); margin-bottom: var(--space-sm); }
.contact-detail { display: flex; gap: var(--space-sm); margin-bottom: var(--space-sm); align-items: flex-start; }
.contact-detail-icon { flex-shrink: 0; font-size: 1.1rem; }
.contact-detail strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-light); margin-bottom: 0.15rem; }
.contact-detail a { color: var(--text); font-weight: 600; transition: color 0.2s; }
.contact-detail a:hover { color: var(--sage); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: var(--space-sm); }
.hours-table tr { border-bottom: 1px solid var(--sand); }
.hours-table td { padding: 0.5rem 0; font-size: 0.9rem; }
.hours-table td:first-child { font-weight: 600; color: var(--text); }
.hours-table td:last-child { text-align: right; color: var(--text-muted); }

/* ============================================ FOOTER */
.site-footer { background: var(--text); color: var(--text-light); padding: var(--space-xl) 0 var(--space-md); }
.footer-grid { display: grid; gap: var(--space-lg); grid-template-columns: 1fr; margin-bottom: var(--space-lg); }
.footer-col h4 { font-family: var(--font-display); color: var(--white); font-size: 1.1rem; margin-bottom: var(--space-sm); }
.footer-col p, .footer-col a { color: var(--text-light); font-size: 0.9rem; line-height: 1.8; transition: color 0.2s; }
.footer-col a:hover { color: var(--sage-light); }
.footer-col ul li { margin-bottom: 0.25rem; }
.footer-social { display: flex; gap: 0.75rem; margin-top: var(--space-sm); }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: var(--text-light); font-size: 0.75rem; font-weight: 700; transition: all 0.2s; }
.footer-social a:hover { background: var(--sage); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--space-md); text-align: center; font-size: 0.8rem; }

/* ============================================ ANIMATIONS */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================ RESPONSIVE */
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-section { grid-template-columns: 1.2fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu { display: flex; flex-direction: row; position: static; background: none; padding: 0; border: none; align-items: center; gap: 0; }
  .nav-menu a { padding: 0.5rem 1rem; }
  .hamburger { display: none; }
}
@media (min-width: 1024px) {
  .section { padding: var(--space-2xl) 0; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
