/* ============================================================
   FISIMED — Fisioterapia em Muriaé
   Design system: teal + warm cream + gold
   ============================================================ */

:root {
  --teal-900: #002a1f;
  --teal-800: #004533;
  --teal-700: #017d73;
  --teal-600: #0a9589;
  --teal-500: #2cb3a4;
  --teal-100: #d4ede9;
  --teal-50:  #ecf7f4;

  --gold:     #c89968;
  --gold-dark:#8e6a3f;

  --ink-950:  #0e1522;
  --ink-900:  #1e293b;
  --ink-700:  #334155;
  --ink-500:  #64748b;
  --ink-400:  #94a3b8;
  --ink-300:  #cbd5e1;

  --cream:    #faf7f2;
  --cream-2:  #f3ede4;
  --surface:  #ffffff;
  --bg-mist:  #f5f8f7;

  --wa:       #25D366;
  --wa-dark:  #128C7E;

  --line:     #e8ede8;
  --line-2:   #dfe7e4;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(0,42,31,.04);
  --shadow-sm: 0 4px 12px -2px rgba(0,42,31,.08);
  --shadow:    0 14px 32px -8px rgba(0,42,31,.12);
  --shadow-lg: 0 30px 60px -12px rgba(0,42,31,.18);

  --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Roboto', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 42px);

  --header-h: 76px;
}

/* ========== Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-900);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-800); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .55em;
  color: var(--ink-950);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 700; }
p  { margin: 0 0 1em; }

::selection { background: var(--teal-700); color: #fff; }

/* ========== Container ========== */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 50px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--big { padding: 18px 32px; min-height: 58px; font-size: 1.02rem; }
.btn--primary { background: var(--teal-700); color: #fff; box-shadow: 0 10px 24px -6px rgba(1,125,115,.42); }
.btn--primary:hover { background: var(--teal-800); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(1,125,115,.52); }
.btn--wa { background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; box-shadow: 0 12px 28px -6px rgba(37,211,102,.42); }
.btn--wa:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px -8px rgba(37,211,102,.52); }
.btn--ghost { background: transparent; color: var(--teal-800); border-color: var(--teal-700); }
.btn--ghost:hover { background: var(--teal-50); color: var(--teal-800); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* ========== Topbar ========== */
.topbar {
  background: var(--teal-800);
  color: #fff;
  font-size: .85rem;
  padding: 8px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: var(--teal-100); }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .topbar { font-size: .78rem; } .topbar__item--muted { display: none; } }

/* ========== Header ========== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  min-height: var(--header-h);
}
.hdr__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
  min-height: var(--header-h);
}
.hdr__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hdr__brand img { height: 44px; width: auto; }
.hdr__brand-txt { font-family: var(--font-display); font-weight: 700; color: var(--teal-800); font-size: 1.15rem; letter-spacing: 0.01em; }
.hdr__spacer { flex: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block;
  padding: 10px 16px;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--r-sm);
  transition: color .12s, background .12s;
}
.nav a:hover, .nav a.is-active { color: var(--teal-700); background: var(--teal-50); }
.nav .btn { margin-left: 10px; }
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  position: relative; border-radius: var(--r-sm);
}
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ink-900); border-radius: 2px;
  transition: transform .2s, top .2s, opacity .2s;
  content: '';
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before { top: -8px; }
.burger span::after  { top:  8px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(8px) rotate(45deg); }
.burger.is-open span::after  { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px var(--gutter);
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    gap: 0;
    border-top: 1px solid var(--line);
    z-index: 48;
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; }
  body.nav-open { overflow: hidden; }
}

/* ========== Sections ========== */
.sec { padding: clamp(56px, 8vw, 96px) 0; }
.sec--cream { background: var(--cream); }
.sec--white { background: var(--surface); }
.sec--mist  { background: var(--bg-mist); }
.sec--teal  { background: var(--teal-800); color: #fff; }
.sec--teal h1, .sec--teal h2, .sec--teal h3 { color: #fff; }
.sec__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec__head--center { margin-inline: auto; text-align: center; }
.sec__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: var(--r-full);
  background: var(--teal-50); color: var(--teal-800);
  font-family: var(--font-display); font-weight: 600; font-size: .74rem;
  letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 14px;
}
.sec__eyebrow--light { background: rgba(255,255,255,.15); color: #fff; }
.sec__lead { font-size: 1.08rem; color: var(--ink-700); max-width: 60ch; }
.sec--teal .sec__lead { color: rgba(255,255,255,.82); }

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 10vw, 110px);
  background:
    radial-gradient(ellipse at top right, rgba(1,125,115,.14), transparent 50%),
    linear-gradient(135deg, var(--cream) 0%, var(--teal-50) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title { line-height: 1.08; }
.hero__title em { font-style: italic; color: var(--teal-700); }
.hero__lead { font-size: 1.14rem; color: var(--ink-700); max-width: 54ch; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 20px; color: var(--ink-500); font-size: .9rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { color: var(--teal-700); flex-shrink: 0; }
.hero__visual { position: relative; }
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero__card {
  position: absolute;
  bottom: -24px; left: -24px;
  background: #fff;
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  max-width: 270px;
}
.hero__card h4 { color: var(--teal-800); margin-bottom: 4px; font-size: 1rem; }
.hero__card p { font-size: .88rem; color: var(--ink-500); margin: 0; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 480px; margin-inline: auto; }
  .hero__card { left: -16px; bottom: -16px; max-width: 240px; }
}

/* ========== Pillars (Especialidades/Tratamentos) ========== */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-100); color: inherit; }
.pillar__mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: grid; place-items: center;
  margin-bottom: 20px;
  font-size: 28px;
}
.pillar h3 { color: var(--ink-950); margin-bottom: 10px; }
.pillar p { color: var(--ink-700); font-size: .96rem; margin-bottom: 20px; }
.pillar__link {
  margin-top: auto;
  color: var(--teal-700); font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.pillar:hover .pillar__link { color: var(--teal-800); gap: 10px; }

/* ========== Conditions grid ========== */
.cond-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cond {
  background: #fff;
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cond:hover { border-color: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--ink-900); }
.cond__ico { width: 40px; height: 40px; background: var(--teal-50); color: var(--teal-700); border-radius: 10px; display: grid; place-items: center; font-size: 20px; }
.cond h4 { color: var(--ink-950); margin: 0; font-size: 1rem; }
.cond p { color: var(--ink-500); font-size: .85rem; margin: 0; }
.cond__link { color: var(--teal-700); font-family: var(--font-display); font-weight: 600; font-size: .82rem; margin-top: auto; }

/* ========== Steps / Process ========== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  position: relative;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem; color: var(--teal-50); line-height: 1;
}
.step h4 { color: var(--teal-800); margin-bottom: 10px; max-width: 85%; }
.step p { color: var(--ink-700); font-size: .95rem; margin: 0; }

/* ========== CTA Band ========== */
.ctaband {
  background: linear-gradient(135deg, var(--teal-800) 0%, var(--teal-700) 60%, var(--teal-600) 100%);
  color: #fff;
  padding: clamp(48px, 7vw, 72px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ctaband::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,.08), transparent 55%);
}
.ctaband > .wrap { position: relative; }
.ctaband h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.ctaband p  { color: rgba(255,255,255,.82); max-width: 52ch; margin: 10px auto 28px; }
.ctaband__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ========== Breadcrumb ========== */
.crumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: .88rem; color: var(--ink-500);
  padding: 20px 0 0;
}
.crumb a { color: var(--ink-500); }
.crumb a:hover { color: var(--teal-700); }
.crumb span.sep { color: var(--ink-300); }
.crumb span.curr { color: var(--ink-900); font-weight: 500; }

/* ========== Treatment / Condition page layout ========== */
.phero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--cream) 100%);
}
.phero__eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--teal-700); font-family: var(--font-display); font-weight: 600;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.phero__title { max-width: 24ch; }
.phero__lead { font-size: 1.14rem; color: var(--ink-700); max-width: 56ch; margin-top: 16px; }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: flex-start; }
.content-grid__main p { font-size: 1.02rem; color: var(--ink-700); line-height: 1.75; }
.content-grid__main h2 { margin-top: 2em; margin-bottom: 0.5em; }
.content-grid__main h2:first-child { margin-top: 0; }
.content-grid__main h3 { color: var(--teal-800); margin-top: 1.5em; }
.content-grid__main ul, .content-grid__main ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.content-grid__main li { margin-bottom: .55em; color: var(--ink-700); line-height: 1.7; }
.content-grid__main li strong { color: var(--ink-950); }
.content-grid__main blockquote {
  margin: 1.5em 0;
  padding: 20px 24px;
  background: var(--teal-50);
  border-left: 4px solid var(--teal-700);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--ink-900);
  font-style: italic;
}
.sidebar {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}
.sidebar h3 { color: var(--teal-800); font-size: 1.15rem; margin-bottom: 12px; }
.sidebar p { font-size: .95rem; color: var(--ink-700); }
.sidebar .btn { width: 100%; margin-top: 16px; }
.sidebar__item { padding: 14px 0; border-top: 1px solid var(--line); display: flex; align-items: start; gap: 10px; font-size: .9rem; color: var(--ink-700); }
.sidebar__item:first-of-type { border-top: 0; }
.sidebar__item strong { color: var(--ink-950); display: block; margin-bottom: 2px; }
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

/* ========== Tags ========== */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { display: inline-block; padding: 5px 12px; background: var(--teal-50); color: var(--teal-800); border-radius: var(--r-full); font-size: .78rem; font-family: var(--font-display); font-weight: 500; }

/* ========== Testimonial ========== */
.testi { background: var(--cream-2); padding: 32px; border-radius: var(--r-lg); position: relative; }
.testi::before { content: "\201C"; position: absolute; top: -12px; left: 24px; font-size: 90px; color: var(--teal-100); font-family: Georgia, serif; line-height: 1; }
.testi p { font-size: 1.08rem; color: var(--ink-900); font-style: italic; margin-bottom: 20px; position: relative; }
.testi__author { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-500); }
.testi__author strong { color: var(--ink-900); display: block; font-style: normal; }

/* ========== FAQ ========== */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-950);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-700); font-size: 1.4rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 22px; color: var(--ink-700); border-top: 1px solid var(--line); padding-top: 16px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ========== Footer ========== */
.ftr { background: var(--teal-900); color: rgba(255,255,255,.76); padding: 56px 0 24px; }
.ftr__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .ftr__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ftr__brand { grid-column: 1 / -1; }
}
.ftr__brand img { height: 48px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .9; }
.ftr__brand p { color: rgba(255,255,255,.68); max-width: 32ch; font-size: .92rem; }
.ftr h4 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ftr a { color: rgba(255,255,255,.72); font-size: .95rem; }
.ftr a:hover { color: var(--teal-500); }
.ftr__base {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: rgba(255,255,255,.5);
}

/* ========== Mobile sticky bar ========== */
.fis-mobar { display: none; }
@media (max-width: 768px) {
  .fis-mobar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--teal-900);
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom)) 10px;
    box-shadow: 0 -8px 24px rgba(0,0,0,.28);
    gap: 10px;
  }
  .fis-mobar__btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    min-height: 54px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    font-family: var(--font-display);
  }
  .fis-mobar__btn svg { flex: 0 0 22px; }
  .fis-mobar__btn strong { display: block; font-size: 14px; }
  .fis-mobar__btn small { display: block; font-size: 11px; font-weight: 500; opacity: .85; margin-top: 2px; letter-spacing: .02em; }
  .fis-mobar__btn--wa  { background: linear-gradient(135deg, #25D366, #128C7E); }
  .fis-mobar__btn--tel { background: linear-gradient(135deg, var(--teal-700), var(--teal-800)); }
  .fis-mobar__btn:active { transform: scale(.97); }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  body.nav-open .fis-mobar { display: none; }
}

/* ========== Utility ========== */
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
