/* Dr. Diana Dental: custom styles layered on top of Tailwind.
   Design tokens: warm + trustworthy. Deep teal + cream + coral. */

:root {
  --teal-900: #0c3b38;
  --teal-800: #0f4a45;
  --teal-700: #14746f;
  --teal-600: #1c8c85;
  --teal-50:  #e8f2f0;
  --cream:    #fbf7f0;
  --cream-2:  #f6efe2;
  --sand:     #f1e8d9;
  --sand-line:#e6d9c3;
  --coral:    #e07856;
  --coral-dk: #c75f3e;
  --ink:      #20312f;
  --muted:    #5d6b69;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}
h1, h2 { text-wrap: balance; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; border-radius: 999px; padding: .8rem 1.5rem; line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  cursor: pointer; white-space: nowrap; font-size: .975rem;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(224,120,86,.7); }
.btn-primary:hover { background: var(--coral-dk); box-shadow: 0 12px 26px -10px rgba(199,95,62,.8); }
.btn-dark { background: var(--teal-800); color: #fff; }
.btn-dark:hover { background: var(--teal-900); }
.btn-ghost { background: transparent; color: var(--teal-800); border: 1.5px solid var(--sand-line); }
.btn-ghost:hover { border-color: var(--teal-700); color: var(--teal-700); }

/* ---- Cards ---- */
.card {
  background: #fff; border: 1px solid var(--sand-line); border-radius: 1.25rem;
  box-shadow: 0 1px 2px rgba(12,59,56,.04), 0 16px 32px -24px rgba(12,59,56,.35);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 28px 52px -28px rgba(12,59,56,.45); border-color: var(--teal-50); }

/* featured service card, breaks the uniform grid */
.card-feature {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-900));
  border-color: transparent; color: var(--cream);
}
.card-feature h3 { color: #fff; }
.card-feature p { color: rgba(251,247,240,.82); }
.card-feature .svc-icon { background: rgba(255,255,255,.12); color: #fff; }

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

/* underline flourish for links */
.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--coral); transition: width .25s ease;
}
.link-underline:hover::after { width: 100%; }

/* ---- Form ---- */
.field-label { font-weight: 600; font-size: .85rem; color: var(--ink); margin-bottom: .35rem; display: block; }
.field-label .req { color: var(--coral-dk); }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--sand-line); background: #fff; border-radius: .75rem;
  padding: .75rem .9rem; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #9aa6a4; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(20,116,111,.15);
}
.input.is-invalid, .textarea.is-invalid, .select.is-invalid {
  border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.15);
}
.field-error { color: #c0392b; font-size: .8rem; margin-top: .3rem; min-height: 1rem; }
.form-status { border-radius: .75rem; padding: .85rem 1rem; font-weight: 500; margin-top: .25rem; }
.form-status--success { background: var(--teal-50); color: var(--teal-800); border: 1px solid #bfe0db; }
.form-status--error { background: #fdecea; color: #b02a25; border: 1px solid #f5c6c2; }

/* subtle entrance */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* decorative blob behind hero image */
.hero-blob {
  position: absolute; inset: auto; width: 115%; height: 115%; right: -7%; top: -6%;
  background: radial-gradient(60% 60% at 70% 30%, var(--teal-50), transparent 70%);
  z-index: 0;
}

.divider-wave { display: block; width: 100%; height: auto; }

/* ---- FAQ accordion (native <details>) ---- */
.faq {
  background: #fff; border: 1px solid var(--sand-line); border-radius: 1rem;
  padding: .15rem 1.25rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq[open] { border-color: var(--teal-50); box-shadow: 0 16px 32px -28px rgba(12,59,56,.4); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.05rem 0; font-weight: 600; color: var(--teal-900);
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 1.4rem; height: 1.4rem; position: relative;
  background:
    linear-gradient(var(--coral),var(--coral)) center/0.9rem 2px no-repeat,
    linear-gradient(var(--coral),var(--coral)) center/2px 0.9rem no-repeat;
  transition: transform .25s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal-700); }
.faq .faq-body {
  padding: 0 0 1.15rem; color: var(--muted); line-height: 1.65; max-width: 60ch;
}
@media (prefers-reduced-motion: no-preference) {
  .faq[open] .faq-body { animation: faq-in .25s ease; }
  @keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
