/* Version 1.2.4 */

:root {
  --color-primary: #0d61a1;
  --color-secondary: #ff9800;
  --color-tertiary: #5a933b;
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.6s ease;
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Proporção da imagem: 1600x600 = 8:3 = 2.6667:1 */
  aspect-ratio: 8 / 3;
  border-bottom: 2px solid transparent; /* Borda fina que será 'preenchida' pelo gradiente */
  border-image: linear-gradient(to right,  var(--color-secondary), var(--color-tertiary));
  border-image-slice: 1;
}

/* Ajuste para telas em landscape com altura limitada */
@media (max-height: 500px) and (orientation: landscape) {
  .slider-container {
    max-height: 300px;
    /* Mantém a proporção mas limita altura em landscape */
  }
}

.slides-wrapper {
  position: relative;
}

.slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  will-change: opacity;
  pointer-events: none;
}

.slide.opacity-100 {
  opacity: 1 !important;
  z-index: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
}

.slider-indicator {
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-indicator.active {
  transform: scale(1.3);
  background-color: #0d61a1 !important;
  opacity: 1 !important;
}

.slider-indicator:hover {
  transform: scale(1.2);
  opacity: 1 !important;
}

.object-center-left {
  object-position: center left;
}

.gallery-container {
  position: relative;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.gallery-slide {
  flex-shrink: 0;
}

.gallery-slide img {
  cursor: pointer;
}

@media (min-width: 481px) and (max-width: 768px) {
  .gallery-slide {
    min-width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .gallery-slide {
    min-width: 50% !important;
  }
}

@media (min-width: 1024px) {
  .gallery-slide {
    min-width: 33.333% !important;
  }
}

#home {
  padding-bottom: 0;
}

section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 481px) and (max-width: 768px) {
  section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Remove global heading size overrides to honor utility classes */

.bg-white.rounded-2xl {
  padding: 1.5rem !important;
}

.stats-card {
  margin-bottom: 1rem;
}

button:not(.slider-indicator,.es-load-more-button) {
  font-size: 0.875rem !important;
  padding: 0.75rem 1.5rem !important;
}

.container {
  max-width: 1280px;
}

@media (min-width: 1920px) {
  .container {
    max-width: 1536px;
  }
}

/* Removed global override of md:grid-cols-3 to restore responsive behavior */

.text-primary {
  color: var(--color-primary);
}

.text-shadow-soft {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.text-shadow-strong {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.bg-primary {
  background: var(--color-primary);
}

.overlay-dark {
  position: relative;
}

.overlay-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

#parallax-quote {
  background-image: url('../imagens/alunos monet intervalo 2.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  #parallax-quote {
    background-attachment: scroll;
  }
}

#navbar {
  transition: var(--transition-base);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

*:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  margin-left: -12px;
  border: 3px solid var(--color-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.swal2-popup {
  font-family: 'Poppins', sans-serif !important;
}

.swal2-title {
  font-family: 'Fredoka', sans-serif !important;
}

.partner-logo img {
  opacity: 0.8;
}

@media print {
  nav,
  #back-to-top,
  .whatsapp-float,
  footer {
    display: none !important;
  }

  * {
    color: black !important;
    background: white !important;
  }
}

/* Depoimentos: grid responsivo (1 col mobile, 3 cols md+) */
#depoimentos .grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  #depoimentos .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
