/* IVAS — Instituto Vontade Ação e Saúde */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #ffffff;
  --section: #eff6ee;
  --action: #21cbd0;
  --action-dark: #0e8f93;
  --highlight: #adcf54;
  --ink: #0f2a2b;
  --ink-soft: #3d5556;
  --line: #d6e5d4;
  --on-action: #062728; /* texto escuro sobre turquesa/verde: contraste AA */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 42, 43, 0.08);
  --max: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: Manrope, Inter, sans-serif; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--action-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--section); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--highlight); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: #4fdade; color: var(--on-action); box-shadow: 0 8px 20px rgba(33, 203, 208, .35); }
.btn--green { background: var(--highlight); color: var(--on-action); }
.btn--green:hover { background: #c0dd73; color: var(--on-action); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); isolation: isolate;
}
/* O blur fica num pseudo-elemento: backdrop-filter no próprio header prenderia o menu mobile dentro dele */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: Manrope, sans-serif; font-weight: 800; }
.logo img { height: 48px; width: auto; }
.logo-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--action), var(--highlight)); color: var(--on-action); font-size: .95rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.25rem; }
.logo-text small { font: 500 .7rem Inter, sans-serif; color: var(--ink-soft); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav > ul a, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font: 500 .97rem Inter, sans-serif; background: none; border: 0; cursor: pointer;
}
.nav > ul a:hover, .nav button.nav-link:hover, .nav > ul a[aria-current="page"] { background: var(--section); }
.nav > ul a[aria-current="page"], .nav button.nav-link.is-current { font-weight: 700; }
.has-dropdown { position: relative; }
.dropdown {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: none;
}
.dropdown a { display: block; border-radius: 10px; }
.has-dropdown.open .dropdown { display: block; }
.chev { transition: transform .2s; }
.has-dropdown.open .chev { transform: rotate(180deg); }
.header-cta { margin-left: 8px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; } .menu-toggle span::after { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; flex-shrink: 0; }
  .logo img { height: 40px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin-top: 1px;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 16px 20px 32px; overflow-y: auto; overscroll-behavior: contain; display: none;
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav > ul a, .nav button.nav-link {
    width: 100%; min-height: 52px; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-radius: 10px;
  }
  .dropdown { position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 12px; min-width: 0; }
  .dropdown a { font-size: 1rem; min-height: 46px; color: var(--ink-soft); }
  .header-cta { margin: 20px 0 0; width: 100%; }
  body.menu-open { overflow: hidden; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .9rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #9db3b0; }
.breadcrumbs a { color: var(--ink-soft); }
.hero .breadcrumbs, .hero .breadcrumbs a { color: #e6f3f2; }
.hero .breadcrumbs li + li::before { color: #9fc4c1; }
.btn-row .note { margin: 0; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff;
  background: #123 center/cover no-repeat; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4, 28, 30, .88) 0%, rgba(4, 28, 30, .62) 55%, rgba(4, 28, 30, .3) 100%);
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-content { max-width: 720px; padding: 80px 0; }
.hero .eyebrow { background: var(--highlight); }
.hero p { font-size: 1.25rem; color: #e6f3f2; max-width: 580px; }
.hero h1 { color: #fff; }

.page-hero { background: var(--section); padding: 24px 0 64px; }
.page-hero .container > div { max-width: 780px; padding-top: 32px; }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 42, 43, .12); }
.card p { color: var(--ink-soft); }
.card .btn, .card .card-link { margin-top: auto; align-self: flex-start; }
.card-link { font-weight: 600; text-decoration: none; color: var(--action-dark); }
.card-link:hover { text-decoration: underline; }
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--section); color: var(--action-dark);
}
.icon svg { width: 26px; height: 26px; }
.card--feature { padding: 0; overflow: hidden; }
.card--feature .card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-banner {
  height: 160px; display: flex; align-items: flex-end; padding: 20px 28px;
  font: 800 1.5rem Manrope, sans-serif; color: var(--on-action);
}
.card-banner.turq { background: linear-gradient(135deg, #21cbd0, #8fe6e8); }
.card-banner.green { background: linear-gradient(135deg, #adcf54, #dcebb0); }

/* Números */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.stat { background: #fff; border-radius: var(--radius); padding: 32px; text-align: center; border: 1px solid var(--line); }
.stat strong { display: block; font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 Manrope, sans-serif; color: var(--ink); margin-bottom: 10px; }
.stat strong::after { content: ""; display: block; width: 44px; height: 4px; background: var(--action); border-radius: 4px; margin: 14px auto 0; }
.stat span { color: var(--ink-soft); font-weight: 500; }

/* Split */
.split { display: grid; gap: 48px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.quote-box { background: var(--section); border-radius: var(--radius); padding: 36px; border-left: 6px solid var(--highlight); }
.quote-box ul { margin: 0; padding-left: 20px; }
.quote-box li { margin-bottom: 8px; }

/* Vídeo */
.video-wrap { border-radius: var(--radius); overflow: hidden; background: #0b1e1f; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.video-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Mídia indisponível / pendente */
.media-missing {
  display: grid; place-items: center; text-align: center; min-height: 220px; padding: 24px; height: 100%;
  background: repeating-linear-gradient(45deg, #f4f8f3, #f4f8f3 12px, #eaf2e8 12px, #eaf2e8 24px);
  color: var(--ink-soft); border: 2px dashed #bcd3b8; border-radius: var(--radius); font-size: .95rem;
}
.media-missing strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #0f3b3d, #0d5254); color: #fff; border-radius: 28px;
  padding: clamp(36px, 6vw, 64px); display: grid; gap: 28px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d4ebe9; }

/* Galeria + lightbox */
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.gallery-item { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.figure figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.lightbox { position: fixed; inset: 0; background: rgba(3, 18, 19, .92); display: none; place-items: center; z-index: 500; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; border-radius: 12px; }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 1.6rem; cursor: pointer;
}

.pdf-viewer { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--section); }
.pdf-viewer object { display: block; width: 100%; height: min(85vh, 900px); }
.pdf-viewer .media-missing { border: 0; border-radius: 0; min-height: 320px; }
@media (max-width: 1020px) { .pdf-viewer object { height: 75vh; } }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 450px; border: 0; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--highlight); color: var(--on-action); font: 800 1.1rem Manrope, sans-serif; margin-bottom: 14px;
}

/* Notas */
.note { border-radius: var(--radius-sm); padding: 16px 20px; background: #fff8e1; border: 1px solid #f0d98a; color: #5a4700; font-size: .95rem; }
.note--info { background: #e8f9fa; border-color: #a5e4e6; color: #0b4a4c; }

/* Formulários */
.form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); padding: 12px 14px; border: 1.5px solid #b8cdb6; border-radius: 12px; background: #fff; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--action-dark); box-shadow: 0 0 0 3px rgba(33, 203, 208, .3); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field-error { color: #b0281a; font-size: .88rem; min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--action-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 12px; padding: 14px 18px; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #eaf6d6; color: #2f4a07; border: 1px solid #c7e29a; }
.form-status.err { background: #fdecea; color: #8a1f12; border: 1px solid #f3b8b0; }
.form-status.warn { background: #fff8e1; color: #5a4700; border: 1px solid #f0d98a; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .icon { margin: 0; flex-shrink: 0; width: 44px; height: 44px; }

/* Rodapé */
.site-footer { background: #0b2627; color: #cfe3e1; padding: 72px 0 28px; margin-top: 0; }
.site-footer a { color: #e6f6f5; text-decoration: none; }
.site-footer a:hover { color: var(--highlight); text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.site-footer .logo img { height: 64px; background: #fff; padding: 8px 12px; border-radius: 12px; }
.site-footer .logo-text small { color: #a9c6c3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .9rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tag-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .95rem; }
