/* ==========================================================================
   O Seu Prédio: estilos globais
   ========================================================================== */

/* Tipos de letra alojados no próprio site (licença SIL Open Font License) */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/assets/fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url("/assets/fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Cores do logótipo "Janela acesa": azul #17366B e laranja #F07D1E */
  --navy: #17366B;
  --navy-d: #0F2449;
  --navy-2: #1E4FA3;
  --navy-3: #3D64A8;
  --accent: #F07D1E;
  --accent-h: #F59A2C;
  --accent-d: #A84A0C;   /* laranja escuro para texto: contraste AA sobre branco */
  --accent-l: #FDEBDB;
  --sand: #F3F5F9;
  --sand-2: #E6EBF2;
  --ink: #0F1E36;
  --muted: #4A5B78;
  --line: #DCE2EB;
  --white: #fff;
  --danger: #b93a2b;

  --radius: 16px;   /* cartões e painéis; botões e etiquetas em pílula; campos 10px; ícones 12px */
  --shadow: 0 12px 32px -14px rgba(23, 54, 107, .3);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font);
  --max: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3, h4 { color: var(--navy); font-family: var(--font-display); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ícones: Tabler Icons (outline, licença MIT, https://tabler.io/icons), copiados inline */
.icon {
  width: 24px; height: 24px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 20px; height: 20px; }
.btn-accent { background: var(--accent); color: var(--navy-d); }
.btn-accent:hover { background: var(--accent-h); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-d); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sand); }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
/* O desfoque fica num pseudo-elemento: no próprio header prenderia o menu móvel (position: fixed) ao header */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0, 0, 0, .25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.wordmark { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.045em; }
.wordmark span { color: var(--accent); }
.brand-name small { margin-top: 4px; font-size: .6rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav > ul a {
  padding: 6px 0; border-bottom: 2px solid transparent;
  color: var(--ink); font-size: .95rem; font-weight: 600; text-decoration: none;
}
.nav > ul a:hover, .nav > ul a[aria-current="page"] { color: var(--navy); border-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; }

/* Seletor de idioma */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  padding: .5em .85em; border: 1px solid var(--line); border-radius: 999px; background: none;
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--navy);
}
.lang-btn .icon { width: 18px; height: 18px; }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px;
  list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.lang.open .lang-menu { display: block; }
.lang-menu a, .lang-menu span {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: .92rem; text-decoration: none;
}
.lang-menu a:hover { background: var(--sand); }
.lang-menu a[aria-current] { color: var(--navy); font-weight: 700; }
.lang-menu span { color: var(--muted); }
.lang-menu em { font-style: normal; font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--sand-2); }

@media (max-width: 1100px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    padding: 10px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, 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); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 16px 20px 32px; overflow-y: auto; background: #fff;
    transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
  .nav > ul a[aria-current="page"] { border-color: var(--line); color: var(--accent-d); }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; }
  .lang-btn { width: 100%; justify-content: center; padding: .75em; }
  .lang-menu { position: static; box-shadow: none; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; background: linear-gradient(180deg, var(--sand) 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; background: var(--accent-l); color: var(--accent-d);
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.lead { max-width: 36em; font-size: 1.18rem; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-art { position: relative; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin: 0 auto; }
}

/* Faixa de compromissos logo abaixo do hero */
.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-strip ul {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px;
  list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px;
}
.trust-strip li { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 600; }
.trust-strip .icon { width: 22px; height: 22px; color: var(--accent); }
@media (max-width: 760px) { .trust-strip ul { flex-direction: column; } }

/* ---------- Secções ---------- */
.section { padding: 88px 0; }
.section-sand { background: var(--sand); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { display: block; margin-bottom: 10px; color: var(--accent-d); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Grelhas */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cartões */
.card {
  display: flex; flex-direction: column; padding: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card { color: inherit; text-decoration: none; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .98rem; }
.card-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 12px; background: var(--accent-l); color: var(--accent-d);
}
.card-icon .icon { width: 26px; height: 26px; }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; color: var(--navy); font-weight: 700; text-decoration: none; }
.more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after, .more:hover::after { transform: translateX(4px); }

/* Grelha de serviços: 1 destaque + 4 */
.services-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; }
.card-feature {
  grid-row: span 2; position: relative; overflow: hidden; padding: 40px;
  background: var(--navy); border-color: var(--navy); color: #cfdbe8;
}
.card-feature h3 { color: #fff; font-size: 1.6rem; }
.card-feature p { color: #cfdbe8; font-size: 1.05rem; }
.card-feature .card-icon { background: rgba(255, 255, 255, .1); color: var(--accent-h); }
.card-feature .more { color: #fff; }
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .card-feature { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } .card-feature { padding: 28px; } }

/* Lista com vistos */
.checks { list-style: none; margin: 0 0 1em; padding: 0; }
.checks li { position: relative; margin-bottom: 10px; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A84A0C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Passos: linha temporal */
.timeline {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  list-style: none; margin: 0; padding: 0; counter-reset: step;
}
/* Linha entre o centro do primeiro e do último círculo */
.timeline::before {
  content: ""; position: absolute; top: 21px; left: 22px; right: calc(25% - 46px); height: 2px; background: #C9D3E2;
}
.step { position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700;
  box-shadow: 0 0 0 6px var(--sand);
}
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) {
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
  .timeline::before { display: none; }
}
@media (max-width: 620px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { display: block; top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .step { padding-left: 64px; }
  .step::before { position: absolute; left: 0; top: -6px; margin: 0; }
}

/* Duas colunas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.promise {
  position: relative; padding: 44px; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: #cfdbe8;
}
.promise .kicker { color: var(--accent-h); }
.promise ol { margin: 0; padding: 0; list-style: none; }
.promise li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.promise li:last-child { border: 0; padding-bottom: 0; }
.promise li strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }

/* Zonas */
.zone { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.zone h3 { display: flex; align-items: center; gap: 10px; }
.zone h3 .icon { color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--sand); color: var(--navy); font-size: .9rem; font-weight: 600; }
.note { margin-top: 28px; text-align: center; color: var(--muted); }

/* Faixa de chamada à ação */
.cta-band {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 56px; border-radius: var(--radius); background: var(--navy); color: #cfdbe8;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { max-width: 34em; margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--navy); }
@media (max-width: 700px) { .cta-band { padding: 36px 24px; } }

/* Cabeçalho das páginas interiores */
.page-hero { padding: 64px 0 56px; background: var(--sand); }
.page-hero .lead { margin: 0; }
.crumbs { margin-bottom: 14px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Serviços (página detalhada) */
.service {
  display: grid; grid-template-columns: 72px 1fr; gap: 28px;
  padding: 44px 0; border-bottom: 1px solid var(--line);
}
.service:last-child { border-bottom: 0; }
.service .card-icon { width: 64px; height: 64px; border-radius: 12px; margin: 0; }
.service .card-icon .icon { width: 34px; height: 34px; }
.service-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.service-body > div:first-child p { color: var(--muted); }
.service .more { margin-top: 4px; }
@media (max-width: 800px) {
  .service { grid-template-columns: 1fr; gap: 16px; }
  .service-body { grid-template-columns: 1fr; }
}

/* Sobre: "Como trabalhamos" em lista, sem cartões */
.practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 56px; margin: 32px 0 0; border-top: 1px solid var(--line); padding-top: 32px; }
.practices dt { margin-bottom: 4px; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.practices dd { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .practices { grid-template-columns: 1fr; gap: 22px; } }
.narrow { max-width: 760px; }

/* Perguntas frequentes */
.faq-list { max-width: 820px; margin: 0 auto; }
details.faq { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s; }
details.faq[open] { box-shadow: var(--shadow); border-color: transparent; }
details.faq summary {
  position: relative; padding: 20px 60px 20px 24px; cursor: pointer; list-style: none;
  color: var(--navy); font-weight: 700;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.6rem; font-weight: 400; line-height: 1;
}
details.faq[open] summary::after { content: "\2212"; }
details.faq .answer { padding: 0 24px 22px; color: var(--muted); }
details.faq .answer p:last-child { margin: 0; }

/* ---------- Formulários ---------- */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.form { padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
fieldset { margin: 0 0 36px; padding: 0; border: 0; min-width: 0; }
legend { display: flex; align-items: center; gap: 12px; padding: 0; color: var(--navy); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
legend .n {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--navy-d); font-size: .85rem;
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.field.full { grid-column: 1 / -1; }
.field > label, .group-label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .92rem; font-weight: 600; }
.req { color: var(--accent-d); }
input, select, textarea {
  width: 100%; padding: .75em .9em;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
select {
  appearance: none; padding-right: 2.4em; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317366B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .8em center / 18px no-repeat;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 4px rgba(30, 79, 163, .16); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--danger); }
textarea { min-height: 130px; resize: vertical; }
.hint { margin-top: 5px; color: var(--muted); font-size: .82rem; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.option {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 10px; font-size: .95rem; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.option:hover { border-color: var(--navy-3); }
.option input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--accent); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-l); }

.consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 24px; font-size: .92rem; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot small { color: var(--muted); }
.hidden { display: none; }

.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { padding: 28px; background: var(--sand); border-radius: var(--radius); }
.aside-card h3 { font-size: 1.1rem; }
.aside-card ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .95rem; }
.aside-card ol li { margin-bottom: 10px; }
.aside-card ol strong { color: var(--ink); }
.aside-card.dark { background: var(--navy); color: #cfdbe8; }
.aside-card.dark h3 { color: #fff; }
.aside-card.dark a { color: #fff; font-weight: 700; }

@media (max-width: 960px) {
  .form-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 620px) {
  .form { padding: 24px 18px; }
  .fields { grid-template-columns: 1fr; }
}

/* Contactos */
.contact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { width: 20px; height: 20px; color: var(--accent-d); }
.contact-list a { color: var(--navy); font-weight: 700; text-decoration: none; }

/* Texto corrido (páginas legais) */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose li { margin-bottom: 6px; }

/* Página simples centrada (obrigado / 404) */
.center-page { padding: 110px 0; text-align: center; }
.center-page .card-icon { width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%; }
.center-page .card-icon .icon { width: 38px; height: 38px; }
.center-page .lead { margin: 0 auto 32px; }
.center-page .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Rodapé ---------- */
.site-footer { padding: 64px 0 0; background: var(--navy-d); color: #B4C3DA; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 40px; }
.site-footer h3 { margin-bottom: 14px; color: #fff; font-size: 1rem; }
.site-footer a { color: #dbe5ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-name small { color: #9FB2CE; }
.contact-line { display: flex; align-items: flex-start; gap: 10px; }
.contact-line .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  margin-top: 48px; padding-top: 22px; padding-bottom: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(560px, calc(100% - 32px));
  display: grid; gap: 16px; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .92rem; line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: var(--muted); }
.cookie-banner strong { display: block; margin-bottom: 4px; color: var(--navy); font-size: 1rem; }
.cookie-banner a { color: var(--navy-2); font-weight: 600; }
/* "Recusar" e "Aceitar" com o mesmo tamanho e destaque, como exige a CNPD */
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-actions .btn { padding: .7em 1em; }
@media (max-width: 560px) { .cookie-banner { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; } }

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