/* ============ TOKENS ============ */
:root {
  --bg: #faf6ef;
  --bg-tint: #f2e9da;
  --surface: #ffffff;
  --text: #1f1a13;
  --text-soft: #6b6152;
  --line: #e8dcc8;
  --primary: #9a6f2c;          /* dark gold: text, borders, accents */
  --primary-ink: #ffffff;
  --primary-hover: #825c22;
  --gold: #c9a45c;
  --gold-grad: linear-gradient(180deg, #ecd08f 0%, #d6b46c 50%, #c4a058 100%);
  --gold-ink: #1d150a;
  --dark: #15110c;
  --shadow: 0 10px 30px rgba(40, 28, 10, 0.08);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-brand: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

:root[data-theme="dark"] {
  --bg: #0f0c08;
  --bg-tint: #17120c;
  --surface: #1d1710;
  --text: #f3ece0;
  --text-soft: #b8ab96;
  --line: #3a2e1e;
  --primary: #d4ad62;
  --primary-ink: #15110c;
  --primary-hover: #e2c178;
  --dark: #0a0806;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
code { font-size: .85em; background: var(--bg-tint); padding: 2px 6px; border-radius: 6px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--text-soft); }
.center { text-align: center; margin-top: 2.5rem; }

.eyebrow {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .75rem;
}
.eyebrow--light { color: var(--gold); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--gold-grad); color: var(--gold-ink); border-color: #b8924c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 14px rgba(0, 0, 0, .18);
}
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--dark); }
.btn--outline { border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--primary-ink); }
.btn--gold { background: var(--gold); color: #1b1408; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer;
}

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff; transition: background .3s, box-shadow .3s, color .3s;
}
.nav.is-scrolled { background: rgba(10, 8, 5, .96); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); border-bottom: 1px solid rgba(201, 164, 92, .25); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.nav__links { display: flex; gap: 1.75rem; font-size: .9rem; font-weight: 500; }
.nav__links a { opacity: .85; }
.nav__links a:hover { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav .icon-btn { border-color: currentColor; opacity: .8; }
.nav__burger { display: none; }

.brand { display: flex; align-items: center; gap: .65rem; }
/* "M + tooth" mark cut out of the logo with a transparent background */
.brand__mark {
  width: 69px; height: 44px; flex: none;
  background: url("images/logo-mark.png") center / contain no-repeat;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-family: var(--font-brand); font-size: 1.15rem; letter-spacing: .06em; font-weight: 600; }
.brand__text small { font-size: .58rem; letter-spacing: .3em; color: var(--gold); margin-top: 4px; }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  /* Put your own photo at images/hero.jpg — the gradient shows until then */
  /* Hero photo: free Unsplash image (photo-1489278353717, by Lesly Juarez). Swap the URL for your own photo, e.g. url("images/hero.jpg") */
  background:
    linear-gradient(100deg, rgba(18, 13, 7, .95) 0%, rgba(18, 13, 7, .82) 40%, rgba(18, 13, 7, .35) 75%, rgba(18, 13, 7, .2) 100%),
    url("https://images.unsplash.com/photo-1489278353717-f64c6ee8a4d2?w=2000&q=80&auto=format&fit=crop") 65% 40% / cover no-repeat,
    radial-gradient(circle at 78% 35%, #6b4a1c 0%, #2a1e10 45%, #120d07 75%);
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__grid { position: relative; padding: 120px 0 80px; }
.hero__content { max-width: 720px; }
.hero .eyebrow { color: var(--gold); }
.hero__title { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 600; }
.hero__title em { color: var(--gold); font-style: italic; }
.hero__lead { font-size: 1.1rem; max-width: 560px; opacity: .9; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 3rem; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero__stats li { display: flex; flex-direction: column; border-left: 2px solid var(--gold); padding-left: 1rem; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.8rem; }
.hero__stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; opacity: .75; }

/* ============ STRIP ============ */
.strip { background: var(--dark); color: #f3ece1; overflow: hidden; padding: 1rem 0; }
.strip__track { display: flex; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; font-size: .9rem; letter-spacing: .05em; }
.strip__track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--dark); color: #f3ece1; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head p:last-child { color: var(--text-soft); }
.placeholder-note { font-size: .85rem; font-style: italic; }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}

/* Features */
.feature { transition: transform .3s; }
.feature:hover { transform: translateY(-6px); }
.feature__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--primary); font-size: 1.4rem; font-weight: 700; margin-bottom: 1.25rem;
}
.feature p { color: var(--text-soft); margin: 0; font-size: .95rem; }

/* ============ PRICING ============ */
.tabs {
  display: flex; justify-content: center; gap: .4rem; margin: 0 auto 2.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem; width: fit-content;
  max-width: 100%;
}
.tab {
  border: 0; background: transparent; color: var(--text-soft); font: inherit; font-weight: 600; font-size: .9rem;
  padding: .65rem 1.3rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.tab.is-active { background: var(--primary); color: var(--primary-ink); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; }
.price__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); margin: 0 0 .3rem; }
.price h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
.price__amount { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; color: var(--primary); line-height: 1; margin: .25rem 0 1.5rem; }
.price__amount small { display: block; font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--text-soft); margin-top: .4rem; }
.price .btn { margin-top: auto; }
.price--featured { border: 2px solid var(--primary); }
.price--dark { background: var(--dark); color: #f3ece1; border: 2px solid var(--gold); }
.price--dark .price__amount, .price--dark .price__kicker { color: var(--gold); }
.price--dark .price__amount small { color: #b8ab96; }
.price--dark .checks li::before { color: var(--gold); }
.badge {
  position: absolute; top: -13px; right: 24px; z-index: 2; background: var(--primary); color: var(--primary-ink);
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px;
}
.badge--gold { background: var(--gold-grad); color: var(--gold-ink); }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.checks li { position: relative; padding-left: 1.7rem; font-size: .95rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.checks li.muted::before { content: "–"; color: var(--text-soft); }

/* ============ BEFORE / AFTER ============ */
.ba { margin: 0; }
.ba figcaption { text-align: center; margin-top: .9rem; font-weight: 500; color: var(--text-soft); }
/* --src is one stacked image (before on top, after below); --ratio is the size of ONE half */
.ba__frame {
  --pos: 50%;
  position: relative; aspect-ratio: var(--ratio, 2 / 1); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-tint); box-shadow: var(--shadow);
}
.ba__img { position: absolute; inset: 0; background-image: var(--src); background-size: 100% 200%; background-repeat: no-repeat; }
.ba__after { background-position: center bottom; }
.ba__before { background-position: center top; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; bottom: 12px; z-index: 3; font-size: .7rem; font-weight: 700; letter-spacing: .15em;
  background: rgba(13, 37, 35, .75); color: #fff; padding: .3rem .65rem; border-radius: 999px;
}
.ba__tag--l { left: 12px; }
.ba__tag--r { right: 12px; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; z-index: 3;
  transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,.25);
}
.ba__handle::after {
  content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--primary);
  display: grid; place-items: center; font-weight: 700; box-shadow: var(--shadow);
}
.ba__frame input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4;
}

/* ============ STEPS ============ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: s; }
.step__num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; display: block; margin-bottom: .75rem; }
.step p { color: var(--text-soft); margin: 0; }
.pills { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.pills li { border: 1px solid var(--primary); color: var(--primary); border-radius: 999px; padding: .5rem 1.1rem; font-size: .85rem; font-weight: 600; }

/* ============ REVIEWS ============ */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
}
.review { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.review p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; flex: 1; }
.stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .75rem; }
.review footer { display: flex; align-items: center; gap: .75rem; }
.review footer div { display: flex; flex-direction: column; line-height: 1.3; }
.review small { color: var(--text-soft); }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-weight: 700; }

/* ============ QUOTE ============ */
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.quote__text p { opacity: .8; font-size: 1.05rem; }
.quote > * { min-width: 0; }
.quote__form { display: grid; gap: 1.1rem; color: var(--text); }
.quote__form input, .quote__form select { width: 100%; min-width: 0; }
.quote__form label { display: grid; gap: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.quote__form input, .quote__form select {
  font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400;
  padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.quote__form input:focus, .quote__form select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ============ FOOTER ============ */
.footer { background: var(--dark); color: #cfd8d5; padding: 4rem 0 1.5rem; border-top: 1px solid rgba(255,255,255,.06); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1rem; }
.footer__grid > div { display: flex; flex-direction: column; gap: .5rem; font-size: .95rem; }
.footer__grid a:hover { color: var(--gold); }
.footer__about { margin-top: 1rem; opacity: .8; }
.footer__logo { width: 190px; border-radius: 16px; }
.quote__phone { display: inline-block; margin-top: .5rem; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.quote__phone:hover { text-decoration: underline; }

.footer__grid > div { min-width: 0; overflow-wrap: anywhere; }

/* ============ LEGAL PAGE ============ */
.nav--solid { background: rgba(10, 8, 5, .96); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); border-bottom: 1px solid rgba(201, 164, 92, .25); }
.legal { padding: 130px 0 5rem; }
.legal__inner { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: .2em; }
.legal__meta { color: var(--text-soft); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.7rem; margin: 2.2rem 0 .6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--primary); text-decoration: underline; overflow-wrap: anywhere; }
.legal mark { background: #fbe7b0; color: #3a2a0c; padding: 0 .25em; border-radius: 4px; }
.legal__back { display: inline-block; margin-top: 3rem; }

.form-note { margin: 0; font-size: .8rem; color: var(--text-soft); text-align: center; }
.form-note a { color: var(--primary); text-decoration: underline; }
.footer__bottom a:hover { color: var(--gold); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; overflow-wrap: anywhere; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; opacity: .7; }

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  animation: pulse 2.5s infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .strip__track, .hero__bg, .wa-float { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .pricing { grid-template-columns: minmax(0, 480px); justify-content: center; gap: 2rem; }
  .hero__bg { background-position: 0 0, 72% 40%, 0 0; }
}
@media (max-width: 820px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    background: #0a0805; color: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .4);
    transform: translateY(-120%); transition: transform .3s; padding: .5rem 0;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 1rem 16px; border-bottom: 1px solid rgba(201, 164, 92, .18); }
  .nav__burger { display: inline-grid; }
  .nav__actions .btn { display: none; }
  .grid--3, .steps, .quote, .pricing { grid-template-columns: 1fr; }
  .brand__text strong { font-size: 1rem; }
  .hero__stats { gap: 1.5rem; }
}
@media (max-width: 520px) {
  .nav__inner { gap: .5rem; }
  .brand { gap: .5rem; min-width: 0; }
  .brand__mark { width: 52px; height: 33px; }
  .brand__text strong { font-size: .92rem; }
  .brand__text small { font-size: .5rem; letter-spacing: .18em; }
  .nav__actions { gap: .35rem; }
  .icon-btn { width: 36px; height: 36px; }
  .grid--4, .footer__grid { grid-template-columns: 1fr; }
  .card { padding: 1.5rem; }
  .tab { padding: .6rem .9rem; font-size: .85rem; }
}
