/* ==========================================================================
   COLEGIO MELLO DANTE - main.css
   Mobile-first. Breakpoints Bootstrap 5 (sm 576 / md 768 / lg 992 / xl 1200).
   Cores PLACEHOLDER - ajustar variaveis quando a paleta final for aprovada.
   ========================================================================== */

:root {
  --color-primary: #0e4377;
  --color-primary-hover: #0d3a66;
  --color-secondary: #7b3f9e;
  --color-accent-green: #b0c915;
  --color-accent-green-hover: #a0b910;
  --color-accent-yellow: #f9b625;
  --color-accent-red: #e63946;
  --color-accent-blue: #2e9de0;

  --color-text: #434343;
  --color-text-light: #6b6b6b;
  --color-bg: #f5f5f5;
  --color-bg-alt: #f7f7f9;
  --color-white: #ffffff;

  --font-heading: "Baloo 2", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --section-padding-y: clamp(2.5rem, 6vw, 3.75rem);
  --container-gap: clamp(1rem, 4vw, 2rem);

  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);

  --focus-ring: 0 0 0 3px rgba(46, 157, 224, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.btn-md-primary,
.btn-md-secondary,
.btn-md-dark,
.btn-md-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  font-weight: 700;
  font-size: 1rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  border: 2px solid transparent;
  min-height: 78px;
}
.btn-md-primary {
  background: var(--color-accent-green);
  color: #fff;
}
.btn-md-secondary {
  background: var(--color-primary);
  color: #fff;
}
.btn-md-primary:hover {
  background: var(--color-accent-green-hover);
  color: #fff;
}
.btn-md-secondary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}
.btn-md-dark {
  background: var(--color-primary);
  color: #fff;
}
.btn-md-pill {
  background: var(--color-secondary);
  color: #fff;
}
.btn-md-primary:hover,
.btn-md-secondary:hover,
.btn-md-dark:hover,
.btn-md-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  color: #fff;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: var(--shadow-soft);
  z-index: 999;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  color: #fff;
}

.slick-slide {
  outline: none;
}

.slick-dots li,
.slick-dots li button {
  width: 12px;
  height: 12px;
}

.slick-slide:focus-visible {
  box-shadow: var(--focus-ring);
}
.slick-dots li button:before {
  font-size: 10px;
  color: #d9d9d9;
  opacity: 0.4;
}
.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #fdcc17;
}
.slick-prev,
.slick-next {
  z-index: 5;
}
.slick-prev:focus-visible,
.slick-next:focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: 50%;
}

.container {
  padding-inline: var(--container-gap);
}

/* ==========================================================================
   COMPONENTE GLOBAL — FAIXA DECORATIVA
   Uso:
   <div class="md-faixa-decorativa" aria-hidden="true">
       <img src="..." alt="">
   </div>
   ========================================================================== */

.md-faixa-decorativa {
  display: block;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  user-select: none;
}

.md-faixa-decorativa img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 12px;
  object-fit: cover;
}

/* Mantém a faixa visível e proporcional em telas maiores */
@media (min-width: 992px) {
  .md-faixa-decorativa img {
    min-height: 20px;
  }
}
