/* ============================================================
   Centro de Reabilitação Letícia Lustoza — Design System
   Paleta verde clínica (#19693d / #e1ffee / branco)
   Tipografia: Fraunces (títulos, serifa suave) · Inter (corpo)
   ============================================================ */
:root {
  /* Brand */
  --green: #19693d;
  --green-800: #0f4a2a;
  --green-700: #124e2c;
  --green-600: #1f7a49;
  --green-500: #2f9a5f;
  --green-300: #7bc4a0;
  --mint: #e1ffee;
  --mint-50: #f2fbf6;
  --mint-100: #e9f7ef;

  /* Neutrals (levemente tingidos de verde p/ coesão) */
  --ink: #17241d;
  --muted: #5a6b61;
  --line: #e2ede7;
  --bg: #ffffff;
  --bg-alt: #f4faf6;
  --white: #ffffff;
  --whats: #25d366;

  /* System */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 74, 42, .06), 0 6px 18px rgba(16, 74, 42, .05);
  --shadow-md: 0 14px 36px rgba(16, 74, 42, .12);
  --shadow-lg: 0 28px 64px rgba(16, 74, 42, .18);
  --container: 1180px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --ff-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ff-display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--ff-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.14; color: var(--green-800); letter-spacing: -.01em; font-weight: 600; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 700px; margin: 0 auto 60px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 1rem + 2.6vw, 2.7rem); margin: 14px 0 14px; }
.section__head p { color: var(--muted); font-size: 1.08rem; }

.eyebrow {
  display: inline-block; font-family: var(--ff-sans); font-weight: 600; font-size: .8rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green-600);
}
.eyebrow--light { color: var(--green-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-sans); font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.btn--sm { padding: 11px 20px; font-size: .9rem; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(25, 105, 61, .28); }
.btn--primary:hover { background: var(--green-700); box-shadow: 0 14px 30px rgba(25, 105, 61, .38); }
.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--light { background: #fff; color: var(--green-800); }
.btn--light:hover { box-shadow: var(--shadow-lg); }
.btn--whats { background: var(--whats); color: #fff; box-shadow: 0 10px 24px rgba(37, 211, 102, .3); }
.btn--whats svg { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 12px 0; }

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__mark { height: 54px; width: 54px; flex: none; }
.brand__name { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.brand__name small { font-size: .68rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.brand__name strong { font-family: var(--ff-display); font-weight: 600; font-size: 1.34rem; color: var(--green-800); letter-spacing: -.01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { font-weight: 500; font-size: .96rem; color: var(--ink); position: relative; padding: 6px 0; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green); transition: width .25s var(--ease);
}
.nav > a:not(.btn):hover { color: var(--green); }
.nav > a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--green-800); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(1100px 540px at 88% -12%, var(--mint), transparent 62%),
  linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.02fr .98fr; gap: 60px; align-items: center; padding: 88px 0 100px; }
.hero h1 { font-size: clamp(2.15rem, 1.1rem + 3.8vw, 3.5rem); margin: 20px 0 22px; font-weight: 600; }
.hero__lead { font-size: 1.16rem; color: var(--muted); max-width: 32em; }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 38px; }
.hero__trust { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 30px; border-top: 1px solid var(--line); }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--ff-display); font-weight: 600; font-size: 1.7rem; color: var(--green); }
.hero__trust span { font-size: .86rem; color: var(--muted); }

/* Hero visual */
.hero__visual { position: relative; }
.hero__photo { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15, 74, 42, .18)); }
.hero__chip {
  position: absolute; left: -18px; bottom: 26px; z-index: 3; padding: 16px 22px;
  display: flex; flex-direction: column; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: var(--shadow-md); animation: float 7s var(--ease) infinite;
}
.hero__chip-num { font-family: var(--ff-display); font-weight: 600; font-size: 1.7rem; }
.hero__chip-txt { font-size: .76rem; color: #d6f2e2; letter-spacing: .04em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid--split { grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.grid--split-rev .team__content { order: 1; }

/* ---------- About / media photo ---------- */
.about__media, .team__media { position: relative; }
.about__photo {
  position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.2;
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__tag {
  position: absolute; left: 20px; bottom: 20px; right: 20px; z-index: 2;
  display: flex; align-items: center; gap: 18px; padding: 18px 20px; color: #fff;
  background: rgba(15, 74, 42, .38); border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px; backdrop-filter: blur(10px);
}
.about__tag strong { flex: none; font-family: var(--ff-display); font-weight: 600; font-size: 1.7rem; line-height: 1; }
.about__tag span { font-size: .92rem; color: #eafaf1; line-height: 1.4; }
.about__tag b { color: #fff; font-weight: 700; }

.about__content h2 { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.4rem); margin: 14px 0 18px; }
.about__content > p { color: var(--muted); margin-bottom: 8px; }

/* ---------- Services (o que fazemos + árvore) ---------- */
.services__title { font-size: 1.15rem; margin: 26px 0 16px; color: var(--green-800);
  font-family: var(--ff-sans); font-weight: 700; letter-spacing: -.01em; }
.services { display: grid; gap: 4px; }
.services__item { display: flex; align-items: flex-start; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.services__item:last-child { border-bottom: 0; }
.services__dot { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%;
  background: var(--mint); border: 3px solid var(--green-500); }
.services__name { font-size: 1.04rem; font-weight: 600; color: var(--ink); }
.services__name em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .92rem; }
.services__item--more .services__name { color: var(--muted); font-weight: 500; }
.services__item--more .services__dot { border-color: var(--green-300); }

/* árvore da fisioterapia */
.services__tree { margin: 12px 0 4px; padding-left: 6px; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.services__tree li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--muted); }
.services__tree li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 50%; width: 12px;
  border-left: 2px solid var(--line); border-bottom: 2px solid var(--line);
  border-bottom-left-radius: 8px;
}
.services__tree li::after { content: ""; position: absolute; left: 12px; top: calc(50% - 3px);
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }
.services__tree li.is-more { color: var(--green-600); font-weight: 600; }

/* ---------- Convênios (nuvem flutuante) ---------- */
.conv { max-width: 940px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 40px 32px; box-shadow: var(--shadow-md); }
.conv__label { font-family: var(--ff-sans); font-weight: 600; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.conv__cloud { display: flex; flex-wrap: wrap; gap: 16px 18px; justify-content: center; align-items: center; min-height: 96px; }
.conv__chip {
  display: inline-flex; align-items: baseline; gap: .35em;
  padding: 14px 24px; border-radius: 999px; font-size: 1.02rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(16, 74, 42, .07);
  will-change: transform; animation: convfloat var(--dur, 6s) ease-in-out var(--del, 0s) infinite;
}
.conv__chip b { font-weight: 700; color: var(--c, var(--green)); }
.conv__chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--green)); align-self: center; margin-right: .2em; }
@keyframes convfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.conv__note { margin-top: 26px; font-size: .96rem; color: var(--muted); }
.conv__note a { color: var(--green); font-weight: 600; }
.conv__note a:hover { text-decoration: underline; }

/* ---------- Equipe / capacitação ---------- */
.team__content h2 { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.4rem); margin: 14px 0 18px; }
.team__content > p { color: var(--muted); margin-bottom: 26px; }
.team__content > p strong { color: var(--ink); }
.team__stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.team__stats li { flex: 1 1 140px; background: var(--mint-50); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 18px; }
.team__stats strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 2rem; color: var(--green); line-height: 1; }
.team__stats span { font-size: .9rem; color: var(--muted); }
.team__media .about__photo { aspect-ratio: 4 / 3.6; }

/* ---------- CTA / números + missão ---------- */
.section--cta { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%); }
.section--cta::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 12% 0%, rgba(123, 196, 160, .22), transparent 60%); }
.cta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.cta__text h2 { color: #fff; font-size: clamp(1.7rem, 1rem + 2.2vw, 2.4rem); margin: 12px 0 16px; max-width: 15em; }
.cta__text p { color: #d3eae0; max-width: 40em; }
.cta__text p strong { color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stats li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px; padding: 24px 22px; }
.stats strong { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 1.7rem; color: #fff; line-height: 1.05; }
.stats span { font-size: .92rem; color: #cfe7db; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.gallery__item { position: relative; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(15,74,42,.16)); opacity: 0; transition: opacity .4s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__note { text-align: center; margin-top: 22px; font-size: .92rem; color: var(--muted); }

/* ---------- Contato ---------- */
.contact__info h2 { font-size: clamp(1.7rem, 1rem + 2.2vw, 2.4rem); margin: 14px 0 14px; }
.contact__info > p { color: var(--muted); margin-bottom: 28px; }
.contact__list { display: grid; gap: 20px; margin-bottom: 30px; }
.contact__list li { display: flex; gap: 16px; }
.contact__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mint-100); color: var(--green); }
.contact__ico svg { width: 22px; height: 22px; }
.contact__list strong { display: block; color: var(--green-800); font-family: var(--ff-sans); font-weight: 700; font-size: .98rem; margin-bottom: 3px; }
.contact__list div { color: var(--muted); font-size: .97rem; }
.contact__list a:hover { color: var(--green); }
.contact__map { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-md); min-height: 440px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--green-800); color: #bfe0cd; padding-top: 66px; }
.footer .brand__mark { height: 46px; width: 46px; }
.footer .brand__name small { color: #8fc4a8; }
.footer .brand__name strong { color: #fff; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin-top: 16px; font-size: .94rem; max-width: 32em; color: #9ccbb2; }
.footer h4 { color: #fff; font-family: var(--ff-sans); font-size: .96rem; margin-bottom: 16px; }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav a, .footer__contact a { color: #bfe0cd; font-size: .94rem; transition: color .2s; }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__contact p { font-size: .94rem; margin-bottom: 8px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: .86rem; color: #8fc4a8; }

/* ---------- WhatsApp float ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 18px; background: var(--whats); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.whats-float svg { width: 30px; height: 30px; }
.whats-float:hover { transform: scale(1.08); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; padding: 60px 0 76px; }
  .hero__visual { max-width: 520px; }
  .grid--split { grid-template-columns: 1fr; gap: 44px; }
  .grid--split-rev .team__content { order: 0; }
  .cta__inner { grid-template-columns: 1fr; gap: 34px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 18px 24px 26px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .35s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav > a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 10px; text-align: center; }
  .services__tree { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery__item--wide, .gallery__item--tall { grid-column: auto; grid-row: auto; }
  .brand__name small { font-size: .62rem; }
  .brand__name strong { font-size: 1.16rem; }
}

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