﻿/* ==========================================================================
   Dental Solutions — Option B "Quiet Precision"
   A calm clinical dossier: exact, structured, warm-but-precise.
   ========================================================================== */

:root {
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --stone: #ECECE7;
  --ink: #20262B;
  --ink-2: #697177;
  --blue: #245B78;
  --blue-deep: #183E54;
  --blue-soft: #DDEAF0;
  --copper: #C87A43;          /* lines and markers only (3.3:1 - not for text) */
  --copper-text: #9A5A2E;     /* AA-compliant copper for small text (5.4:1) */
  --copper-soft: #F1DED0;
  --trust: #507365;
  --line: rgba(32, 38, 43, 0.12);
  --line-soft: rgba(32, 38, 43, 0.07);
  --radius: 10px;
  --wrap: 1120px;
  --font: "Manrope", "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3, p, ul { margin: 0; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ---------- Preview notice ---------- */

.preview-note {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.5rem 1rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(32, 38, 43, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.55rem 0;
}

.brand { text-decoration: none; line-height: 1.25; }

.brand .brand-name {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--blue-deep);
}

.brand .brand-doctor {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: 0.03em;
}

.site-nav {
  display: none;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--ink); border-bottom-color: var(--copper); }

.header-actions { display: flex; align-items: center; gap: 0.55rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover, .btn-solid:focus-visible { background: var(--blue-deep); }

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--blue-deep);
}
.btn-line:hover, .btn-line:focus-visible { border-color: var(--blue); background: var(--blue-soft); }

.btn-sm { min-height: 40px; padding: 0.45rem 0.95rem; font-size: 0.84rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 1px;
  align-self: center;
}
.text-link:hover, .text-link:focus-visible { color: var(--copper-text); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 2px; }

/* ---------- Section scaffolding ---------- */

section { padding: 4.5rem 0; }

h1 {
  font-size: clamp(2.05rem, 5.2vw, 3.1rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.022em;
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 26ch;
}

h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.lede {
  margin-top: 0.9rem;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 1.02rem;
}

/* ---------- Reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-img img {
  transform: scale(1.015);
  transition: transform 1.1s ease;
}

.reveal-img.is-visible img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img img { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */

.hero { padding: 3.2rem 0 3.6rem; }

.hero-grid { display: grid; gap: 2.2rem; }

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }

.hero-copy h1 { max-width: 19ch; text-wrap: balance; }

.hero .lede { font-size: 1.05rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
  width: 100%;
}

.hero-rating {
  margin-top: 1.05rem;
  font-size: 0.82rem;
  color: var(--ink-2);
}

.hero-rating strong { color: var(--trust); font-weight: 700; }

.hero-points {
  list-style: none;
  padding: 0;
  margin-top: 0.4rem;
  width: 100%;
  border-top: 1px solid var(--line);
}

.hero-points li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-points .idx {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--copper-text);
  letter-spacing: 0.08em;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--stone);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

.hero-figure figcaption {
  display: none;
}

/* ---------- Approach ---------- */

.approach { background: var(--surface); border-block: 1px solid var(--line-soft); }

.approach-steps {
  margin-top: 2.6rem;
  display: grid;
  gap: 0;
  position: relative;
}

.approach-line {
  display: none;
}

.step {
  position: relative;
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.step .step-progress {
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--copper);
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step.is-visible .step-progress { width: 46px; }

.step-num {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--copper-text);
}

.step h3 { margin-top: 0.45rem; color: var(--blue-deep); }

.step p {
  margin-top: 0.4rem;
  color: var(--ink-2);
  font-size: 0.94rem;
  max-width: 34ch;
}

/* ---------- Noticed (review themes) ---------- */

.noticed-grid {
  margin-top: 2.4rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.notice {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.notice h3 { color: var(--blue-deep); font-size: 1.08rem; }

.notice > p {
  margin-top: 0.45rem;
  color: var(--ink-2);
  font-size: 0.94rem;
  max-width: 44ch;
}

.notice blockquote {
  margin: 0.9rem 0 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--copper);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--ink);
  max-width: 42ch;
}

.notice cite {
  display: block;
  margin-top: 0.3rem;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--copper-text);
}

/* ---------- Treatments ---------- */

.treatments { background: var(--surface); border-block: 1px solid var(--line-soft); }

.treatment-list {
  list-style: none;
  padding: 0;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.treatment-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  row-gap: 0.15rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.treatment-list .t-num {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--copper-text);
}

.treatment-list h3 { font-size: 1rem; color: var(--ink); }

.treatment-list p {
  grid-column: 2;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.more-treatments { margin-top: 1.4rem; }

.more-treatments summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.more-treatments summary::-webkit-details-marker { display: none; }

.more-treatments summary::after {
  content: "+";
  color: var(--copper-text);
  font-weight: 600;
}

.more-treatments[open] summary::after { content: "\2013"; }

.more-treatments ul {
  list-style: none;
  padding: 0.7rem 0 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.more-treatments ul li {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
}

.treatments-note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-2);
}

/* ---------- Calm care ---------- */

.calm-grid { display: grid; gap: 2.2rem; align-items: center; }

.calm-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--stone);
}

.calm-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 60% 30%;
}

.calm-figure figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
  color: var(--ink-2);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.calm-list {
  list-style: none;
  padding: 0;
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.calm-list li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.calm-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue-soft);
  border: 2px solid var(--blue);
  transform: translateY(1px);
}

/* ---------- Doctor ---------- */

.doctor { background: var(--surface); border-block: 1px solid var(--line-soft); }

.doctor-grid { display: grid; gap: 2.2rem; align-items: center; }

.doctor-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--stone);
}

.doctor-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 40%;
}

.doctor-name {
  margin-top: 1.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.doctor-cred {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--copper-text);
}

.doctor-bio { margin-top: 1rem; color: var(--ink-2); font-size: 0.98rem; max-width: 48ch; }

.doctor-team {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-2);
}

/* ---------- Patient words ---------- */

.words-grid { margin-top: 2.4rem; display: grid; gap: 1rem; }

.word-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
}

.word-card blockquote {
  margin: 0;
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.65;
  flex: 1;
}

.word-card cite {
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--copper-text);
}

.word-highlight {
  margin: 2rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 600;
  font-style: italic;
  color: var(--blue-deep);
  max-width: 34ch;
}

.word-highlight cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--copper-text);
}

/* ---------- Inside clinic ---------- */

.inside { background: var(--surface); border-block: 1px solid var(--line-soft); }

.inside-grid { margin-top: 2.4rem; display: grid; gap: 1rem; }

.inside-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--stone);
}

.inside-figure img { width: 100%; height: auto; object-fit: cover; }

.inside-figure figcaption {
  padding: 0.6rem 0.95rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.fig-room img { aspect-ratio: 4 / 5; object-position: 50% 45%; }
.fig-wait img { aspect-ratio: 16 / 10; object-position: 50% 55%; }

.inside-col { display: flex; flex-direction: column; gap: 1rem; }

.inside-notes {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  border-top: 1px solid var(--line);
}

.inside-notes li {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.inside-notes li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 2px;
  background: var(--copper);
  transform: translateY(-3px);
}

/* ---------- Visit ---------- */

.visit-grid { display: grid; gap: 2rem; margin-top: 2.4rem; }

.visit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
}

.visit-rows { list-style: none; padding: 0; }

.visit-rows li {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
}

.visit-rows li:first-child { padding-top: 0; }

.visit-rows .k {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.visit-rows a { font-weight: 600; text-decoration: none; color: var(--blue-deep); }
.visit-rows a:hover { color: var(--copper-text); }

.visit-note { margin-top: 0.8rem; font-size: 0.76rem; color: var(--ink-2); }

.visit-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.4rem; }

.visit-actions .btn { width: 100%; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.site-footer p { max-width: 72ch; }

.footer-inner,
.footer-copy,
.footer-authorship {
  display: grid;
}

.footer-inner { gap: 1.6rem; }
.footer-copy { gap: 0.35rem; }
.footer-authorship { gap: 0.12rem; }

.site-footer .foot-brand {
  font-weight: 700;
  color: var(--blue-deep);
}

.authorship-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-2);
}

.authorship-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.authorship-role {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ---------- Sticky mobile actions ---------- */

.mobile-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}

.mobile-actions .btn { flex: 1; min-height: 48px; font-size: 0.86rem; padding: 0.6rem 0.4rem; }

body { padding-bottom: 84px; }

/* ---------- Responsive ---------- */

@media (max-width: 719px) {
  .header-actions .btn-call-head { display: none; }
  section { padding: 3.4rem 0; }
  .hero { padding-top: 2.2rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-figure img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .mobile-actions { display: none; }

  .hero-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas:
      "copy figure"
      "points figure";
    align-items: center;
    gap: 0 3rem;
  }

  .hero-copy { grid-area: copy; align-self: end; }
  .hero-figure { grid-area: figure; }
  .hero-points { grid-area: points; align-self: start; margin-top: 1.9rem; }

  .hero-figure img { aspect-ratio: 4 / 3.4; }

  .approach-steps { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }

  .noticed-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
  }

  .treatment-list li {
    grid-template-columns: 3.2rem minmax(0, 0.9fr) minmax(0, 1.4fr);
    column-gap: 1.2rem;
  }
  .treatment-list p { grid-column: 3; }

  .calm-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; }

  .doctor-grid { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 3.5rem; }

  .words-grid { grid-template-columns: repeat(3, 1fr); }

  .inside-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }

  .visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }

  .visit-actions { flex-direction: row; flex-wrap: wrap; }
  .visit-actions .btn { width: auto; flex: 1 1 calc(50% - 0.35rem); }

  .footer-inner {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
    align-items: end;
    gap: 3rem;
  }

  .footer-authorship {
    justify-items: end;
    text-align: right;
  }
}

@media (min-width: 900px) {
  .site-nav { display: flex; }
}

@media (min-width: 1024px) {
  .hero { padding: 4.5rem 0 5rem; }
}
