/* ============================================================
   MANTISEG — Assessoria em Seguros
   Design system: institucional, sóbrio, verde. Cores distribuídas
   em ritmo claro→verde→escuro para harmonia.
   ============================================================ */

:root {
  --green-950: #061a10;
  --green-900: #0a2b1b;
  --green-800: #10402a;
  --green-700: #165a3a;
  --green-600: #1d7349;
  --green-500: #279159;
  --green-300: #6fbf8f;
  --green-100: #d7ebdf;
  --green-50:  #ecf5ef;

  --orange-700: #c2641f;
  --orange-600: #dd7a2e;
  --orange-500: #ef8f44;
  --orange-100: #f7e6d4;
  --orange-50:  #fbf1e6;

  --ink:    #16201a;
  --slate:  #57625b;
  --slate-2:#7f8a82;
  --line:   #e3e8e3;
  --line-2: #eef1ed;
  --bg:     #fbfcfa;
  --bg-soft:#eef4ee;
  --white:  #ffffff;

  --primary: var(--green-700);
  --accent:  var(--orange-600);

  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16,40,28,.06), 0 1px 3px rgba(16,40,28,.04);
  --shadow: 0 6px 20px rgba(16,40,28,.08);
  --shadow-lg: 0 24px 60px rgba(10,43,27,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }

.section { padding: 104px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark {
  position: relative;
  background: linear-gradient(165deg, var(--green-900), var(--green-800) 70%, var(--green-700));
  color: #eaf3ec;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section--dark .eyebrow, .numbers .eyebrow { color: var(--orange-500); }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 18px; }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--slate); }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: #b9cfbf; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1;
  padding: 16px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(22,90,58,.24); }
.btn--primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,90,58,.32); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(221,122,46,.28); }
.btn--accent:hover { background: var(--orange-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }
.btn--outline-light { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-2px); }

/* ============================================================ HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251,252,250,.9);
  backdrop-filter: saturate(160%) blur(14px);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(251,252,250,.94);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(16,40,28,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }

/* Brand lockup — fixed alignment */
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 48px; width: auto; display: block; }
.brand-name { display: inline-flex; flex-direction: column; align-items: stretch; justify-content: center; line-height: 1; }
.brand-name strong { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .06em; color: var(--green-800); display: block; white-space: nowrap; }
.brand-name > span { font-family: var(--font-body); font-size: 9.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--slate-2); margin-top: 6px; display: block; width: 100%; text-align: justify; text-align-last: justify; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--slate);
  position: relative; padding: 6px 0; transition: color .2s var(--ease);
}
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: width .25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================ HERO (dark) */
.hero {
  position: relative;
  padding: 168px 0 110px;
  background: linear-gradient(160deg, var(--green-950), var(--green-900) 55%, var(--green-800));
  color: #eaf3ec;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 88% 18%, rgba(221,122,46,.20), transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(39,145,89,.22), transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 600px; }
.hero .eyebrow { color: var(--orange-500); }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); letter-spacing: -0.03em; color: #fff; }
.hero h1 .accent { color: var(--green-300); }
.hero-sub { margin-top: 24px; font-size: 20px; color: #b9cfbf; max-width: 540px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats { margin-top: 52px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats .stat {
  flex: 1; min-width: 140px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(4px);
}
.hero-stats .num {
  font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em;
  color: #fff; line-height: 1; display: flex; align-items: baseline;
}
.hero-stats .num .plus { color: var(--orange-500); order: -1; }
.hero-stats .label { margin-top: 10px; font-size: 14px; color: #9fc0ac; line-height: 1.3; }

/* Hero animation */
.hero-visual { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; }
.hero-anim { position: relative; width: min(600px, 100%); aspect-ratio: 1; flex: 0 0 auto; }
.hero-viz { position: absolute; inset: 0; display: grid; place-items: center; transform: scale(var(--hero-scale, 1)); transform-origin: center center; }
.hero-viz-glow {
  position: absolute; width: 58%; height: 58%; border-radius: 50%;
  background: radial-gradient(circle, rgba(39,145,89,.45), transparent 70%);
  filter: blur(20px);
}
.guide-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.guide-ring--1 { width: 36%; height: 36%; }
.guide-ring--2 { width: 62%; height: 62%; }
.guide-ring--3 { width: 92%; height: 92%; border-style: dashed; border-color: rgba(255,255,255,.06); }

.orbit { position: absolute; border-radius: 50%; animation: spin linear infinite; }
.orbit--rev { animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-chip { position: absolute; top: 50%; left: 50%; }
.orbit-chip-inner {
  position: absolute; transform-origin: center; translate: -50% -50%;
  background: #fff; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  display: grid; place-items: center; padding: 7px;
  animation: spin linear infinite;
}
.orbit-chip-inner img { max-width: 100%; max-height: 100%; object-fit: contain; }

.hero-core { position: absolute; display: grid; place-items: center; }
.hero-core-tile {
  position: relative; width: 92px; height: 92px; border-radius: 22px; background: #fff;
  display: grid; place-items: center; box-shadow: 0 14px 40px rgba(0,0,0,.4); z-index: 2;
  padding: 10px;
}
.hero-core-tile img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.hero-core-pulse {
  position: absolute; width: 92px; height: 92px; border-radius: 26px;
  border: 2px solid rgba(111,191,143,.5); animation: corePulse 3s ease-out infinite;
}
.hero-core-pulse--2 { animation-delay: 1.5s; }
@keyframes corePulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }

.hero-particle {
  position: absolute; border-radius: 50%; background: rgba(143,211,168,.6);
  animation: floatP ease-in-out infinite alternate;
}
@keyframes floatP { from { transform: translateY(0); opacity: .3; } to { transform: translateY(-16px); opacity: .9; } }

/* ============================================================ SEGURADORAS marquee */
.insurers { padding: 56px 0 60px; background: var(--bg); border-bottom: 1px solid var(--line-2); }
.insurers-label {
  text-align: center; font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--slate-2); margin-bottom: 38px;
}
.marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 28px; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.insurer-cell {
  flex: 0 0 auto; width: 168px; height: 94px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; padding: 18px 24px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.insurer-cell img {
  max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain;
  transition: transform .3s var(--ease);
}
.insurer-cell:hover { border-color: var(--green-300); box-shadow: var(--shadow); transform: translateY(-3px); }
.insurer-cell:hover img { transform: scale(1.1); }
a.insurer-cell { text-decoration: none; }

/* ============================================================ SOBRE */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 68px; align-items: center; }
.about-visual { position: relative; }
.about-logo-card {
  position: relative; z-index: 1;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4.6; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  padding: 34px 30px 30px;
}
.about-logo-card .about-logo { width: 100%; height: auto; object-fit: contain; }
.about-frame-tag {
  position: absolute; right: -22px; bottom: 24px; z-index: 2;
  background: var(--green-800); color: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-lg);
}
.about-frame-tag .n { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1; }
.about-frame-tag .t { font-size: 13px; color: #b9cfbf; margin-top: 6px; }
.about-dot-frame {
  position: absolute; left: -24px; top: -24px; width: 120px; height: 120px;
  background-image: radial-gradient(var(--green-100) 2px, transparent 2px); background-size: 16px 16px; z-index: 0; border-radius: 8px;
}

/* ============================================================ GRUPO TYCHE */
.group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.group-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); min-height: 178px; padding: 30px 26px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.group-card:hover { border-color: var(--green-300); box-shadow: var(--shadow); transform: translateY(-4px); }
.group-card .group-logo { max-width: 100%; max-height: 108px; width: auto; height: auto; object-fit: contain; }
/* Trio Seg e Pampulha são JPGs quadrados com bastante espaço em branco interno;
   um leve zoom deixa o logo do tamanho do Mantiseg. O fundo do JPG é branco puro,
   igual ao card, então as bordas ampliadas não aparecem. */
.group-card .group-logo[src*="trioseg"], .group-card .group-logo[src*="pampulha"] { transform: scale(1.3); }
.cerrado-logo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cerrado-logo img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.cerrado-word { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .12em; color: var(--ink); line-height: 1; }
.cerrado-sub { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--slate-2); margin-top: 8px; }
.cerrado-tag { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--slate-2); margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.about-copy h2 { font-size: clamp(30px, 4vw, 44px); }
.about-lead { margin-top: 20px; font-size: 19px; color: var(--slate); }
.about-features { margin-top: 34px; display: flex; flex-direction: column; gap: 22px; }
.about-feature { display: flex; gap: 16px; align-items: flex-start; }
.about-feature .ico {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  background: var(--green-50); color: var(--green-700); display: grid; place-items: center;
  border: 1px solid var(--green-100);
}
.about-feature .ico svg { width: 25px; height: 25px; }
.about-feature h4 { font-size: 18px; }
.about-feature p { margin-top: 4px; font-size: 16px; color: var(--slate); }

/* ============================================================ SERVIÇOS */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 34px 36px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-ico {
  width: 60px; height: 60px; border-radius: 16px;
  background: linear-gradient(150deg, var(--green-700), var(--green-500));
  color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(22,90,58,.22);
}
.service-ico svg { width: 30px; height: 30px; }
.service-num {
  position: absolute; top: 34px; right: 34px;
  font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em;
  color: var(--green-50); line-height: 1;
}
.service-card h3 { font-size: 22px; margin-top: 22px; }
.service-card > p { margin-top: 12px; color: var(--slate); font-size: 16.5px; }
.service-list { list-style: none; padding: 20px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 13px; }
.service-list li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--ink); line-height: 1.45; }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--green-50);
}
.service-list li::after {
  content: ""; position: absolute; left: 5px; top: 7px; width: 9px; height: 5px;
  border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
  transform: rotate(-45deg);
}

/* ============================================================ NÚMEROS (colored band) */
.numbers { position: relative; padding: 92px 0; background: linear-gradient(150deg, var(--green-800), var(--green-700)); color: #fff; overflow: hidden; }
.numbers-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 80% at 92% 10%, rgba(221,122,46,.28), transparent 60%),
    radial-gradient(34% 70% at 4% 100%, rgba(39,145,89,.4), transparent 60%);
}
.numbers .container { position: relative; }
.numbers .section-head { margin-bottom: 48px; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.number-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 36px 28px; text-align: center;
  backdrop-filter: blur(4px);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.number-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.number-val {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 5vw, 64px);
  line-height: 1; letter-spacing: -.03em; color: #fff; display: flex; align-items: baseline; justify-content: center;
}
.number-val .plus { color: var(--orange-500); order: -1; }
.number-label { margin-top: 14px; color: #c3dccb; font-size: 15.5px; line-height: 1.4; }

/* ============================================================ ATUAÇÃO / MAPA */
.regions-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.map-panel {
  background: linear-gradient(160deg, var(--green-50), #fff);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow);
}
.map-stage { position: relative; width: 100%; max-width: 460px; margin: 0 auto; overflow: hidden; border-radius: var(--radius); }
.brazil-map { width: 100%; height: auto; display: block; overflow: visible; }

/* base states */
.brazil-map .state {
  fill: #e3ece5; stroke: #fff; stroke-width: 1;
  opacity: 0; transition: opacity .5s var(--ease), fill .4s var(--ease);
}
.map-stage.in .brazil-map .state { opacity: 1; }
/* subtle staggered fade-in for the country */
.map-stage.in .brazil-map .state { transition-delay: calc(var(--i, 0) * 8ms); }

/* zoom-to-focus on the highlighted region (MG/GO ~ 430,372 in viewBox) */
#mapZoom { transition: transform 1.3s var(--ease); }
.map-stage.in #mapZoom { transform: translate(-237px, -205px) scale(1.55); }

/* highlighted states */
.brazil-map .state--go { fill: var(--green-300); }
.brazil-map .state--mg { fill: var(--green-600); }
.map-stage.in .brazil-map .state--go { opacity: 1; transition: opacity .6s var(--ease) .35s; }
.map-stage.in .brazil-map .state--mg { opacity: 1; transition: opacity .6s var(--ease) .5s; }

/* markers (SVG groups) */
.map-marker { opacity: 0; cursor: pointer; transition: opacity .45s var(--ease); }
.map-stage.in .map-marker { opacity: 1; }
.map-stage.in .map-marker:nth-of-type(1) { transition-delay: .8s; }
.map-stage.in .map-marker:nth-of-type(2) { transition-delay: .9s; }
.map-stage.in .map-marker:nth-of-type(3) { transition-delay: 1s; }
.map-stage.in .map-marker:nth-of-type(4) { transition-delay: 1.1s; }
.map-stage.in .map-marker:nth-of-type(5) { transition-delay: 1.2s; }
.map-stage.in .map-marker:nth-of-type(6) { transition-delay: 1.3s; }
.map-marker .mk-pin { fill: var(--orange-600); stroke: #fff; stroke-width: 1.6; transition: r .2s var(--ease); }
.map-marker.is-hq .mk-pin { fill: var(--green-900); stroke-width: 2; }
.map-marker.is-go .mk-pin { fill: var(--green-700); }
.map-marker .mk-ping { fill: none; stroke: var(--green-900); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; transform: translate(-50%,-50%); animation: mkping 2.4s ease-out infinite; }
@keyframes mkping { 0% { r: 5; opacity: .7; } 100% { r: 16; opacity: 0; } }
.map-marker:hover .mk-pin, .map-marker:focus .mk-pin { r: 8; }
.map-marker:focus { outline: none; }

/* hover tooltip */
.map-tip {
  position: absolute; top: 0; left: 0; z-index: 6; pointer-events: none;
  transform: translate(-50%, -140%);
  background: var(--green-900); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  padding: 6px 11px; border-radius: 8px; white-space: nowrap;
  opacity: 0; transition: opacity .18s var(--ease);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.map-tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--green-900); }
.map-tip.show { opacity: 1; }

/* clicked city card */
.city-card {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 7;
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-lg);
  animation: cardIn .35s var(--ease);
}
.city-card[hidden] { display: none; }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.city-card-ico { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; }
.city-card-ico svg { width: 24px; height: 24px; }
.city-card-label { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.city-card-body h4 { font-size: 19px; margin-top: 3px; }
.city-card-body p { margin-top: 5px; font-size: 14.5px; color: var(--slate); }
.city-card-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 22px; line-height: 1; color: var(--slate-2); cursor: pointer; transition: color .2s var(--ease); }
.city-card-close:hover { color: var(--ink); }

.map-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.map-legend .lg { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; }
.lg-hq { background: var(--green-800); }
.lg-city { background: var(--orange-600); }
.lg-state { background: var(--green-300); }

.offices { display: flex; flex-direction: column; gap: 18px; }
.office-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.office-card:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--green-300); }
.office-card--hq { background: linear-gradient(150deg, var(--green-800), var(--green-700)); color: #fff; border-color: transparent; }
.office-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.office-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green-700); }
.office-card--hq .office-ico { background: rgba(255,255,255,.14); color: #fff; }
.office-ico svg { width: 24px; height: 24px; }
.office-badge { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--orange-600); padding: 5px 12px; border-radius: 999px; }
.office-card h3 { font-size: 20px; }
.office-card--hq h3 { color: #fff; }
.office-card p { margin-top: 8px; font-size: 15.5px; color: var(--slate); }
.office-card--hq p { color: #c3dccb; }

/* ============================================================ EQUIPE */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.team-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 170px 1fr; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card .team-photo { width: 170px; height: 100%; min-height: 240px; object-fit: cover; object-position: center top; display: block; }
.team-card .team-photo--initials {
  display: grid; place-items: center;
  background: linear-gradient(150deg, #145232, #0a2b1b);
  color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 52px; letter-spacing: .03em; -webkit-user-select: none; user-select: none;
}
.team-info { padding: 30px 30px 28px; display: flex; flex-direction: column; }
.team-role { font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.team-info h3 { font-size: 24px; margin-top: 8px; }
.team-creds { margin-top: 4px; font-size: 14px; color: var(--slate-2); }
.team-bio { margin-top: 16px; font-size: 15.5px; color: var(--slate); line-height: 1.55; }
.team-contact { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.team-contact a { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--green-700); font-weight: 600; }
.team-contact svg { width: 15px; height: 15px; }

/* ============================================================ CONTATO */
.contact-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 90% 0%, rgba(221,122,46,.16), transparent 60%); }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-info .eyebrow { color: var(--orange-500); }
.contact-title { font-size: clamp(30px, 4vw, 46px); color: #fff; }
.contact-info .lead { margin-top: 20px; font-size: 19px; color: #c3dccb; max-width: 460px; }
.contact-points { margin-top: 38px; display: flex; flex-direction: column; gap: 22px; }
.contact-point { display: flex; gap: 16px; align-items: flex-start; }
.contact-point .ico { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; background: rgba(255,255,255,.08); color: #8fd3a8; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); }
.contact-point .ico svg { width: 22px; height: 22px; }
.contact-point .c-label { font-size: 13px; color: #8aa394; letter-spacing: .06em; text-transform: uppercase; }
.contact-point .c-value { font-family: var(--font-display); font-size: 18px; color: #fff; margin-top: 3px; font-weight: 500; }
.contact-point a.c-value:hover { color: var(--orange-500); }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 40px 38px; box-shadow: var(--shadow-lg); color: var(--ink); }
.contact-form h3 { font-size: 24px; }
.contact-form .form-sub { margin-top: 8px; color: var(--slate); font-size: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .opt { color: var(--slate-2); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 4px var(--green-50); }
.field input.invalid, .field textarea.invalid { border-color: #d4543f; box-shadow: 0 0 0 4px rgba(212,84,63,.1); }
.field .err { font-size: 13px; color: #c8492f; display: none; }
.field.show-err .err { display: block; }
.form-submit { margin-top: 26px; width: 100%; }
.form-note { margin-top: 14px; font-size: 13.5px; color: var(--slate-2); text-align: center; }
.form-error { margin-top: 12px; font-size: 14px; color: #d64545; text-align: center; font-weight: 500; }
.form-error:empty { display: none; }

/* ============================================================ FAQ */
.container--narrow { max-width: 840px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 44px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2px 26px; box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-item[open] { border-color: var(--green-300); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 42px 22px 0;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px;
  border-right: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq-answer { padding: 0 0 22px; }
.faq-answer p { margin: 0; color: var(--slate); font-size: 16px; line-height: 1.65; max-width: 70ch; }
.form-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 30px 10px; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green-600); display: grid; place-items: center; margin-bottom: 20px; }
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 24px; }
.form-success p { margin-top: 10px; color: var(--slate); }
.contact-form.sent .form-body { display: none; }
.contact-form.sent .form-success { display: flex; }

/* ============================================================ FOOTER */
.footer { background: var(--green-950); color: #b9cfbf; padding: 76px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { display: flex; align-items: center; gap: 15px; }
.footer-logo img { height: 64px; width: 64px; object-fit: cover; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.footer-logo-name { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.footer-logo-name strong { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: .04em; color: #fff; }
.footer-logo-name > span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8aa394; margin-top: 6px; }
.footer-brand p { margin-top: 20px; font-size: 15.5px; color: #8aa394; max-width: 300px; }
.footer-social { margin-top: 22px; display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: 11px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #b9cfbf; transition: .25s var(--ease); }
.footer-social a:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-col h4 { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col li { font-size: 15.5px; color: #9fb6a8; transition: color .2s var(--ease); }
/* Hover padrão (igual à navegação e à coluna Seguradoras): barra accent + cor */
.footer-col a { position: relative; display: inline-block; width: fit-content; max-width: 100%; }
.footer-col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--accent); border-radius: 2px; transition: width .25s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col a:hover::after { width: 100%; }
.footer-insurers { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; }
.footer-contact-line { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-line svg { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; color: #6f8a7b; }
/* permite o link de endereço (longo) quebrar linha em vez de esticar o footer */
.footer-contact-line a { min-width: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: #7e9788; flex-wrap: wrap; }
.footer-bottom .cnpj { color: #9fb6a8; }

/* ============================================================ WHATSAPP FLOAT */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 26px rgba(37,211,102,.5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: wa-ring 2.4s ease-out infinite; }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37,211,102,.6); }
.wa-float svg { width: 38px; height: 38px; position: relative; }

/* ============================================================ REVEAL */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .wa-float::before, .orbit, .orbit-chip-inner, .hero-core-pulse, .hero-particle, .map-marker .ping, .marquee-track { animation: none !important; }
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1020px) {
  .hero-grid, .about-grid, .regions-layout, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .services-grid, .team-grid, .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .about-visual { max-width: 440px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .section { padding: 72px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav.open .nav-cta .btn { display: inline-flex; }
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 4px;
    border-bottom: 1px solid var(--line); border-radius: 0 0 20px 20px;
    box-shadow: 0 20px 44px rgba(16,40,28,.16);
    /* -100% + folga p/ o offset do header: garante esconder por completo
       (antes sobrava uma faixa creme de ~9px sobre a top bar) */
    transform: translateY(calc(-100% - 100px)); transition: transform .35s var(--ease); pointer-events: none;
  }
  .nav.open { transform: translateY(0); pointer-events: auto; }
  /* header opaco quando o menu está aberto (some o "fantasma" do hero atrás) */
  .header:has(.nav.open) { background: var(--bg); border-bottom-color: var(--line); }
  .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 12px 0; }
  .nav-links a { display: block; padding: 15px 28px; font-size: 17px; border-bottom: 1px solid var(--line-2); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-cta { padding: 16px 28px 24px; }
  .nav-cta .btn { width: 100%; }
  .hero { padding: 112px 0 60px; text-align: center; }
  .hero-copy { max-width: 100%; }
  .hero .eyebrow { justify-content: center; }
  .hero h1 { font-size: clamp(29px, 8.5vw, 36px); }
  .hero-sub { font-size: 16.5px; margin-top: 16px; }
  .hero-sub-detail { display: none; } /* texto enxuto no mobile (completo no desktop) */
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
  .hero-actions .btn { width: 100%; max-width: 300px; }
  .hero-stats { gap: 10px; justify-content: center; margin-top: 34px; }
  .hero-stats .stat { min-width: calc(50% - 5px); }
  /* o 3º card ("5 anos") fica em largura cheia — centraliza número e label */
  .hero-stats .stat:last-child { text-align: center; }
  .hero-stats .stat:last-child .num { justify-content: center; }
  .services-grid, .team-grid, .numbers-grid { grid-template-columns: 1fr; }
  .team-card { grid-template-columns: 1fr; }
  .team-card .team-photo { width: 100%; height: 260px; min-height: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 24px; }
  /* no mobile o card é menor: mantém o badge no canto (como no desktop),
     porém mais para baixo para não cobrir a logo */
  .about-frame-tag { right: -6px; bottom: -26px; }
  /* Card do grupo "Cerrado": evita o texto vazar para fora em telas estreitas */
  .group-card { padding: 26px 16px; min-height: 0; }
  .cerrado-word { font-size: 19px; letter-spacing: .05em; }
  .cerrado-logo { max-width: 100%; }
  .cerrado-word, .cerrado-sub, .cerrado-tag { max-width: 100%; overflow-wrap: anywhere; }
}
