/* ==========================================================
   COLDSET — folha de estilo principal
   Mobile-first. Paleta: azul-marinho / azul royal, laranja, amarelo.
   ========================================================== */

:root {
  --navy: #0B2A4A;
  --royal: #1550A8;
  --royal-2: #2A6BD1;
  --orange: #FF7A00;
  --orange-2: #E86A00;
  --yellow: #FFC400;
  --ink: #1B2430;
  --muted: #5B6675;
  --line: #E4E9F1;
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .10);
  --shadow-lg: 0 18px 46px rgba(11, 42, 74, .18);
  --wrap: 1180px;
  --header-h: 72px;
  --wa: #25D366;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--royal); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; }
.container { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 0, .35); }
.btn-accent:hover { background: var(--orange-2); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand-logo { height: 46px; width: auto; }
.brand-text { font-weight: 800; color: var(--navy); font-size: 1.3rem; line-height: 1; }
.brand-text small { display: block; font-size: .72rem; font-weight: 600; color: var(--royal); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.brand-text[hidden] { display: none; }
.main-nav { display: none; gap: 22px; }
.main-nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 5px; padding: 0;
}
.menu-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.header-actions .btn-sm { display: none; }

.main-nav.open {
  display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.main-nav.open a { padding: 12px 4px; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 196, 0, .18), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%);
  color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 122, 0, .35), transparent 65%); pointer-events: none;
}
.hero-inner { display: grid; gap: 36px; position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.1rem; color: rgba(255, 255, 255, .9); max-width: 56ch; }
.highlight { color: var(--yellow); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px;
}
.eyebrow-light { color: var(--yellow); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.hero-badges { display: grid; gap: 8px; list-style: none; }
.hero-badges li { position: relative; padding-left: 26px; color: rgba(255, 255, 255, .92); font-size: .95rem; }
.hero-badges li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A4A' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat;
}
.hero-media { position: relative; min-height: 260px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .06); }
.hero-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-media.no-img::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px), linear-gradient(160deg, rgba(255,196,0,.25), rgba(255,122,0,.15));
}
.hero-card {
  position: absolute; left: 16px; bottom: 16px; right: 16px; background: #fff; color: var(--navy);
  border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-lg);
}
.hero-card strong { display: block; font-size: 1rem; }
.hero-card span { font-size: .88rem; color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-brand { background: var(--navy); color: #fff; }
.section-brand h2 { color: #fff; }
.section-brand p { color: rgba(255, 255, 255, .88); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); }

.cards-4, .cards-3 { display: grid; gap: 18px; }
.service-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--royal-2); }
.service-card h3 { color: var(--navy); margin-top: 16px; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.card-link { margin-top: auto; color: var(--orange); font-weight: 700; font-size: .95rem; }
.icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--royal), var(--navy)); box-shadow: 0 8px 18px rgba(21, 80, 168, .3);
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Split (imagem + texto) */
.split { display: grid; gap: 36px; align-items: center; }
.split-media { position: relative; }
.media-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.media-placeholder {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; font-weight: 700;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--royal), var(--navy));
}
.split-copy h2 { margin-bottom: .6em; }
.split-copy > p { color: var(--muted); }
.checklist { list-style: none; margin: 18px 0 22px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--royal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat;
}
.note { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--yellow); padding-left: 12px; }

/* Institucional */
.institucional { display: grid; gap: 36px; align-items: center; }
.institucional h2 { color: #fff; }
.slogan {
  margin: 0; padding: 28px; border-left: 5px solid var(--orange); background: rgba(255, 255, 255, .06);
  border-radius: var(--radius); font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 700; color: #fff; line-height: 1.35;
}
.slogan cite { display: block; margin-top: 12px; font-style: normal; font-size: 1rem; font-weight: 500; color: var(--yellow); }

/* Diferenciais */
.cards-3 { grid-template-columns: 1fr; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative;
  box-shadow: var(--shadow);
}
.feature::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--orange); margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; }

/* Região */
.regiao { display: grid; gap: 32px; }
.regiao p { color: var(--ink); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.tags li {
  background: #fff; border: 1px solid var(--line); color: var(--navy); font-weight: 600; padding: 7px 14px; border-radius: 999px; font-size: .92rem;
}

/* Formulário */
.form-wrap { display: grid; gap: 36px; }
.form-intro p { color: var(--muted); }
.form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  display: grid; gap: 16px;
}
.form-row { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1.5px solid #CBD5E1; border-radius: 10px;
  background: #fff; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--royal-2); box-shadow: 0 0 0 4px rgba(42, 107, 209, .15); }
.form textarea { resize: vertical; min-height: 110px; }
.form .invalid { border-color: #D93025; }
.form-error { color: #B3261E; font-weight: 600; margin: 0; background: #FDECEA; padding: 10px 12px; border-radius: 10px; }
.form-error[hidden] { display: none; }
.form-fine { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }

/* CTA final */
.cta-final { background: linear-gradient(120deg, var(--orange) 0%, #FF9A2E 50%, var(--yellow) 100%); padding: 52px 0; color: var(--navy); }
.cta-inner { display: grid; gap: 22px; align-items: center; text-align: left; }
.cta-final h2 { color: var(--navy); margin: 0 0 6px; }
.cta-final p { margin: 0; font-weight: 600; color: var(--navy); }
.cta-final .btn-accent { background: var(--navy); box-shadow: 0 10px 24px rgba(11, 42, 74, .3); }
.cta-final .btn-accent:hover { background: #06203A; }

/* Rodapé */
.site-footer { background: #07203A; color: rgba(255, 255, 255, .78); padding: 52px 0 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 30px; }
.footer-logo { height: 56px; width: auto; margin-bottom: 14px; background: #fff; border-radius: 10px; padding: 4px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding: 18px 0; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Botão flutuante WhatsApp */
.whatsapp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 200; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 34px; height: 34px; fill: #fff; }
.whatsapp-float::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--wa); opacity: .5;
  animation: pulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes pulse { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }

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

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .main-nav { display: flex; margin-left: 12px; }
  .menu-toggle { display: none; }
  .main-nav.open { position: static; box-shadow: none; border: 0; padding: 0; }
  .header-actions .btn-sm { display: inline-flex; }
  .hero { padding: 88px 0 96px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero-media { min-height: 420px; }
  .section { padding: 96px 0; }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse .split-media { order: 2; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .institucional { grid-template-columns: 1.2fr .8fr; }
  .regiao { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .form-wrap { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .cta-inner { grid-template-columns: 1fr auto; }
  .cta-inner, .cta-final { text-align: left; }
  .whatsapp-float { width: 66px; height: 66px; right: 24px; bottom: 24px; }
}
@media (min-width: 1100px) {
  .main-nav { gap: 26px; }
}
