/* =========================================================
   Marcella Braga · Fisioterapia & Saúde Íntima
   CSS puro, sem dependências
   ========================================================= */

:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --tint: #f3ece4;
  --ink: #1f2b28;
  --muted: #5c6763;
  --line: #e6ddd2;

  --brand: #2f4a43;        /* verde-sálvia profundo */
  --brand-2: #46695f;
  --accent: #c47a62;       /* terracota suave */
  --accent-soft: #f4e3dc;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 43, 40, .04), 0 12px 32px -12px rgba(31, 43, 40, .16);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s, background-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 74, 67, .6); }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); }
.btn-sm { padding: .6rem 1.1rem; font-size: .95rem; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 244, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.brand-text small { color: var(--muted); font-size: .8rem; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
  position: relative; padding: .3rem 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 em { font-style: italic; color: var(--brand-2); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2rem; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  background: var(--accent-soft); color: #8a4a36;
  padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 500;
}

.hero-photo { position: relative; justify-self: center; }
.photo-frame {
  position: relative;
  width: clamp(240px, 30vw, 340px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: 0 0 0 10px var(--surface), 0 0 0 11px var(--line), var(--shadow);
}
.photo-frame::before {
  content: ""; position: absolute; inset: -30px; z-index: -1;
  border-radius: 50%; border: 1.5px dashed var(--accent); opacity: .5;
  animation: spin 60s linear infinite;
}
.photo-frame::after {
  content: ""; position: absolute; z-index: -1; width: 60%; aspect-ratio: 1;
  right: -18%; top: -10%; border-radius: 50%; background: var(--accent-soft);
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-frame picture, .photo-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden; object-fit: cover;
}
.photo-frame img { transform: scale(1.03); }
.badge-card {
  position: absolute; left: -1.5rem; bottom: 1.5rem; z-index: 2;
  background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: .8rem 1.1rem; display: flex; flex-direction: column; line-height: 1.3;
}
.badge-card strong { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; color: var(--brand); }
.badge-card span { font-size: .85rem; color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head p:last-child { color: var(--muted); }

/* Sobre */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-text > p { color: #3c4744; }
.timeline { list-style: none; margin: .8rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .98rem;
}
.timeline span { font-family: var(--serif); font-size: 1.1rem; line-height: 1.3; color: var(--accent); }
.timeline strong { display: block; font-weight: 700; color: var(--ink); line-height: 1.35; }
.timeline small { display: block; color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: .2rem; }
.timeline small a { color: var(--brand); font-weight: 600; }
.timeline .tags { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.timeline .tags li { display: block; padding: .25rem .7rem; border: 0; border-radius: 999px; background: var(--accent-soft); color: #8a4a36; font-size: .82rem; font-weight: 600; }
.timeline-title { margin: 2.2rem 0 .2rem; font-size: 1.3rem; }
.svc-cred { display: inline-block; padding: .5rem .9rem; border-radius: 10px; background: var(--accent-soft); color: #8a4a36; font-size: .92rem; font-weight: 600; }
.svc-details { display: none; }

/* Cards de atendimento */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.cards .card { grid-column: span 2; }
.cards .card:nth-child(4) { grid-column: 2 / span 2; }
.card {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-more { text-decoration: none; }
.card-more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-more:focus-visible { outline: none; }
.card-icon {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 1.3rem;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  transition: background .25s, color .25s;
}
.card-icon svg { width: 28px; height: 28px; }
.card:hover .card-icon { background: var(--brand); color: #fff; }
.card h3 { font-size: 1.25rem; }
.card h3 small { display: block; font-family: var(--sans); font-size: .82rem; color: var(--muted); margin-top: .3rem; font-weight: 400; }
.card p { color: var(--muted); font-size: .97rem; flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: .4rem; color: var(--brand); font-weight: 600; font-size: .95rem; }
.card-more svg { width: 18px; height: 18px; transition: transform .25s; }
.card:hover .card-more svg { transform: translateX(4px); }

/* Etapas */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num { display: block; font: 400 2.6rem/1 var(--serif); color: var(--accent); margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

/* CTA */
.cta { padding: 0 0 clamp(4rem, 9vw, 7rem); }
.cta-inner {
  background: radial-gradient(circle at 85% 20%, var(--brand-2), var(--brand) 60%);
  color: #fff; border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 6vw, 4rem); text-align: center;
}
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.8); margin-bottom: 1.8rem; }

/* Contato */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 4rem); align-items: stretch; padding-top: 0; }
#contato { padding-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg {
  flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 360px; background: var(--tint); box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

/* Rodapé */
.site-footer { background: var(--brand); color: rgba(255,255,255,.75); padding: 2.5rem 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer-inner strong { font-family: var(--serif); font-weight: 500; color: #fff; font-size: 1.15rem; margin-right: .6rem; }
.footer-inner nav { display: flex; gap: 1.5rem; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: pulse 2.4s infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Modal ---------- */
.modal {
  width: min(680px, calc(100% - 2rem)); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .3s ease; }
.modal::backdrop { background: rgba(23, 33, 30, .55); backdrop-filter: blur(4px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-body { padding: 2.5rem 2.5rem 1rem; overflow-y: auto; }
.modal-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); padding-right: 2rem; }
.modal-body h3 { margin-top: 1.5rem; font-size: 1.15rem; color: var(--brand); }
.modal-foot { padding: 1.2rem 2.5rem 2rem; border-top: 1px solid var(--line); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--tint); color: var(--ink); font-size: 1.6rem; line-height: 1;
}
.modal-close:hover { background: var(--line); }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c47a62' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/70% no-repeat;
}
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }

/* Crédito */
.footer-legal { display: flex; flex-direction: column; gap: .3rem; }
.credit a { color: #fff; font-weight: 600; text-decoration: none; }
.credit a:hover { text-decoration: underline; }

/* ---------- Animações ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .cards .card, .cards .card:nth-child(4) { grid-column: auto; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; gap: 5px; width: 44px; height: 44px; place-content: center;
    background: transparent; border: 0; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
  .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); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.5rem;
    transform: translateY(-120%); visibility: hidden;
    transition: transform .35s ease, visibility .35s;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1.2rem; justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .badge-card { left: auto; right: -.5rem; bottom: .5rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cards, .steps, .cols { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .brand-text small { display: none; }
  .modal-body { padding: 2rem 1.4rem 1rem; }
  .modal-foot { padding: 1rem 1.4rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
