/* ==========================================================================
   Clínica Dental Dr. Felipe — Menta & Marfim
   Direção: base marfim + verde-petróleo profundo + serifa editorial · odonto de bairro
   Fontes self-hosted: Cormorant Garamond (display) · Plus Jakarta Sans (corpo)
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plusjakarta-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #f4faf7;
  --bg-2: #e7f2ec;
  --surface: #ffffff;
  --ink: #10201d;
  --ink-2: #4a5f5a;
  --ink-3: #8ba19a;
  --line: rgba(16, 32, 29, 0.10);
  --line-strong: rgba(16, 32, 29, 0.18);

  /* verde-petróleo profundo + menta */
  --accent: #0b4f4a;
  --accent-2: #12806f;
  --accent-strong: #083834;
  --accent-soft: rgba(18, 128, 111, 0.10);
  --accent-glow: rgba(18, 128, 111, 0.22);
  --gradient-sea: linear-gradient(120deg, #0b4f4a 10%, #12806f 90%);

  --r-card: 22px;
  --r-soft: 14px;
  --r-pill: 999px;

  --shadow-soft: 0 18px 50px -22px rgba(16, 32, 29, 0.28);
  --shadow-float: 0 10px 30px -12px rgba(16, 32, 29, 0.18);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 0.6s;

  --nav-h: 72px;
  --container: 1320px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 8.5vw, 6.5rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}
button { font-family: inherit; }

.container, .topbar, .footer__bottom {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Eyebrow badge ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 0.55em 1.1em;
  margin-bottom: 1.3rem;
  box-shadow: var(--shadow-float);
}
.eyebrow::before {
  content: "✦";
  font-size: 0.8em;
  color: var(--accent-2);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--r-pill);
  padding: 0.95em 1.6em;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--ink {
  background: var(--gradient-sea);
  color: #fff;
  box-shadow: 0 12px 30px -12px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn--ink:hover { box-shadow: 0 16px 36px -12px var(--accent-glow); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }

/* ==========================================================================
   NAV
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: clamp(0.65rem, 2vw, 1rem) 0;
}
.topbar.is-scrolled {
  background: rgba(244, 250, 247, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.topbar__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient-sea); color: #fff;
  box-shadow: var(--shadow-float);
}
.brand__word { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.brand__word small { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.25rem; }

.nav-pill {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.35rem 0.4rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-float);
}
.nav-links { display: flex; align-items: center; gap: 0.1rem; padding: 0 0.35rem; }
.nav-links a, .nav-cta {
  font-size: 0.9rem; font-weight: 600;
  padding: 0.6em 0.9em; border-radius: var(--r-pill);
  color: var(--ink-2); text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-soft); }
.nav-cta.btn--ink { color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 14px; cursor: pointer;
}
.menu-toggle__bar { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 55;
  display: grid; place-items: center;
  background: rgba(244, 250, 247, 0.92);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.menu-overlay__inner { text-align: center; padding: 2rem var(--gutter); }
.menu-overlay nav { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.menu-overlay nav a {
  font-family: var(--font-display); font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 600; text-decoration: none; color: var(--ink);
  transform: translateY(14px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.3s var(--ease);
}
.menu-overlay nav a:hover { color: var(--accent); }
.menu-overlay__meta { color: var(--ink-2); }
.menu-overlay__meta a { color: var(--accent); text-decoration: none; font-weight: 700; }
body.menu-open { overflow: hidden; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open .menu-overlay nav a { transform: translateY(0); opacity: 1; }
body.menu-open .menu-overlay nav a:nth-child(1){transition-delay:.06s}
body.menu-open .menu-overlay nav a:nth-child(2){transition-delay:.11s}
body.menu-open .menu-overlay nav a:nth-child(3){transition-delay:.16s}
body.menu-open .menu-overlay nav a:nth-child(4){transition-delay:.21s}
body.menu-open .menu-overlay nav a:nth-child(5){transition-delay:.26s}
body.menu-open .menu-toggle__bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
body.menu-open .menu-toggle__bar:nth-child(2){opacity:0}
body.menu-open .menu-toggle__bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: clip;
  padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 3.5rem));
  padding-bottom: var(--section-pad);
  background:
    radial-gradient(52rem 30rem at 8% -10%, #dcefe7 0%, transparent 60%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 1.3rem;
}
.hero__title em {
  font-style: italic;
  background: var(--gradient-sea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.14rem); color: var(--ink-2); max-width: 44ch; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; }
.hero__phone {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; text-decoration: none; color: var(--ink);
  font-size: 1.02rem;
}
.hero__phone-icon {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  color: var(--accent); box-shadow: var(--shadow-float);
}
.hero__media { position: relative; }
.media-frame {
  position: relative;
  padding: 0.8rem;
  border-radius: 200px 200px var(--r-card) var(--r-card);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.media-frame img { width: 100%; border-radius: 190px 190px var(--r-soft) var(--r-soft); object-fit: cover; aspect-ratio: 4 / 5; }
.floating-card {
  position: absolute; left: -1.6rem; bottom: 2.2rem; width: 190px;
  padding: 1.05rem 1.15rem; border-radius: var(--r-card);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-float);
}
.floating-card__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent-2); display: inline-block; margin-bottom: 0.6rem; box-shadow: 0 0 0 4px var(--accent-soft); }
.floating-card__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin: 0; font-weight: 700; }
.floating-card__value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; margin: 0.25rem 0 0.15rem; color: var(--accent); }
.floating-card__value span { font-size: 1rem; color: var(--ink-3); }
.floating-card__note { font-size: 0.74rem; color: var(--ink-2); margin: 0; }

/* ==========================================================================
   FAIXA DE NÚMEROS
   ========================================================================== */
.band { background: var(--accent); color: #fff; padding: clamp(2rem, 4vw, 3rem) 0 1rem; }
.band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; }
.band__value { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; margin: 0; line-height: 1; }
.band__label { margin: 0.4rem 0 0; font-size: 0.85rem; opacity: 0.85; }
.band__note { font-size: 0.75rem; opacity: 0.7; padding-bottom: 1.4rem; margin-top: 1.2rem; }

/* ==========================================================================
   SEÇÕES
   ========================================================================== */
.section { padding: var(--section-pad) 0; }
.section--alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4.5vw, 3.2rem); }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.treat-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 4.5vw, 3rem); }
.treat-head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

/* ==========================================================================
   SOBRE (foto redonda + carimbo)
   ========================================================================== */
.about { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; justify-self: center; }
.media-round { margin: 0; }
.media-round img { width: min(420px, 80vw); aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid #fff; box-shadow: var(--shadow-soft); }
.stamp {
  position: absolute; top: -0.6rem; right: 0;
  width: 112px; height: 112px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}
.stamp svg { position: absolute; inset: 6px; animation: stampSpin 16s linear infinite; }
.stamp text { font-family: var(--font-body); font-size: 10.5px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; fill: var(--accent); }
.stamp__tooth { font-size: 1.5rem; color: var(--accent); }
@keyframes stampSpin { to { transform: rotate(360deg); } }
.about__copy h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 1.2rem; }
.about__copy p { color: var(--ink-2); max-width: 54ch; }
.about__list { margin: 1.5rem 0 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.5rem; }
.about__list li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--ink-2); font-weight: 500; }
.about__list li::before { content: "✓"; flex: 0 0 auto; width: 22px; height: 22px; display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 800; color: #fff; background: var(--gradient-sea); border-radius: 50%; }
.about--flip .about__media { order: 2; }
.about--flip .about__copy { order: 1; }
.media-frame--rect { border-radius: var(--r-card); }
.media-frame--rect img { border-radius: var(--r-soft); aspect-ratio: 4 / 3; }
.media-frame { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); padding: 0.8rem; }

/* ==========================================================================
   TRATAMENTOS
   ========================================================================== */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.treat-card {
  border-radius: var(--r-card);
  background: var(--bg); border: 1px solid var(--line);
  padding: 1.6rem; box-shadow: var(--shadow-float);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.treat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.treat-card--photo { padding: 0.9rem; grid-row: span 1; }
.treat-card__media { overflow: hidden; border-radius: var(--r-soft); margin-bottom: 1.1rem; }
.treat-card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.8s var(--ease); }
.treat-card:hover .treat-card__media img { transform: scale(1.05); }
.treat-card--photo .treat-card__body { padding: 0 0.4rem 0.5rem; }
.treat-card__icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  color: var(--accent); margin-bottom: 1.1rem;
  box-shadow: var(--shadow-float);
}
.treat-card h3 { font-size: 1.55rem; margin-bottom: 0.4rem; }
.treat-card p { color: var(--ink-2); font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   MARQUEE convênios
   ========================================================================== */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.05rem 0; background: #fff; }
.marquee__track { display: flex; align-items: center; white-space: nowrap; will-change: transform; animation: marquee 28s linear infinite; }
.marquee span:not(.sep) { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; margin: 0 1.6rem; color: var(--ink-2); }
.marquee .sep { color: var(--accent-2); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.quotes { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.3rem; align-items: start; }
.quote { margin: 0; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow-float); }
.quote--featured { background: var(--accent); color: #fff; border-color: var(--accent); }
.quote--featured .quote__author span { color: rgba(255, 255, 255, 0.75); }
.quote__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.32; margin: 0 0 1.3rem; }
.quote__author { display: flex; flex-direction: column; gap: 0.15rem; }
.quote__author strong { font-weight: 700; }
.quote__author span { font-size: 0.85rem; color: var(--ink-3); }

/* ==========================================================================
   AGENDAR / CONTATO
   ========================================================================== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__copy h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-bottom: 1.1rem; }
.contact__copy > p { color: var(--ink-2); max-width: 46ch; }
.contact__info { display: grid; gap: 1.3rem; margin: 1.7rem 0 2.1rem; }
.contact__info strong { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); display: block; margin-bottom: 0.2rem; }
.contact__info p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.contact__info a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--accent-2); }
.contact__form { border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-soft); display: grid; gap: 1.2rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-soft);
  padding: 0.8em 0.95em;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,0.14); }
.form__status { margin: 0; font-size: 0.95rem; min-height: 1.2em; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-err { color: #c0392b; }
.form__fine { margin: 0; font-size: 0.78rem; color: var(--ink-3); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--accent-strong); color: #eaf4f0; padding: var(--section-pad) 0 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; padding-bottom: 2.5rem; }
.footer__brand .brand__mark { margin-bottom: 1rem; background: rgba(255, 255, 255, 0.14); }
.footer__brand p { opacity: 0.85; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer__links strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; margin-bottom: 0.9rem; }
.footer__links a { display: block; opacity: 0.9; text-decoration: none; padding: 0.28rem 0; transition: opacity var(--dur) var(--ease); }
.footer__links a:hover { opacity: 1; text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 1.5rem; font-size: 0.85rem; opacity: 0.85; }
.footer__bottom p { margin: 0.3rem 0; }
.footer__credit strong { color: #fff; }

/* ==========================================================================
   REVEAL
   ========================================================================== */
html.js .reveal-item { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.js .reveal-item.in-view { opacity: 1; transform: none; }
section[id], #top { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1080px) {
  .treat-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-pill { display: none; }
  .menu-toggle { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .floating-card { left: 0.5rem; bottom: 1rem; }
  .about, .contact { grid-template-columns: 1fr; }
  .about--flip .about__media, .about--flip .about__copy { order: initial; }
  .footer__grid { grid-template-columns: 1fr; }
  .band__grid { grid-template-columns: repeat(2, 1fr); }
  .treat-head { flex-direction: column; align-items: start; }
}
@media (max-width: 620px) {
  .treat-grid { grid-template-columns: 1fr; }
  .about__list { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .stamp { width: 92px; height: 92px; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  html.js .reveal-item { opacity: 1 !important; transform: none !important; }
  .marquee__track, .stamp svg { animation: none !important; }
}
