*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #5f81c2;
  --primary-dark: #4a6ba8;
  --primary-light: #e2ecfe;
  --navy: #1a2b4a;
  --bg: #f2f3f6;
  --white: #ffffff;
  --gray: #64748b;
  --light-gray: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --cat-nursery: #4d7ae8;
  --cat-primary: #8b5cf6;
  --cat-junior: #ea5cbf;
  --cat-senior: #f59e0b;
}
body { font-family: 'Figtree', system-ui, sans-serif; color: var(--navy); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; font-family: inherit; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(95,129,194,0.3); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--light-gray); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: white; color: var(--navy); }
.btn-white:hover { background: var(--bg); }
.btn-large { padding: 16px 36px; font-size: 16px; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--light-gray); }
.nav .container { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; }
.nav-logo-icon { width: 40px; height: 40px; background: var(--primary); color: white; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.nav-logo span { color: var(--gray); font-weight: 400; font-size: 13px; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--gray); border-radius: 8px; transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.3s; }

/* Hero */
.hero {
  padding: 180px 24px 120px;
  min-height: 520px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,43,74,0.75) 0%, rgba(26,43,74,0.6) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em; color: white; }
.hero h1 em { font-style: normal; color: var(--primary-light); }
.hero p { font-size: 18px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 28px; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Hero without bg image fallback */
.hero-no-img { background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%); }
.hero-no-img::before { background: none; }
.hero-no-img h1 { color: var(--navy); }
.hero-no-img h1 em { color: var(--primary); }
.hero-no-img p { color: var(--gray); }

.hero-small { padding: 160px 24px 80px; min-height: 400px; }
.hero-small h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }

/* Section */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.section-header p { color: var(--gray); font-size: 16px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--light-gray); border-radius: 16px; padding: 28px; transition: all 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 26px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--gray); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat { text-align: center; padding: 24px; }
.stat-value { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 14px; color: var(--gray); margin-top: 4px; }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.info-grid.reverse { direction: rtl; }
.info-grid.reverse > * { direction: ltr; }
.info-text h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.info-text p { color: var(--gray); font-size: 15px; margin-bottom: 16px; }
.info-text ul { list-style: none; margin-bottom: 20px; }
.info-text ul li { padding: 6px 0; font-size: 14px; color: var(--gray); display: flex; align-items: center; gap: 10px; }
.info-text ul li::before { content: '✓'; color: var(--success); font-weight: 700; }
.info-image { background: var(--primary-light); border-radius: 20px; height: 320px; display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 14px; }

/* Table */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--light-gray); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg); text-align: left; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 12px 16px; font-size: 14px; border-top: 1px solid var(--light-gray); }
tr:hover { background: rgba(95,129,194,0.03); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-form { background: var(--white); border: 1px solid var(--light-gray); border-radius: 16px; padding: 32px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 2px solid var(--light-gray); border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; transition: border 0.2s; -webkit-user-select: text; -moz-user-select: text; -ms-user-select: text; user-select: text; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: var(--white); border: 1px solid var(--light-gray); border-radius: 16px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--gray); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--navy) 0%, #2a4470 100%); color: white; text-align: center; padding: 80px 24px; }
.cta h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.7); font-size: 16px; margin-bottom: 28px; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 48px 24px 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer h4 { color: white; font-size: 15px; margin-bottom: 12px; }
.footer p, .footer a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer a:hover { color: white; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; }
.footer-logo { font-size: 20px; font-weight: 700; color: white; margin-bottom: 8px; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.gallery-item { border-radius: 14px; height: 220px; overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: white; font-size: 13px; font-weight: 600; }

/* Info image with real images */
.info-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 16px; border-bottom: 1px solid var(--light-gray); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .info-grid, .info-grid.reverse { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 140px 16px 80px; min-height: 420px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; max-width: 300px; }
  .hero-small { padding: 130px 16px 60px; min-height: 320px; }
  .section { padding: 48px 16px; }
  .section-header h2 { font-size: 24px; }
  .section-header { margin-bottom: 32px; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery-item { height: 160px; }
  .info-image { height: 240px; }
  .cta { padding: 48px 16px; }
  .cta h2 { font-size: 24px; }
  .btn-large { padding: 14px 28px; font-size: 15px; }
  .stat-value { font-size: 28px; }
  .table-wrap { font-size: 13px; }
  .contact-form { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form form > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px 8px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item { height: 200px; }
  .card { padding: 20px; }
}
