/* ============================================================
   Buganvília Odontologia Domiciliar — Protótipo de site
   Visual clássico e acolhedor — paleta bordô/rosa, tons quentes,
   tipografia serifada, fotos grandes e em destaque
   ============================================================ */

:root {
  --bordo: #6d1b3a;
  --bordo-escuro: #4f1429;
  --bordo-claro: #9c4565;
  --rosa: #f3dbe3;
  --rosa-claro: #fdf4f1;
  --creme: #faf3ec;
  --dourado: #c79a5b;
  --bg: #fffdfb;
  --texto: #3a2430;
  --texto-suave: #7d6470;
  --branco: #ffffff;
  --linha: rgba(109, 27, 58, 0.14);
  --sombra: 0 14px 38px rgba(109, 27, 58, 0.12);
  --sombra-suave: 0 8px 24px rgba(109, 27, 58, 0.08);
  --raio: 14px;
  --raio-lg: 22px;
  --fonte-titulo: 'Lora', 'Georgia', 'Times New Roman', serif;
  --fonte-corpo: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fonte-corpo);
  color: var(--texto);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  font-weight: 600;
  color: var(--texto);
  line-height: 1.28;
  letter-spacing: 0;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.18rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--texto-suave); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.section-title {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section-title .kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--bordo);
  margin-bottom: 12px;
}

/* ---------- Header / navegação ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--linha);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 80px; height: 80px; border-radius: 50%; }

.brand .brand-text {
  font-family: var(--fonte-titulo);
  line-height: 1.15;
}

.brand .brand-text strong {
  display: block;
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--texto);
  letter-spacing: -0.01em;
}

.brand .brand-text span {
  font-size: 0.82rem;
  color: var(--texto-suave);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--texto-suave);
  padding: 9px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav.main-nav a:hover { color: var(--bordo); background: var(--rosa-claro); }

nav.main-nav a[aria-current="page"] {
  color: var(--bordo);
  font-weight: 700;
}

nav.main-nav a.btn-primary {
  color: var(--branco);
  background: var(--bordo);
  font-weight: 600;
}
nav.main-nav a.btn-primary:hover,
nav.main-nav a.btn-primary[aria-current="page"] {
  background: var(--bordo-escuro);
  color: var(--branco);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--linha);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  color: var(--bordo);
  cursor: pointer;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fonte-titulo);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, color .15s ease, border-color .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--bordo);
  color: var(--branco);
}
.btn-primary:hover { background: var(--bordo-escuro); }

.btn-outline {
  background: transparent;
  border-color: var(--linha);
  color: var(--bordo);
}
.btn-outline:hover { border-color: var(--bordo); background: var(--rosa-claro); }

.btn-whatsapp {
  background: #25D366;
  color: #0b3320;
}
.btn-whatsapp:hover { background: #1ebd5b; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--creme) 0%, var(--rosa-claro) 100%);
  padding: 88px 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero .kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--bordo);
  margin-bottom: 16px;
}

.hero p.lead { font-size: 1.1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Moldura clássica para fotos em destaque */
.hero-art,
.photo-frame {
  background: var(--branco);
  border: 6px solid var(--branco);
  outline: 1px solid var(--linha);
  border-radius: var(--raio-lg);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.hero-art { padding: 0; }
.hero-art img,
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--raio-lg) - 6px);
  aspect-ratio: 4 / 5;
}

.hero-art figcaption,
.photo-frame figcaption {
  padding: 16px 22px 20px;
  font-family: var(--fonte-titulo);
  font-style: italic;
  color: var(--bordo);
  font-size: 0.96rem;
  background: var(--branco);
}

.page-hero {
  background: linear-gradient(180deg, var(--creme) 0%, var(--rosa-claro) 100%);
  padding: 68px 0;
  text-align: center;
}
.page-hero .kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--bordo);
  margin-bottom: 12px;
}
.page-hero p { max-width: 660px; margin: 0 auto; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 30px 28px;
  border: 1px solid var(--linha);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--bordo-claro); transform: translateY(-2px); box-shadow: var(--sombra-suave); }

.card { background: var(--branco); }

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--rosa-claro);
  color: var(--bordo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Seções com foto em destaque (split media) ---------- */
.split-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split-media.invertido .photo-frame { order: 2; }
.split-media .photo-frame img { aspect-ratio: 4 / 3; }

/* ---------- Galeria / mosaico de fotos ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.photo-gallery .photo-frame {
  border-width: 5px;
}
.photo-gallery .photo-frame img { aspect-ratio: 1 / 1; }
.photo-gallery figcaption { display: none; }

/* ---------- Faixa destaque (banda colorida) ---------- */
.band {
  background: var(--bordo);
  color: var(--branco);
}
.band h2, .band h3 { color: var(--branco); }
.band p { color: var(--rosa); }

/* ---------- Passo a passo ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: passo;
}
.step {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 26px 22px;
  border: 1px solid var(--linha);
  position: relative;
}
.step::before {
  counter-increment: passo;
  content: counter(passo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--rosa-claro);
  color: var(--bordo);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

/* ---------- Listas com check ---------- */
ul.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--texto-suave);
}
ul.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--rosa);
  box-shadow: inset 0 0 0 1px rgba(109,27,58,0.15);
}
ul.checklist li::after {
  content: "✓";
  position: absolute;
  left: 2.5px;
  top: 5px;
  width: 16px;
  height: 16px;
  color: var(--bordo);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Equipe / contatos ---------- */
.team-card {
  background: var(--branco);
  border-radius: var(--raio);
  border: 1px solid var(--linha);
  padding: 26px;
  text-align: center;
}
.team-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--rosa-claro);
  color: var(--bordo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fonte-titulo);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 14px;
}
.team-card .role {
  display: inline-block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bordo);
  background: var(--rosa-claro);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- Depoimentos ---------- */
.testimonial {
  background: var(--branco);
  border-radius: var(--raio);
  padding: 26px;
  border: 1px solid var(--linha);
}
.testimonial p.quote {
  font-family: var(--fonte-titulo);
  font-style: normal;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--texto);
}
.testimonial .author {
  font-weight: 700;
  color: var(--bordo);
  font-size: 0.88rem;
}

/* ---------- Formulários ---------- */
.form-card {
  background: var(--branco);
  border-radius: var(--raio-lg);
  border: 1px solid var(--linha);
  padding: 36px;
}

.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 6px;
  color: var(--texto);
}
.form-row .hint {
  font-size: 0.8rem;
  color: var(--texto-suave);
  margin-top: 4px;
}

input, select, textarea {
  width: 100%;
  font-family: var(--fonte-corpo);
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--linha);
  background: var(--rosa-claro);
  color: var(--texto);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--bordo);
  background: var(--branco);
}

fieldset {
  border: 1.5px solid var(--linha);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 18px;
}
fieldset legend {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--texto);
  padding: 0 6px;
}
.radio-row, .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.radio-row input, .check-row input { width: auto; }
.radio-row label, .check-row label {
  font-weight: 400;
  color: var(--texto-suave);
  margin: 0;
}

.form-feedback {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--rosa-claro);
  border: 1px solid var(--linha);
  color: var(--texto);
  font-weight: 600;
}
.form-feedback.show { display: block; }
.form-feedback.error { background: #fdecec; border-color: #f3c8c8; color: #8a1f1f; }

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--branco);
  border-radius: var(--raio);
  border: 1px solid var(--linha);
  padding: 24px;
}
.contact-card .phone {
  font-family: var(--fonte-titulo);
  font-size: 1.1rem;
  color: var(--bordo);
  font-weight: 700;
  margin: 6px 0 10px;
}

/* ---------- CTA banda final ---------- */
.cta-band {
  background: var(--bordo);
  color: var(--branco);
  border-radius: var(--raio-lg);
  padding: 56px;
  text-align: center;
  margin: 0 24px;
}
.cta-band h2, .cta-band p { color: var(--branco); }
.cta-band p { color: var(--rosa); }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bordo-escuro);
  color: var(--rosa);
  padding: 52px 0 24px;
  margin-top: 64px;
}
footer.site-footer h4 {
  color: var(--branco);
  font-size: 0.95rem;
  font-weight: 700;
}
footer.site-footer a { text-decoration: none; color: var(--rosa); }
footer.site-footer a:hover { color: var(--branco); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  text-align: center;
  color: rgba(243, 219, 227, 0.65);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.92rem; }

/* ---------- Faixa de regiões / tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  background: var(--branco);
  border: 1px solid var(--linha);
  color: var(--bordo);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- Aviso de protótipo ---------- */
.proto-banner {
  background: var(--bordo-escuro);
  color: var(--rosa);
  text-align: center;
  font-size: 0.8rem;
  padding: 9px 16px;
}
.proto-banner strong { color: #ffffff; }

/* ---------- Responsividade ---------- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .split-media { grid-template-columns: 1fr; }
  .split-media .photo-frame { order: -1; max-width: 480px; margin: 0 auto; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4, .steps, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

@media (max-width: 640px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--branco);
    border-bottom: 1px solid var(--linha);
    box-shadow: var(--sombra);
    padding: 12px 24px 20px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  nav.main-nav a { display: block; }
  .nav-toggle { display: inline-block; }
  .grid-2, .grid-3, .grid-4, .steps, .contact-grid, .photo-gallery { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; margin: 0 12px; }
  section { padding: 48px 0; }
}
