/* =========================================================
   J&L Proteção e Segurança — estilos
   Cores extraídas do material da marca (azul-marinho + amarelo-ouro)
   ========================================================= */

:root {
  --navy-950: #051333;
  --navy-900: #071b45;
  --navy-800: #09245b;
  --navy-700: #0a2a63;
  --navy-600: #0d3269;
  --navy-500: #164394;
  --navy-100: #e6edf8;

  --gold: #fec93d;
  --gold-600: #f4b91f;
  --gold-100: #fff3cf;

  --ink: #0b1d40;
  --text: #34425e;
  --muted: #5d6c88;
  --line: #dde5f0;
  --bg: #ffffff;
  --bg-soft: #f3f6fb;

  --whats: #25d366;
  --danger: #c62828;
  --success: #157347;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(9, 36, 91, .06), 0 1px 2px rgba(9, 36, 91, .05);
  --shadow: 0 18px 40px -18px rgba(9, 36, 91, .28);
  --shadow-lg: 0 30px 60px -24px rgba(5, 19, 51, .45);

  --header-h: 84px;
  --container: 1200px;
  --gutter: 24px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, label, summary { -webkit-tap-highlight-color: rgba(254, 201, 61, .25); touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy-900); font-weight: 600;
  padding: 10px 16px; border-radius: 10px; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 0 22px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, background-color .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn--gold { background: var(--gold); color: var(--navy-800); box-shadow: 0 10px 24px -10px rgba(254, 201, 61, .8); }
.btn--gold:hover { background: var(--gold-600); }
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--primary:hover { background: var(--navy-500); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }
.btn--outline { color: var(--navy-700); border-color: var(--line); background: #fff; }
.btn--outline:hover { border-color: var(--navy-700); }
.btn .icon { width: 1.15em; height: 1.15em; }

/* ---------- Eyebrow / títulos de seção ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy-500);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); }
.eyebrow .icon { display: none; }
.eyebrow--light { color: var(--gold); }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section__header { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 60px); }
.section__header .eyebrow::after { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--gold); }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: var(--navy-700); letter-spacing: -.01em; margin-bottom: 16px; }
.section__lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .82); font-size: .84rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__msg { margin: 0; display: flex; align-items: center; gap: 8px; font-style: italic; }
.topbar__msg .icon { color: var(--gold); }
.topbar__links { display: flex; gap: 24px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar__links a:hover { color: var(--gold); }
.topbar__links .icon { width: 1.05em; height: 1.05em; color: var(--gold); }

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(9, 36, 91, .35); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; align-items: center; gap: 30px; }
.nav__link {
  position: relative; display: block; padding: 8px 0;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__link:hover, .nav__link.is-active { color: var(--navy-500); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: none; align-items: center; gap: 10px; }
.header-call {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--gold); color: var(--navy-800);
}
.header-call .icon { width: 21px; height: 21px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy-700);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 15% 10%, rgba(22, 67, 148, .55), transparent 60%),
    linear-gradient(115deg, var(--navy-900) 0%, var(--navy-700) 50%, #0e3a86 100%);
  padding: clamp(72px, 10vw, 128px) 0 clamp(150px, 16vw, 220px);
}
.hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 60%;
  opacity: .36;   /* véu azul: a foto aparece através do fundo azul-marinho, como no celular */
  background: url("../img/guarda.jpg?v=3") 70% 20% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 28%, #000 55%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .55) 28%, #000 55%);
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 69, .15) 0%, rgba(7, 27, 69, 0) 40%, rgba(7, 27, 69, .45) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 640px; }
.hero__title {
  color: #fff; font-weight: 800; letter-spacing: -.015em;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.1; margin-bottom: 20px;
}
.hero__title .hl { color: var(--gold); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .88); max-width: 520px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags li {
  font-size: .82rem; font-weight: 500; color: rgba(255, 255, 255, .9);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(5, 19, 51, .35);
}
.hero__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(70px, 10vw, 140px); }
.hero__wave-gold { fill: var(--gold); }
.hero__wave-white { fill: #fff; }

/* ---------- Diferenciais ---------- */
.features { position: relative; z-index: 2; margin-top: clamp(-110px, -8vw, -60px); }
.features__card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 44px); border: 1px solid rgba(221, 229, 240, .7);
}
.features__title {
  font-size: 1.2rem; font-weight: 800; color: var(--navy-700); text-transform: uppercase;
  letter-spacing: .04em; text-align: center; margin-bottom: 28px;
}
.features__title .mark { box-shadow: inset 0 -.38em 0 var(--gold); padding-inline: 2px; }
.nowrap { white-space: nowrap; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--navy-800);
  box-shadow: 0 8px 18px -8px rgba(244, 185, 31, .9);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 1rem; font-weight: 700; color: var(--navy-700); margin: 4px 0 6px; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Quem somos ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__visual { position: relative; }
.about__panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); color: #fff; text-align: center;
  padding: 64px 32px 64px; min-height: 480px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  background:
    radial-gradient(420px 320px at 50% 30%, rgba(22, 67, 148, .9), transparent 70%),
    linear-gradient(160deg, var(--navy-700), var(--navy-950));
  box-shadow: var(--shadow-lg);
}
.about__panel::before, .about__panel::after {
  content: ""; position: absolute; border-radius: 50%; z-index: -1; pointer-events: none;
}
/* halo concêntrico ao emblema (centro em 64px + 85px) */
.about__panel::before { width: 260px; height: 260px; top: 19px; left: 50%; margin-left: -130px; border: 2px solid rgba(254, 201, 61, .55); }
.about__panel::after { width: 340px; height: 340px; top: -21px; left: 50%; margin-left: -170px; border: 1px solid rgba(255, 255, 255, .14); }
.about__emblem { width: 170px; height: 170px; margin-bottom: 22px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .3)); }
.about__slogan {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.3; color: var(--gold);
  max-width: 340px; margin-bottom: 26px;
}
.about__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.about__chips li {
  display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.about__chips .icon { color: var(--gold); width: 1em; height: 1em; stroke-width: 3; }
.about__badge {
  position: absolute; left: -18px; bottom: -22px;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 16px; padding: 12px 18px 12px 12px; box-shadow: var(--shadow);
}
.about__badge img { width: 44px; height: 44px; }
.about__badge strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--navy-700); line-height: 1.1; }
.about__badge span { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: .82rem; color: var(--navy-500); }

.about__content .section__title { text-align: left; }
.about__content p { color: var(--text); }
.about__content .section__lead { color: var(--ink); font-size: 1.12rem; }
.about__content strong { color: var(--navy-700); }

.mvv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.mvv__item { background: var(--bg-soft); border-radius: 16px; padding: 20px 18px; border: 1px solid var(--line); }
.mvv__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-700); color: var(--gold); margin-bottom: 12px; }
.mvv__icon .icon { width: 20px; height: 20px; }
.mvv__item h3 { font-size: 1rem; font-weight: 700; color: var(--navy-700); margin-bottom: 6px; }
.mvv__item p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Área de atendimento (mapa) ---------- */
.area {
  margin-top: clamp(64px, 8vw, 100px);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 52px); align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
}
.area__title { font-size: clamp(1.45rem, 2.4vw, 1.95rem); font-weight: 800; color: var(--navy-700); letter-spacing: -.01em; margin-bottom: 12px; }
.area__info p { color: var(--text); }
.area__cities { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 20px; }
.area__city {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font-body); font-size: .88rem; font-weight: 500; color: var(--navy-700);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.area__city:hover, .area__city.is-active { border-color: var(--navy-500); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.area__city--main { background: var(--navy-700); border-color: var(--navy-700); color: #fff; font-weight: 600; }
.area__city--main:hover, .area__city--main.is-active { border-color: var(--navy-700); }
.area__city--main .icon { color: var(--gold); width: 1.05em; height: 1.05em; }
.area__note { font-size: .93rem; color: var(--muted); margin: 0; }
.area__note a { color: var(--navy-500); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.area__note a:hover { color: var(--navy-700); }

.area__canvas {
  position: relative; z-index: 0; isolation: isolate; height: 440px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: linear-gradient(160deg, #e9eff8, #d9e3f1);
}
.area__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; color: var(--navy-700); text-align: center; padding: 20px;
}
.area__placeholder .icon { width: 34px; height: 34px; color: var(--navy-500); }

/* Leaflet: ajustes de marca (seletores com 2 classes para vencer o CSS do Leaflet, que carrega depois) */
.area__canvas.leaflet-container { background: #dfe7f1; font-family: var(--font-body); font-size: 12px; line-height: 1.4; }
.area__canvas .leaflet-tile-pane { filter: saturate(.55) contrast(.97) brightness(1.03); }
.area__canvas .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .82); }
.area__canvas .leaflet-control-zoom { border: 0; box-shadow: var(--shadow-sm); border-radius: 10px; overflow: hidden; }
.area__canvas .leaflet-control-zoom a { color: var(--navy-700); width: 34px; height: 34px; line-height: 34px; }
.map-pin { position: relative; }
.map-pin span {
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--navy-700); border: 3px solid var(--gold);
  box-shadow: -4px 6px 14px rgba(5, 19, 51, .35);
}
.map-pin span::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--gold);
}
.leaflet-tooltip.map-tip {
  background: var(--navy-700); color: #fff; border: 0; border-radius: 8px; padding: 5px 10px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600; box-shadow: 0 6px 16px -6px rgba(5, 19, 51, .5);
}
.leaflet-tooltip-top.map-tip::before { border-top-color: var(--navy-700); }
.leaflet-tooltip.map-tip--main { background: var(--gold); color: var(--navy-800); font-family: var(--font-head); font-weight: 800; font-size: 13px; }
.leaflet-tooltip-top.map-tip--main::before { border-top-color: var(--gold); }

/* ---------- Serviços ---------- */
.services { background: var(--bg-soft); position: relative; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 28px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-600));
  transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service__icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(145deg, var(--navy-500), var(--navy-800)); color: var(--gold);
  margin-bottom: 22px; box-shadow: 0 12px 24px -12px rgba(9, 36, 91, .7);
}
.service__icon .icon { width: 28px; height: 28px; }
.service h3 { font-size: 1.2rem; font-weight: 700; color: var(--navy-700); margin-bottom: 10px; }
.service > p { color: var(--muted); font-size: .95rem; }
.checklist { display: grid; gap: 8px; margin: 4px 0 24px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--text); }
.checklist .icon {
  width: 20px; height: 20px; padding: 4px; border-radius: 50%; stroke-width: 3.2;
  background: var(--gold-100); color: var(--navy-700);
}
.services__dots { display: none; }
.service__link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; margin-bottom: -10px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--navy-500);
}
.service__link .icon { transition: transform .2s; }
.service__link:hover .icon { transform: translateX(4px); }

.service--cta {
  background: linear-gradient(155deg, var(--navy-600), var(--navy-950));
  color: rgba(255, 255, 255, .85); border: 0; justify-content: center;
}
.service--cta h3 { color: #fff; font-size: 1.35rem; }
.service--cta p { color: rgba(255, 255, 255, .8); margin-bottom: 24px; }
.service--cta .btn { align-self: flex-start; position: relative; }
.service--cta__emblem { position: absolute; width: 220px; height: 220px; right: -50px; bottom: -50px; opacity: .1; pointer-events: none; }
.service--cta::before { transform: scaleX(1); }

.audience { margin-top: clamp(44px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; }
.audience__label {
  margin: 0; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.audience__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.audience__list li {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-weight: 500; font-size: .92rem; color: var(--ink);
}
.audience__list .icon { color: var(--navy-500); width: 1.1em; height: 1.1em; }

/* ---------- Como funciona ---------- */
.steps__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
.steps__list::before {
  content: ""; position: absolute; top: 40px; left: 16.66%; right: 16.66%; height: 2px;
  background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%);
  background-size: 14px 2px;
}
.step { position: relative; text-align: center; padding: 0 12px; }
.step__icon {
  position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--navy-700); color: var(--gold);
  box-shadow: 0 0 0 8px #fff, 0 16px 30px -14px rgba(9, 36, 91, .7);
}
.step__icon .icon { width: 32px; height: 32px; }
.step__num {
  position: absolute; z-index: 1; top: -4px; left: calc(50% + 22px);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--navy-800); font-family: var(--font-head); font-weight: 800; font-size: .8rem;
  box-shadow: 0 0 0 4px #fff;
}
.step h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy-700); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; max-width: 300px; margin-inline: auto; }

/* ---------- Faixa CTA ---------- */
.cta-band {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 27, 69, .97) 0%, rgba(10, 42, 99, .9) 55%, rgba(10, 42, 99, .72) 100%),
    url("../img/corredor.jpg?v=2") center / cover no-repeat;
  padding-block: clamp(56px, 7vw, 84px);
  border-top: 5px solid var(--gold);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band__slogan {
  font-family: var(--font-head); font-style: italic; font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; color: var(--gold); margin-bottom: 10px;
}
.cta-band__text { color: rgba(255, 255, 255, .85); font-size: 1.08rem; margin: 0; max-width: 520px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }

/* ---------- Orçamento ---------- */
.quote { background: var(--bg-soft); }
.quote__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: start; }
.quote__info {
  position: sticky; top: calc(var(--header-h) + 24px);
  overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--navy-600), var(--navy-950));
  color: rgba(255, 255, 255, .85); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px);
}
.quote__info::after {
  content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; right: -190px; top: -190px;
  border-radius: 50%; border: 8px solid var(--gold); opacity: .85;
}
.quote__info h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.quote__benefits { display: grid; gap: 12px; margin: 26px 0 30px; }
.quote__benefits li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: #fff; }
.quote__benefits .icon {
  width: 26px; height: 26px; padding: 5px; border-radius: 50%; stroke-width: 3;
  background: var(--gold); color: var(--navy-800);
}
.quote__contact { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 22px; display: grid; gap: 10px; }
.quote__contact p { margin: 0 0 4px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.quote__contact a {
  display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600;
  font-family: var(--font-head); transition: color .2s; word-break: break-all;
}
.quote__contact a:hover { color: var(--gold); }
.quote__contact .icon { color: var(--gold); }

/* ---------- Formulários ---------- */
.card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form { padding: clamp(24px, 4vw, 40px); }
.form__title { font-size: 1.3rem; font-weight: 800; color: var(--navy-700); margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend {
  display: block; margin-bottom: 7px; padding: 0;
  font-size: .88rem; font-weight: 600; color: var(--ink);
}
.field > label > span, .field > legend > span { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: #fbfcfe; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2a63' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #98a3b8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c6d2e4; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--navy-500);
  box-shadow: 0 0 0 4px rgba(254, 201, 61, .38);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field__error { margin: 6px 0 0; font-size: .82rem; color: var(--danger); font-weight: 500; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 0;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fbfcfe;
  font-size: .9rem; font-weight: 500; color: var(--ink); user-select: none;
  transition: background-color .2s, color .2s, border-color .2s, gap .2s;
}
.chip span .icon { width: 0; height: 1em; stroke-width: 3; color: var(--gold); transition: width .2s; }
.chip:hover span { border-color: var(--navy-500); }
.chip input:checked + span { background: var(--navy-700); border-color: var(--navy-700); color: #fff; gap: 8px; }
.chip input:checked + span .icon { width: 1em; }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.field--chips.is-invalid .chip span { border-color: var(--danger); }
.form .field--chips, .form .field--lead { margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.field__hint { margin: 12px 0 0; font-size: .84rem; color: var(--muted); }
.field .field__extra { margin-top: 10px; }
.field .field__extra[hidden] { display: none; }

.form__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form__actions .btn { flex: 1 1 220px; }
.form__note { margin: 14px 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form__status { margin: 16px 0 0; }
.form__status:empty { display: none; }
.form__status.is-success {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: #e8f7ee; border: 1px solid #bfe6cd; color: var(--success); font-weight: 500; font-size: .92rem;
}

/* ---------- Contato ---------- */
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: start; }
.contact__cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.contact-card__icon {
  flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-700); color: var(--gold);
}
.contact-card__icon .icon { width: 24px; height: 24px; }
.contact-card__icon--whats { background: var(--whats); color: #fff; }
.contact-card h3 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2px 0 4px; }
.contact-card__value { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy-700); margin: 0 0 10px; word-break: break-word; }
.contact-card__hint { margin: 0; font-size: .88rem; color: var(--muted); }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-card__actions a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--navy-700); background: #fff; border: 1.5px solid var(--line);
  transition: border-color .2s, background-color .2s;
}
.contact-card__actions a:hover { border-color: var(--navy-700); }
.contact-card__actions a:first-child { background: var(--gold); border-color: var(--gold); color: var(--navy-800); }
.contact-card__actions a:first-child:hover { background: var(--gold-600); border-color: var(--gold-600); }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); border-top: 5px solid var(--gold); font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1.3fr; gap: 40px; padding-block: 64px 48px; }
.footer__brand img { width: 210px; margin-bottom: 18px; }
.footer__slogan { font-family: var(--font-head); font-style: italic; font-weight: 700; color: var(--gold); font-size: 1.05rem; margin-bottom: 10px; }
.footer__col h3 { color: #fff; font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; margin-bottom: 22px; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--gold); }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; word-break: break-all; }
.footer__contact .icon { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: flex; align-items: center; gap: 12px;
}
.wa-float__btn {
  position: relative; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--whats); color: #fff; box-shadow: 0 14px 30px -10px rgba(18, 140, 74, .75);
  transition: transform .25s;
}
.wa-float__btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whats);
  z-index: -1; animation: wa-pulse 2.4s ease-out infinite;
}
.wa-float__btn .icon { width: 32px; height: 32px; }
.wa-float:hover .wa-float__btn { transform: scale(1.07); }
.wa-float__label {
  background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .3s, transform .3s;
}
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label, .wa-float.is-hinting .wa-float__label {
  opacity: 1; transform: none;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .55; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 22px; }
  .nav__list { gap: 22px; }
}

@media (max-width: 980px) {
  :root { --header-h: 74px; }
  .brand img { height: 46px; }
  .header__actions { display: flex; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: #fff; padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(9, 36, 91, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--navy-500); }
  .nav__cta { width: 100%; }

  .about__grid, .quote__grid, .contact__grid { grid-template-columns: 1fr; }
  .area { grid-template-columns: 1fr; }
  .area__canvas { height: 380px; }
  .about__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .about__panel { min-height: 400px; }
  .quote__info { position: relative; top: 0; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Celular e tablet pequeno ---------- */
@media (max-width: 768px) {
  :root { --header-h: 66px; }
  .topbar { display: none; }
  .brand img { height: 42px; }
  .section { padding-block: 60px; }
  .section__header { margin-bottom: 32px; }
  .section__title { margin-bottom: 12px; }
  .section__lead { font-size: 1rem; }

  /* Hero */
  .hero { padding: 44px 0 118px; }
  .hero__photo {
    width: 100%; opacity: .32;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
            mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
    background-image: url("../img/guarda-mobile.jpg?v=3");
    background-position: 80% 15%;
  }
  .hero__title { font-size: clamp(1.95rem, 8.6vw, 2.6rem); margin-bottom: 14px; }
  .hero__lead { font-size: 1.02rem; margin-bottom: 26px; }
  .hero__actions { gap: 12px; margin-bottom: 26px; }

  /* Quem somos: Missão/Visão/Valores em linhas compactas */
  .mvv { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .mvv__item { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  .mvv__icon { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .mvv__item h3, .mvv__item p { grid-column: 2; }
  .mvv__item h3 { margin-bottom: 2px; }

  /* Área de atendimento */
  .area { margin-top: 56px; gap: 22px; }
  .area__cities { gap: 6px; margin: 18px 0 16px; }
  .area__city { min-height: 36px; padding: 0 13px; font-size: .84rem; }
  .area__canvas { height: 320px; }

  /* Serviços: carrossel de deslizar */
  .services__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px);
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 8px;
    scrollbar-width: none;
  }
  .services__grid::-webkit-scrollbar { display: none; }
  .service { scroll-snap-align: start; padding: 26px 22px 24px; }
  .js .services__grid .reveal { opacity: 1; transform: none; }
  .services__dots { display: flex; justify-content: center; margin-top: 6px; }
  .services__dot {
    display: grid; place-items: center; width: 28px; height: 32px;
    padding: 0; border: 0; background: none; cursor: pointer;
  }
  .services__dot::before {
    content: ""; width: 8px; height: 8px; border-radius: 999px; background: #c5d0e2;
    transition: width .25s, background-color .25s;
  }
  .services__dot.is-active::before { width: 22px; background: var(--navy-700); }
  .audience { margin-top: 32px; }
  .audience__list li { font-size: .86rem; padding: 8px 14px; }

  /* Como funciona: linha do tempo vertical */
  .steps__list { grid-template-columns: 1fr; gap: 0; max-width: 520px; margin-inline: auto; }
  .steps__list::before {
    top: 28px; bottom: 60px; left: 27px; right: auto; width: 2px; height: auto;
    background-image: linear-gradient(180deg, var(--line) 50%, transparent 50%); background-size: 2px 12px;
  }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0 0 28px; }
  .step:last-child { padding-bottom: 0; }
  .step__icon { grid-column: 1; grid-row: 1 / span 2; width: 56px; height: 56px; margin: 0; box-shadow: 0 0 0 6px #fff; }
  .step__icon .icon { width: 24px; height: 24px; }
  .step__num { top: -6px; left: 38px; width: 26px; height: 26px; font-size: .68rem; box-shadow: 0 0 0 3px #fff; }
  .step h3, .step p { grid-column: 2; }
  .step h3 { font-size: 1.05rem; margin: 2px 0 4px; }
  .step p { margin: 0; max-width: none; font-size: .93rem; }

  /* Orçamento: painel mais curto, formulário logo abaixo */
  .quote__info { padding: 28px 22px; }
  .quote__info::after { width: 220px; height: 220px; right: -120px; top: -120px; border-width: 6px; }
  .quote__info h2 { margin-bottom: 10px; }
  .quote__info > p { margin-bottom: 0; }
  .quote__benefits { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
  .quote__benefits li {
    gap: 8px; font-size: .85rem; padding: 5px 12px 5px 5px;
    border-radius: 999px; background: rgba(255, 255, 255, .08);
  }
  .quote__benefits .icon { width: 22px; height: 22px; padding: 4px; }
  .quote__contact { display: none; }
  .form { padding: 22px 18px; }
  .form__row { grid-template-columns: 1fr; }
  .form__actions .btn { flex-basis: 100%; }

  /* Contato */
  .contact-card__actions a { min-height: 40px; padding: 0 16px; }

  /* Rodapé em 2 colunas, com alvos de toque maiores */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 48px 32px; }
  .footer__brand, .footer__col:last-child { grid-column: 1 / -1; }
  .footer__col h3 { margin-bottom: 8px; }
  .footer__col ul { gap: 0; margin-bottom: 14px; }
  .footer__col li { display: flex; align-items: center; min-height: 40px; }
  .footer__col ul a { display: inline-flex; align-items: center; min-height: 40px; }
  .footer__bottom { padding-bottom: 92px; } /* espaço para o botão do WhatsApp */
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hero__actions .btn, .cta-band__actions .btn { width: 100%; }
  .cta-band__actions { width: 100%; }
  .cta-band__slogan { font-size: 1.5rem; }

  /* Diferenciais em grade 2x2 */
  .features__card { padding: 24px 18px; }
  .features__title { font-size: 1.02rem; margin-bottom: 20px; }
  .features__grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .feature { flex-direction: column; gap: 10px; }
  .feature__icon { width: 44px; height: 44px; }
  .feature__icon .icon { width: 20px; height: 20px; }
  .feature h3 { font-size: .9rem; margin: 0 0 4px; }
  .feature p { font-size: .8rem; }

  /* Quem somos: painel mais baixo (halo centrado no emblema: 44px + 60px) */
  .about__panel { min-height: 0; padding: 44px 20px 56px; }
  .about__emblem { width: 120px; height: 120px; margin-bottom: 18px; }
  .about__panel::before { width: 186px; height: 186px; top: 11px; margin-left: -93px; }
  .about__panel::after { width: 244px; height: 244px; top: -18px; margin-left: -122px; }
  .about__slogan { font-size: 1.22rem; margin-bottom: 18px; }
  .about__chips li { font-size: .8rem; padding: 6px 12px; }
  .about__badge { left: 12px; bottom: -20px; padding: 10px 14px 10px 10px; }
  .about__badge img { width: 36px; height: 36px; }
  .area { padding: 22px 18px 18px; border-radius: var(--radius); }
  .area__canvas { height: 320px; border-radius: 14px; }

  /* Contato */
  .contact-card { padding: 18px; gap: 14px; }
  .contact-card__icon { width: 44px; height: 44px; }
  .contact-card__icon .icon { width: 21px; height: 21px; }
  .contact-card__value { font-size: 1rem; }

  /* WhatsApp flutuante */
  .wa-float { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-float__btn { width: 56px; height: 56px; }
  .wa-float__btn .icon { width: 28px; height: 28px; }
  .wa-float__label { display: none; }
}

@media (max-width: 360px) {
  .brand img { height: 36px; }
  .header__actions { gap: 8px; }
  .header-call, .menu-toggle { width: 44px; height: 44px; }
  .features__grid { grid-template-columns: 1fr; }
  .feature { flex-direction: row; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__tags li { font-size: .76rem; padding: 5px 11px; }
}

/* Telas de toque: sem efeitos de hover "presos" depois do toque */
@media (hover: none) {
  .service:hover { transform: none; box-shadow: none; }
  .service:not(.service--cta):hover { border-color: var(--line); }
  .service:not(.service--cta):hover::before { transform: scaleX(0); }
  .btn:hover { transform: none; }
  .btn:active { transform: scale(.98); }
  .wa-float:hover .wa-float__btn { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
