/* ==========================================================================
   APOCLIN — Clínica Odontológica | Salvador/BA
   Estética: saúde refinada, serena e confiável.
   Paleta petróleo/teal + creme quente + acento âmbar.
   ========================================================================== */

:root {
  /* Cores */
  --ink:        #10302c;   /* texto principal (verde-petróleo quase preto) */
  --ink-soft:   #3d5a54;   /* texto secundário */
  --petrol:     #0f5d54;   /* marca principal */
  --teal:       #16867a;   /* teal vivo */
  --teal-600:   #12756b;
  --mint:       #e7f3ef;   /* fundo suave */
  --mint-200:   #d3e9e2;
  --cream:      #fbf8f2;   /* base quente */
  --cream-card: #ffffff;
  --gold:       #c8933b;   /* acento âmbar */
  --gold-soft:  #e7c98f;
  --line:       #e4ded2;
  --shadow:     18px 30px 60px -32px rgba(16, 48, 44, .35);
  --shadow-sm:  0 12px 28px -18px rgba(16, 48, 44, .40);

  /* Tipografia */
  --serif: "Fraunces", "Georgia", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); display: inline-block; }

/* ---------- Botões ---------- */
.btn {
  --_bg: var(--petrol); --_fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--_bg); color: var(--_fg);
  font-weight: 700; font-size: .98rem;
  padding: .95rem 1.7rem; border-radius: 999px; border: 1.5px solid var(--_bg);
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -16px rgba(15, 93, 84, .6); }
.btn--gold { --_bg: var(--gold); --_fg: #26200f; border-color: var(--gold); }
.btn--ghost { --_bg: transparent; --_fg: var(--ink); border-color: var(--line); box-shadow: none; }
.btn--ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(251, 248, 242, .82);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: .02em; color: var(--petrol); }
.brand__name b { color: var(--gold); font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-weight: 600; font-size: .96rem; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--petrol); }
.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 88% -10%, var(--mint) 0%, transparent 55%),
    radial-gradient(90% 70% at -10% 110%, #eef6f1 0%, transparent 60%);
}
.hero__blob {
  position: absolute; z-index: -1; filter: blur(2px); opacity: .5;
  width: 520px; height: 520px; right: -140px; top: -60px;
  background: radial-gradient(closest-side, rgba(22,134,122,.28), transparent);
  border-radius: 50%;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.3rem); color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero__lead { margin-top: 1.4rem; font-size: 1.16rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__trust { margin-top: 2.6rem; display: flex; gap: 2rem; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust b { font-family: var(--serif); font-size: 1.8rem; color: var(--petrol); }
.hero__trust span { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

/* Painel visual do hero */
.hero__panel {
  position: relative; border-radius: 28px; aspect-ratio: 4/4.4;
  background: linear-gradient(150deg, var(--petrol), var(--teal) 60%, #1aa08f);
  box-shadow: var(--shadow); overflow: hidden;
  display: flex; align-items: flex-end; padding: 2rem;
}
.hero__panel::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 75% 20%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(50% 50% at 20% 90%, rgba(0,0,0,.18), transparent 70%);
}
.hero__panel svg.tooth-big { position: absolute; right: -30px; top: -20px; width: 62%; opacity: .16; }
.hero__badge {
  position: relative; z-index: 2; background: rgba(255,255,255,.94); border-radius: 16px;
  padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm); max-width: 260px;
}
.hero__badge strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.hero__badge span { font-size: .86rem; color: var(--ink-soft); }
.hero__badge .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }

/* ---------- Faixa credibilidade ---------- */
.strip { background: var(--ink); color: #dcece7; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 1.4rem 3rem; justify-content: space-between; padding-block: 1.15rem; }
.strip span { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .92rem; }
.strip svg { width: 20px; height: 20px; color: var(--gold-soft); flex: none; }

/* ---------- Seções ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 1rem; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Serviços */
.services { background: linear-gradient(180deg, var(--cream), #fff 40%); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card {
  background: var(--cream-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mint); color: var(--teal-600); margin-bottom: 1.1rem;
}
.card__ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }

/* Sobre */
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__visual {
  border-radius: 26px; aspect-ratio: 1/1; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #114f47, #1a9184); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.about__visual svg { width: 55%; opacity: .9; color: rgba(255,255,255,.85); }
.about__visual .frame { position: absolute; inset: 18px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 18px; }
.about p + p { margin-top: 1rem; }
.about p { color: var(--ink-soft); }
.stats { margin-top: 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; }
.stats b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--petrol); }
.stats span { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }

/* Diferenciais */
.why { background: var(--mint); }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why__item { display: flex; gap: 1rem; }
.why__item .n { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.why__item h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.why__item p { font-size: .95rem; color: var(--ink-soft); }

/* Contato */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 1.2rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; }
.info-row .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--mint); color: var(--teal-600); display: grid; place-items: center; flex: none; }
.info-row .ic svg { width: 20px; height: 20px; }
.info-row h4 { font-family: var(--sans); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.info-row p { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.info-row a { color: var(--teal-600); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.15); }

/* CTA final */
.cta-final { }
.cta-final .box {
  background: linear-gradient(150deg, var(--petrol), #14746a 55%, #1aa08f);
  color: #eafaf6; border-radius: 30px; padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.cta-final .box::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% -20%, rgba(255,255,255,.18), transparent 60%); }
.cta-final h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); position: relative; }
.cta-final p { position: relative; margin: 1rem auto 2rem; max-width: 52ch; color: #cfeae3; font-size: 1.1rem; }
.cta-final .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9d1cb; padding-block: 3.5rem 2rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer .brand__name { color: #fff; }
.site-footer h5 { color: #fff; font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; font-weight: 700; }
.site-footer a { color: #b9d1cb; transition: color .2s; }
.site-footer a:hover { color: var(--gold-soft); }
.footer__links { display: flex; flex-direction: column; gap: .55rem; }
.footer__legal { line-height: 1.85; }
.footer__legal b { color: #e6f1ee; font-weight: 700; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #86a49d; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }

/* ---------- Páginas legais ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__head { max-width: 760px; margin-bottom: 2.5rem; }
.legal__head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: 1rem; }
.legal__head p { color: var(--ink-soft); margin-top: .8rem; }
.legal__body { max-width: 820px; }
.legal__body h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; color: var(--petrol); }
.legal__body h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: 1.4rem 0 .4rem; }
.legal__body p, .legal__body li { color: var(--ink-soft); }
.legal__body p { margin-bottom: 1rem; }
.legal__body ul { margin: 0 0 1rem 1.2rem; }
.legal__body li { margin-bottom: .4rem; }
.legal__body a { color: var(--teal-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal__card { background: var(--mint); border: 1px solid var(--mint-200); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 1.5rem 0; }
.legal__card p:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--teal-600); font-weight: 700; margin-top: 2.5rem; }

/* ---------- Animações ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .38s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero__grid, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero__panel { aspect-ratio: 16/12; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__visual { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--cream); padding: 1.2rem 24px 1.6rem; gap: 1.1rem; border-bottom: 1px solid var(--line);
  }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .strip .wrap { justify-content: flex-start; }
}
