/* =====================================================================
 * Lumen Dental — styles.css
 * Mobile-first. CSS custom properties drive the entire palette.
 * ===================================================================== */

:root {
  --bg:        #FFFFFF;
  --fg:        #0F1F22;
  --ink:       #0F1F22;
  --ink-soft:  #5A6B6E;
  --ink-faint: #9AA8AA;
  --accent:    #0E5A5C;
  --accent-deep: #093E3F;
  --accent-soft: #E5F0EF;
  --cream:     #FAF6F1;
  --line:      #E8E4DD;
  --line-soft: #F0EDE7;
  --shadow-sm: 0 1px 2px rgba(15, 31, 34, .04), 0 2px 6px rgba(15, 31, 34, .04);
  --shadow-md: 0 8px 24px rgba(15, 31, 34, .06), 0 2px 6px rgba(15, 31, 34, .04);
  --shadow-lg: 0 24px 60px rgba(15, 31, 34, .10), 0 6px 16px rgba(15, 31, 34, .05);
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --max:       1200px;
  --pad-x:     20px;
  --serif:     "Fraunces", "DM Serif Display", Georgia, serif;
  --sans:      "Inter", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-fast:    .18s ease;
  --t-med:     .35s cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --pad-x: 32px; }
}
@media (min-width: 1100px) {
  :root { --pad-x: 48px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0 0 .4em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; color: var(--ink-soft); }
p.lead { font-size: 1.1rem; color: var(--ink-soft); }

/* ---------- layout helpers ---------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 120px 0; } }
.section.tight { padding: 56px 0; }
@media (min-width: 768px) { .section.tight { padding: 80px 0; } }
.section.cream { background: var(--cream); }
.section.dark  { background: var(--accent); color: #fff; }
.section.dark p { color: rgba(255, 255, 255, .82); }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section.dark .kicker { color: #C9E5E4; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 500;
  font-size: .98rem;
  border-radius: 999px;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 90, 92, .25);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-light {
  background: #fff;
  color: var(--accent);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-light:hover { border-color: #fff; }
.btn-block { display: flex; width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  transition: background var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .95rem;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-cta { display: none; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-cta   { display: inline-flex; }
}

/* burger */
.burger {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  position: relative;
  z-index: 60;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.burger span + span { margin-top: 6px; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (min-width: 900px) { .burger { display: none; } }

/* slide-in mobile panel */
.mobile-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 86vw);
  height: 100vh;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--t-med);
  z-index: 55;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel a {
  font-family: var(--serif);
  font-size: 1.6rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-panel a:last-of-type { border-bottom: 0; }
.mobile-panel .btn { margin-top: 24px; }

.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 31, 34, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
  z-index: 54;
}
.mobile-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- hero ---------- */
.hero {
  padding: 56px 0 72px;
  position: relative;
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    min-height: calc(100vh - 72px - 168px);
  }
}
.hero h1 {
  margin-bottom: 24px;
  white-space: pre-line;
}
.hero h1 .em {
  font-style: italic;
  color: var(--accent);
}
.hero .subtitle {
  font-size: 1.12rem;
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  background: var(--cream);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: rgba(255, 255, 255, .96);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
  font-size: .9rem;
  max-width: calc(100% - 48px);
}
.hero-badge .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #45B16A;
  box-shadow: 0 0 0 4px rgba(69, 177, 106, .15);
  flex: none;
}

/* ---------- trust band ---------- */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 32px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}
.trust-value {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.trust-label {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 6px;
  letter-spacing: .02em;
}

/* ---------- service cards (home) ---------- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { font-size: .94rem; margin-bottom: 16px; }
.card .price {
  margin-top: auto;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
}

/* ---------- alternating rows (services page) ---------- */
.row-list { display: grid; gap: 80px; }
@media (min-width: 900px) { .row-list { gap: 120px; } }
.row {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .row.reverse .row-media { order: 2; }
}
.row-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-md);
}
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-body .price-from {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin: 0 0 22px;
}
.row-body h2 { margin-bottom: 12px; }
.row-body .row-short {
  font-style: italic;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

/* ---------- process ---------- */
.process-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.step-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); }

/* ---------- testimonials ---------- */
.tmnt-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .tmnt-grid { grid-template-columns: repeat(3, 1fr); } }
.tmnt {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.tmnt .stars { color: #E2A933; letter-spacing: 2px; margin-bottom: 14px; font-size: .95rem; }
.tmnt blockquote {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 20px;
  flex: 1;
}
.tmnt-meta {
  font-size: .9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.tmnt-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- faq ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 4px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform var(--t-fast);
  flex: none;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a {
  padding: 14px 0 4px;
  color: var(--ink-soft);
  max-width: 600px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
}
.cta-banner h2 {
  white-space: pre-line;
  margin-bottom: 18px;
}
.cta-banner p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 32px; }
.cta-banner .btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ---------- team ---------- */
.team-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.member {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member-photo { aspect-ratio: 4 / 5; background: var(--cream); overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.member h3 { font-size: 1.25rem; margin-bottom: 4px; }
.member .role {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.member p { font-size: .94rem; margin-bottom: 14px; }
.member .langs {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: .82rem;
  color: var(--ink-soft);
}
.member .langs strong { color: var(--ink); font-weight: 600; }

/* ---------- contact page ---------- */
.contact-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 72px; } }

.form {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .form { padding: 40px; } }
.form h3 { font-size: 1.6rem; margin-bottom: 24px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  font-size: .98rem;
  color: var(--ink);
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #C44A3F;
  box-shadow: 0 0 0 4px rgba(196, 74, 63, .12);
}
.field .err {
  display: none;
  color: #C44A3F;
  font-size: .82rem;
  margin-top: 6px;
}
.field.has-error .err { display: block; }

.form-success {
  display: none;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .95rem;
  margin-bottom: 20px;
}
.form-success.is-visible { display: block; }

/* contact aside */
.contact-aside h3 {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.contact-aside .map {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
}
.contact-aside .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-aside .info-block { margin-bottom: 32px; }
.contact-aside .info-block p { margin-bottom: 4px; }
.contact-aside .info-block a { color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color var(--t-fast); }
.contact-aside .info-block a:hover { border-bottom-color: var(--accent); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table tr { border-bottom: 1px solid var(--line-soft); }
.hours-table tr:last-child { border-bottom: 0; }
.hours-table td {
  padding: 12px 0;
  font-size: .95rem;
  color: var(--ink-soft);
}
.hours-table td:first-child { color: var(--ink); font-weight: 500; }
.hours-table td:last-child { text-align: right; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--cream);
  padding: 64px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a {
  font-size: .94rem;
  color: var(--ink-soft);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- inner page header ---------- */
.page-hero {
  padding: 56px 0 24px;
  background: var(--cream);
}
@media (min-width: 768px) { .page-hero { padding: 88px 0 32px; } }
.page-hero h1 { margin-bottom: 18px; max-width: 16ch; }
.page-hero p { font-size: 1.1rem; max-width: 580px; }

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

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