/* Lewis Academy Stylesheet */
:root {
  --primary: #1e3a8a;
  --primary-dark: #0f172a;
  --secondary: #d97706;
  --accent: #2563eb;
  --bg-light: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text-main); background: var(--bg-light); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 4.5rem 0; }
.text-center { text-align: center; }

.section-badge {
  display: inline-block; padding: 0.35rem 0.9rem; background: rgba(30, 58, 138, 0.08);
  color: var(--primary); border-radius: 9999px; font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.section-title { font-size: 2.2rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.section-desc { font-size: 1.05rem; color: var(--text-muted); max-width: 680px; margin: 0 auto 2.5rem auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; transition: all 0.2s ease; border: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #172554; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #b45309; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-white { border: 2px solid rgba(255,255,255,0.8); color: var(--white); background: rgba(255,255,255,0.1); }
.btn-outline-white:hover { background: var(--white); color: var(--primary-dark); }

/* Header */
.topbar { background: var(--primary-dark); color: rgba(255,255,255,0.88); font-size: 0.82rem; padding: 0.4rem 0; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; }
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.98); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand-logo { width: 50px; height: 50px; border-radius: 50%; object-fit: contain; }
.brand-text h1 { font-size: 1.3rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.brand-text span { font-size: 0.75rem; color: var(--secondary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

.nav-menu { display: flex; list-style: none; gap: 1.75rem; align-items: center; }
.nav-link { text-decoration: none; color: var(--text-main); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-dark); }

/* Hero */
.hero {
  position: relative; min-height: 520px; color: var(--white); display: flex; align-items: center; padding: 4.5rem 0 3.5rem 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 58, 138, 0.9) 100%);
}
.hero-content { max-width: 780px; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.5); color: #fef08a; padding: 0.35rem 0.9rem; border-radius: 9999px; font-size: 0.85rem; font-weight: 700; margin-bottom: 1.25rem; }
.hero-title { font-size: 2.85rem; font-weight: 900; line-height: 1.2; margin-bottom: 1rem; }
.hero-motto { color: #fcd34d; font-style: italic; display: block; font-size: 1.35rem; margin-top: 0.4rem; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.15); }
.stat-item h3 { font-size: 1.8rem; font-weight: 800; color: #fef08a; }
.stat-item p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.about-text p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.2rem; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.feature-box { background: var(--white); padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.feature-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-box h4 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
.feature-box p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.about-image-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid var(--white); }
.about-badge { position: absolute; bottom: 1.25rem; left: 1.25rem; background: rgba(15,23,42,0.88); backdrop-filter: blur(6px); color: var(--white); padding: 0.75rem 1.25rem; border-radius: 8px; border-left: 4px solid var(--secondary); }

/* Fees */
.fees-section { background: #f1f5f9; }
.fee-tabs { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.fee-tab-btn { padding: 0.6rem 1.3rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--white); font-weight: 600; font-size: 0.9rem; cursor: pointer; color: var(--text-muted); }
.fee-tab-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.fee-table-wrapper { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow-x: auto; margin-bottom: 1.5rem; }
.fee-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.fee-table th { background: var(--primary-dark); color: var(--white); padding: 1rem 1.2rem; font-weight: 700; font-size: 0.92rem; text-align: left; }
.fee-table td { padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text-main); }
.fee-table tr:hover { background: #f8fafc; }
.fee-table .amount { font-weight: 700; color: var(--primary); font-family: monospace; font-size: 0.95rem; }
.fee-table .total-amount { font-weight: 800; color: #b45309; font-size: 1rem; }
.tag-new { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; background: #dbeafe; color: #1e40af; }
.tag-old { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 700; background: #fef3c7; color: #92400e; }
.fee-notes { background: #eff6ff; border-left: 4px solid var(--primary); padding: 1.25rem; border-radius: 8px; font-size: 0.92rem; color: #1e3a8a; display: flex; gap: 0.75rem; align-items: flex-start; }

/* Gallery */
.gallery-controls { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.gallery-filter-btn { padding: 0.55rem 1.25rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--white); font-weight: 600; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.gallery-filter-btn.active, .gallery-filter-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-thumb-wrapper { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e2e8f0; }
.gallery-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover .gallery-thumb { transform: scale(1.05); }
.gallery-badge { position: absolute; top: 0.75rem; left: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--white); z-index: 2; }
.badge-art { background: #4f46e5; }
.badge-events { background: #e11d48; }
.badge-sports { background: #16a34a; }
.badge-academics { background: #0284c7; }
.badge-campus { background: #d97706; }
.gallery-info { padding: 1.1rem; }
.gallery-title { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; }
.gallery-caption { font-size: 0.88rem; color: var(--text-muted); }

/* Modal */
.lightbox-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15,23,42,0.94); backdrop-filter: blur(8px); z-index: 1000; align-items: center; justify-content: center; padding: 1.5rem; }
.lightbox-modal.active { display: flex; }
.lightbox-content { position: relative; max-width: 850px; width: 100%; background: #0f172a; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.lightbox-image-wrap { width: 100%; max-height: 65vh; display: flex; align-items: center; justify-content: center; background: #020617; }
.lightbox-image-wrap img { max-height: 65vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox-details { padding: 1.25rem 1.5rem; color: var(--white); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); }
.lightbox-close { position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(0,0,0,0.6); border: none; color: var(--white); font-size: 1.5rem; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; }
.lightbox-close:hover { background: #dc2626; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-card { background: var(--white); padding: 2.25rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.contact-info-item { display: flex; gap: 1rem; margin-top: 1.25rem; align-items: flex-start; }
.contact-icon { width: 42px; height: 42px; border-radius: 8px; background: rgba(30,58,138,0.1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.98rem; font-weight: 700; color: var(--primary); margin-bottom: 0.15rem; }
.contact-info-item p { font-size: 0.9rem; color: var(--text-muted); }
.map-wrapper { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-header { padding: 1.1rem 1.25rem; background: var(--primary-dark); color: var(--white); display: flex; justify-content: space-between; align-items: center; }
.map-iframe-container { width: 100%; height: 360px; }
.map-iframe-container iframe { width: 100%; height: 100%; border: none; }

/* Form */
.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text-main); margin-bottom: 0.35rem; }
.form-input, .form-textarea, .form-select { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.92rem; font-family: inherit; }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.toast-msg { position: fixed; bottom: 2rem; right: 2rem; padding: 1rem 1.5rem; background: #047857; color: var(--white); border-radius: 8px; box-shadow: var(--shadow-lg); font-weight: 600; display: none; z-index: 2000; }

/* Footer */
.footer { background: #090d16; color: rgba(255,255,255,0.8); padding: 3.5rem 0 2rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.75rem; }
.footer-logo { width: 44px; height: 44px; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.65); max-width: 420px; }
.footer-col h4 { color: var(--white); font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #f59e0b; }
.footer-bottom { padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

@media (max-width: 992px) {
  .hero-title { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu { position: fixed; top: 68px; left: -100%; width: 100%; height: calc(100vh - 68px); background: var(--white); flex-direction: column; padding: 2rem 1.5rem; gap: 1.5rem; transition: left 0.3s; box-shadow: var(--shadow-lg); }
  .nav-menu.open { left: 0; }
  .nav-toggle { display: block; }
  .hero-title { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar { display: none; }
}
