/* =========================================================
   Espaço Odontológico — Design System
   Estilo: calmo & confiável (teal/menta + off-white)
   Mobile-first, foco em conversão para WhatsApp
   ========================================================= */

:root {
  /* Cores da marca — extraídas da logo (dente dourado) */
  --brand:        #C6971F;  /* dourado accent */
  --brand-dark:   #A87C14;  /* dourado profundo (links/hover) */
  --brand-darker: #8A6414;
  --brand-light:  #E9C766;  /* dourado claro (sobre fundo escuro) */
  --gold-a:       #E3B84E;  /* brilho do gradiente */
  --gold-b:       #BD852D;  /* sombra do gradiente */
  --mint:         #F6ECD2;  /* areia/creme claro (fundo de ícones e seções) */
  --mint-2:       #EDDFBE;
  --cream:        #FBF7EF;  /* off-white quente */
  --white:        #FFFFFF;
  --espresso:     #2A2318;  /* marrom escuro (texto e seções escuras) */
  --espresso-2:   #17130B;

  --ink:          #2A2318;
  --body:         #5A5142;
  --muted:        #8A8069;
  --line:         #ECE3D0;

  --whatsapp:     #25D366;
  --whatsapp-dk:  #1EBE5A;
  --star:         #E0A800;

  /* Tipografia */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Espaçamento / raio / sombra */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(12, 91, 84, .06);
  --shadow:    0 14px 40px rgba(12, 91, 84, .10);
  --shadow-lg: 0 30px 70px rgba(12, 91, 84, .16);

  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ----------------------- Reset ------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }

/* ----------------------- Tipografia -------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p  { color: var(--body); }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--body); }

/* ----------------------- Layout ------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--mint { background: var(--mint); }
.section--brand {
  background: linear-gradient(150deg, var(--espresso), var(--espresso-2));
  color: #E7DDC8;
}
.section-head { max-width: 680px; margin: 0 auto clamp(36px, 6vw, 60px); text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.section--brand .eyebrow { color: var(--brand-light); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; }
.section-head p { margin-top: 14px; }
.section--brand h2, .section--brand h3 { color: #fff; }

/* ----------------------- Botões ------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  will-change: transform;
  text-align: center; line-height: 1;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: linear-gradient(135deg, var(--gold-a), var(--gold-b)); color: var(--espresso); box-shadow: 0 10px 24px rgba(189,133,45,.30); }
.btn--primary:hover { filter: brightness(1.04); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(189,133,45,.38); }
.btn--wa { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.30); }
.btn--wa:hover { background: var(--whatsapp-dk); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37,211,102,.38); }
.btn--ghost { background: var(--white); color: var(--brand-dark); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--brand-light); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* ----------------------- Header ------------------------ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,239,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(12,91,84,.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.header__logo { display: inline-flex; align-items: center; gap: 12px; }
.header__logo img { height: 50px; width: auto; }
.brandname { display: flex; flex-direction: column; line-height: 1; }
.brandname strong { font-family: var(--font-head); font-weight: 600; font-size: 1.22rem; color: var(--ink); }
.brandname small { font-family: var(--font-body); font-size: .62rem; letter-spacing: .28em; color: var(--brand-dark); margin-top: 3px; }
.nav { display: none; }
.nav a { font-weight: 600; font-size: .97rem; color: var(--body); padding: 8px 4px; position: relative; transition: color .18s ease; }
.nav a:hover { color: var(--brand-dark); }
.nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; background: var(--brand-light); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; border-radius: 2px; }
.nav a:hover::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.header__actions .btn { padding: 11px 20px; }
.header__cta-desktop { display: none; }

/* Menu mobile toggle */
.burger { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 12px; }
.burger span { width: 24px; height: 2px; background: var(--brand-dark); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 74px 0 auto 0; z-index: 49;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px var(--gutter) 26px;
  display: grid; gap: 6px;
  transform: translateY(-14px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 13px 8px; font-weight: 600; color: var(--ink); border-radius: 12px; }
.mobile-menu a:hover { background: var(--mint); }
.mobile-menu .btn { margin-top: 12px; }

/* ----------------------- Hero -------------------------- */
.hero { position: relative; padding-block: clamp(40px, 7vw, 84px) var(--section-y); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(230,199,102,.30), transparent 70%);
  z-index: 0; pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(36px, 6vw, 60px); align-items: center; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--brand-dark); background: var(--white); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.pill svg { width: 16px; height: 16px; color: var(--brand); }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand-dark); font-style: italic; }
.hero__lead { max-width: 540px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__reassure { display: flex; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: .92rem; }
.hero__reassure svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 18%; background: var(--mint); }
.hero__float {
  position: absolute; left: -6px; bottom: 24px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px; max-width: 240px;
}
.hero__float .dot { width: 44px; height: 44px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--brand); flex: none; }
.hero__float strong { display: block; color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.hero__float span { font-size: .82rem; color: var(--muted); }

/* ----------------------- Trust bar --------------------- */
.trust { background: var(--white); border-block: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; text-align: center; padding-block: 42px; }
.trust__num { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--brand-dark); font-weight: 600; line-height: 1; }
.trust__label { font-size: .9rem; color: var(--muted); margin-top: 8px; }

/* ----------------------- Cards / grids ----------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.card__icon { width: 54px; height: 54px; border-radius: 15px; background: var(--mint); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .97rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; color: var(--brand-dark); font-size: .93rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.card:hover .card__link svg { transform: translateX(3px); }

/* ----------------------- Diferenciais ------------------ */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__ic { width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.08); color: var(--brand-light); display: grid; place-items: center; flex: none; }
.feature__ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: #C9BCA0; font-size: .96rem; }

/* ----------------------- Sobre ------------------------- */
.about__grid { display: grid; gap: clamp(34px, 6vw, 56px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 5/4; object-fit: cover; background: var(--mint); }
.checklist { display: grid; gap: 14px; margin-top: 24px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }
.checklist strong { color: var(--ink); }

/* ----------------------- Equipe ------------------------ */
.team__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.member { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; background: var(--mint); display: block; }
.member__body { padding: 20px 22px 24px; }
.member__body h3 { font-size: 1.2rem; }
.member__role { color: var(--brand); font-weight: 700; font-size: .88rem; margin-top: 2px; }
.member__cro { color: var(--muted); font-size: .82rem; margin-top: 6px; }

/* ----------------------- Galeria ----------------------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--mint); }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(42,35,24,.86); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; }

/* ----------------------- Depoimentos ------------------- */
.testi__grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.testi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.stars { display: flex; gap: 3px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }
.testi__quote { color: var(--ink); font-size: 1.02rem; }
.testi__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: var(--espresso); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); flex: none; }
.testi__who strong { display: block; color: var(--ink); font-size: .97rem; }
.testi__who span { font-size: .84rem; color: var(--muted); }

/* ----------------------- Localização ------------------- */
.local__grid { display: grid; gap: 30px; align-items: stretch; }
.local__info { display: grid; gap: 18px; align-content: start; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h3 { font-size: 1.05rem; margin-bottom: 2px; }
.info-row p, .info-row a { color: var(--body); font-size: .96rem; }
.info-row a:hover { color: var(--brand-dark); }
.hours { display: grid; gap: 6px; font-size: .95rem; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours span:last-child { color: var(--ink); font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); min-height: 320px; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ----------------------- FAQ --------------------------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq__item.is-open { box-shadow: var(--shadow); border-color: var(--mint-2); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 20px 24px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq__q .chev { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--brand); display: grid; place-items: center; flex: none; transition: transform .25s ease, background-color .2s ease; }
.faq__q .chev svg { width: 18px; height: 18px; }
.faq__item.is-open .chev { transform: rotate(180deg); background: var(--brand); color: var(--espresso); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 24px 22px; color: var(--body); }

/* ----------------------- CTA final --------------------- */
.cta-final { text-align: center; }
.cta-final .container { position: relative; }
.cta-card {
  background: linear-gradient(150deg, var(--espresso), var(--espresso-2));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 72px) var(--gutter);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  border: 1px solid rgba(230,199,102,.18);
}
.cta-card::after { content: ""; position: absolute; top: -40%; right: -10%; width: 50%; height: 180%; background: radial-gradient(circle, rgba(230,199,102,.16), transparent 70%); }
.cta-card h2 { color: #fff; position: relative; }
.cta-card h2 .accent { color: var(--brand-light); }
.cta-card p { color: #E7DDC8; max-width: 560px; margin: 16px auto 30px; position: relative; }
.cta-card .btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }

/* ----------------------- Footer ------------------------ */
.footer { background: var(--espresso-2); color: #B7AA90; padding-block: clamp(50px, 7vw, 76px) 30px; }
.footer__grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
.footer__brand img { height: 88px; opacity: .98; margin-bottom: 8px; }
.footer__brand p { color: #9C9078; font-size: .94rem; max-width: 320px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { color: #B7AA90; font-size: .95rem; transition: color .18s ease; }
.footer a:hover { color: var(--brand-light); }
.footer .socials { display: flex; gap: 12px; }
.footer .socials a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer .socials svg { width: 20px; height: 20px; }
.footer .socials a:hover { background: var(--brand); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .85rem; color: #8A7E68; }

/* ----------------------- WhatsApp flutuante ------------ */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #fff; font-weight: 700;
  padding: 14px 18px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 36px rgba(37,211,102,.5); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float .wa-float__txt { display: none; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ----------------------- Reveal anim ------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------------------- Utilit. ----------------------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.divider-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 14px; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (min-width: 620px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .testi__grid { grid-template-columns: 1fr 1fr; }
  .wa-float .wa-float__txt { display: inline; }
}

@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .local__grid { grid-template-columns: 1fr 1.1fr; }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .testi__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 940px) {
  .nav { display: flex; align-items: center; gap: 26px; }
  .burger { display: none; }
  .mobile-menu { display: none !important; }
  .header__cta-desktop { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
