/* ENSASI - Static Version Stylesheet */
:root {
  --brand-red: #d63031;
  --brand-red-dark: #b02426;
  --brand-blue: #2876c2;
  --brand-yellow: #f5c518;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-soft-2: #eef1f5;
  --fg: #1a1f2c;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow-soft: 0 10px 30px -12px rgba(20, 24, 40, 0.18);
  --shadow-card: 0 4px 20px -8px rgba(20, 24, 40, 0.12);
  --shadow-glow: 0 16px 50px -16px rgba(214, 48, 49, 0.45);
  --gradient-primary: linear-gradient(135deg, #d63031 0%, #b02426 100%);
  --gradient-soft: linear-gradient(135deg, #f7f8fa 0%, #eef1f5 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 .5rem;
  color: var(--fg);
}

a { color: inherit; text-decoration: none; transition: color .25s ease; }

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

/* === Header === */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.site-header .navbar { padding: .65rem 0; }
.brand-mark { display: flex; align-items: center; gap: .75rem; }
.brand-mark img { height: 48px; width: 48px; border-radius: 50%; object-fit: cover; }
.brand-mark .brand-eyebrow { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; line-height: 1; }
.brand-mark .brand-name { font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--brand-red); font-size: 1.15rem; line-height: 1.1; }

.nav-link-x {
  font-weight: 500;
  font-size: .92rem;
  color: var(--fg) !important;
  padding: .5rem 1rem !important;
  position: relative;
}
.nav-link-x:hover, .nav-link-x.active { color: var(--brand-red) !important; }
.nav-link-x.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px; background: var(--brand-red); border-radius: 2px;
}

/* === Buttons === */
.btn-brand {
  background: var(--gradient-primary);
  color: #fff;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--shadow-glow);
  transition: all .3s ease;
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.05); }

.btn-outline-brand {
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  padding: .65rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  background: #fff;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .3s ease;
}
.btn-outline-brand:hover { background: var(--brand-blue); color: #fff; }

.btn-on-hero {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  padding: .65rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .3s ease;
}
.btn-on-hero:hover { background: #fff; color: var(--brand-red); }

/* === Hero Slider === */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
  margin-top: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroZoom 8s ease-out both;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.15) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; align-items: center;
  color: #fff;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--brand-red);
  color: #fff;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-title { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 800; margin: 1rem 0; color: #fff; }
.hero-text { font-size: 1.1rem; max-width: 560px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(6px);
  border: none;
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all .3s ease;
}
.hero-arrow:hover { background: #fff; color: var(--brand-red); }
.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

.hero-dots {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  z-index: 3;
  display: flex; justify-content: center; gap: .5rem;
}
.hero-dots button {
  height: 8px; width: 8px; border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: none;
  transition: all .3s ease;
  cursor: pointer;
}
.hero-dots button.active { width: 36px; background: var(--brand-red); }

/* === Sections === */
.section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  color: var(--brand-red);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: .65rem;
}
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
.section-lead { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* === Stats === */
.stats-bar {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stat-num {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-red);
  line-height: 1;
}
.stat-label { color: var(--muted); font-size: .9rem; margin-top: .35rem; }

/* === Cards === */
.card-elevated {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all .4s cubic-bezier(.2,.8,.2,1);
  height: 100%;
}
.card-elevated:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.card-elevated .card-img { aspect-ratio: 4/3; overflow: hidden; }
.card-elevated .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card-elevated:hover .card-img img { transform: scale(1.1); }
.card-elevated .card-body { padding: 1.5rem; }
.icon-bubble {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(214, 48, 49, .1);
  color: var(--brand-red);
  display: grid; place-items: center;
  margin-bottom: .85rem;
}
.icon-bubble.lg {
  width: 56px; height: 56px;
  border-radius: 1rem;
  background: var(--gradient-primary);
  color: #fff;
  margin: 0 auto 1rem;
}

/* === About floating chip === */
.about-img-wrap { position: relative; }
.floating-chip {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: .75rem;
}
@media (max-width: 768px) { .floating-chip { display: none; } }
.floating-chip .ic {
  width: 44px; height: 44px;
  background: rgba(214, 48, 49, .1);
  color: var(--brand-red);
  border-radius: 999px;
  display: grid; place-items: center;
}

/* === CTA === */
.cta-band {
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-light {
  background: #fff; color: var(--brand-red);
  padding: .8rem 1.75rem; border-radius: 999px;
  font-weight: 600; display: inline-flex; align-items: center; gap: .5rem;
  transition: all .3s ease;
}
.cta-band .btn-light:hover { transform: scale(1.05); color: var(--brand-red); }
.cta-band .btn-ghost-light {
  border: 2px solid #fff; color: #fff;
  padding: .7rem 1.75rem; border-radius: 999px;
  font-weight: 600; display: inline-flex; align-items: center; gap: .5rem;
  transition: all .3s ease;
}
.cta-band .btn-ghost-light:hover { background: #fff; color: var(--brand-red); }

/* === Page header banner === */
.page-banner {
  background: var(--gradient-soft);
  padding: 8rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-banner h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* === Ensino blocks === */
.level-block { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; margin-bottom: 5rem; }
@media (min-width: 992px) {
  .level-block { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .level-block.reverse > div:first-child { order: 2; }
}
.level-block img { border-radius: 1rem; box-shadow: var(--shadow-soft); width: 100%; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .5rem 0;
}
.check-list li i { color: var(--brand-red); margin-top: 2px; flex-shrink: 0; }

/* === Galeria === */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* === Contact === */
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: all .4s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.contact-card .ic-big {
  width: 48px; height: 48px;
  background: rgba(214, 48, 49, .1);
  color: var(--brand-red);
  border-radius: 999px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
}
.contact-card ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.contact-card ul li { padding: .35rem 0; }
.contact-card a:hover { color: var(--brand-red); }

.form-control-x {
  border: 1px solid var(--border);
  border-radius: .65rem;
  padding: .85rem 1rem;
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  transition: all .25s ease;
}
.form-control-x:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(214,48,49,.12); }

.social-pill {
  width: 40px; height: 40px;
  background: var(--bg-soft);
  border-radius: 999px;
  display: inline-grid; place-items: center;
  color: var(--fg);
  margin-right: .5rem;
  transition: all .3s ease;
}
.social-pill:hover { background: var(--brand-red); color: #fff; }

.map-frame { border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); height: 100%; min-height: 400px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }

/* === Footer === */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  margin-top: 5rem;
}
.site-footer h5 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: .25rem 0; color: var(--muted); font-size: .9rem; }
.site-footer ul li a:hover { color: var(--brand-red); }
.site-footer .footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .8rem;
}
.contact-line { display: flex; align-items: flex-start; gap: .5rem; padding: .35rem 0; color: var(--muted); font-size: .9rem; }
.contact-line i { color: var(--brand-red); margin-top: 4px; flex-shrink: 0; }

/* === Reveal animation === */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Mobile === */
@media (max-width: 991px) {
  .navbar-collapse { background: #fff; padding: 1rem; border-radius: .75rem; margin-top: .75rem; box-shadow: var(--shadow-card); }
  .nav-link-x.active::after { display: none; }
  .hero { height: 75vh; min-height: 480px; }
}

/* === Print styles === */
@media print {
  .site-header, .site-footer, .hero-arrow, .hero-dots { display: none !important; }
  body { color: #000; background: #fff; }
  .hero { height: auto; min-height: 0; }
  .hero-slide { position: static; opacity: 1; }
}

/* === Accessibility helpers === */
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
