/* Encino Cosmetic Dental Group — "Porcelain"
   Monochrome gallery white + warm graphite, one champagne panel.
   Cormorant Garamond display, Manrope body. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --champagne: #efe9df;
  --ink: #211e1b;
  --muted: #8c847c;
  --line: #ddd6cc;
  --display: "Cormorant Garamond", serif;
  --body: "Manrope", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.08; letter-spacing: 0.01em; }
h1 { font-size: clamp(3rem, 8.5vw, 6.75rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.5rem); }
h3 { font-size: 1.5rem; font-weight: 400; }

a { color: inherit; text-decoration: none; }
::selection { background: #211e1b; color: #fff; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 4rem);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand-name {
  font-family: var(--body); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; line-height: 1.5;
}
.brand-name em {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 1.02rem; letter-spacing: 0.06em; text-transform: none;
  color: var(--muted);
}
.nav-links { display: flex; gap: 1.9rem; font-size: 0.85rem; font-weight: 500; }
.nav-links a { position: relative; padding: 0.25rem 0; }
.nav-links a:not(.soon)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.nav-links a:not(.soon):hover::after { transform: scaleX(1); }
.soon { color: var(--muted); cursor: default; }
.soon sup {
  font-size: 0.5rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; margin-left: 3px;
}
.nav-cta { display: flex; align-items: center; gap: 1.4rem; }
.nav-phone { font-weight: 600; font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  transition: background 0.3s, color 0.3s, transform 0.3s;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-line { padding: 0.7rem 1.5rem; font-size: 0.72rem; }
.btn-pill { }
.btn-full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(5rem, 14vh, 10rem) clamp(1.25rem, 4vw, 4rem) clamp(6rem, 15vh, 11rem);
}
.hero-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.hero-sub {
  max-width: 34rem; margin: 2rem auto 0;
  font-size: 1.02rem; color: var(--muted);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.75rem;
  justify-content: center; align-items: center;
}
.hero-tel { font-size: 0.9rem; color: var(--muted); border-bottom: 1px solid var(--line); transition: color 0.25s, border-color 0.25s; }
.hero-tel:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- Line-mask reveal (signature) ---------- */
.mask { display: block; overflow: hidden; }
.mask-line {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.mask.in .mask-line { transform: translateY(0); }
h1 .mask:nth-child(2) .mask-line { transition-delay: 0.12s; }

/* ---------- Statement ---------- */
.statement {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  padding: clamp(4.5rem, 11vh, 8rem) clamp(1.25rem, 4vw, 4rem);
}
.statement-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.statement-text {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.22;
}
.statement-text .mask-line { transition-duration: 1s; }
.statement-text .mask:nth-child(2) .mask-line { transition-delay: 0.1s; }
.statement-text .mask:nth-child(3) .mask-line { transition-delay: 0.2s; }
.statement-stats { display: grid; gap: 2rem; justify-items: start; }
.sstat strong {
  display: block; font-family: var(--display); font-weight: 300;
  font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.sstat > span {
  font-size: 0.66rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.24em; color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 11vh, 8rem) clamp(1.25rem, 4vw, 4rem); }
.champagne { background: var(--champagne); }
.section-head { max-width: 1100px; margin: 0 auto 3.5rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.service {
  padding: 2.5rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service:not(:nth-child(3n+1)) { padding-left: 2rem; border-left: 1px solid var(--line); }
.service h3 { margin-bottom: 0.7rem; transition: font-style 0.2s; }
.service:hover h3 { font-style: italic; }
.service p { font-size: 0.9rem; color: var(--muted); }
.services-note {
  max-width: 1100px; margin: 2.5rem auto 0;
  font-size: 0.9rem; color: var(--muted);
}

/* ---------- Doctor ---------- */
.doctor-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem);
  max-width: 1100px; margin: 0 auto; align-items: start;
}
.pull-quote {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.35;
}
.pull-quote-attr {
  margin-top: 1rem;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.24em; color: var(--muted);
}
.cred-list { list-style: none; margin-top: 2.5rem; border-top: 1px solid rgba(33,30,27,0.18); }
.cred-list li {
  padding: 1.1rem 0; border-bottom: 1px solid rgba(33,30,27,0.18);
  font-size: 0.95rem;
}

/* ---------- Reviews rotator ---------- */
.rotator { position: relative; max-width: 760px; margin: 0 auto; min-height: 200px; }
.rquote {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
  text-align: center;
}
.rquote.active { opacity: 1; }
.rquote blockquote {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4;
}
.rquote figcaption {
  margin-top: 1.5rem;
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.24em; color: var(--muted);
}
.rotator-dots { display: flex; gap: 0.7rem; justify-content: center; margin-top: 2rem; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--ink); background: transparent;
  cursor: pointer; padding: 0;
  transition: background 0.3s;
}
.dot.active { background: var(--ink); }

/* ---------- Insurance strip ---------- */
.insurance {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 2.25rem clamp(1.25rem, 4vw, 4rem);
  text-align: center;
}
.insurance p {
  max-width: 1100px; margin: 0 auto;
  font-size: 0.88rem; color: var(--muted); letter-spacing: 0.02em;
}

/* ---------- Consult ---------- */
.consult-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem);
  max-width: 1100px; margin: 0 auto; align-items: start;
  position: relative;
}
.consult-sub { margin-top: 1.25rem; color: var(--muted); max-width: 24rem; }
.consult-phone {
  display: inline-block; margin-top: 2rem;
  font-family: var(--display); font-weight: 300; font-size: 2.1rem;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.25s;
}
.consult-phone:hover { opacity: 0.6; }
.consult-addr { margin-top: 1.25rem; font-size: 0.9rem; color: var(--muted); }

.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label {
  display: grid; gap: 0.45rem;
  font-size: 0.66rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--muted);
}
.form input, .form select, .form textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line); border-radius: 0;
  background: var(--bg); width: 100%;
  transition: border-color 0.25s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--ink);
}
.form input.invalid { border-color: #9c4a2f; }
.form textarea { resize: vertical; }
.form-fine { font-size: 0.7rem; color: var(--muted); text-align: center; }
.form-thanks {
  grid-column: 2; align-self: center;
  border: 1px solid var(--line); background: var(--bg); padding: 3rem;
  text-align: center;
}
.form-thanks h3 { font-size: 2rem; margin-bottom: 0.75rem; }
.form-thanks a { font-weight: 600; border-bottom: 1px solid var(--ink); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.85);
  padding: 4rem clamp(1.25rem, 4vw, 4rem) 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  max-width: 1100px; margin: 0 auto 3.5rem;
}
.footer-brand { color: #fff; }
.footer-brand em { color: rgba(255,255,255,0.55); }
.footer p { font-size: 0.88rem; margin-top: 1rem; color: rgba(255,255,255,0.55); }
.footer-links { display: grid; gap: 0.6rem; font-size: 0.9rem; align-content: start; }
.footer-links a:hover:not(.soon) { color: #fff; }
.footer-links .soon { color: rgba(255,255,255,0.4); }
.footer-contact a { font-family: var(--display); font-weight: 300; font-size: 1.5rem; color: #fff; }
.disclaimer {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem;
  font-size: 0.75rem; color: rgba(255,255,255,0.45);
}

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .statement-inner { grid-template-columns: 1fr; }
  .statement-stats { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service:not(:nth-child(3n+1)) { padding-left: 0; border-left: none; }
  .service:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--line); }
  .doctor-grid, .consult-grid { grid-template-columns: 1fr; }
  .form-thanks { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .nav-phone { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service:nth-child(even) { padding-left: 0; border-left: none; }
  .service { padding-right: 0; }
  .form-row { grid-template-columns: 1fr; }
  .rotator { min-height: 260px; }
}
