/* ========================================
   SAIDAS PEDAGOGICAS LP — Page-specific overrides
   Shared CSS loaded: tokens, base, components, lp
   ======================================== */


/* ========================================
   SECTION BANNER — Background image overlay
   (not in lp.css/components.css; used by seguranca + cta-final)
   ======================================== */
.section-banner {
  position: relative;
  overflow: hidden;
}

.section-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.section-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--navy-rgb), 0.88) 0%, rgba(var(--navy-rgb), 0.75) 100%);
  z-index: 1;
}

.section-banner .container {
  position: relative;
  z-index: 2;
}


/* ========================================
   CTA INLINE (between sections — not in shared CSS)
   ======================================== */
.cta-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-2xl) var(--space-md);
}

/* .btn--lg consolidado em css/components.css */


/* ========================================
   CARD-LINK — flex override (components.css lacks flex)
   ======================================== */
.card-link {
  display: flex;
  flex-direction: column;
}


/* ========================================
   CASES — padding override (components.css uses --space-lg)
   ======================================== */
.card--case {
  padding: var(--space-xl);
}


/* ========================================
   FORM SLOT — max-height constraint
   (components.css lacks max-height; iframe min-height differs)
   ======================================== */
.ghl-form-slot {
  max-height: 500px;
}

.ghl-form-slot iframe {
  min-height: 500px;
}


/* ========================================
   RESPONSIVE — TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
  /* Override lp.css default of 3 cols → 4 cols */
  .frota__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Override lp.css flexbox → grid for this page */
  #empresa .diferenciais__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    flex-wrap: unset;
  }

  #empresa .diferenciais__grid > * {
    flex: unset;
    max-width: none;
  }
}


/* ========================================
   RESPONSIVE — DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  #empresa .diferenciais__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .cta-inline .btn {
    transition: none;
  }
}
