/* ===== SOPHIA NICHOLS DMD, MAGD, PA =====
   Palette: Deep Teal (#0a2a36), Warm Off-white (#f7f3ee), Gold (#b88844)
   Type: Playfair Display (display) + DM Sans (body)
   ========================================== */

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

/* ----- CUSTOM PROPERTIES ----- */
:root {
  --teal: #0a2a36;
  --teal-light: #124a5e;
  --cream: #f7f3ee;
  --gold: #b88844;
  --gold-hover: #a67838;
  --white: #ffffff;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --light-border: rgba(10, 42, 54, 0.1);
  --shadow-sm: 0 2px 8px rgba(10, 42, 54, 0.06);
  --shadow-md: 0 8px 32px rgba(10, 42, 54, 0.1);
  --shadow-lg: 0 16px 48px rgba(10, 42, 54, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 96px;
  --measure: 65ch;
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- TYPOGRAPHY ----- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  color: var(--teal);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { max-width: var(--measure); }
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

/* ----- UTILITY ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--teal);
  color: var(--white);
}
.btn-phone {
  background: var(--teal);
  color: var(--white);
  font-size: 1.1rem;
  padding: 16px 36px;
}
.btn-phone:hover, .btn-phone:focus-visible {
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ----- FOCUS ----- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----- ANIMATIONS ----- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-in {
  animation: fadeUp 0.7s ease both;
}
.animate-in-delay-1 { animation-delay: 0.1s; }
.animate-in-delay-2 { animation-delay: 0.2s; }
.animate-in-delay-3 { animation-delay: 0.3s; }
.animate-in-delay-4 { animation-delay: 0.4s; }

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}
.hero-content {
  animation: fadeUp 0.8s ease both;
}
.hero-badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
}
.hero h1 {
  margin-bottom: var(--space-lg);
  color: var(--teal);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: var(--space-xl);
  max-width: 45ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
}
.hero-phone-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.hero-phone-link:hover { color: var(--gold); }
.hero-image-wrap {
  position: relative;
  animation: fadeIn 1s ease 0.3s both;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image-wrap img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  display: block;
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,42,54,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.hero-trust-row {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-trust-item .icon {
  width: 20px;
  height: 20px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* ===== SECTION COMMON ===== */
section { padding: var(--space-2xl) 0; }
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section-header h2 {
  margin-bottom: var(--space-md);
}
.section-header p {
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== REVIEWS (SOCIAL PROOF — TOP OF FOLD) ===== */
.reviews {
  background: var(--white);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--light-border);
  border-bottom: 1px solid var(--light-border);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.review-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}
.review-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--space-md);
  max-width: none;
}
.review-text::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
  display: inline;
}
.review-author {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
}
.review-rating {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ===== SERVICES ===== */
.services {
  background: var(--cream);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  border: 1px solid var(--light-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.4rem;
  color: var(--white);
}
.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== ABOUT / GALLERY ===== */
.about {
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.about-content h2 {
  margin-bottom: var(--space-md);
}
.about-content p {
  color: var(--muted);
  margin-bottom: var(--space-md);
  font-size: 1rem;
  line-height: 1.7;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.about-highlight {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
}
.about-highlight .check {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== HOURS & INFO ===== */
.info {
  background: var(--teal);
  color: var(--white);
}
.info .section-label { color: var(--gold); }
.info h2 { color: var(--white); }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.info-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-lg);
  backdrop-filter: blur(4px);
}
.info-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: var(--space-md);
}
.info-card p, .info-card a {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.info-card a:hover { color: var(--gold); }
.hours-table {
  width: 100%;
  font-size: 0.9rem;
}
.hours-table td {
  padding: 4px 0;
  color: rgba(255,255,255,0.85);
}
.hours-table td:last-child {
  text-align: right;
  font-weight: 500;
}
.hours-table .closed {
  color: rgba(255,255,255,0.4);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--cream);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  align-items: start;
}
.contact-info h2 {
  margin-bottom: var(--space-md);
}
.contact-info p {
  color: var(--muted);
  margin-bottom: var(--space-lg);
  font-size: 1rem;
}
.contact-detail {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 1rem;
}
.contact-detail-text h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 2px;
}
.contact-detail-text p,
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-detail-text a:hover { color: var(--gold); }

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-border);
}
.form-group {
  margin-bottom: var(--space-md);
}
.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 136, 68, 0.15);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-status {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.5em;
}
.form-status.success { color: var(--teal); }
.form-status.error { color: #c0392b; }

/* ===== FOOTER ===== */
footer {
  background: var(--teal);
  color: rgba(255,255,255,0.7);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
footer p { font-size: 0.85rem; max-width: none; }
footer a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
footer a:hover { color: var(--gold); }
footer .attribution {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: var(--space-sm);
}
footer .attribution a { color: rgba(255,255,255,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg);
  }
  .hero {
    min-height: auto;
  }
  .hero-image-wrap img {
    height: 320px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-image {
    order: -1;
  }
  .about-image img {
    height: 280px;
  }
  .about-highlights {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .hero-trust-row {
    flex-direction: column;
    gap: var(--space-sm);
  }
  section {
    padding: var(--space-xl) 0;
  }
  .contact-form-card {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .hero-grid { padding: var(--space-lg) var(--space-md); }
  .hero-image-wrap img { height: 240px; }
  .reviews-grid,
  .services-grid,
  .info-grid,
  .contact-grid,
  .about-grid { padding: 0 var(--space-md); }
  .review-card { padding: var(--space-lg) var(--space-md); }
  .service-card { padding: var(--space-lg) var(--space-md); }
  .btn { width: 100%; justify-content: center; }
}
