@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Nunito:wght@400;500;700&display=swap");

:root {
  --primary: #ef7b1a;
  --primary-dark: #d96509;
  --ink: #121826;
  --muted: #647084;
  --line: #eceff4;
  --soft: #f7f8fb;
  --navy: #1a2744;
  --blue: #2f80ed;
  --green: #1f9d67;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(18, 24, 38, 0.1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Nunito", system-ui, sans-serif;
}
h1, h2, h3 { font-family: "Poppins", system-ui, sans-serif; margin: 0 0 14px; line-height: 1.12; }
h1 { font-size: clamp(2.25rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { color: var(--muted); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { max-width: 760px; text-align: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ffe2c8;
  box-shadow: 0 8px 24px rgba(18, 24, 38, 0.05);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand strong { display: block; color: var(--primary); line-height: 1.05; }
.brand small { color: var(--muted); font-size: 0.72rem; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-weight: 700; color: #394155; }
.nav a.active, .nav a:hover { color: var(--primary); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 10px 24px rgba(239, 123, 26, 0.22); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { border: 2px solid #dfe4ee; color: #394155; }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline-light { color: #fff; border: 2px solid rgba(255,255,255,0.5); }

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #fff3e7 0%, #fff 45%, #eaf4ff 100%);
  overflow: hidden;
}
.hero-grid, .split, .contact-grid, .cta-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px; }
.hero h1 span { color: var(--primary); }
.lead { font-size: 1.25rem; font-weight: 800; color: #4b5567; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(239, 123, 26, 0.11);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; color: #4b5567; font-size: 0.86rem; font-weight: 800; }

.visual {
  min-height: 360px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #fff8 0 18%, transparent 19%), linear-gradient(135deg, #1a2744, #2f80ed 55%, #ef7b1a);
}
.hero-visual::before, .lab-visual::before, .classroom-visual::before {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #fff8, #ffffff22) border-box;
  border: 10px solid transparent;
}
.screen-card {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 48px;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}
.screen-bar { height: 10px; width: 86px; background: var(--primary); border-radius: 999px; margin-bottom: 14px; }
.screen-body strong, .screen-body small { display: block; }
.screen-body small { color: var(--muted); margin-top: 4px; }

.stats { background: var(--navy); padding: 38px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: center; }
.stat-grid strong { display: block; color: #fff; font-size: 2.1rem; font-family: "Poppins"; }
.stat-grid span { color: #b8c0cf; }

.admission-strip {
  padding: 54px 0;
  background: linear-gradient(135deg, #fff, #fff7ef);
  border-bottom: 1px solid #ffe2c8;
}
.admission-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 34px;
}
.admission-card {
  background: #fff;
  border: 1px solid #ffd8b8;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.admission-card strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Poppins", system-ui, sans-serif;
}
.admission-card ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: #4b5567;
  line-height: 1.7;
}

.section { padding: 78px 0; }
.soft { background: var(--soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course-card, .value-grid article, .info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 28px rgba(18, 24, 38, 0.05);
}
.course-card:nth-child(3n+1) { background: #fff7ef; border-color: #ffd8b8; }
.course-card:nth-child(3n+2) { background: #eff7ff; border-color: #cfe4ff; }
.course-card:nth-child(3n) { background: #f4f1ff; border-color: #ddd5ff; }
.badge { display: inline-flex; background: var(--green); color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 0.78rem; font-weight: 900; margin-bottom: 18px; }
.accent { color: var(--primary); font-weight: 900; }
.card-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(0,0,0,0.06); margin-top: 18px; padding-top: 16px; font-weight: 900; }
.card-foot a { color: var(--primary); }
.check-list, .mini-list { padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; }
.check-list li::before, .mini-list li::before { content: "✓"; color: var(--primary); font-weight: 900; margin-right: 8px; }

.cta { background: var(--primary); color: #fff; padding: 56px 0; }
.cta h2, .cta p, .cta span { color: #fff; }
.cta-inner { grid-template-columns: 1fr auto; }
.actions.centered { justify-content: center; }

.site-footer { background: var(--navy); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr 1fr; gap: 34px; padding: 52px 0; }
.site-footer h3 { font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 10px; }
.site-footer p, .site-footer a, .site-footer small { color: #c7cedb; display: block; margin: 8px 0; }
.brand-footer strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 14px 0; color: #aeb7c8; font-size: 0.85rem; }

.page-hero { padding: 78px 0; background: linear-gradient(135deg, #fff3e7, #fff 48%, #eaf4ff); text-align: center; }
.page-hero.dark { text-align: left; background: linear-gradient(135deg, var(--navy), #23395f); }
.page-hero.dark h1, .page-hero.dark p { color: #fff; }
.page-hero.not-found {
  min-height: 58vh;
  display: flex;
  align-items: center;
}
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.timeline { display: grid; gap: 18px; }
.timeline div { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; background: var(--soft); border-radius: 16px; padding: 18px; }
.timeline strong { background: var(--primary); color: #fff; border-radius: 14px; padding: 14px; text-align: center; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; }
.gallery-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-art { height: 100%; background: linear-gradient(135deg, #1a2744, #2f80ed, #ef7b1a); }
.art-2 { background: linear-gradient(135deg, #1f9d67, #b4e391); }
.art-3 { background: linear-gradient(135deg, #7c3aed, #f4a261); }
.art-4 { background: linear-gradient(135deg, #d96509, #ffd166); }
.art-5 { background: linear-gradient(135deg, #2f80ed, #56ccf2); }
.art-6 { background: linear-gradient(135deg, #111827, #4b5563, #ef7b1a); }
.art-7 { background: linear-gradient(135deg, #ef7b1a, #fff3e7); }
.art-8 { background: linear-gradient(135deg, #1a2744, #7c3aed); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding: 36px 18px 16px; font-weight: 900; background: linear-gradient(transparent, rgba(0,0,0,0.68)); }

.contact-grid { align-items: start; }
.info-card { margin-bottom: 14px; }
.info-card strong { color: var(--primary); }
.info-card p { margin: 8px 0 0; }
.map { width: 100%; height: 250px; border: 0; border-radius: var(--radius); margin-top: 12px; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 7px; color: #394155; font-weight: 800; }
.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid #dfe4ee;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
}
.form small { color: #b42318; }
.success { border: 1px solid #b9e8cc; background: #edfdf3; border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.success strong { color: #117a42; }

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-actions a {
  min-width: 118px;
  border-radius: 999px;
  padding: 12px 16px;
  color: #fff;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 14px 28px rgba(18, 24, 38, 0.18);
}
.floating-call { background: var(--primary); }
.floating-whatsapp { background: #1f9d67; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .hero-grid, .split, .contact-grid, .cta-inner, .admission-grid { grid-template-columns: 1fr; }
  .course-grid, .value-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .check-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item.large { grid-column: span 2; }
}

@media (max-width: 520px) {
  .brand img { width: 42px; height: 42px; }
  .header-inner { min-height: 70px; }
  .nav { top: 70px; }
  .section { padding: 56px 0; }
  .visual { min-height: 280px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; grid-row: span 1; }
  .floating-actions {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: row;
  }
  .floating-actions a {
    flex: 1;
    min-width: 0;
    padding: 11px 10px;
  }
}
