/* ==========================================================================
   Raízes Odontologia Familiar — estilos
   Mobile-first. Custom properties para fácil ajuste de identidade visual.
   ========================================================================== */

:root {
  --color-primary: #C97B4A;
  --color-primary-dark: #A85F35;
  --color-primary-light: #E3A579;
  --color-secondary: #FFF8F0;
  --color-accent: #5B8266;
  --color-accent-dark: #486B52;
  --color-ink: #3A2A20;
  --color-ink-soft: #6B5648;
  --color-white: #FFFFFF;
  --color-border: #EFDFCB;

  --font-heading: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 8px 24px rgba(58, 42, 32, 0.08);
  --shadow-card: 0 10px 30px rgba(58, 42, 32, 0.1);

  --container-w: 1160px;
  --header-h: 76px;
}

/* ---- Reset básico ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-secondary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; color: var(--color-ink); }
p { margin: 0 0 1em; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.eyebrow {
  font-family: var(--font-heading);
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 600;
  margin: 0 0 .5em;
}

section { scroll-margin-top: var(--header-h); }

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  padding: .8em 1.6em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-icon { width: 1.15em; height: 1.15em; }

.btn-cta {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(91, 130, 102, .35);
}
.btn-cta:hover { background: var(--color-accent-dark); box-shadow: 0 10px 22px rgba(91, 130, 102, .4); }

.btn-outline {
  background: transparent;
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-lg { padding: 1em 2em; font-size: 1.05rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px;
  height: 34px;
  color: var(--color-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo-text small {
  font-family: var(--font-body);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}

.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  /* .site-header is position:sticky, which makes it the containing block for
     this fixed element — so height must be computed from the viewport (vh)
     rather than relying on `bottom: 0`, which would resolve against the
     76px-tall header box and collapse the panel to zero height. */
  height: calc(100vh - var(--header-h));
  background: var(--color-secondary);
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}
.main-nav.is-open { transform: translateX(0); }
.main-nav ul { display: flex; flex-direction: column; gap: 1.25rem; }
.main-nav a {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-ink);
  font-weight: 500;
}
.main-nav a:hover { color: var(--color-primary); }

.header-cta { display: none; }

.menu-toggle {
  background: none;
  border: none;
  color: var(--color-ink);
  padding: .4rem;
  cursor: pointer;
  z-index: 101;
}
.menu-toggle svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(201,123,74,.14), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(91,130,102,.12), transparent 50%);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  color: var(--color-primary-dark);
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--color-ink-soft);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.hero-actions .btn { width: 100%; }

.hero-media { position: relative; }
.hero-badge {
  position: absolute;
  bottom: -14px;
  left: 14px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: .6rem .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-badge svg { width: 26px; height: 26px; color: var(--color-primary); }
.hero-badge strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; line-height: 1; color: var(--color-ink); }
.hero-badge span { font-size: .72rem; color: var(--color-ink-soft); }

/* ---- Placeholders de foto ---- */
.photo-placeholder {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #F2DCC4, #EAC9A6);
  border: 2px dashed var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  text-align: center;
  color: var(--color-primary-dark);
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 2rem;
}
.photo-placeholder svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .75; }
.photo-placeholder--hero { aspect-ratio: 4/3; }
.photo-placeholder--sobre { aspect-ratio: 3/4; max-width: 420px; margin: 0 auto; }

/* ==========================================================================
   BARRA DE CONFIANÇA
   ========================================================================== */
.trust-bar {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 1.8rem 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 1rem;
  text-align: center;
}
.trust-item { display: flex; flex-direction: column; gap: .2rem; }
.trust-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
}
.star-inline { width: 1em; height: 1em; color: #FFD79A; }
.trust-label { font-size: .8rem; opacity: .9; }

/* ==========================================================================
   SECTION HEAD genérico
   ========================================================================== */
.section-head { max-width: 60ch; margin: 0 0 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--color-primary-dark); }
.section-sub { color: var(--color-ink-soft); }

section.servicos, section.diferenciais, section.depoimentos, section.localizacao, section.sobre {
  padding: 4rem 0;
}

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: var(--color-secondary);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; color: var(--color-ink); }
.card p { color: var(--color-ink-soft); font-size: .95rem; margin-bottom: 0; }

/* ==========================================================================
   SOBRE
   ========================================================================== */
.sobre { background: #fff; }
.sobre-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.sobre-copy h2 { color: var(--color-primary-dark); font-size: clamp(1.6rem, 5vw, 2.2rem); }
.sobre-copy p { color: var(--color-ink-soft); }
.credentials { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.2rem; }
.credentials li { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--color-ink); }
.credentials svg { width: 20px; height: 20px; color: var(--color-accent); fill: none; stroke: currentColor; stroke-width: 3; flex-shrink: 0; }

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */
.diferenciais-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dif-item { text-align: left; }
.dif-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(91,130,102,.12);
  color: var(--color-accent-dark);
  margin-bottom: .9rem;
}
.dif-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.dif-item h3 { font-size: 1.05rem; }
.dif-item p { color: var(--color-ink-soft); font-size: .93rem; margin-bottom: 0; }

.convenios-box {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  align-items: flex-start;
}
.convenios-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.convenios-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
.convenios-text h3 { margin-bottom: .4em; font-size: 1.1rem; }
.convenios-text p { color: var(--color-ink-soft); margin-bottom: 0; font-size: .92rem; }
.convenios-text em { font-style: normal; opacity: .75; font-size: .85em; }

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.depoimentos { background: #fff; }
.depoimentos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.depoimento-card {
  margin: 0;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
}
.stars { display: flex; gap: .2rem; margin-bottom: .8rem; color: #E8A94A; }
.stars svg { width: 18px; height: 18px; }
.depoimento-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  color: var(--color-ink);
  font-size: 1rem;
}
.depoimento-card figcaption {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-accent-dark);
}

/* ==========================================================================
   LOCALIZAÇÃO
   ========================================================================== */
.localizacao-inner { display: flex; flex-direction: column; gap: 2.5rem; }
.localizacao h2 { color: var(--color-primary-dark); font-size: clamp(1.6rem, 5vw, 2.2rem); }

.info-list { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0 2rem; }
.info-list li { display: flex; align-items: flex-start; gap: .9rem; }
.info-list svg { width: 26px; height: 26px; color: var(--color-primary); fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }
.info-list strong { display: block; font-family: var(--font-heading); font-size: .95rem; }
.info-list span { color: var(--color-ink-soft); font-size: .93rem; }

.map-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, #F2DCC4, #F2DCC4 10px, #EEDCC5 10px, #EEDCC5 20px);
  border: 2px dashed var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  text-align: center;
  color: var(--color-accent-dark);
  font-weight: 700;
  font-family: var(--font-heading);
  padding: 2rem;
}
.map-placeholder svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final {
  background: linear-gradient(160deg, var(--color-accent), var(--color-accent-dark));
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-final-inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.cta-leaf { width: 44px; height: 44px; fill: none; stroke: #fff; stroke-width: 2; opacity: .85; margin-bottom: .5rem; }
.cta-final h2 { color: #fff; font-size: clamp(1.6rem, 5vw, 2.3rem); margin-bottom: .3em; }
.cta-final p { color: rgba(255,255,255,.9); max-width: 42ch; margin-bottom: 1.6rem; }
.cta-final .btn-cta { background: #fff; color: var(--color-accent-dark); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.cta-final .btn-cta:hover { background: var(--color-secondary); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--color-ink);
  color: #EDE1D6;
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { color: #C9B8A9; font-size: .9rem; max-width: 32ch; }
.logo--footer .logo-text { color: #fff; }
.logo--footer .logo-icon { color: var(--color-primary-light); }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  font-weight: 700;
  color: var(--color-primary-light);
}
.footer-social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer-social:hover { color: #fff; }

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a, .footer-col li { color: #C9B8A9; font-size: .9rem; }
.footer-col a:hover { color: var(--color-primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .8rem;
  color: #A8977F;
}

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(91,130,102,.45);
  z-index: 90;
  animation: pulse-whatsapp 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { background: var(--color-accent-dark); }

@keyframes pulse-whatsapp {
  0%, 100% { box-shadow: 0 8px 20px rgba(91,130,102,.45), 0 0 0 0 rgba(91,130,102,.5); }
  50% { box-shadow: 0 8px 20px rgba(91,130,102,.45), 0 0 0 12px rgba(91,130,102,0); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   TABLET (>= 640px)
   ========================================================================== */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .diferenciais-grid { grid-template-columns: repeat(2, 1fr); }
  .depoimentos-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .convenios-box { flex-direction: row; align-items: center; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ==========================================================================
   DESKTOP (>= 960px)
   ========================================================================== */
@media (min-width: 960px) {
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }

  .main-nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    inset: auto;
    overflow: visible;
  }
  .main-nav ul { flex-direction: row; gap: 2rem; }
  .main-nav a { font-size: .98rem; }

  .hero-inner { flex-direction: row; align-items: center; }
  .hero-copy { flex: 1; }
  .hero-media { flex: 1; }

  .cards-grid { grid-template-columns: repeat(3, 1fr); }

  .sobre-inner { flex-direction: row; align-items: center; gap: 4rem; }
  .sobre-media, .sobre-copy { flex: 1; }

  .diferenciais-grid { grid-template-columns: repeat(4, 1fr); }

  .depoimentos-grid { grid-template-columns: repeat(3, 1fr); }

  .localizacao-inner { flex-direction: row; align-items: center; gap: 4rem; }
  .localizacao-info, .localizacao-map { flex: 1; }
}

@media (min-width: 1180px) {
  .hero { padding: 5rem 0 6rem; }
}
