/* ==========================================================
   Dr. Smith Family Dentistry — shared styles
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #0f766e;        /* teal-700 */
  --brand-dark: #115e59;   /* teal-800 */
  --brand-50: #f0fdfa;     /* teal-50 */
  --ink: #0f172a;          /* slate-900 */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  color: #334155;
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'DM Serif Display', Georgia, serif; }

.container-site {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container-site { padding-inline: 1.5rem; } }

::selection { background: #99f6e4; color: #134e4a; }

/* ---------- components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 9999px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  cursor: pointer; text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(15,118,110,.55); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 24px -8px rgba(15,118,110,.65); }
.btn-outline { border: 1.5px solid #cbd5e1; color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { color: var(--brand-dark); background: transparent; }
.btn-ghost:hover { background: var(--brand-50); }
.btn-white { background: #fff; color: var(--brand-dark); box-shadow: 0 8px 20px -10px rgba(2,44,34,.5); }
.btn-white:hover { background: #ccfbf1; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); 
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: var(--brand); }

.card {
  background: #fff; border: 1px solid #e7ecf2; border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -18px rgba(15,23,42,.12);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-hover:hover { transform: translateY(-5px); box-shadow: 0 24px 48px -24px rgba(15,23,42,.22); border-color: #b5e5dd; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 700; padding: .3rem .7rem;
  border-radius: 9999px; background: var(--brand-50); color: var(--brand-dark);
}

.hero-pattern {
  background:
    radial-gradient(52rem 30rem at 85% -10%, rgba(45,212,191,.14), transparent 55%),
    radial-gradient(40rem 26rem at -10% 30%, rgba(14,165,233,.10), transparent 55%),
    linear-gradient(180deg, #f8fffd 0%, #ffffff 100%);
}

.dot-grid {
  background-image: radial-gradient(rgba(15,118,110,.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
}

/* stars */
.star { color: #d1d5db; }
.star.filled { color: #f59e0b; }
.star half { color: #f59e0b; }

/* form fields */
.field { width: 100%; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .95rem; border-radius: .75rem;
  border: 1.5px solid #dde4ec; background: #fff; font-size: .95rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.15);
}
.field label { display: block; font-size: .82rem; font-weight: 700; color: #475569; margin-bottom: .35rem; }
.field .error-msg { color: #dc2626; font-size: .78rem; margin-top: .3rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #f87171; }
.field.invalid .error-msg { display: block; }

/* FAQ accordion */
.faq-item details { border: 1px solid #e7ecf2; border-radius: 1rem; background: #fff; overflow: hidden; }
.faq-item details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; font-weight: 700; color: var(--ink); gap: 1rem;
}
.faq-item details > summary::-webkit-details-marker { display: none; }
.faq-item details > summary::after {
  content: "+"; flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 9999px;
  background: var(--brand-50); color: var(--brand-dark); font-weight: 800;
  display: grid; place-items: center; transition: transform .2s ease;
}
.faq-item details[open] > summary::after { transform: rotate(45deg); }
.faq-item details > div { padding: 0 1.25rem 1.25rem; color: #64748b; font-size: .95rem; line-height: 1.7; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* review rating picker */
.rate input { display: none; }
.rate label { font-size: 1.6rem; cursor: pointer; color: #d1d5db; transition: transform .1s ease; }
.rate label:hover { transform: scale(1.15); }
.rate label.active, .rate label.hovered { color: #f59e0b; }

/* time slot picker */
.slot { cursor: pointer; }

/* nav link underline */
.nav-link { position: relative; }
.nav-link.active { color: var(--brand-dark); font-weight: 700; }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  border-radius: 2px; background: var(--brand);
}

/* avatar monogram */
.mono {
  display: grid; place-items: center; border-radius: 9999px;
  color: #fff; font-weight: 800; letter-spacing: .02em;
}

.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: .8rem 1.4rem; border-radius: 9999px;
  font-size: .9rem; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(2,6,23,.5);
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
