/* Fundação Projeto Tamar — folha de estilo */
:root {
  --navy: #0b2a4a;
  --blue: #0d4b85;
  --blue-2: #1d67ac;
  --teal: #2ec4b6;
  --teal-dark: #17a394;
  --coral: #f26b4e;
  --sand: #f6f1e7;
  --sand-2: #ece4d3;
  --ink: #17233a;
  --muted: #5c6b80;
  --line: #e2e7ee;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .10);
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--coral); color: #fff; padding: .5rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-family: var(--font-head); font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-accent { background: var(--coral); color: #fff; }
.btn-accent:hover { background: #d9573b; color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--blue); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; margin-top: .5rem; }
.more { font-weight: 600; font-family: var(--font-head); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--teal-dark); margin-bottom: .6rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(0,0,0,.18); }
.header-top { background: linear-gradient(90deg, var(--navy), var(--blue)); color: #fff; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.header-links { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.header-link { color: #fff; font: 600 .9rem var(--font-head); padding: .4rem .2rem; }
.header-link:hover { color: var(--teal); }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand-text strong { font-size: 1.1rem; letter-spacing: .04em; }
.brand-text small { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-top: .25rem; }
/* Barra de abas (menu principal) */
.menubar { position: relative; background: var(--blue); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-list > li { flex: 1 1 0; position: static; min-width: 0; }
.nav-btn, .nav-link { width: 100%; display: flex; align-items: center; justify-content: center; gap: .45rem; background: none; border: 0; color: #fff; font: 700 .8rem var(--font-head); letter-spacing: .07em; text-transform: uppercase; line-height: 1.25; text-align: center; padding: 1rem .7rem; cursor: pointer; border-bottom: 3px solid transparent; transition: background .15s, border-color .15s; }
.mb-1 > .nav-btn { background: #2a7cc6; }
.mb-2 > .nav-btn { background: #2472b8; }
.mb-3 > .nav-btn { background: #1d67ac; }
.mb-4 > .nav-btn { background: #175a97; }
.mb-5 > .nav-btn { background: #11507f; }
.mb-news > .nav-link { background: #0b3f6d; }
.nav-btn svg { flex: none; opacity: .75; }
.nav-btn:hover, .nav-link:hover, .has-sub.open > .nav-btn { color: #fff; border-bottom-color: var(--teal); background-image: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)); }
.has-sub.open > .nav-btn svg { transform: rotate(180deg); opacity: 1; }
.sub { position: absolute; left: 0; right: 0; top: 100%; display: none; z-index: 60; background: linear-gradient(180deg, #1d67ac, #124f80); border-bottom: 4px solid var(--teal); box-shadow: 0 18px 34px rgba(0,0,0,.28); }
.has-sub.open > .sub { display: block; }
.sub-inner { padding: 1.5rem 0 1.25rem; }
.sub-cols { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.sub-col { flex: 1 1 200px; min-width: 190px; }
.sub-col h4 { color: rgba(255,255,255,.72); font-size: .72rem; letter-spacing: .12em; margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.22); }
.sub-col ul { list-style: none; margin: 0; padding: 0; }
.sub-col li + li { border-top: 1px solid rgba(255,255,255,.1); }
.sub-col a { display: block; padding: .5rem .6rem; color: #fff; font-size: .95rem; border-radius: 6px; border-left: 3px solid transparent; }
.sub-col a:hover { background: rgba(255,255,255,.14); color: #fff; border-left-color: var(--teal); }
.sub-col .ext { opacity: .7; font-size: .8em; }
.sub-foot { margin: 1.25rem 0 0; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.18); }
.sub-foot a { color: var(--teal); font: 600 .9rem var(--font-head); }
.sub-foot a:hover { color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s; }

/* Hero */
.hero { position: relative; color: #fff; background-color: var(--navy); background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,42,74,.25) 0%, rgba(11,42,74,.55) 55%, rgba(11,42,74,.92) 100%); z-index: -1; }
.hero-inner { padding: 6rem 0 2.5rem; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .eyebrow { color: var(--teal); }
.lead { font-size: 1.15rem; max-width: 60ch; opacity: .95; }
.lead-sm { font-size: 1.05rem; color: var(--muted); max-width: 70ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.stats { list-style: none; margin: 0 auto; padding: 1.5rem 0 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid rgba(255,255,255,.2); }
.stats strong { display: block; font: 800 2rem var(--font-head); color: var(--teal); line-height: 1; }
.stats span { font-size: .85rem; opacity: .85; }

/* Seções */
.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }
.section-alt { background: var(--sand); }
.section-dark { background: linear-gradient(160deg, var(--navy), var(--blue)); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .more { color: var(--teal); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards */
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(11,42,74,.06), 0 0 0 1px var(--line); color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.card h3 { margin: 0 0 .3rem; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 1rem; }
.card-species em { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .25rem .55rem; border-radius: 999px; background: #fdebe6; color: #b3452d; }
.card-text { padding: 1.4rem; }
.card-text p { color: var(--muted); font-size: .92rem; margin: 0; }
.card-photo { position: relative; justify-content: flex-end; min-height: 220px; color: #fff; }
.card-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.card-photo h3, .card-photo p { position: relative; margin: 0; padding: 1rem; color: #fff; }
.card-photo h3 { padding-bottom: 1rem; background: linear-gradient(0deg, rgba(11,42,74,.9), rgba(11,42,74,0)); padding-top: 3rem; }
.card-photo p { padding-top: 0; }
.card-cta { background: var(--coral); justify-content: center; }
.card-cta h3 { background: none; padding-top: 1rem; padding-bottom: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.split-rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* News */
.news-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; }
.news-featured { display: block; border-radius: var(--radius); overflow: hidden; background: var(--sand); color: var(--ink); }
.news-featured img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.news-featured > div { padding: 1.5rem; }
.news-featured p { color: var(--muted); margin: 0; }
.news-list { display: flex; flex-direction: column; gap: 1rem; }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: center; color: var(--ink); }
.news-item img { aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.news-item h3 { font-size: 1rem; margin: 0; }
time { display: block; font-size: .78rem; font-weight: 600; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); color: var(--ink); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card img, .news-noimg { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--sand-2); }
.news-card > div { padding: 1.1rem 1.2rem 1.4rem; }
.news-card h3 { font-size: 1.05rem; }
.news-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Promo / newsletter */
.promo-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.promo-card img { aspect-ratio: 3/2; object-fit: cover; }
.promo-card > div { padding: 1.1rem 1.2rem; }
.promo-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.newsletter { background: var(--teal); color: var(--navy); text-align: center; }
.newsletter p { max-width: 60ch; margin: 0 auto 1.25rem; }

/* Página interna */
.page-head { background: var(--sand); padding: 2rem 0 2.25rem; border-bottom: 1px solid var(--sand-2); }
.page-head h1 { margin-bottom: .5rem; }
.page-meta { color: var(--muted); margin: 0; }
.page-meta time { display: inline; }
.crumbs ol { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; padding: 3rem 0 4rem; }
.content { min-width: 0; }
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose img { border-radius: 10px; margin: 1.5rem auto; }
.prose p > img:only-child { margin: 1.5rem auto; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose strong { color: var(--navy); }
.fig { margin: 0 0 1.5rem; }
.fig img { width: 100%; border-radius: var(--radius); margin: 0; }
.fig figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.fig-lead img { aspect-ratio: 16/9; object-fit: cover; }
.embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0; background: var(--sand-2); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-map { aspect-ratio: 4/3; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
td, th { border: 1px solid var(--line); padding: .5rem .7rem; vertical-align: top; text-align: left; }
th { background: var(--sand); }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 0 0 2rem; }
.gallery-item { display: block; border-radius: 10px; overflow: hidden; }
.gallery-item:first-child { grid-column: span 3; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 0; border-radius: 0; transition: transform .3s; }
.gallery-item:first-child img { aspect-ratio: 16/8; }
.gallery-item:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; background: rgba(5,15,30,.92); z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 8px; }
.lightbox figcaption { color: #fff; margin-top: 1rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; }
.lightbox .lb-next { right: 1rem; top: 50%; }

/* Accordion (abas dos centros de visitantes) */
.accordion { margin: 1rem 0 2rem; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; padding: 1rem 0; font: 600 1.05rem var(--font-head); color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.4rem; color: var(--teal-dark); }
.acc[open] summary::after { content: "–"; }
.acc-body { padding: 0 0 1.25rem; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.side-nav, .side-card { background: var(--sand); border-radius: var(--radius); padding: 1.25rem; }
.side-nav ul, .side-news { list-style: none; margin: 0; padding: 0; }
.side-nav li a { display: block; padding: .45rem .6rem; border-radius: 8px; color: var(--ink); font-size: .95rem; }
.side-nav li a:hover { background: #fff; }
.side-nav li.active a { background: var(--blue); color: #fff; font-weight: 600; }
.side-cta { background: var(--navy); color: #fff; }
.side-cta h4 { color: var(--teal); }
.side-cta .btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.side-news li a { display: grid; grid-template-columns: 70px 1fr; gap: .7rem; align-items: center; color: var(--ink); padding: .5rem 0; border-bottom: 1px solid var(--sand-2); font-size: .9rem; line-height: 1.35; }
.side-news li:last-child a { border: 0; }
.side-news img { aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.side-news time { margin-bottom: .15rem; }
.side-card .more { display: inline-block; margin-top: .75rem; }
.link-cols { columns: 2; gap: 2rem; padding-left: 1.2rem; }
.link-cols li { break-inside: avoid; margin-bottom: .35rem; }

/* Tirinhas, rádio, formulário */
.strip-view img { width: 100%; border-radius: 10px; margin: 0; box-shadow: var(--shadow); }
.strip-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; }
.player { background: var(--sand); border-radius: var(--radius); padding: 1.25rem; }
.player audio { width: 100%; }
.now { font-weight: 600; color: var(--navy); margin: .75rem 0; }
.playlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.playlist button { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; cursor: pointer; font: 500 .95rem var(--font-body); color: var(--ink); }
.playlist button:hover, .playlist button.playing { background: var(--blue); color: #fff; border-color: var(--blue); }
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--navy); }
.form input[type="text"], .form input[type="email"] { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 120px; gap: 1rem; }
.form .check { grid-template-columns: auto 1fr; align-items: center; font-weight: 400; }
.form-msg { color: var(--teal-dark); font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 3rem 0 2rem; margin-top: auto; }
.partners { padding: 0 0 2rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 2.5rem; }
.partners h3 { color: rgba(255,255,255,.6); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.partner-list a { display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; padding: .4rem .6rem; min-height: 56px; }
.partner-list img { height: 44px; width: auto; }
.partner-text { color: var(--navy); font: 700 .85rem var(--font-head); padding: .4rem .6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 2rem; }
.fcol h4 { color: var(--teal); }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin-bottom: .4rem; font-size: .9rem; }
.fcol a { color: rgba(255,255,255,.85); }
.fcol a:hover { color: #fff; }
.fcol-brand img { width: 56px; margin-bottom: .75rem; }
.fcol-brand p { font-size: .9rem; }
.social a { display: inline-block; margin: .25rem .75rem .25rem 0; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; }
.footer-bottom a { color: #fff; }

/* Responsivo */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .fcol-brand { grid-column: span 3; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; margin-left: 0; }
  .header-link { display: none; }
  .menubar { position: fixed; inset: 68px 0 0; overflow-y: auto; transform: translateX(100%); transition: transform .25s; background: var(--navy); }
  .menubar.open { transform: none; }
  .nav-list { flex-direction: column; }
  .nav-btn, .nav-link { justify-content: space-between; text-align: left; font-size: .88rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.12); }
  .sub { position: static; box-shadow: none; border-bottom: 0; background: rgba(0,0,0,.22); }
  .sub-inner { padding: .75rem 0 1rem; }
  .sub-cols { flex-direction: column; gap: 1.25rem; }
  .sub-col { min-width: 0; }
  .page-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split, .news-grid { grid-template-columns: 1fr; }
  .split-rev .split-media { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 70vh; }
  .news-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-5, .grid-4, .grid-3, .news-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .fcol-brand { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .link-cols { columns: 1; }
  .hero-inner { padding-top: 4rem; }
  .brand-text small { display: none; }
  .header-links .btn-ghost { display: none; }
  .header-inner { gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
