/* ==========================================================================
   Colégio Galileu de Caçapava — folha de estilos
   Paleta derivada do logotipo e da fachada: azul-marinho, azul e branco
   (principais); vermelho e amarelo apenas como detalhes.
   Mobile-first. Sem dependências externas (fontes do sistema).
   ========================================================================== */

:root {
  --navy-900: #071a3f;
  --navy: #0b2559;
  --blue: #1d5fbf;
  --blue-600: #174fa0;
  --blue-50: #eef4fc;
  --sky: #cfe2f8;
  --red: #c62828;
  --yellow: #f2b705;
  --ink: #14213d;
  --muted: #47546e;
  --line: #d9e2ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --wa: #157a42;
  --wa-hover: #0f6134;

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 37, 89, .12);
  --shadow-sm: 0 4px 14px rgba(11, 37, 89, .08);
  --container: 1180px;
  /* Cabeçalho: logo grande no topo da página; compacto após rolar (classe .is-scrolled via main.js) */
  --logo: 80px;
  --header-h: 96px;
  --header-compact: 64px;
  --mobile-bar-h: 0px;
}
@media (min-width: 1080px) { :root { --logo: 96px; --header-h: 112px; --header-compact: 76px; } }
html.is-scrolled { --logo: 52px; --header-h: var(--header-compact); }
@media (min-width: 1080px) { html.is-scrolled { --logo: 60px; } }

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-compact) + 12px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: var(--mobile-bar-h);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--yellow); color: var(--navy-900); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--blue); color: var(--blue-600); background: #fff; }
.btn-outline:hover { background: var(--blue-50); color: var(--navy); }
.btn-sm { min-height: 42px; padding: .55em 1.05em; font-size: .95rem; }

/* --------------------------------------------------------------- Cabeçalho */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); transition: min-height .25s ease; }
.brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; border-radius: 50%; }
.brand img { width: var(--logo); height: var(--logo); transition: width .25s ease, height .25s ease; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 8px 20px 20px; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; }
.site-nav a {
  display: block; padding: 14px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.site-nav a[aria-current="true"] { color: var(--blue-600); }
.header-cta { display: none; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; box-shadow: none; border: 0; padding: 0; background: transparent; max-height: none; overflow: visible; }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a { border: 0; padding: 8px 10px; border-radius: 8px; font-size: .95rem; white-space: nowrap; }
  .site-nav a:hover { background: var(--blue-50); color: var(--navy); }
  .site-nav a[aria-current="true"] { background: var(--blue-50); }
  .header-cta { display: inline-flex; }
}

/* --------------------------------------------------------------- Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05); pointer-events: none;
}
.hero-inner { padding: 44px 20px 48px; position: relative; z-index: 1; display: grid; gap: 32px; align-items: center; }
/* Foto da fachada ao lado do texto (desktop) ou abaixo dele (celular), sempre inteira: sem cortar nome/logotipo do muro */
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 4px solid #fff; box-shadow: 0 18px 44px rgba(0,0,0,.35); background: var(--sky); }
.hero-media img { width: 100%; height: auto; aspect-ratio: 1911 / 823; object-fit: contain; }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 56px 20px 64px; }
  .hero h1 { font-size: clamp(2.1rem, 3.3vw, 2.9rem); }
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 14px;
}
.hero-kicker::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--yellow); }
.hero h1 { color: #fff; max-width: 20ch; }
.hero p.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: #e3ecfa; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.stages { padding-top: 34px; padding-bottom: 10px; }
.stage-chips { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; }
.stage-chips li {
  display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 700; color: var(--navy);
}
.stage-chips li span { display: block; font-weight: 500; color: var(--muted); font-size: .92rem; }
.stage-chips .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); flex: 0 0 auto; }
.stage-chips li:nth-child(2) .dot { background: var(--red); }
.stage-chips li:nth-child(3) .dot { background: var(--yellow); }
@media (min-width: 720px) { .stage-chips { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------- Seções */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 36px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.section-navy .eyebrow { color: var(--yellow); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-navy .section-head p { color: #dbe6f7; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.photo-card { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sky); }
.photo-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.mv-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 720px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3::before { content: ""; width: 6px; height: 22px; border-radius: 4px; background: var(--blue); flex: 0 0 auto; }
.card p:last-child { margin-bottom: 0; }
.card-accent-red h3::before { background: var(--red); }
.card-accent-yellow h3::before { background: var(--yellow); }

.values { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.values li {
  background: var(--blue-50); color: var(--navy); border: 1px solid var(--sky); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .97rem;
}

.structure { margin-top: 44px; }
.structure-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .structure-list { grid-template-columns: repeat(4, 1fr); } }
.structure-list li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; text-align: center;
  font-weight: 700; color: var(--navy);
}
.structure-list svg { width: 30px; height: 30px; color: var(--blue); margin: 0 auto 8px; display: block; }

/* --------------------------------------------------------------- Ensino */
.stage-block { display: grid; gap: 24px; align-items: center; padding: 28px 0; }
.stage-block + .stage-block { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .stage-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 32px 0; }
  .stage-block:nth-of-type(even) .stage-media { order: 2; }
}
/* A arte é sempre exibida inteira (sem recorte). No desktop, sua altura é limitada para que
   título da seção + primeiro bloco (e depois cada bloco) caibam na área visível abaixo do cabeçalho. */
.stage-media figure {
  margin: 0 auto; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sky);
  width: 100%; max-width: max(340px, calc((100vh - var(--header-compact) - 250px) * 1.5));
}
@supports (height: 100dvh) {
  .stage-media figure { max-width: max(340px, calc((100dvh - var(--header-compact) - 250px) * 1.5)); }
}
@media (max-width: 899.98px) { .stage-media figure { max-width: 100%; } }
.stage-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.stage-block h3 { font-size: 1.35rem; margin-bottom: .4em; }
.stage-block p { margin-bottom: .6em; }
.stage-block .check-list { margin: 10px 0 8px; gap: 4px 20px; }
.stage-block .note { margin-bottom: .5em; }

/* Cabeçalho de seção em linha (título à esquerda, subtítulo à direita) */
@media (min-width: 900px) {
  #ensino.section-compact .section-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 32px; margin-bottom: 8px; }
  #ensino .section-head .eyebrow { flex-basis: 100%; margin-bottom: 4px; }
  #ensino .section-head h2 { margin: 0; }
  #ensino .section-head p { margin: 0; }
  #ensino .stage-block { padding: 22px 0; gap: 40px; }
  #ensino .stage-block:first-of-type { padding-top: 14px; }
  /* arte alinhada à borda externa do conteúdo (esquerda nos blocos ímpares, direita nos pares) */
  #ensino .stage-media figure { margin: 0; }
  #ensino .stage-block:nth-of-type(even) .stage-media figure { margin-left: auto; }
  /* coluna da arte com a largura exata da arte: o texto ocupa o restante, sem vão */
  #ensino .stage-block { --art-w: min(540px, max(340px, calc((100vh - var(--header-compact) - 250px) * 1.5))); grid-template-columns: var(--art-w) minmax(0, 1fr); }
  #ensino .stage-block:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) var(--art-w); }
}
@supports (height: 100dvh) {
  @media (min-width: 900px) {
    #ensino .stage-block { --art-w: min(540px, max(340px, calc((100dvh - var(--header-compact) - 250px) * 1.5))); }
  }
}
@media (min-width: 1100px) { .check-list.cols-2 { grid-template-columns: 1fr 1fr; } }
.stage-tag {
  display: inline-block; background: var(--navy); color: #fff; font-weight: 700; font-size: .88rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.check-list { list-style: none; display: grid; gap: 8px; margin: 18px 0 14px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.note { font-size: .93rem; color: var(--muted); }
.stage-block .btn { margin-top: 6px; }

/* --------------------------------------------------------------- Proposta */
/* Seção compacta: no desktop, título + cartões + quadro cabem juntos na área visível */
@media (min-width: 900px) {
  .section-compact { padding: 44px 0; }
  .section-compact .section-head { max-width: none; margin-bottom: 22px; }
  .section-compact .section-head h2 { font-size: clamp(1.7rem, 2.9vw, 2.35rem); }
}
.features { display: grid; gap: 16px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 20px 22px;
}
.feature svg { width: 36px; height: 36px; color: var(--yellow); grid-row: span 2; }
.feature h3 { font-size: 1.12rem; margin: 6px 0 .35em; }
.feature p { color: #dbe6f7; margin-bottom: 0; font-size: 1rem; line-height: 1.55; }

.callout {
  margin-top: 20px; display: grid; gap: 16px; align-items: center; background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 22px 24px; border-left: 6px solid var(--red);
}
.callout h3 { color: var(--navy); margin-bottom: .3em; font-size: 1.15rem; }
.callout p { margin: 0; color: var(--muted); line-height: 1.55; }
@media (min-width: 900px) { .callout { grid-template-columns: 1fr auto; gap: 28px; padding: 22px 32px; } }

/* --------------------------------------------------------------- Atividades */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.activity-table { width: 100%; border-collapse: collapse; }
.activity-table caption { text-align: left; padding: 16px 12px 4px; font-weight: 700; color: var(--navy); }
.activity-table th, .activity-table td { padding: 12px 8px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.35; }
.th-short { display: none; }
@media (max-width: 719.98px) {
  .th-short { display: inline; }
  .th-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .activity-table tbody th { width: 40%; }
  .activity-table thead th { font-size: .85rem; }
}
@media (min-width: 720px) {
  .activity-table caption { padding: 16px 18px 4px; }
  .activity-table th, .activity-table td { padding: 14px 18px; font-size: 1rem; }
}
.activity-table thead th { background: var(--blue-50); color: var(--navy); font-size: .95rem; }
.activity-table tbody th { font-weight: 600; }
.activity-table td { text-align: center; }
.activity-table thead th:not(:first-child) { text-align: center; }
.activity-table tr:last-child th, .activity-table tr:last-child td { border-bottom: 0; }
.yes { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); align-items: center; justify-content: center; }
.yes svg { width: 16px; height: 16px; color: #fff; }
.no { color: #8a94a8; }
.legend { margin-top: 14px; }

/* --------------------------------------------------------------- Vídeos */
.video-grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .video-grid { grid-template-columns: 1fr 1fr; } }
.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(145deg, var(--navy) 0%, var(--blue) 100%); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 18px; text-align: center; color: #fff;
}
.video-placeholder .play {
  width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--navy); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); border: 0; cursor: pointer; transition: transform .2s; flex: 0 0 auto;
}
@media (max-width: 380px) { .video-placeholder { gap: 8px; padding: 10px; } .video-placeholder .play { width: 56px; height: 56px; } .video-placeholder p { font-size: .8rem; } }
.video-placeholder .play:hover { transform: scale(1.06); }
.video-placeholder .play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-placeholder p { margin: 0; font-size: .88rem; color: #dbe6f7; max-width: 40ch; }
.video-meta { padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.video-meta h3 { font-size: 1.05rem; margin: 0; }
.channel-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------------------------------------------------------------- FAQ */
.faq { max-width: 860px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; color: var(--navy); position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* --------------------------------------------------------------- Contato */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; } }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-sm); padding: 16px 18px; }
.contact-item svg { width: 26px; height: 26px; color: var(--yellow); flex: 0 0 auto; margin-top: 2px; }
.contact-item strong { display: block; color: #fff; }
.contact-item span, .contact-item address { color: #dbe6f7; font-style: normal; }
.contact-item a { color: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 600;
}
.social a:hover { background: #fff; color: var(--navy); }
.social svg { width: 24px; height: 24px; flex: 0 0 auto; }

/* Símbolos oficiais das marcas (cores próprias, não herdam a cor do tema) */
.brand-badge { flex: 0 0 auto; }
.contact-item svg.brand-badge { width: 30px; height: 30px; margin-top: 0; }
.btn svg { color: #fff; }
.btn-outline svg, .btn-outline-light svg { color: currentColor; }
.btn-outline svg.brand-badge, .btn-outline-light svg.brand-badge { width: 1.5em; height: 1.5em; }

.footer-social { list-style: none; display: flex !important; flex-wrap: wrap; gap: 12px !important; margin-top: 18px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); transition: transform .2s, background-color .2s;
}
.footer-social a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.footer-social svg { width: 30px; height: 30px; }
.footer-wa { display: flex; align-items: center; gap: 10px; }
.footer-wa svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------- Rodapé */
.site-footer { background: var(--navy-900); color: #c9d6ec; font-size: .97rem; }
.footer-main { display: grid; gap: 32px; padding: 52px 20px 32px; }
@media (min-width: 900px) { .footer-main { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 64px; height: 64px; background: #fff; border-radius: 50%; }
.footer-brand strong { color: #fff; font-size: 1.1rem; }
.site-footer h2 { font-size: 1rem; color: #fff; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; padding: 18px 20px; font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.link-button { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.credit a { color: #c9d6ec; }

/* --------------------------------------------------------------- Barra de contato no celular */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(11,37,89,.1);
}
.mobile-bar .btn { width: 100%; }
@media (max-width: 1079.98px) { :root { --mobile-bar-h: 70px; } }
@media (min-width: 1080px) { .mobile-bar { display: none; } }
body.cookie-open .mobile-bar { display: none; }

/* --------------------------------------------------------------- Banner de cookies */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(7,26,63,.25);
  padding: 16px 18px; margin: 0 auto; max-width: 1100px;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner p { margin: 0; font-size: .93rem; line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1 1 0; min-height: 44px; }
@media (min-width: 820px) {
  .cookie-inner { flex-direction: row; align-items: center; gap: 22px; }
  .cookie-actions { flex: 0 0 auto; }
  .cookie-actions .btn { flex: 0 0 auto; min-width: 128px; }
}

/* --------------------------------------------------------------- Páginas internas */
.page-hero { background: var(--navy); color: #fff; padding: 48px 0 40px; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.page-hero p { color: #dbe6f7; margin: 0; }
.prose { max-width: 800px; padding: 48px 20px 72px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose .link-button { display: inline; min-height: 0; }
.error-page { text-align: center; padding: 80px 20px 96px; }
.error-page .code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 12px; }
.error-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
