/* ==========================================================
   Clínica Majora – estilos
   ========================================================== */
:root {
  /* Cores da marca (logo Majóra) */
  --c-primary: #0c242d;
  --c-primary-2: #16404d;
  --c-accent: #2eac84;
  --c-accent-2: #1f8a68;
  --c-ink: #14232b;
  --c-muted: #5a6b72;
  --c-line: #e3ebe9;
  --c-bg: #fbfcfb;
  --c-tint: #f1f6f4;
  --c-white: #ffffff;
  --c-wa: #25d366;
  --c-star: #f5b301;

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

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(12, 36, 45, .22);
  --shadow-lg: 0 30px 60px -20px rgba(12, 36, 45, .35);
  --container: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h1 em { font-style: italic; font-weight: 500; color: var(--c-accent-2); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-primary-2);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 2px; background: var(--c-accent);
  vertical-align: middle; margin-right: 10px;
}
.eyebrow-light { color: var(--c-accent); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--c-primary-2); box-shadow: var(--shadow-lg); }
.btn-ghost { border-color: var(--c-primary); color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary); color: #fff; }
.btn-light { background: #fff; color: var(--c-primary); }
.btn-light:hover { background: var(--c-accent); color: #fff; }
.btn-wa { background: var(--c-wa); color: #083b1d; }
.btn-wa:hover { background: #1fbd59; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 251, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none; font-weight: 500; color: var(--c-ink); position: relative; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--c-accent); transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-primary); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--c-white); border-bottom: 1px solid var(--c-line);
    padding: 8px 16px 20px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--c-line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 96px;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(46, 172, 132, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(22, 64, 77, .10), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--c-muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }

.hero-stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--c-primary); line-height: 1.1; }
.hero-stats li > span { font-size: .9rem; color: var(--c-muted); }
.hero-stats .star { color: var(--c-star); font-size: 1.4rem; }

.hero-visual { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.hero-photo {
  position: relative; z-index: 1; margin: 0;
  border-radius: 140px var(--radius) var(--radius) var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero-ring {
  position: absolute; z-index: 0; inset: -18px -18px 30px 30px;
  border: 2px solid var(--c-accent); border-radius: 160px 24px 24px 24px; opacity: .45;
}
.hero-badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  font-size: .88rem; animation: float 6s ease-in-out infinite;
}
.hero-badge strong { display: block; color: var(--c-ink); }
.hero-badge small { color: var(--c-muted); }
.badge-icon {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--c-tint); color: var(--c-accent-2);
}
.badge-icon svg { width: 20px; height: 20px; }
.hero-badge-a { top: 18%; left: -48px; }
.hero-badge-a .badge-icon { color: var(--c-star); background: #fff7df; }
.hero-badge-b { bottom: 12%; right: -40px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }

@media (max-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 340px; }
  /* selos na metade de baixo da foto, para não cobrir o rosto */
  .hero-badge-a { top: auto; bottom: 24%; left: -16px; }
  .hero-badge-b { bottom: 5%; right: -16px; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 1.6rem; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { max-width: 300px; }
  .hero-badge { font-size: .78rem; padding: 10px 12px; }
  .hero-badge-a { left: -10px; }
  .hero-badge-b { right: -10px; }
}

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.section-tint { background: var(--c-tint); }
.section-dark { background: var(--c-primary); color: #fff; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--c-muted); }
.section-dark .section-head p:last-child { color: rgba(255,255,255,.75); }
@media (max-width: 600px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-text > p { color: var(--c-muted); }
.about-media { position: relative; padding-bottom: 40px; max-width: 460px; justify-self: center; width: 100%; }
.about-photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 8%;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.about-card {
  position: absolute; right: -16px; bottom: 0; max-width: 300px;
  display: flex; gap: 14px; align-items: center;
  background: var(--c-primary); color: #fff; border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow-lg);
}
.about-card img { flex: none; filter: brightness(0) invert(1); opacity: .9; }
.about-card p { margin: 0; line-height: 1.3; }
.about-card strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.about-card span { font-size: .88rem; opacity: .8; }

.values { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values svg { width: 28px; height: 28px; color: var(--c-accent-2); flex: none; margin-top: 2px; }
.values strong { display: block; }
.values span { color: var(--c-muted); font-size: .95rem; }

.rt-note {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 10px 16px; border-radius: 999px; background: var(--c-tint);
  font-size: .9rem; color: var(--c-primary);
}
.rt-note svg { width: 18px; height: 18px; color: var(--c-accent-2); flex: none; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 520px; margin: 0 auto; width: 100%; }
  .about-card { right: 12px; }
}
@media (max-width: 480px) {
  .about-card { position: relative; right: auto; margin: -36px 12px 0; max-width: none; }
  .about-media { padding-bottom: 0; }
  .rt-note { border-radius: var(--radius-sm); }
}

/* ---------- Procedimentos ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter {
  font: 500 .95rem var(--font-body); cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--c-line); background: #fff; color: var(--c-primary);
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--c-accent); }
.filter.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card[hidden] { display: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--c-tint); color: var(--c-primary); margin-bottom: 18px;
  transition: background .25s, color .25s;
}
.card:hover .card-icon { background: var(--c-primary); color: var(--c-accent); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-cat { margin: 0 0 4px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent-2); }
.card p { color: var(--c-muted); font-size: .96rem; }
.card p:not(.card-cat) { flex: 1; }
.card-link { font-weight: 600; color: var(--c-primary-2); text-decoration: none; }
.card-link span { display: inline-block; transition: transform .2s; }
.card-link:hover span { transform: translateX(4px); }

@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 28px; padding: 0 16px 4px; scrollbar-width: none; }
  .filter { flex: none; }
}

/* ---------- Resultados ---------- */
.results { columns: 4 220px; column-gap: 20px; }
.result { margin: 0 0 22px; break-inside: avoid; }
.result-btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.result-btn img { width: 100%; height: auto; transition: transform .4s ease; }
.result-btn:hover img { transform: scale(1.04); }
.result figcaption { margin-top: 12px; font-weight: 600; text-align: center; color: var(--c-primary); }
.disclaimer { margin: 28px 0 0; text-align: center; font-size: .85rem; color: var(--c-muted); }
@media (max-width: 520px) { .results { columns: 2; column-gap: 12px; } .result { margin-bottom: 16px; } }
@media (max-width: 420px) { .results { gap: 14px; } }

.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 560px); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(12, 36, 45, .85); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); background: #fff; }
.lightbox-caption { margin: 12px 0 0; text-align: center; color: #fff; font-weight: 600; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #fff; color: var(--c-primary); font-size: 1.6rem; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow);
}

/* ---------- Como agendar ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px 28px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
  background: var(--c-primary); color: var(--c-accent); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
}
.step p { margin: 0; color: var(--c-muted); }
.step p strong { color: var(--c-primary); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ---------- Depoimentos ---------- */
.rating-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.stars { color: var(--c-star); letter-spacing: 2px; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  position: relative; margin: 0; padding: 30px 28px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
}
.testimonial .quote-icon { position: absolute; right: 22px; top: 22px; width: 34px; height: 34px; color: var(--c-accent); opacity: .5; }
.testimonial .stars { margin: 0 0 12px; font-size: 1rem; }
.testimonial p:not(.stars) { color: rgba(255,255,255,.9); font-size: 1.02rem; }
.testimonial footer { margin-top: 18px; font-weight: 600; }
.testimonial footer span { font-weight: 400; color: rgba(255,255,255,.6); font-size: .9rem; }
@media (max-width: 960px) { .testimonials { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }

/* ---------- CTA ---------- */
.cta { padding: 100px 0 20px; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 56px 60px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(46, 172, 132, .45), transparent 60%),
    linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { margin: 0; opacity: .85; }
.cta .btn { flex: none; }
@media (max-width: 760px) {
  .cta { padding-top: 72px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 40px 26px; }
  .cta .btn { width: 100%; }
}

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list svg {
  width: 46px; height: 46px; padding: 11px; border-radius: 14px; flex: none;
  background: var(--c-tint); color: var(--c-primary);
}
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 600; }
.contact-list span, .contact-list a { font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--c-accent-2); text-decoration: underline; }

.booking {
  background: #fff; border: 1px solid var(--c-line); border-radius: 24px;
  padding: 36px; box-shadow: var(--shadow);
}
.booking > p { color: var(--c-muted); }
.booking label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
.optional { font-weight: 400; color: var(--c-muted); }
.booking input, .booking select, .booking textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 13px 14px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm);
  font: 400 1rem var(--font-body); color: var(--c-ink); background: var(--c-bg);
  transition: border-color .2s, box-shadow .2s;
}
.booking textarea { resize: vertical; }
.booking input:focus, .booking select:focus, .booking textarea:focus {
  outline: none; border-color: var(--c-accent-2); box-shadow: 0 0 0 4px rgba(46, 172, 132, .15);
}
.form-error { color: #b42318; font-size: .92rem; }
.contact-photo { margin: 36px 0 0; max-width: 360px; }
.contact-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--c-muted); }
.booking .btn { margin-top: 6px; }

.map-wrap { margin-top: 64px; }
.map-wrap iframe {
  width: 100%; height: 380px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); filter: saturate(.85);
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .booking { padding: 26px 20px; } .map-wrap iframe { height: 300px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-primary); color: rgba(255,255,255,.75); padding: 48px 0 104px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.footer-info p { margin: 0 0 4px; }
.brand-footer img { height: 72px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); color: #fff; transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: var(--c-accent); border-color: var(--c-accent); }
.footer-copy {
  grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.footer-copy p { margin: 0; }
.footer-credit a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--c-accent); }
.footer-credit a:hover { color: var(--c-accent); }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--c-wa); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float::before { animation: none; } }
@media (max-width: 520px) { .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
