/* Dra. Jercilene Silva · Clínica Odontológica — site oficial (Variante A)
   Fotos sem tint colorido. Magenta só em botões/links/detalhes. */

:root {
  --bg: #ffffff;
  --bg-soft: #F7F5F2;
  --ink: #2C2C2C;
  --ink-muted: #5A5754;
  --line: #E8E4DF;
  --accent: #C2185B;
  --accent-hover: #9E1249;
  --wa: #25D366;
  --wa-hover: #1EBE57;
  --star: #F5B400;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(44, 44, 44, 0.08);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1080px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.2; color: var(--ink); }
p { margin: 0; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.brand__name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__meta {
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--wa);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--wa-hover); color: #fff !important; }
.nav-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--wa {
  background: var(--wa);
  color: #fff !important;
}
.btn--wa:hover { background: var(--wa-hover); color: #fff !important; }
.btn--accent {
  background: var(--accent);
  color: #fff !important;
}
.btn--accent:hover { background: var(--accent-hover); color: #fff !important; }
.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
.btn--block { width: 100%; }

/* —— Hero —— */
.hero {
  background: var(--bg-soft);
  padding-bottom: 2.5rem;
}
.hero__media {
  position: relative;
  width: 100%;
  height: min(62vh, 520px);
  overflow: hidden;
  background: #1a1a1a;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  /* cores originais — sem filter/tint */
}
/* Scrim preto só sob a faixa do badge — sem magenta/azul */
.hero__scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}
.hero__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 2;
}
.hero__badge-star {
  color: var(--star);
  font-size: 1rem;
  line-height: 1;
}
.hero__badge-score {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.hero__badge-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.hero__content {
  padding-top: 1.75rem;
}
.hero__kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 5.2vw, 2.35rem);
  font-weight: 700;
  max-width: 22ch;
  margin-bottom: 0.85rem;
}
.hero__sub {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 38ch;
  margin-bottom: 1.35rem;
}
.hero__actions { display: flex; flex-direction: column; gap: 0.65rem; align-items: stretch; }
.hero__micro {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.35rem;
}

/* —— Sections —— */
.section {
  padding: 3.25rem 0;
}
.section--soft { background: var(--bg-soft); }
.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
  max-width: 22ch;
}
.section__lead {
  color: var(--ink-muted);
  max-width: 48ch;
  margin-bottom: 1.75rem;
}
.section__cta { margin-top: 1.75rem; }

/* —— Services —— */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow);
  border-color: #d9c4cc;
}
.service-card__icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.service-card__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.service-card__desc {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* —— Results —— */
.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.result-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
}
.result-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
}
.results-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* —— Atendimento —— */
.care {
  display: grid;
  gap: 1.25rem;
}
.care__gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
}
.care__gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
}
.care__gallery figure:first-child {
  grid-row: 1 / 3;
}
.care__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}
.care__gallery figure:first-child img { min-height: 300px; }

/* —— Social proof strip —— */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.proof-pill span { color: var(--star); }

/* —— Sobre —— */
.about {
  display: grid;
  gap: 1.5rem;
}
.about__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #eee;
  max-width: 360px;
}
.about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 12%;
}
.about__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}
.about__text { color: var(--ink-muted); max-width: 42ch; margin-bottom: 1.25rem; }

/* —— Local —— */
.local {
  display: grid;
  gap: 1.25rem;
}
.local__photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #eee;
}
.local__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.local__address {
  font-size: 0.95rem;
  color: var(--ink-muted);
  max-width: 36ch;
  margin: 0.5rem 0 1.1rem;
}
.local__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* —— Pagamento —— */
.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.pay-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pay-card svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.pay-card span { font-weight: 600; font-size: 0.9rem; }
.pay-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* —— CTA final —— */
.cta-final {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-final .section__title { color: #fff; margin-inline: auto; }
.cta-final .section__lead {
  color: rgba(255, 255, 255, 0.78);
  margin-inline: auto;
  margin-bottom: 1.5rem;
}
.cta-final .btn { min-width: min(100%, 280px); }

/* —— Footer —— */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 5.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.site-footer a { font-weight: 600; }

/* —— Sticky bar (mobile) —— */
.sticky-wa {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.06);
}
.sticky-wa.is-hidden { transform: translateY(110%); }
.sticky-wa .btn { width: 100%; }

/* —— FAB (desktop) —— */
.fab-wa {
  display: none;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, background 0.2s ease;
}
.fab-wa:hover { background: var(--wa-hover); transform: scale(1.05); color: #fff !important; }
.fab-wa svg { width: 28px; height: 28px; }

/* —— Desktop —— */
@media (min-width: 768px) {
  :root { --header-h: 72px; }
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    padding-bottom: 0;
    min-height: 560px;
  }
  .hero__media {
    order: 2;
    height: auto;
    min-height: 560px;
    border-radius: 0;
  }
  .hero__content {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0 3rem clamp(1.5rem, 4vw, 3rem);
    width: min(100%, 520px);
    margin-left: auto;
    margin-right: 2rem;
  }
  .hero__actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .hero__actions .btn { width: auto; }
  .hero__micro { text-align: left; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .results-grid { grid-template-columns: repeat(3, 1fr); }
  .care {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .about {
    grid-template-columns: 320px 1fr;
    align-items: center;
  }
  .local {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .local__actions { flex-direction: row; flex-wrap: wrap; }
  .pay-grid { grid-template-columns: repeat(4, 1fr); }
  .sticky-wa { display: none; }
  .fab-wa { display: inline-flex; }
  .site-footer { padding-bottom: 2rem; }
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 2.5rem; }
  .care__gallery figure:first-child img { min-height: 420px; }
}


/* —— Print: mesma página (PDF = export visual) —— */
@media print {
  .site-header { position: static; backdrop-filter: none; }
  .sticky-wa, .fab-wa { display: none !important; }
  .hero__media { height: 320px; }
  .section, .cta-final { break-inside: avoid; }
  body { background: #fff; }
}
