/* ==========================================================
   Marinho Odontologia & Estética — estilos
   ========================================================== */

:root {
  --cream: #faf8f3;
  --header: #f7f3ec;
  --peach: #f9d9a7;
  --gold: #feb854;
  --ink: #1a1a1a;
  --black: #000;
  --serif-display: "Source Serif 4", "Source Serif Pro", Georgia, serif;
  --serif-body: Georgia, "Times New Roman", serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif-display); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }

.container { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 36px; }
.center { text-align: center; }
.bg-peach { background: var(--peach); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; padding: .75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header.scrolled {
  background: var(--header);
  color: var(--black);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}
.header-inner {
  height: 100%; max-width: 1366px; margin: 0 auto; padding: 0 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; filter: invert(1); transition: filter .35s; }
.scrolled .brand-logo { filter: none; }
.brand-name { font-size: 14px; letter-spacing: 2.8px; text-transform: uppercase; }

.nav { display: flex; gap: 40px; }
.nav a {
  font-size: 12px; font-weight: 600; letter-spacing: 3.36px; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .25s;
}
.nav a:hover::after { transform: scaleX(1); }

.header-phone { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
.header-phone svg { width: 21px; height: 21px; fill: currentColor; }

.menu-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.menu-toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 730px; display: flex; align-items: center;
  color: #fefefe; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero-content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
.hero h1 { font-size: 60px; max-width: 520px; }
.hero p { margin-top: 28px; max-width: 760px; font-size: 18px; }

/* ---------- Sobre ---------- */
.about { padding: 112px 0; }
.about-grid { display: grid; grid-template-columns: 600px 1fr; gap: 80px; align-items: center; }
.about-img { width: 600px; height: 600px; object-fit: cover; }
.about-text h2 { font-size: 48px; }
.about-text p { margin-top: 24px; }
.about-text h2 + p { margin-top: 28px; }

/* ---------- Serviços ---------- */
.services { padding: 112px 0 112px; }
.section-head h2 { font-size: 48px; max-width: 460px; }
.section-head p { margin-top: 24px; max-width: 760px; }
.section-head.center h2, .section-head.center p { margin-left: auto; margin-right: auto; }
.section-head.center p { max-width: 680px; }

.cards { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.icon { width: 48px; height: 48px; margin: 0 auto; fill: none; stroke: var(--black); stroke-width: 16; stroke-linecap: round; }
.card h3 { margin: 24px auto 0; font-size: 24px; max-width: 280px; }
.card p { margin: 16px auto 0; font-size: 16px; max-width: 360px; }

.btn {
  display: inline-block; margin-top: 64px;
  background: var(--gold); color: var(--black);
  padding: 14px 26px; font-size: 18px; cursor: pointer;
  transition: filter .2s, transform .2s;
}
.btn:hover { filter: brightness(.95); transform: translateY(-2px); }

/* ---------- Depoimentos ---------- */
.testimonials { padding: 112px 0; }

.rating-summary {
  margin-top: 40px; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--cream); padding: 14px 22px;
}
.rating-score { font-family: var(--serif-display); font-size: 28px; font-weight: 600; line-height: 1; }
.rating-count { font-size: 16px; }
.stars { color: #e7a12f; letter-spacing: 2px; font-size: 18px; line-height: 1; }
.g-logo { width: 22px; height: 22px; flex: none; }

.testimonial-list { margin-top: 48px; columns: 3; column-gap: 28px; }
.review {
  break-inside: avoid; margin: 0 0 28px;
  background: var(--cream); padding: 32px 30px 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.review blockquote { font-size: 16px; line-height: 1.7; }
.review blockquote::before { content: "\201C"; display: block; font-family: var(--serif-display); font-size: 56px; line-height: .6; height: 24px; color: var(--gold); }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, .1); }
.review figcaption > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.review strong { font-size: 16px; font-weight: 700; }
.review small { font-size: 13px; opacity: .65; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--peach); font-family: var(--serif-display); font-size: 18px; font-weight: 600;
}
.reviews-cta { margin-top: 20px; text-align: center; }
.btn-outline { background: transparent; border: 1px solid var(--black); margin-top: 0; }
.btn-outline:hover { background: var(--black); color: var(--cream); filter: none; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--cream); padding: 64px 0 40px; }
.footer-logo img { width: 42px; height: 42px; margin: 0 auto; object-fit: contain; }
.footer-bar {
  margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(0, 0, 0, .12);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-name { font-size: 16px; }
.footer-social { display: flex; gap: 16px; }
.footer-social a { color: var(--black); transition: opacity .2s; }
.footer-social a:hover { opacity: .6; }
.footer-social svg { width: 16px; height: 16px; display: block; }

/* ---------- Botão de emergência ---------- */
.wa-float {
  position: fixed; right: 26px; bottom: 26px; z-index: 120;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .45);
  animation: pulse 2s ease-out infinite;
}
.wa-badge {
  position: absolute; top: -4px; right: -4px;
  background: #d32f2f; color: #fff; font: 700 10px/1 Arial, sans-serif;
  padding: 4px 6px; border-radius: 10px; border: 2px solid #fff;
}
@keyframes pulse {
  0% { transform: scale(.9); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { 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; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .about-img { width: 100%; height: auto; aspect-ratio: 1; }
}
@media (max-width: 1024px) {
  .menu-toggle { display: block; }
  .header-phone { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 36px 20px;
    background: var(--header); color: var(--black);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(0, 0, 0, .08); }
  .nav a::after { display: none; }
  .site-header.menu-open { background: var(--header); color: var(--black); }
  .menu-open .brand-logo { filter: none; }
  .hero h1 { font-size: 52px; }
  .about-text h2, .section-head h2 { font-size: 40px; }
  .testimonial-list { columns: 2; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .container, .header-inner { padding: 0 20px; }
  .brand-name { display: none; }
  .header-phone { font-size: 15px; }
  .header-phone svg { width: 18px; height: 18px; }
  .nav { padding: 8px 20px 20px; }
  .hero { min-height: 100svh; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
  .about, .services, .testimonials { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-text h2, .section-head h2 { font-size: 32px; }
  .cards { grid-template-columns: 1fr; gap: 48px; margin-top: 56px; }
  .testimonial-list { columns: 1; }
  .review { padding: 26px 22px 22px; }
  .btn { margin-top: 48px; }
  .footer-bar { flex-direction: column; text-align: center; }
  .wa-float { right: 18px; bottom: 18px; width: 56px; height: 56px; }
}
