/* ============================================
   MBiteByte — School A Foundation Demo
   Design System: Dark + Cyan, Inter font
   ============================================ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
:root {
  --bg:          #05080F;
  --bg-card:     #0D111A;
  --bg-card-hov: #131A2E;
  --bg-elevated: #1A1F2E;
  --acc:         #00FFEA;
  --acc-dim:     #00CCBB;
  --acc-glow:    rgba(0,255,234,0.25);
  --text:        #F8FAFC;
  --text-soft:   #CBD5E1;
  --text-muted:  #94A3B8;
  --text-dim:    #64748B;
  --border:      rgba(255,255,255,0.08);
  --border-hov:  rgba(0,255,234,0.25);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --container:   1200px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-h:       64px;
}
html { scroll-behavior:smooth; }
body {
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a { color:var(--acc); text-decoration:none; transition:color .15s; }
a:hover { color:var(--acc-dim); }
img { max-width:100%; height:auto; display:block; }
ul { list-style:none; }

/* ── Container ── */
.container { max-width:var(--container); margin:0 auto; padding:0 20px; }

/* ── Buttons ── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font); font-size:14px; font-weight:600;
  padding:12px 24px; border-radius:var(--radius-sm);
  cursor:pointer; transition:all .2s; border:none; line-height:1;
}
.btn-primary {
  background:var(--acc); color:var(--bg);
}
.btn-primary:hover {
  background:var(--acc-dim); color:var(--bg);
  transform:translateY(-1px);
  box-shadow:0 4px 20px var(--acc-glow);
}
.btn-outline {
  background:transparent; color:var(--acc);
  border:1.5px solid var(--acc);
}
.btn-outline:hover {
  background:var(--acc); color:var(--bg);
  transform:translateY(-1px);
}
.btn-ghost {
  background:transparent; color:var(--text-soft);
  border:1px solid var(--border);
}
.btn-ghost:hover {
  border-color:var(--acc); color:var(--acc);
}
.btn-sm { padding:8px 16px; font-size:13px; }

/* ── Section headers ── */
.section { padding:80px 0; }
.section-alt { background:var(--bg-card); }
.section-label {
  display:inline-block;
  font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--acc); margin-bottom:8px;
}
.section-title {
  font-size:32px; font-weight:700; line-height:1.2; margin-bottom:16px;
}
.section-subtitle {
  font-size:16px; color:var(--text-muted); max-width:600px; line-height:1.5;
}
.section-header { text-align:center; margin-bottom:48px; }
.section-header .section-subtitle { margin:0 auto; }

/* ── Navbar ── */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  height:var(--nav-h);
  background:rgba(5,8,15,0.92); backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
}
.navbar .container {
  display:flex; align-items:center; justify-content:space-between; height:100%;
}
.nav-brand {
  display:flex; align-items:center; gap:10px; color:var(--text); font-weight:700; font-size:16px;
}
.nav-brand:hover { color:var(--text); }
.nav-brand .brand-icon {
  width:32px; height:32px; border-radius:8px;
  background:var(--acc); display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:16px; color:var(--bg);
}
.nav-brand .brand-accent { color:var(--acc); }
.nav-links { display:flex; align-items:center; gap:4px; }
.nav-links a {
  padding:8px 14px; color:var(--text-muted); font-size:13px; font-weight:500;
  border-radius:var(--radius-sm); transition:all .15s;
}
.nav-links a:hover, .nav-links a.active { color:var(--acc); background:var(--bg-elevated); }
.nav-toggle { display:none; background:none; border:none; color:var(--text); cursor:pointer; padding:8px; }

/* ── Hero ── */
.hero {
  min-height:80vh; display:flex; align-items:center;
  position:relative; overflow:hidden;
  padding-top:var(--nav-h);
}
.hero-bg {
  position:absolute; inset:0; z-index:0;
}
.hero-bg img {
  width:100%; height:100%; object-fit:cover;
}
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(5,8,15,0.85) 0%, rgba(5,8,15,0.4) 100%);
  z-index:1;
}
.hero-content { position:relative; z-index:2; max-width:700px; }
.hero-badge {
  display:inline-block;
  font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase;
  color:var(--acc); border:1px solid var(--acc); padding:4px 12px; border-radius:20px;
  margin-bottom:20px;
}
.hero-title {
  font-size:52px; font-weight:700; line-height:1.1; margin-bottom:16px;
}
.hero-subtitle {
  font-size:18px; color:var(--text-soft); line-height:1.5; margin-bottom:32px; max-width:540px;
}
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; }

/* ── News ticker ── */
.news-ticker {
  background:var(--bg-card); border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  padding:10px 0; overflow:hidden;
}
.news-ticker-inner {
  display:flex; gap:40px; animation:ticker 30s linear infinite; white-space:nowrap;
}
.news-ticker-inner span { font-size:13px; color:var(--text-muted); }
.news-ticker-inner span::before { content:"✦ "; color:var(--acc); }
@keyframes ticker {
  0% { transform:translateX(0); }
  100% { transform:translateX(-50%); }
}

/* ── Features grid (home page) ── */
.features-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
}
.feature-card {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:28px 24px;
  transition:all .2s;
}
.feature-card:hover {
  border-color:var(--acc); transform:translateY(-3px);
  box-shadow:0 8px 32px rgba(0,255,234,0.06);
}
.feature-icon {
  width:44px; height:44px; border-radius:10px;
  background:rgba(0,255,234,0.1); color:var(--acc);
  display:flex; align-items:center; justify-content:center;
  font-size:20px; margin-bottom:16px;
}
.feature-card h3 { font-size:17px; font-weight:600; margin-bottom:8px; }
.feature-card p { font-size:14px; color:var(--text-muted); line-height:1.5; }

/* ── Gallery grid ── */
.gallery-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:12px;
}
.gallery-grid img {
  width:100%; height:220px; object-fit:cover; border-radius:var(--radius-sm);
  transition:all .3s; cursor:pointer;
}
.gallery-grid img:hover { transform:scale(1.02); box-shadow:0 8px 24px rgba(0,255,234,0.12); }

/* ── About / Stats ── */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.about-text p { font-size:15px; color:var(--text-soft); line-height:1.7; margin-bottom:16px; }
.about-principal {
  background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; text-align:center;
}
.about-principal img {
  width:100%; height:360px; object-fit:cover; object-position:center top;
}
.about-principal .principal-info { padding:20px; }
.about-principal h3 { font-size:18px; font-weight:600; }
.about-principal .principal-title { font-size:13px; color:var(--acc); margin-top:4px; }
.stats-grid {
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-top:40px;
}
.stat-item { text-align:center; }
.stat-number { font-size:36px; font-weight:700; color:var(--acc); }
.stat-label { font-size:13px; color:var(--text-muted); margin-top:4px; }

/* ── Academics ── */
.academics-levels { display:flex; flex-direction:column; gap:24px; }
.academic-level {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:28px 24px;
}
.academic-level h3 { font-size:18px; font-weight:600; margin-bottom:4px; }
.academic-level .level-grades { font-size:13px; color:var(--acc); margin-bottom:12px; }
.academic-level p { font-size:14px; color:var(--text-muted); line-height:1.6; }
.academic-level .subjects {
  display:flex; flex-wrap:wrap; gap:6px; margin-top:12px;
}
.academic-level .subjects span {
  font-size:12px; padding:4px 10px; border-radius:20px;
  background:rgba(0,255,234,0.08); color:var(--acc);
}

/* ── Admissions ── */
.admissions-grid { display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.steps-list { display:flex; flex-direction:column; gap:16px; }
.step {
  display:flex; gap:16px; align-items:flex-start;
}
.step-num {
  width:32px; height:32px; border-radius:50%; flex-shrink:0;
  background:var(--acc); color:var(--bg); font-weight:700; font-size:14px;
  display:flex; align-items:center; justify-content:center;
}
.step h4 { font-size:15px; font-weight:600; margin-bottom:4px; }
.step p { font-size:14px; color:var(--text-muted); }

/* ── Fee table ── */
.fee-table-wrap { overflow-x:auto; margin-top:20px; }
.fee-table {
  width:100%; border-collapse:collapse; font-size:14px;
}
.fee-table th, .fee-table td {
  padding:12px 16px; text-align:left; border-bottom:1px solid var(--border);
}
.fee-table th {
  background:var(--bg-elevated); color:var(--acc); font-weight:600; font-size:13px;
}
.fee-table td { color:var(--text-soft); }
.fee-table tr:hover td { background:rgba(0,255,234,0.03); }

/* ── Enquiry form ── */
.enquiry-form {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius); padding:32px;
}
.enquiry-form h3 { font-size:20px; font-weight:600; margin-bottom:6px; }
.enquiry-form p { font-size:14px; color:var(--text-muted); margin-bottom:20px; }
.form-group { margin-bottom:16px; }
.form-group label {
  display:block; font-size:13px; font-weight:500; color:var(--text-soft);
  margin-bottom:6px;
}
.form-group input, .form-group select, .form-group textarea {
  width:100%; padding:12px 14px; font-family:var(--font); font-size:14px;
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-sm);
  color:var(--text); outline:none; transition:border-color .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color:var(--acc); box-shadow:0 0 0 3px var(--acc-glow);
}
.form-group textarea { min-height:100px; resize:vertical; }
.form-group select { cursor:pointer; }
.form-group select option { background:var(--bg-card); }

/* ── Compliance page ── */
.compliance-section { max-width:800px; margin:0 auto; }
.compliance-section h2 { font-size:24px; font-weight:700; margin:32px 0 16px; }
.compliance-section h3 { font-size:18px; font-weight:600; margin:24px 0 12px; color:var(--acc); }
.compliance-section p { font-size:15px; color:var(--text-soft); line-height:1.7; margin-bottom:12px; }
.compliance-section ul { padding-left:20px; margin-bottom:16px; }
.compliance-section ul li { font-size:14px; color:var(--text-soft); line-height:1.6; margin-bottom:6px; list-style:disc; }

/* ── Contact / CTA section ── */
.cta-section {
  background:linear-gradient(135deg, var(--bg-card) 0%, rgba(0,255,234,0.04) 100%);
  border-top:1px solid var(--border); text-align:center; padding:64px 0;
}
.cta-section h2 { font-size:28px; font-weight:700; margin-bottom:12px; }
.cta-section p { font-size:15px; color:var(--text-muted); margin-bottom:24px; }

/* ── Footer ── */
.footer {
  background:var(--bg-card); border-top:1px solid var(--border);
  padding:48px 0 24px;
}
.footer-grid {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px; margin-bottom:32px;
}
.footer-brand .brand-icon {
  width:36px; height:36px; border-radius:8px;
  background:var(--acc); display:inline-flex; align-items:center; justify-content:center;
  font-weight:800; font-size:18px; color:var(--bg); margin-bottom:12px;
}
.footer-brand h4 { font-size:16px; font-weight:600; margin-bottom:6px; }
.footer-brand p { font-size:13px; color:var(--text-muted); line-height:1.5; max-width:300px; }
.footer-col h5 { font-size:13px; font-weight:600; margin-bottom:16px; color:var(--text-soft); }
.footer-col a {
  display:block; font-size:13px; color:var(--text-muted); margin-bottom:8px;
}
.footer-col a:hover { color:var(--acc); }
.footer-contacts p { font-size:13px; color:var(--text-muted); margin-bottom:6px; }
.footer-contacts i { color:var(--acc); width:18px; }
.footer-bottom {
  border-top:1px solid var(--border); padding-top:16px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px;
}
.footer-bottom p { font-size:12px; color:var(--text-dim); }
.footer-bottom a { color:var(--acc); }

/* ── Page header (inner pages) ── */
.page-header {
  padding-top:calc(var(--nav-h) + 40px); padding-bottom:40px;
  background:var(--bg-card); border-bottom:1px solid var(--border);
}
.page-header h1 { font-size:36px; font-weight:700; }
.page-header p { font-size:16px; color:var(--text-muted); margin-top:8px; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size:12px; color:var(--text-dim); margin-bottom:12px;
}
.breadcrumbs a { color:var(--text-muted); }
.breadcrumbs a:hover { color:var(--acc); }
.breadcrumbs .sep { margin:0 8px; }

/* ── Back to landing ── */
.back-link {
  display:inline-flex; align-items:center; gap:6px;
  font-size:13px; color:var(--text-muted); margin-bottom:20px;
}
.back-link:hover { color:var(--acc); }

/* ── CTA bar (sticky bottom) ── */
.cta-bar {
  position:fixed; bottom:0; left:0; right:0; z-index:999;
  background:rgba(5,8,15,0.95); backdrop-filter:blur(12px);
  border-top:1px solid var(--border);
  padding:12px 0; display:none;
}
.cta-bar .container { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.cta-bar p { font-size:14px; font-weight:500; }
.cta-bar .cta-bar-badge { font-size:11px; color:var(--acc); font-weight:600; }

/* ── Responsive ── */
@media (max-width:1024px) {
  .about-grid { grid-template-columns:1fr; gap:40px; }
  .admissions-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:768px) {
  .hero-title { font-size:36px; }
  .hero-subtitle { font-size:16px; }
  .section-title { font-size:26px; }
  .features-grid { grid-template-columns:1fr 1fr; }
  .gallery-grid { grid-template-columns:1fr 1fr; }
  .gallery-grid img { height:180px; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .nav-links { display:none; }
  .nav-links.open {
    display:flex; flex-direction:column; position:fixed; top:var(--nav-h);
    left:0; right:0; background:rgba(5,8,15,0.98); padding:16px;
    border-bottom:1px solid var(--border); gap:2px;
  }
  .nav-links.open a { padding:12px 16px; }
  .nav-toggle { display:block; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .cta-bar { display:block; }
  .page-header h1 { font-size:28px; }
}
@media (max-width:480px) {
  .hero-title { font-size:28px; }
  .features-grid { grid-template-columns:1fr; }
  .gallery-grid { grid-template-columns:1fr; }
  .hero { min-height:70vh; }
  .hero-actions { flex-direction:column; }
  .hero-actions .btn { width:100%; justify-content:center; }
}

/* ── Utilities ── */
.text-center { text-align:center; }
.mt-20 { margin-top:20px; }
.mb-20 { margin-bottom:20px; }
.gap-12 { gap:12px; }
