/* ============================================
   SECTIONS — Estilos específicos de seções
   ============================================ */

/* ===== PADDING TOP PARA PÁGINAS — HEADER FIXED ===== */
.page {
  padding-top: 80px;
}

@media (max-width: 767px) {
  .page { padding-top: 64px; }
}

/* ===== BLOCO DE SEÇÃO GENÉRICO ===== */
.section {
  position: relative;
  padding: var(--space-5xl) 0;
}

.section--alt {
  background: var(--color-gray-mist);
  position: relative;
}

.section--alt::before,
.section--alt::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--gradient-divider);
  pointer-events: none;
}

.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.section--soft { background: var(--color-blue-soft); }

.section--dark {
  background: var(--gradient-dark-scene);
  color: var(--color-white);
}

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--color-white); }
.section--dark p { color: rgba(255, 255, 255, 0.88); }

/* ===== CABEÇALHO DE SEÇÃO (eyebrow + H3 + intro) — premium ===== */
.section-header {
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-header .section-title {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-sm);
  max-width: var(--text-max-width);
  letter-spacing: -0.3px;
}

.section-header .section-intro {
  max-width: var(--text-max-width);
  font-size: var(--fs-body);
  color: var(--color-gray-institutional);
}

.section--dark .section-header .section-title { color: var(--color-white); }
.section--dark .section-header .section-intro { color: rgba(255, 255, 255, 0.88); }

/* Eyebrow com bullet/traço decorativo */
.section-header .eyebrow {
  position: relative;
  padding-left: 24px;
  display: inline-flex;
  align-items: center;
}

.section-header .eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* ============================================
   HOME — HERO (Seção 1) — premium com profundidade
   ============================================ */

.hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-4xl);
  overflow: hidden;
  background: var(--color-off-white);
}

/* Glows radiais para profundidade */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero::before {
  top: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 145, 204, 0.12) 0%, transparent 70%);
}

.hero::after {
  bottom: -100px;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 244, 250, 0.8) 0%, transparent 70%);
}

.hero__watermark {
  position: absolute;
  left: -80px;
  top: 40%;
  transform: translateY(-50%);
  width: 640px;
  color: var(--color-gray-line);
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: stretch;
}

.hero__content {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__intro {
  font-size: 18px;
  margin-bottom: var(--space-xl);
  max-width: 520px;
}

.hero__ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15, 107, 153, 0.18);
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 145, 204, 0.30) 0%, rgba(15, 107, 153, 0.30) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 600ms var(--ease-premium);
}

.hero__media picture,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media img {
  animation: hero-zoom 1400ms var(--ease-premium) forwards;
  transition: filter 600ms var(--ease-premium),
              transform 800ms var(--ease-premium);
}

/* Hover cinematográfico: grayscale na imagem + overlay quase some */
.hero__media:hover::after {
  opacity: 0.15;
}

.hero__media:hover img {
  filter: grayscale(100%) contrast(1.08) brightness(1.02);
}

@keyframes hero-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .hero__media { min-height: 420px; }
}

@media (max-width: 767px) {
  .hero { padding: var(--space-2xl) 0 var(--space-3xl); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-xl); align-items: start; }
  .hero__content { max-width: 100%; }
  .hero__media { min-height: 0; aspect-ratio: 16 / 10; max-height: 360px; }
  .hero__watermark { display: none; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
  .hero__intro { font-size: 17px; }
}

/* ============================================
   GRIDS DE CARDS
   ============================================ */

.grid-4, .grid-3, .grid-2, .grid-6 {
  display: grid;
  gap: var(--space-lg);
}

.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-6 { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid-4, .grid-3, .grid-2, .grid-6 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ============================================
   HOME — INSTITUCIONAL (Seção 2) — layout editorial com profundidade
   ============================================ */

.section--alt {
  position: relative;
}

.institutional-section {
  position: relative;
  overflow: hidden;
}

.institutional-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 145, 204, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.institutional-section > .container { position: relative; z-index: 1; }

.institutional {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: stretch;
  margin-bottom: var(--space-2xl);
}

.institutional__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 560px;
}

.institutional__content p { margin-bottom: var(--space-md); }
.institutional__content .btn {
  margin-top: var(--space-md);
  align-self: flex-start;
}

.institutional__media {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: box-shadow 500ms var(--ease-premium),
              transform 500ms var(--ease-premium);
}

.institutional__media:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.institutional__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 145, 204, 0.22) 0%, rgba(15, 107, 153, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 500ms var(--ease-premium);
}

.institutional__media:hover::after { opacity: 0.35; }

.institutional__media picture,
.institutional__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-premium);
}

.institutional__media:hover img {
  transform: scale(1.05);
}

.institutional__differentials {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-gray-line);
}

@media (max-width: 1023px) {
  .institutional {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .institutional__media {
    min-height: 360px;
    aspect-ratio: 4 / 3;
  }
  .institutional__content {
    max-width: 100%;
  }
}

@media (max-width: 599px) {
  .institutional__media {
    min-height: 280px;
  }
}

/* ============================================
   HOME — REGIÕES (Seção 6 — dark premium)
   ============================================ */

.regions {
  position: relative;
  background: var(--gradient-dark-scene);
  color: var(--color-white);
  overflow: hidden;
  padding: var(--space-5xl) 0;
}

/* Textura grid sutil de fundo */
.regions::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

/* Glow radial no topo para profundidade */
.regions::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(26, 145, 204, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.regions > .container { position: relative; z-index: 2; }

.regions .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.regions .eyebrow {
  color: var(--color-blue-soft);
  opacity: 0.9;
}

.regions .section-title {
  color: var(--color-white);
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.regions .section-intro {
  color: rgba(255, 255, 255, 0.85);
  margin-left: auto;
  margin-right: auto;
}

.regions__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: stretch;
  position: relative;
}

/* ===== MAPA — dark premium ===== */
.regions__map {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 500px;
  background: #0A1F2E;
}

.regions__map-canvas {
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: #0A1F2E;
}

/* ===== CARDS NUMERADOS (substituem a lista com linha) ===== */
.regions__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.regions__card {
  position: relative;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) calc(var(--space-lg) + 60px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: transform 500ms var(--ease-premium),
              border-color 300ms var(--ease-state),
              background-color 300ms var(--ease-state);
  overflow: hidden;
  isolation: isolate;
}

.regions__card::before {
  content: attr(data-number);
  position: absolute;
  left: var(--space-lg);
  top: var(--space-lg);
  font-family: var(--font-primary);
  font-weight: var(--fw-extrabold);
  font-size: 32px;
  color: var(--color-blue-soft);
  opacity: 0.55;
  line-height: 1;
  letter-spacing: -1px;
  transition: opacity 300ms var(--ease-state),
              color 300ms var(--ease-state),
              transform 500ms var(--ease-premium);
}

.regions__card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-brand);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 500ms var(--ease-premium);
}

.regions__card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(26, 145, 204, 0.4);
  transform: translateX(4px);
}

.regions__card:hover::before {
  opacity: 1;
  color: var(--color-white);
  transform: scale(1.05);
}

.regions__card:hover::after {
  transform: scaleY(1);
}

.regions__card h4 {
  font-size: 19px;
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  font-weight: var(--fw-semibold);
}

.regions__card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* Card de destaque — Brasília e Samambaia */
.regions__card--highlight {
  background: rgba(26, 145, 204, 0.08);
  border-color: rgba(26, 145, 204, 0.25);
}

.regions__card--highlight::before {
  color: var(--color-white);
  opacity: 0.85;
}

.regions__card--highlight::after {
  transform: scaleY(1);
}

@media (max-width: 1023px) {
  .regions__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .regions__map, .regions__map-canvas { min-height: 380px; }
}

@media (max-width: 599px) {
  .regions__card {
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 50px);
  }
  .regions__card::before {
    left: var(--space-md);
    top: var(--space-md);
    font-size: 28px;
  }
}

.regions__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.regions__item {
  position: relative;
  padding-left: var(--space-lg);
}

.regions__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 3px;
  height: 32px;
  background: var(--color-blue-primary);
  border-radius: 2px;
  transition: height var(--duration-base) var(--ease-premium);
}

.regions__item:nth-child(1)::before,
.regions__item:nth-child(2)::before {
  background: var(--color-blue-primary);
  height: 44px;
}

.regions__item:nth-child(3)::before {
  background: var(--color-blue-primary);
  opacity: 0.5;
}

.regions__item h4 {
  margin-bottom: var(--space-xs);
  font-size: var(--fs-h4);
}

.regions__item p {
  font-size: 15px;
  line-height: var(--lh-relaxed);
  color: var(--color-gray-institutional);
}

@media (max-width: 1023px) {
  .regions__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .regions__map { max-width: 440px; }
}

/* ============================================
   CTA FINAL (Seção 7) — premium
   ============================================ */

.cta-final {
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark-scene);
}

/* Grain sutil + glow radial para profundidade */
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(26, 145, 204, 0.15) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.cta-final__watermark {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 720px;
  color: var(--color-white);
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

.cta-final__inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.cta-final__title {
  margin-bottom: var(--space-md);
  max-width: 720px;
}

.cta-final__intro {
  max-width: 640px;
  margin-bottom: var(--space-xl);
  font-size: 18px;
}

.cta-final__ctas {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.cta-final__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, transparent 100%);
  margin: var(--space-xl) 0;
}

.cta-final__channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.cta-final__channel {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: var(--space-md);
}

.cta-final__channel svg {
  width: 26px; height: 26px;
  color: var(--color-blue-soft);
  flex-shrink: 0;
  margin-top: 2px;
}

.cta-final__channel h4 {
  font-size: 13px;
  color: var(--color-blue-soft);
  margin-bottom: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
}

.cta-final__channel p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: var(--lh-relaxed);
}

@media (max-width: 1023px) {
  .cta-final__channels { grid-template-columns: 1fr; gap: var(--space-md); }
  .cta-final__ctas { flex-direction: column; align-items: stretch; }
  .cta-final__ctas .btn { justify-content: center; }
}

/* ============================================
   FRASE DE DESTAQUE (para páginas internas)
   ============================================ */

.highlight {
  position: relative;
  overflow: hidden;
}

.highlight__watermark {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  color: var(--color-blue-primary);
  opacity: 0.06;
  pointer-events: none;
}

.highlight__inner {
  position: relative;
  max-width: 720px;
}

.highlight__title {
  font-family: var(--font-primary);
  font-weight: var(--fw-bold);
  font-size: 36px;
  line-height: var(--lh-snug);
  color: var(--color-gray-text);
  margin-bottom: var(--space-md);
}

.highlight__intro {
  font-size: 18px;
  color: var(--color-gray-institutional);
  max-width: 600px;
  line-height: var(--lh-loose);
}

@media (max-width: 767px) {
  .highlight__title { font-size: 28px; }
}

/* ============================================
   LEAFLET — CUSTOMIZAÇÕES DARK PREMIUM
   ============================================ */

/* Marcadores custom */
.map-pin { position: relative; }

.map-pin__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--color-white);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.map-pin--main .map-pin__dot {
  width: 20px;
  height: 20px;
  background: var(--color-blue-primary);
  border-width: 3px;
}

.map-pin--secondary .map-pin__dot {
  width: 16px;
  height: 16px;
  background: var(--color-blue-soft);
}

.map-pin--small .map-pin__dot {
  width: 10px;
  height: 10px;
  background: var(--color-blue-primary);
  border-width: 1.5px;
  border-color: rgba(255, 255, 255, 0.85);
  top: 1px; left: 1px;
  transform: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.map-pin__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.map-pin--main .map-pin__halo {
  width: 26px;
  height: 26px;
  background: var(--color-blue-primary);
  opacity: 0.35;
  animation: mapPulse 2.4s ease-in-out infinite;
}

.map-pin--secondary .map-pin__halo {
  width: 22px;
  height: 22px;
  background: var(--color-blue-soft);
  opacity: 0.35;
  animation: mapPulse 2.4s ease-in-out infinite;
  animation-delay: 1.2s;
}

@keyframes mapPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.35; }
  50% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* Popup dark */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  background: rgba(15, 30, 46, 0.95) !important;
  color: var(--color-white) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px);
}

.leaflet-popup-content {
  margin: 14px 18px !important;
  font-family: var(--font-secondary) !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  min-width: 180px;
}

.leaflet-popup-content strong {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  color: var(--color-blue-soft);
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.leaflet-popup-tip {
  background: rgba(15, 30, 46, 0.95) !important;
  box-shadow: none !important;
}

/* Tooltips */
.leaflet-tooltip {
  background: rgba(15, 30, 46, 0.95) !important;
  color: var(--color-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--font-primary) !important;
  font-weight: var(--fw-semibold) !important;
  font-size: 11px !important;
  letter-spacing: 0.3px !important;
  padding: 4px 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(4px);
}

.leaflet-tooltip-top::before {
  border-top-color: rgba(15, 30, 46, 0.95) !important;
}

/* Zoom control no dark */
.leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden;
}

.leaflet-control-zoom a {
  background: rgba(15, 30, 46, 0.9) !important;
  color: var(--color-white) !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  font-size: 18px !important;
  transition: background 200ms ease;
}

.leaflet-control-zoom a:hover {
  background: rgba(26, 145, 204, 0.85) !important;
  color: var(--color-white) !important;
}

.leaflet-control-attribution {
  font-size: 10px !important;
  background: rgba(15, 30, 46, 0.85) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  padding: 3px 8px !important;
  border-radius: 4px 0 0 0 !important;
}

.leaflet-control-attribution a {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ============================================
   CONTATO (Seção 7) — layout premium com formulário
   ============================================ */

/* Offset para âncora #contato não ficar sob o header fixo */
#contato { scroll-margin-top: 96px; }

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(26, 145, 204, 0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 244, 250, 0.6) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.contact-section > .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* ===== Lado esquerdo — info ===== */
.contact-info {
  max-width: 520px;
}

.contact-info__title {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-md);
  letter-spacing: -0.3px;
  color: var(--color-gray-text);
}

.contact-info__intro {
  font-size: var(--fs-body);
  color: var(--color-gray-institutional);
  margin-bottom: var(--space-xl);
  line-height: var(--lh-loose);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-channel {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--color-white);
  border: 1px solid var(--color-gray-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform 400ms var(--ease-premium),
              box-shadow 400ms var(--ease-premium),
              border-color 300ms var(--ease-state);
  text-decoration: none;
  color: inherit;
}

a.contact-channel:hover {
  transform: translateX(4px);
  border-color: var(--color-blue-primary);
  box-shadow: var(--shadow-sm);
}

.contact-channel__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-primary);
  transition: background 300ms var(--ease-state),
              color 300ms var(--ease-state);
}

a.contact-channel:hover .contact-channel__icon {
  background: var(--color-blue-primary);
  color: var(--color-white);
}

.contact-channel__icon svg {
  width: 22px;
  height: 22px;
}

.contact-channel__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-channel__label {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-blue-primary);
  margin-bottom: 2px;
}

.contact-channel__value {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  color: var(--color-gray-text);
  line-height: 1.4;
}

.contact-channel__note {
  font-size: 13px;
  color: var(--color-gray-medium);
  line-height: 1.4;
}

/* ===== Lado direito — formulário ===== */
.contact-form-wrap {
  position: relative;
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-gray-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Barra accent top no formulário */
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
  z-index: 1;
}

.contact-form__header {
  margin-bottom: var(--space-xs);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-gray-line);
}

.contact-form__title {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: 22px;
  color: var(--color-gray-text);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
}

.contact-form__subtitle {
  font-size: 13px;
  color: var(--color-gray-medium);
  line-height: var(--lh-relaxed);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field__label {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-gray-institutional);
}

.form-field__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-secondary);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-gray-text);
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-line);
  border-radius: var(--radius-sm);
  transition: border-color 250ms var(--ease-state),
              box-shadow 250ms var(--ease-state),
              background-color 250ms var(--ease-state);
  font-family: var(--font-secondary);
}

.form-field__input::placeholder {
  color: var(--color-gray-medium);
  opacity: 0.7;
}

.form-field__input:hover {
  border-color: var(--color-gray-medium);
}

.form-field__input:focus {
  outline: none;
  border-color: var(--color-blue-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(26, 145, 204, 0.10);
}

.form-field__input:focus + .form-field__label,
.form-field__input:not(:placeholder-shown) + .form-field__label {
  color: var(--color-blue-primary);
}

.form-field__textarea {
  min-height: 120px;
  resize: vertical;
  line-height: var(--lh-relaxed);
}

.contact-form__submit {
  margin-top: var(--space-xs);
  width: 100%;
}

.contact-form__note {
  font-size: 12px;
  color: var(--color-gray-medium);
  text-align: center;
  line-height: var(--lh-relaxed);
  margin-top: 4px;
}

/* Estado de erro visual (se precisar) */
.form-field--error .form-field__input {
  border-color: #D64545;
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.10);
}

@media (max-width: 1023px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .contact-info { max-width: 100%; }
}

@media (max-width: 599px) {
  .contact-form {
    padding: var(--space-lg);
  }
}

/* ============================================
   SERVIÇOS AVULSOS (Seção 5) — design autoral "Duet"
   Checkerboard claro/escuro com identidade única na home
   ============================================ */

.services-section {
  position: relative;
  overflow: hidden;
  background: var(--color-off-white);
}

/* Glow radial de fundo — profundidade sutil */
.services-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(26, 145, 204, 0.06) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.services-section > .container {
  position: relative;
  z-index: 1;
}

/* ===== GRID 3×2 autoral ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  position: relative;
}

/* ===== CARD BASE ===== */
.service-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
  transition: transform 550ms var(--ease-premium),
              box-shadow 550ms var(--ease-premium),
              border-color 400ms var(--ease-state);
  text-decoration: none;
}

/* ===== CARDS CLAROS (ímpar: 1, 3, 5) ===== */
.service-card:nth-child(odd) {
  background: var(--color-white);
  border: 1px solid var(--color-gray-line);
  color: var(--color-gray-text);
  box-shadow: var(--shadow-xs);
}

.service-card:nth-child(odd):hover {
  transform: translateY(-6px);
  border-color: var(--color-blue-primary);
  box-shadow:
    0 4px 12px rgba(15, 107, 153, 0.06),
    0 20px 48px rgba(15, 107, 153, 0.14);
}

/* ===== CARDS ESCUROS (par: 2, 4, 6) ===== */
.service-card:nth-child(even) {
  background: linear-gradient(135deg, #0F6B99 0%, #0A4D73 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--color-white);
  box-shadow:
    0 4px 12px rgba(15, 107, 153, 0.10),
    0 12px 32px rgba(15, 107, 153, 0.15);
}

/* Textura de pontos sutil nos cards escuros — linguagem da seção Regiões */
.service-card:nth-child(even)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Glow radial no canto superior direito — intensifica no hover */
.service-card:nth-child(even)::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(26, 145, 204, 0.50) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 600ms var(--ease-premium),
              transform 600ms var(--ease-premium);
  z-index: 0;
}

.service-card:nth-child(even):hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.20),
    0 28px 64px rgba(15, 107, 153, 0.40);
}

.service-card:nth-child(even):hover::after {
  opacity: 1;
  transform: scale(1.15);
}

/* ===== ICON WRAP — badge 56×56 com border-radius 14 ===== */
.service-card__icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 550ms var(--ease-premium),
              background 350ms var(--ease-state),
              border-color 350ms var(--ease-state);
  flex-shrink: 0;
}

.service-card__icon-wrap svg {
  width: 26px;
  height: 26px;
  transition: color 350ms var(--ease-state),
              transform 550ms var(--ease-premium);
}

/* Icon badge claro */
.service-card:nth-child(odd) .service-card__icon-wrap {
  background: var(--color-blue-soft);
}
.service-card:nth-child(odd) .service-card__icon-wrap svg {
  color: var(--color-blue-primary);
}

.service-card:nth-child(odd):hover .service-card__icon-wrap {
  background: var(--color-blue-primary);
  transform: translateY(-3px) rotate(-6deg);
}
.service-card:nth-child(odd):hover .service-card__icon-wrap svg {
  color: var(--color-white);
}

/* Icon badge escuro — glassmorphism */
.service-card:nth-child(even) .service-card__icon-wrap {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.service-card:nth-child(even) .service-card__icon-wrap svg {
  color: var(--color-blue-soft);
}

.service-card:nth-child(even):hover .service-card__icon-wrap {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px) rotate(-6deg);
}
.service-card:nth-child(even):hover .service-card__icon-wrap svg {
  color: var(--color-white);
}

/* ===== TÍTULO ===== */
.service-card__title {
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: 20px;
  line-height: var(--lh-snug);
  letter-spacing: -0.2px;
  position: relative;
  z-index: 1;
  transition: color 350ms var(--ease-state);
}

.service-card:nth-child(odd) .service-card__title {
  color: var(--color-gray-text);
}
.service-card:nth-child(odd):hover .service-card__title {
  color: var(--color-blue-deep);
}

.service-card:nth-child(even) .service-card__title {
  color: var(--color-white);
}

/* ===== DESCRIÇÃO ===== */
.service-card__desc {
  font-size: 14px;
  line-height: var(--lh-relaxed);
  position: relative;
  z-index: 1;
  flex: 1;
}

.service-card:nth-child(odd) .service-card__desc {
  color: var(--color-gray-institutional);
}

.service-card:nth-child(even) .service-card__desc {
  color: rgba(255, 255, 255, 0.75);
}

/* ===== LINK PREMIUM (texto + seta em botão circular) ===== */
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-primary);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  letter-spacing: 0.3px;
  padding-top: var(--space-xs);
  position: relative;
  z-index: 1;
  margin-top: auto;
  text-decoration: none;
  transition: color 350ms var(--ease-state);
}

.service-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  transition: transform 500ms var(--ease-premium),
              background 350ms var(--ease-state),
              color 350ms var(--ease-state),
              border-color 350ms var(--ease-state);
}

/* Link claro */
.service-card:nth-child(odd) .service-card__link {
  color: var(--color-blue-primary);
}
.service-card:nth-child(odd) .service-card__arrow {
  background: var(--color-blue-soft);
  color: var(--color-blue-primary);
}
.service-card:nth-child(odd):hover .service-card__link {
  color: var(--color-blue-deep);
}
.service-card:nth-child(odd):hover .service-card__arrow {
  background: var(--color-blue-primary);
  color: var(--color-white);
  transform: translateX(4px);
}

/* Link escuro */
.service-card:nth-child(even) .service-card__link {
  color: var(--color-blue-soft);
}
.service-card:nth-child(even) .service-card__arrow {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  color: var(--color-white);
}
.service-card:nth-child(even):hover .service-card__link {
  color: var(--color-white);
}
.service-card:nth-child(even):hover .service-card__arrow {
  background: var(--color-white);
  color: var(--color-blue-deep);
  border-color: var(--color-white);
  transform: translateX(4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Com 2 colunas o padrão xadrez vira listras horizontais alternadas — mantém ritmo */
}

@media (max-width: 599px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  .service-card {
    min-height: auto;
    padding: var(--space-lg);
  }
  .service-card__title {
    font-size: 18px;
  }
  /* Em mobile hover translateY some pra evitar comportamento estranho em touch */
  .service-card:hover {
    transform: none;
  }
}

/* Desktop médio — ajuste de padding */
@media (min-width: 1024px) and (max-width: 1279px) {
  .service-card {
    padding: var(--space-lg);
  }
}
