/*
 * EduLead Main CSS
 * Vanilla CSS for maximum performance (90+ PageSpeed)
 */

:root {
	--color-primary: #2563eb;
	--color-secondary: #1e40af;
	--color-accent: #f59e0b;
	--text-main: #334155;
	--text-muted: #64748b;
	--bg-light: #f8fafc;
	--bg-white: #ffffff;
	--font-primary: 'Inter', sans-serif;
	--font-heading: 'Roboto', sans-serif;
}

/* Reset & Basics */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-primary); color: var(--text-main); line-height: 1.6; background-color: var(--bg-white); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; line-height: 1.2; }
a { color: var(--color-primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--color-secondary); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* Utility Classes */
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }
.bg-primary { background-color: var(--color-primary); color: white; }
.bg-dark { background-color: #0f172a; color: white; }
.text-center { text-align: center; }
.text-white { color: white !important; }
.text-primary { color: var(--color-primary) !important; }
.text-muted { color: var(--text-muted); }
.shadow { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.rounded { border-radius: 0.5rem; }
.rounded-circle { border-radius: 50%; }
.rounded-pill { border-radius: 50rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.w-100 { width: 100%; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1.5rem; }
.flex-wrap { flex-wrap: wrap; }
.max-w-600 { max-width: 600px; margin: 0 auto; }
.max-w-800 { max-width: 800px; margin: 0 auto; }

/* Buttons */
.btn { display: inline-block; font-weight: 500; text-align: center; white-space: nowrap; vertical-align: middle; user-select: none; border: 1px solid transparent; padding: 0.5rem 1.5rem; font-size: 1rem; line-height: 1.5; border-radius: 0.25rem; transition: color 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s; cursor: pointer; }
.btn-primary { color: #fff; background-color: var(--color-primary); border-color: var(--color-primary); }
.btn-primary:hover { background-color: var(--color-secondary); border-color: var(--color-secondary); color: white; }
.btn-secondary { color: #fff; background-color: var(--color-secondary); border-color: var(--color-secondary); }
.btn-warning { color: #212529; background-color: var(--color-accent); border-color: var(--color-accent); }
.btn-light { color: var(--color-primary); background-color: #fff; border-color: #fff; }
.btn-outline-light { color: #fff; background-color: transparent; border-color: #fff; }
.btn-outline-light:hover { color: var(--color-primary); background-color: #fff; }
.btn-outline-primary { color: var(--color-primary); background-color: transparent; border-color: var(--color-primary); }
.btn-outline-primary:hover { color: #fff; background-color: var(--color-primary); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.875rem; }

/* Forms */
.form-control { display: block; width: 100%; padding: 0.75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #495057; background-color: #fff; background-clip: padding-box; border: 1px solid #ced4da; border-radius: 0.25rem; transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; }
.form-control:focus { color: #495057; background-color: #fff; border-color: var(--color-primary); outline: 0; box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25); }

/* Header & Navigation */
.announcement-bar { background-color: var(--color-primary); color: white; text-align: center; padding: 5px 0; font-size: 0.85rem; }
.announcement-bar p { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; }
.site-header { background: white; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.site-branding .site-title { margin: 0; font-size: 1.5rem; font-weight: 700; }
.main-navigation ul { list-style: none; display: flex; margin: 0; padding: 0; }
.main-navigation li { margin: 0 15px; position: relative; }
.main-navigation a { color: var(--text-main); font-weight: 500; }
.main-navigation a:hover { color: var(--color-primary); }
.header-cta { display: flex; align-items: center; gap: 15px; }
.btn-call { display: flex; align-items: center; gap: 5px; color: var(--color-primary); font-weight: 600; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Modern */
.hero-modern { position: relative; height: 80vh; min-height: 600px; display: flex; align-items: center; background-size: cover; background-position: center; color: white; text-align: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(15,23,42,0.9), rgba(15,23,42,0.6)); }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-title { font-size: 3.5rem; margin-bottom: 20px; }
.hero-title span { color: var(--color-accent); }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 30px; opacity: 0.9; }

/* Grid Systems */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.stat-card { padding: 30px; background: white; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s; }
.stat-card:hover { transform: translateY(-5px); }
.stat-icon { font-size: 2.5rem; margin-bottom: 15px; }
.stat-number { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 5px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image-wrapper { position: relative; }
.rounded-image { border-radius: 20px; width: 100%; }
.floating-badge { position: absolute; bottom: -20px; right: -20px; background: var(--color-accent); color: white; padding: 20px; border-radius: 10px; text-align: center; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.feature-list { list-style: none; margin: 20px 0; }
.feature-list li { margin-bottom: 10px; font-weight: 500; color: #334155; }

.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.course-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.3s; }
.course-card:hover { transform: translateY(-5px); }
.course-thumbnail img { width: 100%; height: 200px; object-fit: cover; }
.course-info { padding: 20px; }
.course-title { font-size: 1.25rem; margin-bottom: 10px; }
.course-excerpt { margin-bottom: 15px; color: var(--text-muted); }

/* Preschool Theme Specifics */
.homepage-preschool .hero-preschool { display: flex; align-items: center; padding: 100px 0; background: #fff5f5; }
.homepage-preschool .hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.homepage-preschool .kids-font { font-family: 'Comic Sans MS', 'Chalkboard SE', cursive, sans-serif; color: #ff6b6b; }
.homepage-preschool .bg-light-colorful { background-color: #f8fdf8; }
.activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.activity-card { padding: 30px; background: white; border-radius: 20px; text-align: center; border-bottom: 5px solid #eee; }
.activity-icon { font-size: 3rem; margin-bottom: 15px; }
.blob-shape { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; animation: morph 8s ease-in-out infinite; }
@keyframes morph { 0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; } 34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; } 67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; } }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Sticky Elements & Popups */
.sticky-whatsapp { position: fixed; bottom: 30px; right: 30px; background-color: #25d366; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 999; transition: transform 0.3s; }
.sticky-whatsapp:hover { transform: scale(1.1); }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; visibility: hidden; transition: all 0.3s; backdrop-filter: blur(5px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: white; padding: 40px; border-radius: 10px; width: 100%; max-width: 500px; position: relative; transform: translateY(-20px); transition: transform 0.3s; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-widget-column h3 { color: white; margin-bottom: 20px; }
.footer-widget-column ul { list-style: none; }
.footer-widget-column ul li { margin-bottom: 10px; }
.footer-widget-column a { color: #cbd5e1; }
.footer-widget-column a:hover { color: var(--color-accent); }
.site-info { text-align: center; padding: 20px 0; border-top: 1px solid #1e293b; font-size: 0.9rem; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.menu-toggle { display: block; }
	.main-navigation ul { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; flex-direction: column; padding: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.1); }
	.main-navigation ul.toggled { display: flex; }
	.main-navigation li { margin: 10px 0; }
	.header-cta .btn-call { display: none; }
	.hero-modern { height: auto; padding: 100px 0; }
	.hero-title { font-size: 2.5rem; }
	.about-grid { grid-template-columns: 1fr; }
	.gallery-grid { grid-template-columns: 1fr; }
	.homepage-preschool .hero-content { grid-template-columns: 1fr; text-align: center; }
	.stats-grid { grid-template-columns: 1fr 1fr; }
}
