/* ==========================================================
   Odontologia Mendes — estilos
   Layout baseado na referência (lorenawalchhutter.com.br),
   paleta tirada da logo: dourado + vinho sobre creme
   ========================================================== */

:root {
  --cream: #FBF7F1;
  --cream-2: #F5EDE2;
  --sand: #EADCC8;
  --white: #FFFFFF;

  --wine: #4A1627;
  --wine-deep: #2C0C17;
  --wine-soft: #6E2B3F;

  --gold: #A8782A;
  --gold-light: #D6B169;
  --gold-dark: #7A5418;
  --gold-grad: linear-gradient(135deg, #7A5418 0%, #C9A04A 48%, #8C6420 100%);

  --ink: #2A1E22;
  --muted: #5F5054;
  --line: rgba(74, 22, 39, 0.12);

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Segoe UI", Arial, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -28px rgba(44, 12, 23, 0.35);
  --shadow-sm: 0 12px 30px -18px rgba(44, 12, 23, 0.28);

  --header-h: 84px;
  --container: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;          /* base maior: público 55+ */
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--wine);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--gold); }

p { margin: 0 0 1em; color: var(--muted); }
strong { color: var(--ink); font-weight: 600; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--wine); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 6px; }

/* Marcador de conteúdo provisório (remover ao preencher) */
.tbd {
  background: rgba(214, 177, 105, 0.25);
  border-bottom: 1px dashed var(--gold);
  padding: 0 4px; border-radius: 3px;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.eyebrow::before, .eyebrow--center::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--gold-light); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--wine); color: var(--white); box-shadow: 0 14px 30px -14px rgba(74, 22, 39, .7); }
.btn--primary:hover { background: var(--wine-soft); }

.btn--ghost { border-color: rgba(74, 22, 39, .35); color: var(--wine); background: rgba(255, 255, 255, .5); }
.btn--ghost:hover { border-color: var(--wine); background: var(--white); }

.btn--outline { border-color: rgba(74, 22, 39, .3); color: var(--wine); background: transparent; padding: 12px 24px; font-size: .82rem; }
.btn--outline:hover { background: var(--wine); border-color: var(--wine); color: var(--white); }

.btn--gold { background: var(--gold-grad); color: var(--wine-deep); box-shadow: 0 14px 34px -14px rgba(214, 177, 105, .7); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: rgba(251, 247, 241, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: height .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { --header-h: 70px; border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(44, 12, 23, .35); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 50px; width: auto; transition: height .3s ease; }
.header.is-scrolled .header__logo img { height: 42px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: .98rem; text-decoration: none; color: var(--ink); position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .25s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav__cta { display: none; }

.menu-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: var(--wine); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: linear-gradient(180deg, var(--cream) 0, var(--cream) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 90px 0; z-index: 0;
  background:
    radial-gradient(ellipse 55% 80% at 80% 45%, rgba(214, 177, 105, .35), transparent 70%),
    linear-gradient(120deg, #FBF4EA 0%, #F3E4D0 55%, #EBD5BC 100%);
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: end;
  min-height: 600px;
}
.hero__content { padding: 64px 0 150px; }
.hero__lead { font-size: 1.15rem; max-width: 520px; color: var(--ink); opacity: .82; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; }
.hero__ring {
  position: absolute; width: 560px; height: 560px; max-width: 120%;
  top: 50%; left: 50%; transform: translate(-50%, -54%);
  border-radius: 50%;
  border: 1.5px solid rgba(168, 120, 42, .45);
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 65%);
}
.hero__ring::after {
  content: ""; position: absolute; inset: 22px; border-radius: 50%;
  border: 1px solid rgba(168, 120, 42, .2);
}
.hero__photo {
  position: relative;
  width: 400px; max-width: 90%;
  aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border-radius: 220px 220px 0 0;
  margin-bottom: 90px;
  box-shadow: var(--shadow);
}

.stats {
  position: relative; z-index: 2;
  list-style: none; padding: 0; margin: -90px 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 20px;
}
.stats li {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.stats p {
  margin: 0;
  font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.35;
  color: var(--wine);
}
.stats strong {
  display: block;
  font-size: 1.7rem; font-weight: 600; line-height: 1.2;
  color: var(--gold-dark);
  margin: 2px 0;
}

/* ---------- Avaliação individual ---------- */
.intro__card {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--cream-2) 0%, var(--sand) 100%);
  box-shadow: var(--shadow-sm);
}
.intro__media img {
  width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover;
  border-radius: 18px;
}
.intro__content { padding: 24px 32px 24px 0; }
.intro__content p:not(.eyebrow) { color: var(--ink); opacity: .8; }

/* ---------- Como funciona ---------- */
.steps { background: var(--cream-2); }
.steps__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.steps__list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
}
.steps__num {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sand); color: var(--wine);
  font-family: var(--font-serif); font-size: 1.1rem;
  margin-bottom: 22px;
}
.steps__list p { margin: 0; }

/* ---------- Banner ---------- */
.banner {
  padding: clamp(84px, 10vw, 120px) 0;
  background:
    linear-gradient(rgba(44, 12, 23, .78), rgba(44, 12, 23, .82)),
    url("../img/clinica/recepcao.jpg") center / cover;
  text-align: center;
}
.banner__inner { max-width: 760px; }
.banner h2 { color: var(--cream); }
.banner p:not(.eyebrow) { color: rgba(251, 247, 241, .85); margin-bottom: 30px; }

/* ---------- Dr. Danilo ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__photo {
  width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: center 60%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about__badge {
  position: absolute; right: -28px; bottom: 36px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px; max-width: 220px;
}
.about__badge strong { display: block; color: var(--wine); line-height: 1.3; margin-bottom: 4px; }
.about__badge span { font-size: .88rem; color: var(--muted); line-height: 1.4; display: block; }

.about__cro { font-size: .95rem; letter-spacing: .03em; color: var(--gold-dark); margin-top: -4px; }

.checklist { list-style: none; padding: 0; margin: 6px 0 32px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6B169' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Depoimentos ---------- */
.testimonials { background: var(--cream-2); }
.testimonials__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quote {
  margin: 0; padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
}
.quote__stars { color: var(--gold); letter-spacing: 3px; font-size: .9rem; margin-bottom: 12px; }
.quote h3 { font-size: 1.15rem; margin-bottom: 10px; }
.quote blockquote { margin: 0 0 16px; flex: 1; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.quote figcaption { font-weight: 600; color: var(--wine); font-size: .92rem; }
.quote figcaption span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }

.rating {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 6px; padding: 10px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: .95rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease;
}
.rating:hover { transform: translateY(-2px); }
.rating strong { font-family: var(--font-serif); font-size: 1.5rem; color: var(--wine); line-height: 1; }
.rating__stars { color: var(--gold); letter-spacing: 2px; }

.testimonials__more { text-align: center; margin: 36px 0 0; }
.testimonials__more a { color: var(--wine); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--gold); }

/* ---------- Tratamentos ---------- */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cards > .card { flex: 0 1 calc((100% - 48px) / 3); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px -24px rgba(44, 12, 23, .3);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.card__media { background: var(--cream-2); padding: 16px 12px 10px; }
.card__media-title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif); font-size: 1.05rem; color: var(--wine);
  margin: 0 0 12px; text-align: center; justify-content: center;
}
.card__media-title::before, .card__media-title::after { content: ""; flex: 1; max-width: 50px; height: 1px; background: var(--gold); opacity: .6; }

.card__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.card__compare figure, .card__single { margin: 0; }
.card__compare img, .card__single img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px;
}
.card__single img { aspect-ratio: 8 / 3.05; }
.card__compare figcaption, .card__single figcaption {
  text-align: center; font-family: var(--font-serif); font-size: .82rem; color: var(--muted);
  margin-top: 6px;
}

.card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.card__body p { flex: 1; font-size: .98rem; }
.tags { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .78rem; padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(168, 120, 42, .35); color: var(--gold-dark);
}
.card .btn { align-self: flex-start; }

.more {
  margin-top: 48px; padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--cream-2);
  text-align: center;
}
.more h3 { margin-bottom: 18px; }
.more__list { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 900px; }
.more__list li { padding: 9px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .95rem; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { background: var(--cream-2); }
.faq__inner { max-width: 820px; }
.faq__list { display: grid; gap: 12px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 20px 60px 20px 24px;
  font-family: var(--font-serif); font-size: 1.12rem; color: var(--wine);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 1.5rem; font-weight: 300; color: var(--gold-dark);
}
.faq details[open] summary::after { content: "×"; }
.faq details p { padding: 0 24px 22px; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(80px, 10vw, 112px) 0;
  background:
    radial-gradient(ellipse 60% 90% at 85% 100%, rgba(214, 177, 105, .2), transparent 70%),
    linear-gradient(120deg, var(--wine-deep) 0%, var(--wine) 60%, var(--wine-soft) 100%);
  text-align: center;
}
.cta__inner { max-width: 800px; }
.cta__icon { width: 74px; margin: 0 auto 22px; }
.cta h2 { color: var(--cream); }
.cta p:not(.eyebrow) { color: rgba(251, 247, 241, .85); margin-bottom: 30px; }

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.contact__info { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 22px; }
.contact__info li { display: flex; gap: 16px; align-items: flex-start; }
.contact__info .icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--wine); color: var(--gold-light); }
.contact__info strong { display: block; color: var(--wine); }
.contact__info span, .contact__info a { color: var(--muted); text-decoration: none; }
.contact__info a:hover { color: var(--wine); }
.contact__map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--wine-deep); color: rgba(251, 247, 241, .7); font-size: .88rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 26px; padding-bottom: 26px; }
.footer p { margin: 0; color: inherit; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .25s ease;
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.07); }
.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: .8; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 1080px) {
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .cards > .card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .header__logo img { height: 42px; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 12px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -24px rgba(44, 12, 23, .4);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.08rem; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 18px; padding: 16px; }

  .hero::before { inset: 0 0 60px 0; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero__content { padding: 40px 0 24px; }
  .hero__visual { min-height: 440px; }
  .hero__ring { width: 420px; height: 420px; }
  .hero__photo { width: 320px; margin-bottom: 60px; }
  .stats { margin-top: -60px; grid-template-columns: repeat(3, 1fr); }

  .intro__card, .about__grid, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .intro__content { padding: 0 8px 12px; }
  .intro__media img { aspect-ratio: 4 / 3; }
  .about__media { max-width: 440px; }
  .about__badge { right: -12px; }
  .steps__list { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .eyebrow { font-size: .72rem; letter-spacing: .16em; gap: 10px; }
  .eyebrow::before, .eyebrow--center::after { width: 22px; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { min-height: 380px; }
  .hero__ring { width: 340px; height: 340px; }
  .hero__photo { width: 270px; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .stats li { padding: 20px; }
  .intro__card { padding: 14px; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .cards > .card { flex-basis: 100%; }
  .about__badge { position: relative; right: auto; bottom: auto; margin: -40px 16px 0; max-width: none; }
  .more { padding: 28px 18px; }
  .contact__map iframe { height: 300px; }
  .footer__inner { flex-direction: column; }
  .wa-float { width: 58px; height: 58px; right: 16px; bottom: 16px; }
}
