/* Clínica Sorriso Modelo — modelo demonstrativo */
:root {
  --teal: #14504A;
  --teal-900: #0C3531;
  --teal-600: #2F8F83;
  --sage: #8FC3B5;
  --sand: #E9DFCF;
  --sand-soft: #F7F2EA;
  --gold: #B8894F;
  --grad: linear-gradient(140deg, #14504A 0%, #2F8F83 100%);
  --ink: #1F2A28;
  --muted: #5E6B68;
  --line: #E7DFD2;
  --white: #FFFDF9;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 10px 30px -14px rgba(12, 53, 49, .22);
  --shadow-lg: 0 26px 60px -24px rgba(12, 53, 49, .35);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--teal-900); line-height: 1.15; margin: 0; }
h3 { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Ícones */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--fill { stroke: none; fill: currentColor; }
.icon-tile {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--grad); color: var(--sand);
  box-shadow: 0 10px 20px -10px rgba(20, 80, 74, .7);
  flex: none;
}
.icon-tile .ico { width: 28px; height: 28px; }
.icon-tile--sm { width: 42px; height: 42px; border-radius: 12px; }
.icon-tile--sm .ico { width: 21px; height: 21px; }

/* Faixa de demonstração */
.demo-bar {
  display: block; background: var(--teal-900); color: var(--sand);
  font-size: 12.5px; text-align: center; text-decoration: none;
  padding: 8px 16px; line-height: 1.4;
}
.demo-bar strong { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.demo-bar:hover strong { color: var(--sage); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 12px 24px -12px rgba(20, 80, 74, .8); }
.btn--primary:hover { background: var(--teal-900); }
.btn--ghost { background: transparent; color: var(--teal-900); border-color: #D8CDBB; }
.btn--ghost:hover { border-color: var(--teal); }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn .ico { width: 20px; height: 20px; }

/* Cabeçalho */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .88);
  backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(12,53,49,.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__logo { width: 42px; height: 42px; }
.brand__text { font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--teal-900); line-height: 1.05; }
.brand__text small { display: block; font-family: var(--font); font-size: 11px; color: var(--muted); letter-spacing: .06em; font-weight: 500; text-transform: uppercase; margin-top: 3px; white-space: nowrap; }
@media (max-width: 400px) { .brand__text small { letter-spacing: .02em; font-size: 10.5px; } }
.nav { display: none; gap: 32px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after { transform: scaleX(1); }

/* Seções */
.section { padding: 72px 0; }
.section--soft { background: var(--sand-soft); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section__head h2 { font-size: clamp(28px, 5.4vw, 42px); margin-top: 10px; }
.section__head p { color: var(--muted); margin-top: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.section__head .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: currentColor; }

/* Hero */
.hero { position: relative; padding: 40px 0 64px; background: linear-gradient(180deg, var(--sand-soft) 0%, var(--white) 100%); }
.hero__grid { display: grid; gap: 40px; }
.hero h1 { font-size: clamp(36px, 9.5vw, 62px); margin-top: 16px; letter-spacing: -.02em; }
.hero h1 em { font-style: italic; color: var(--teal-600); }
.hero__sub { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__cta .btn { flex: 1 1 auto; }
.hero__chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__chips li { font-size: 13px; font-weight: 500; color: var(--teal-900); background: var(--sand); padding: 6px 14px; border-radius: 999px; }
.hero__media { position: relative; }
.hero__photo { border-radius: 200px 200px var(--radius-lg) var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; left: 12px; right: 12px; bottom: -24px;
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero__badge strong { display: block; color: var(--teal-900); font-size: 15px; }
.hero__badge small { color: var(--muted); font-size: 12.5px; }

/* Tratamentos */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--sand); }
.card h3 { font-size: 19px; margin-top: 6px; color: var(--teal-900); }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--teal-600); text-decoration: none; margin-top: 4px; }
.card__link .ico { width: 18px; height: 18px; transition: transform .2s; }
.card__link:hover .ico { transform: translateX(4px); }

/* Sobre */
.about { display: grid; gap: 40px; align-items: center; }
.about__photo { position: relative; max-width: 420px; margin: 0 auto; width: 100%; }
.about__photo::before {
  content: ""; position: absolute; inset: 14px -8px -10px 14px;
  border: 1.5px solid var(--gold); border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
}
.about__photo img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 220px 220px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); }
.about__tag {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(255,253,249,.92); color: var(--teal-900); font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow);
}
.about__text h2 { font-size: clamp(30px, 5.4vw, 44px); margin-top: 10px; }
.about__cro { color: var(--teal-600); font-weight: 600; margin: 8px 0 18px; font-size: 15px; }
.about__ex { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--sand); color: var(--teal-900); padding: 2px 8px; border-radius: 6px; margin-left: 4px; vertical-align: 1px; }
.about__text > p:not(.about__cro) { color: var(--muted); }
.about__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 28px; }
.about__gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); }

/* Como funciona */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 12px;
}
.step h3 { font-size: 19px; margin-top: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.step__num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: 40px; line-height: 1;
  color: var(--sand);
}

/* Depoimentos */
.reviews { display: grid; gap: 16px; }
.review {
  background: #fff; border: 1.5px dashed #D8CDBB; border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 14px;
}
.review__stars { display: flex; gap: 2px; color: #E3D6BF; }
.review__stars .ico { width: 18px; height: 18px; }
.review__ph { font-weight: 600; color: var(--teal-900); }
.review__lines { display: grid; gap: 8px; }
.review__lines span { height: 8px; border-radius: 4px; background: var(--sand-soft); }
.review__lines span:nth-child(2) { width: 85%; }
.review__lines span:nth-child(3) { width: 60%; }

/* Contato */
.contact { display: grid; gap: 24px; }
.contact__map { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 280px; background: var(--sand); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute; left: 58%; top: 39%; transform: translate(-50%, -100%);
  width: 52px; height: 52px; border-radius: 50% 50% 50% 0; rotate: -45deg;
  background: var(--teal); display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.map-pin .ico { rotate: 45deg; color: var(--sand); width: 24px; height: 24px; }
.map-label {
  position: absolute; left: 58%; top: calc(39% + 26px); transform: translateX(-50%);
  background: var(--white); color: var(--teal-900); font-weight: 600; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap;
}
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact__list li {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.contact__list strong { display: block; color: var(--teal-900); font-size: 14px; font-weight: 700; }
.contact__list span, .contact__list a { color: var(--muted); font-size: 15px; text-decoration: none; }
.contact__list a { color: var(--teal-600); font-weight: 600; }
.contact__list .icon-tile { color: var(--sand); }
.contact__list a:hover { color: var(--teal-900); }

/* Rodapé */
.footer { background: var(--teal-900); color: #C9D9D4; padding: 44px 0 90px; font-size: 14px; }
.footer__inner { display: grid; gap: 20px; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { width: 46px; height: 46px; box-shadow: 0 0 0 1.5px rgba(233,223,207,.35); border-radius: 13px; }
.footer__brand strong { display: block; color: #fff; font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.footer__insta { display: inline-flex; align-items: center; gap: 8px; color: var(--sand); font-weight: 500; }
.footer__credit {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 28px; padding-top: 20px; font-size: 13px; color: #8FAAA3;
  background: linear-gradient(rgba(233,223,207,.15), rgba(233,223,207,.15)) content-box top / 100% 1px no-repeat;
}
.footer__credit a { color: var(--sand); font-weight: 600; }
.footer__credit a:hover { color: #fff; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366; animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

/* Cards compactos no celular: ícone à esquerda */
@media (max-width: 559px) {
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; padding: 20px; }
  .card .icon-tile { grid-row: 1 / span 3; width: 48px; height: 48px; border-radius: 14px; }
  .card .icon-tile .ico { width: 24px; height: 24px; }
  .card h3 { margin-top: 0; font-size: 17px; align-self: center; }
  .card p { font-size: 14.5px; }
  .card__link { margin-top: 2px; }
  .section { padding: 60px 0; }
}

/* ---------- Telas maiores ---------- */
@media (min-width: 560px) {
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn { flex: 0 0 auto; }
  .hero__badge { left: 24px; right: auto; }
  .footer__credit { flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
}

@media (min-width: 900px) {
  .container { padding: 0 32px; }
  .nav { display: flex; }
  .section { padding: 104px 0; }
  .section__head { margin-bottom: 56px; }
  .hero { padding: 72px 0 112px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
  .hero__badge { left: -28px; bottom: 36px; }
  .about__photo::before { inset: 18px -14px -14px 18px; }
  .cards, .reviews { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card { padding: 32px 28px; }
  .about { grid-template-columns: .9fr 1.1fr; gap: 80px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step { padding: 36px 30px; }
  .contact { grid-template-columns: 1.4fr 1fr; gap: 32px; }
  .contact__map { min-height: 440px; }
  .footer { padding-bottom: 44px; }
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
  .footer__rt { text-align: center; }
  .wa-float { right: 28px; bottom: 28px; width: 62px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
