:root {
  --navy: #06172f;
  --navy-2: #0b2343;
  --gold: #c9a45c;
  --gold-soft: #ead9b5;
  --gray: #f4f6f8;
  --text: #172033;
  --muted: #667085;
  --white: #ffffff;
  --line: rgba(6, 23, 47, 0.12);
  --shadow: 0 24px 70px rgba(6, 23, 47, 0.14);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 84px 0; position: relative; }
.eyebrow {
  color: var(--gold);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  margin-bottom: 24px;
}
h2 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 18px;
}
h3 { color: var(--navy); line-height: 1.15; margin-bottom: 10px; }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading p, .hero-copy p, .doctor-copy p, .offer-box p, .final-cta p { color: var(--muted); font-size: 1.05rem; }

.site-header {
  left: 0;
  padding: 12px 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(6, 23, 47, 0.08);
}
.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  width: min(1180px, calc(100% - 28px));
}
.brand { align-items: center; display: flex; gap: 10px; font-weight: 900; color: var(--navy); }
.brand img { border-radius: 50%; box-shadow: 0 8px 18px rgba(6, 23, 47, 0.12); }
.nav-menu { align-items: center; display: flex; gap: 18px; font-size: 0.88rem; font-weight: 700; }
.nav-menu a:not(.nav-cta) { color: rgba(6, 23, 47, 0.78); transition: color 0.2s ease; }
.nav-menu a:hover { color: var(--gold); }
.social-links {
  align-items: center;
  display: flex;
  gap: 8px;
}
.social-links a {
  align-items: center;
  border: 1px solid rgba(6, 23, 47, 0.12);
  border-radius: 50%;
  color: rgba(6, 23, 47, 0.72);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  transition: border-color 0.22s ease, color 0.22s ease, transform 0.22s ease, background 0.22s ease;
  width: 36px;
}
.social-links svg {
  fill: currentColor;
  height: 17px;
  width: 17px;
}
.social-links a:hover {
  background: rgba(201, 164, 92, 0.1);
  border-color: rgba(201, 164, 92, 0.52);
  color: var(--gold);
  transform: translateY(-2px);
}
.nav-social { gap: 6px; margin-left: 2px; }
.nav-social a { height: 32px; width: 32px; }
.nav-social svg { height: 15px; width: 15px; }
.nav-cta, .btn {
  align-items: center;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary, .nav-cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  box-shadow: 0 18px 36px rgba(6, 23, 47, 0.22);
}
.btn-primary:hover, .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(6, 23, 47, 0.28); color: var(--white); }
.menu-toggle { display: none; background: var(--white); border: 1px solid var(--line); border-radius: 8px; height: 44px; width: 44px; }
.menu-toggle span { background: var(--navy); display: block; height: 2px; margin: 5px auto; width: 20px; }

.hero {
  min-height: 100vh;
  overflow: hidden;
  padding-top: 118px;
  background:
    radial-gradient(circle at 78% 18%, rgba(201,164,92,0.2), transparent 28%),
    radial-gradient(circle at 14% 22%, rgba(6,23,47,0.05), transparent 26%),
    linear-gradient(145deg, #ffffff 0%, #fafbfc 54%, #eef3f8 100%);
}
.hero-grid { align-items: center; display: grid; gap: clamp(38px, 7vw, 86px); grid-template-columns: 0.9fr 1.1fr; }
.hero-copy { max-width: 540px; padding-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.55rem);
  line-height: 0.98;
  margin-bottom: 22px;
}
.hero-copy p {
  color: rgba(23, 32, 51, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.65;
  max-width: 490px;
}
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; margin: 30px 0 24px; }
.rating-pill {
  align-items: center;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(201,164,92,0.34);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(6, 23, 47, 0.08);
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}
.rating-pill span, .stars { color: var(--gold); letter-spacing: 0.04em; }
.rating-pill small { color: var(--muted); }
.trust-row { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.trust-row div {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
}
.trust-row strong { color: var(--navy); display: block; font-size: 1.15rem; }
.trust-row span { color: var(--muted); font-size: 0.82rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}
.hero-meta span {
  align-items: center;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(6, 23, 47, 0.08);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  gap: 5px;
  line-height: 1;
  padding: 9px 12px;
}
.hero-meta strong {
  color: var(--navy);
  font-weight: 900;
}
.hero-social { margin-top: 24px; }
.hero-media { position: relative; }
.hero-portrait {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 620px;
}
.portrait-glow {
  background:
    radial-gradient(circle at 62% 26%, rgba(234,217,181,0.62), transparent 38%),
    linear-gradient(155deg, rgba(6,23,47,0.08), rgba(255,255,255,0));
  border-radius: 999px;
  filter: blur(2px);
  height: 88%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
}
.portrait-frame {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,246,248,0.82));
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 8px;
  box-shadow: 0 36px 96px rgba(6, 23, 47, 0.18), 0 0 0 12px rgba(255,255,255,0.42);
  margin: 0;
  overflow: hidden;
  padding: 12px;
  position: relative;
  transform: translateY(0);
  transition: transform 0.45s ease;
  width: min(470px, 92%);
  z-index: 1;
}
.portrait-frame::before {
  background: linear-gradient(120deg, rgba(255,255,255,0.42), transparent 42%);
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}
.portrait-frame img {
  aspect-ratio: 0.78;
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}
.hero-media > img { aspect-ratio: 0.9; border-radius: 8px; box-shadow: var(--shadow); object-fit: cover; width: 100%; }
.floating-card {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(6, 23, 47, 0.16);
  padding: 14px 16px;
  position: absolute;
}
.floating-card strong { color: var(--navy); display: block; }
.floating-card span { color: var(--muted); font-size: 0.86rem; }
.compact-card { padding: 12px 14px; z-index: 3; }
.card-top { right: 2%; top: 12%; animation: float 5s ease-in-out infinite; }
.card-bottom { bottom: 12%; left: 2%; animation: float 5s ease-in-out infinite 1.4s; }

.social-proof, .process, .services { background: var(--gray); }
.proof-grid, .cards-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.cards-grid.five { grid-template-columns: repeat(5, 1fr); }
.review-card, .pain-card, .service-card, .timeline-item {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(6,23,47,0.08);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(6, 23, 47, 0.07);
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.review-card:hover, .pain-card:hover, .service-card:hover, .timeline-item:hover { border-color: rgba(201,164,92,0.5); box-shadow: 0 24px 58px rgba(6,23,47,0.12); transform: translateY(-4px); }
.whatsapp-card { background: linear-gradient(155deg, rgba(255,255,255,0.92), rgba(234,217,181,0.42)); }
.bubble-label { background: #e8f7ee; border-radius: 999px; color: #0f7a3a; display: inline-flex; font-size: 0.78rem; font-weight: 900; margin-bottom: 12px; padding: 5px 10px; }
.metric-strip {
  background: var(--navy);
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  overflow: hidden;
}
.metric-strip span { background: rgba(255,255,255,0.05); padding: 18px; }
.metric-strip strong { color: var(--gold-soft); }
.icon, .service-icon {
  align-items: center;
  background: rgba(201,164,92,0.14);
  border: 1px solid rgba(201,164,92,0.38);
  border-radius: 50%;
  color: var(--gold);
  display: inline-flex;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  margin-bottom: 18px;
  width: 46px;
}

.timeline {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.timeline::before { background: linear-gradient(90deg, var(--gold), rgba(201,164,92,0.15)); content: ""; height: 2px; left: 8%; position: absolute; right: 8%; top: 31px; }
.timeline-item { position: relative; margin: 0 8px; }
.timeline-item span {
  align-items: center;
  background: var(--navy);
  border: 4px solid var(--gray);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  height: 62px;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  width: 62px;
  z-index: 1;
}

.compare-grid { display: grid; gap: 24px; grid-template-columns: 1.05fr 0.95fr; }
.compare-card { margin: 0; }
.before-after-slider { border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.before-after-slider img { height: 100%; object-fit: cover; width: 100%; }
.after-layer { clip-path: inset(0 48% 0 0); inset: 0; overflow: hidden; position: absolute; width: 100%; }
.after-layer img { height: 100%; width: 100%; }
.before-after-slider input {
  appearance: none;
  background: transparent;
  inset: 0;
  cursor: ew-resize;
  margin: 0;
  position: absolute;
  width: 100%;
}
.before-after-slider input::-webkit-slider-thumb {
  appearance: none;
  background: var(--gold);
  border: 4px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 0 0 999px rgba(255,255,255,0.35);
  height: 32px;
  width: 32px;
}
.compare-card figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.gallery-grid img { aspect-ratio: 1; border-radius: 8px; object-fit: cover; transition: transform 0.25s ease; width: 100%; }
.gallery-grid img:hover { transform: scale(1.025); }

.doctor-grid { align-items: center; display: grid; gap: 42px; grid-template-columns: 0.8fr 1.2fr; }
.doctor-photo img { border-radius: 8px; box-shadow: var(--shadow); margin: 0 auto; max-width: 360px; }
.check-list { display: grid; gap: 12px; list-style: none; margin: 24px 0 0; padding: 0; }
.check-list li { border-bottom: 1px solid var(--line); padding: 0 0 12px 28px; position: relative; }
.check-list li::before { color: var(--gold); content: "✓"; font-weight: 900; left: 0; position: absolute; }

.service-card { overflow: hidden; padding: 0; }
.service-card img { aspect-ratio: 1.55; object-fit: cover; width: 100%; }
.service-card h3, .service-card p, .service-card .service-icon { margin-left: 22px; margin-right: 22px; }
.service-card h3 { margin-top: 22px; }
.service-card p { color: var(--muted); margin-bottom: 24px; }
.service-card .service-icon { margin-top: 22px; }

.offer { background: linear-gradient(135deg, var(--navy), #102d50); color: var(--white); }
.offer-box {
  border: 1px solid rgba(234,217,181,0.34);
  border-radius: 8px;
  max-width: 820px;
  padding: 54px 28px;
  text-align: center;
}
.offer h2, .final-cta h2 { color: var(--white); }
.offer p, .final-cta p { color: rgba(255,255,255,0.74); }
.offer small { color: var(--gold-soft); display: block; margin-top: 18px; }
.offer .btn-primary, .final-cta .btn-primary { background: linear-gradient(135deg, var(--gold), #a9823d); }

.faq-grid { display: grid; gap: 38px; grid-template-columns: 0.9fr 1.1fr; }
.accordion { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.accordion-item {
  align-items: center;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  padding: 20px;
  text-align: left;
  width: 100%;
}
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-panel p { color: var(--muted); margin: 0; padding: 0 20px 20px; }

.final-cta { background: linear-gradient(rgba(6,23,47,0.86), rgba(6,23,47,0.86)), url("https://storage.googleapis.com/agendamentos-f091d.firebasestorage.app/businesses/gallery/1/1775512679785_2024-05-29.webp") center/cover; color: var(--white); text-align: center; }
.final-cta .container { max-width: 820px; }

.footer { background: #050d1b; color: rgba(255,255,255,0.72); padding: 62px 0 96px; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr 1.1fr; }
.footer h2 { color: var(--white); font-size: 1.8rem; }
.footer strong { color: var(--gold-soft); display: block; font-style: normal; margin-top: 10px; }
.footer a { color: var(--white); }
.footer-logo { border-radius: 50%; height: 58px; margin-bottom: 14px; width: 58px; }
.footer-social { margin: 18px 0; }
.footer-social a {
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.78);
}
.footer-social a:hover {
  background: rgba(201,164,92,0.12);
  border-color: rgba(234,217,181,0.52);
  color: var(--gold-soft);
}
.legal { font-size: 0.82rem; }
.map-wrap iframe { border: 0; border-radius: 8px; height: 260px; width: 100%; }

.floating-whatsapp {
  align-items: center;
  background: #20c063;
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 18px 38px rgba(32,192,99,0.35);
  color: var(--white);
  display: flex;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 22px;
  width: 58px;
  z-index: 900;
}
.mobile-sticky { display: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 980px) {
  .nav-menu {
    background: rgba(255,255,255,0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    position: absolute;
    right: 14px;
    top: 70px;
    width: min(340px, calc(100vw - 28px));
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { border-radius: 6px; padding: 14px; width: 100%; }
  .nav-social {
    border-top: 1px solid var(--line);
    justify-content: flex-start;
    margin: 6px 0 0;
    padding: 10px 14px 4px;
    width: 100%;
  }
  .nav-social a { padding: 0; width: 34px; }
  .menu-toggle { display: block; }
  .hero-grid, .compare-grid, .doctor-grid, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-portrait { min-height: 540px; }
  .portrait-frame { width: min(430px, 76vw); }
  .cards-grid, .cards-grid.five, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr 1fr; gap: 18px; }
  .timeline::before { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { min-height: auto; padding-top: 104px; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .rating-pill { justify-content: center; }
  .hero-meta { gap: 8px; }
  .hero-meta span {
    flex: 1 1 calc(50% - 8px);
    font-size: 0.76rem;
    justify-content: center;
    min-height: 38px;
    text-align: center;
  }
  .hero-social { justify-content: center; margin-top: 20px; }
  .hero-portrait { min-height: auto; padding: 22px 0 10px; }
  .portrait-glow { height: 78%; width: 96%; }
  .portrait-frame {
    box-shadow: 0 24px 64px rgba(6, 23, 47, 0.16), 0 0 0 8px rgba(255,255,255,0.46);
    padding: 9px;
    width: min(360px, 86vw);
  }
  .trust-row, .cards-grid, .cards-grid.five, .proof-grid, .metric-strip, .timeline, .gallery-grid { grid-template-columns: 1fr; }
  .floating-card { left: 12px; right: 12px; }
  .card-top { display: none; }
  .card-bottom { bottom: 22px; left: 6px; right: 6px; margin: 0 auto; max-width: 300px; text-align: center; }
  .floating-whatsapp { bottom: 92px; height: 52px; right: 16px; width: 52px; }
  .mobile-sticky {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(18px);
    bottom: 0;
    display: block;
    left: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 950;
  }
  .footer { padding-bottom: 130px; }
}
