/* ==========================================================================
   Dra. Sabrina Baggio | Estética Facial · Joinville/SC
   Design: editorial elegante, tons quentes neutros + terracota
   ========================================================================== */

:root {
  --ink: #2b2320;          /* texto principal */
  --ink-soft: #5c5049;     /* texto secundário */
  --ivory: #faf6f1;        /* fundo principal */
  --sand: #f1e8dd;         /* fundo alternado */
  --champagne: #dfc9b0;    /* detalhes */
  --terracotta: #9c5c44;   /* ação/acento */
  --terracotta-dark: #7f4634;
  --white: #fffdfa;
  --wa: #23a455;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 10px 40px rgba(43, 35, 32, 0.08);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--terracotta-dark); }
a:hover { color: var(--terracotta); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 760px; }
.center { text-align: center; margin-top: 2.5rem; }

/* Âncoras não somem sob o header fixo */
section[id] { scroll-margin-top: 110px; }

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(156, 92, 68, 0.35);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--champagne);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.btn-sm { padding: 0.55rem 1.2rem; font-size: 0.88rem; }
.btn-lg { padding: 1.05rem 2.3rem; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: rgba(223, 201, 176, 0.5);
  box-shadow: 0 4px 24px rgba(43, 35, 32, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand { text-decoration: none; display: block; }
.brand-logo {
  display: block;
  height: 75px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav > a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav > a:not(.btn):hover { color: var(--terracotta-dark); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(60rem 30rem at 110% -10%, rgba(223, 201, 176, 0.35), transparent 60%),
    radial-gradient(40rem 24rem at -20% 110%, rgba(156, 92, 68, 0.08), transparent 60%),
    var(--ivory);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-top: 1.25rem;
  max-width: 34rem;
}

.hero-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terracotta);
  margin-top: 1.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.trust-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(223, 201, 176, 0.6);
  max-width: 34rem;
}
.trust-chips li {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.trust-chips li + li::before {
  content: "·";
  color: var(--champagne);
  margin-right: 0.75rem;
}

/* Molduras de retrato (placeholders até termos as fotos) */
.portrait-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background:
    linear-gradient(160deg, var(--sand) 0%, var(--champagne) 60%, #d3b795 100%);
  border-radius: 999px 999px var(--radius) var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portrait-hero { aspect-ratio: 4 / 5; max-width: 420px; margin-left: auto; }
.portrait-about { aspect-ratio: 4 / 5; max-width: 400px; border-radius: var(--radius) 999px var(--radius) var(--radius); }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */

.section { padding: 5rem 0; }
.section-alt { background: var(--sand); }

.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head p {
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.section-head h2 a { color: inherit; text-decoration-color: var(--champagne); }

.narrow h2 + p, .narrow p + p { margin-top: 1.1rem; }
.narrow p { color: var(--ink-soft); }
.narrow p strong { color: var(--ink); }

/* Cards de procedimentos */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid rgba(223, 201, 176, 0.55);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-top: 0.7rem;
  flex-grow: 1;
}

.card-link {
  display: inline-block;
  margin-top: 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Faixa de avaliações do Google */
.section-slim { padding: 2rem 0; }

.rating-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid rgba(223, 201, 176, 0.55);
  border-radius: var(--radius);
  padding: 1.9rem 2.2rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.rating-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.rating-num {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 500;
}
.rating-stars {
  color: #e7a33b;
  letter-spacing: 0.18em;
  margin-top: 0.45rem;
  font-size: 0.95rem;
}
.rating-text {
  color: var(--ink-soft);
  max-width: 24rem;
  text-align: left;
}
.rating-text strong { color: var(--ink); }

.chip-star { color: #e7a33b; }

.quotes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.quote-card {
  flex: 0 1 calc((100% - 1.5rem) / 2);
  background: var(--white);
  border: 1px solid rgba(223, 201, 176, 0.55);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}
.quote-card figcaption {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Por que cirurgiã-dentista */
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.why-copy p {
  color: var(--ink-soft);
  margin-top: 1.1rem;
}
.why-copy p strong { color: var(--ink); }
.why-figure {
  margin: 0;
}
.why-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Resultados (antes e depois) */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ba-card {
  background: var(--white);
  border: 1px solid rgba(223, 201, 176, 0.55);
  border-radius: var(--radius);
  padding: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ba-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ba-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}
.ba-card figcaption {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 0.2rem 0.3rem;
}
.ba-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.6rem;
}

/* Sobre */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.about-role {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin: 0.6rem 0 1.2rem;
}
.about-copy p:not(.about-role) {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.about-copy .btn { margin-top: 0.5rem; }

/* Passos */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: passo;
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(223, 201, 176, 0.55);
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: 0.9rem;
}
.step p { color: var(--ink-soft); font-size: 0.98rem; margin-top: 0.6rem; }

/* Instagram */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.ig-tile {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, var(--sand), var(--champagne));
  border: 1px solid rgba(223, 201, 176, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  display: block;
}
.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ig-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* FAQ */
.faq details {
  background: var(--white);
  border: 1px solid rgba(223, 201, 176, 0.55);
  border-radius: 14px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--terracotta);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  padding: 0 1.4rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.contact-copy > p {
  color: var(--ink-soft);
  margin: 0.9rem 0 1.6rem;
  max-width: 30rem;
}
.contact-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.contact-list strong { color: var(--ink); }

/* Dobra de contato como "ilha" de contraste (referência: personia.ai) */
.contato-cta {
  background:
    radial-gradient(46rem 26rem at 115% -15%, rgba(250, 246, 241, 0.12), transparent 60%),
    var(--terracotta-dark);
  color: var(--ivory);
  border-radius: 28px;
  margin: 1rem clamp(1rem, 4vw, 2.5rem) 2.75rem;
}
.contato-cta h2 { color: var(--ivory); }
.contato-cta .contact-copy > p { color: rgba(250, 246, 241, 0.88); }
.contato-cta .contact-list { color: rgba(250, 246, 241, 0.88); }
.contato-cta .contact-list strong { color: var(--ivory); }
.contato-cta .contact-list a { color: var(--champagne); }
.contato-cta .contact-list a:hover { color: var(--white); }
.contato-cta .btn-primary {
  background: var(--ink);
  color: var(--ivory);
  box-shadow: 0 8px 24px rgba(20, 12, 8, 0.35);
}
.contato-cta .btn-primary:hover {
  background: var(--white);
  color: var(--terracotta-dark);
}

.contact-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: rgba(250, 246, 241, 0.75);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: block;
  height: 64px;
  width: auto;
}
.footer-tag { font-size: 0.9rem; max-width: 26rem; margin-top: 0.9rem; }
.footer-meta { font-size: 0.85rem; text-align: right; }
.footer-meta p + p { margin-top: 0.3rem; }

/* --------------------------------------------------------------------------
   WhatsApp flutuante
   -------------------------------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(35, 164, 85, 0.45);
  transition: transform 0.2s ease;
  animation: wa-pulse 3s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); color: #fff; animation-play-state: paused; }

@keyframes wa-pulse {
  0%   { box-shadow: 0 8px 24px rgba(35, 164, 85, 0.45), 0 0 0 0 rgba(35, 164, 85, 0.35); }
  55%  { box-shadow: 0 8px 24px rgba(35, 164, 85, 0.45), 0 0 0 16px rgba(35, 164, 85, 0); }
  100% { box-shadow: 0 8px 24px rgba(35, 164, 85, 0.45), 0 0 0 0 rgba(35, 164, 85, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wa-float { animation: none; }
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .why-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .why-figure { max-width: 460px; margin: 0 auto; width: 100%; }

  .portrait-hero { margin: 0 auto; max-width: 320px; }
  .portrait-about { max-width: 320px; margin: 0 auto; }
  .about-visual { order: 2; }

  .cards, .steps, .ba-grid { grid-template-columns: 1fr; }
  .quote-card { flex-basis: 100%; }
  .rating-text { text-align: center; }
  .ba-card { max-width: 420px; margin: 0 auto; width: 100%; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }

  .brand-logo { height: 58px; }
  .menu-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid rgba(223, 201, 176, 0.5);
    box-shadow: 0 20px 40px rgba(43, 35, 32, 0.08);
    display: none;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(223, 201, 176, 0.35);
  }
  .site-nav .btn { margin-top: 1rem; }

  .section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0 3.5rem; }
  .footer-meta { text-align: left; }
}
