/* ANAKTANA EARLY LEARNING - Design System */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Shantell+Sans:wght@400;500&display=swap');

:root {
    --color-red: #C8553D;
    --color-red-dark: #a84530;
    --color-tosca: #588B8B;
    --color-tosca-dark: #4a7676;
    --color-blue: #8AA8B7;
    --color-yellow: #FDBC54;
    --color-pink: #FFD5C2;
    --color-black: #2F2F2F;
    --color-white: #FFFFFF;
    --color-gray-light: #f8f8f8;
    --color-gray: #e0e0e0;
    --color-whatsapp: #25D366;
    --color-orange: #E67E22;
    --color-peach: #FFE5D9;
    --color-text: #2F2F2F;
    --font-primary: 'Quicksand', sans-serif;
    --font-accent: 'Shantell Sans', cursive;
    --text-xs: 0.75rem; --text-sm: 0.875rem; --text-base: 1rem;
    --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem;
    --text-3xl: 1.875rem; --text-4xl: 2.25rem; --text-5xl: 3rem;
    --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
    --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;
    --space-3xl: 4rem; --space-4xl: 6rem;
    --radius-sm: 8px; --radius-md: 12px; --radius-lg: 20px;
    --radius-xl: 30px; --radius-full: 9999px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --transition-base: 0.3s ease;
    --container-max: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); font-weight: 500; color: var(--color-black); background: var(--color-white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition-base); }
ul, ol { list-style: none; }
button { font-family: var(--font-primary); cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); font-weight: 700; line-height: 1.2; }
h1 { font-size: var(--text-5xl); } h2 { font-size: var(--text-4xl); } h3 { font-size: var(--text-3xl); }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-4xl) 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); padding: 0.875rem 1.75rem; font-size: var(--text-base); font-weight: 600; border-radius: var(--radius-full); transition: var(--transition-base); }
.btn-primary { background: var(--color-red); color: var(--color-white); }
.btn-primary:hover { background: var(--color-red-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-tosca); color: var(--color-white); }
.btn-outline { background: transparent; border: 2px solid var(--color-tosca); color: var(--color-tosca); }
.btn-outline:hover { background: var(--color-tosca); color: var(--color-white); }
.btn-whatsapp { background: var(--color-whatsapp); color: var(--color-white); }

/* Header */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--color-white); box-shadow: var(--shadow-sm); padding: var(--space-md) 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 45px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav-menu { display: flex; align-items: center; gap: 0.75rem; flex-wrap: nowrap; }
.nav-menu a { font-size: 0.875rem; font-weight: 600; padding: 0.5rem 0.625rem; white-space: nowrap; }
.nav-menu { display: flex; align-items: center; gap: 0.75rem; flex-wrap: nowrap; }
.nav-menu a { font-size: 0.875rem; font-weight: 600; padding: 0.5rem 0.625rem; white-space: nowrap; }
.nav-menu a:hover { color: var(--color-red); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: var(--space-sm); }
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background: var(--color-black); border-radius: 2px; }

/* Hero */
.hero { position: relative; min-height: 100vh; padding-top: 100px; overflow: hidden; display: flex; align-items: center; }
.hero-bg-top { position: absolute; top: 0; left: 0; right: 0; height: 70%; background: var(--color-tosca); clip-path: ellipse(90% 100% at 50% 0%); z-index: -1; }
.hero-bg-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 200px; background: var(--color-yellow); clip-path: ellipse(80% 100% at 50% 100%); z-index: -1; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }
.hero-content { z-index: 1; }
.hero-title { font-size: var(--text-5xl); color: var(--color-white); margin-bottom: var(--space-lg); line-height: 1.2; }
.hero-text { font-size: var(--text-lg); color: var(--color-white); opacity: 0.9; margin-bottom: var(--space-xl); max-width: 500px; }
.hero-image { position: relative; z-index: 1; }
.hero-image-wrapper { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-image img { width: 100%; height: auto; object-fit: cover; }
.hero-decoration { position: absolute; z-index: 2; }
.hero-decoration.flower { top: -30px; right: -30px; width: 100px; }
.hero-decoration.butterfly { bottom: 20%; left: -50px; width: 80px; }

/* Programs */
.programs { padding: var(--space-4xl) 0; background: var(--color-white); }
.section-title { text-align: center; margin-bottom: var(--space-3xl); }
.section-title h2 { margin-bottom: var(--space-md); }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.program-card { background: var(--color-white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition-base); }
.program-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.program-card-image { height: 220px; overflow: hidden; }
.program-card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.program-card:hover .program-card-image img { transform: scale(1.05); }
.program-card-content { padding: var(--space-lg); }
.program-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.program-card .age-range { font-size: var(--text-sm); color: var(--color-tosca); font-weight: 600; margin-bottom: var(--space-md); }
.program-card .learn-more { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); font-weight: 600; color: var(--color-red); }
.program-card .learn-more:hover { gap: var(--space-md); }

/* Stats */
.stats { padding: var(--space-3xl) 0; background: var(--color-tosca); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }
.stat-item { text-align: center; color: var(--color-white); }
.stat-number { font-size: var(--text-5xl); font-weight: 700; margin-bottom: var(--space-sm); }
.stat-label { font-size: var(--text-base); opacity: 0.9; }

/* Testimonial */
.testimonial { padding: var(--space-4xl) 0; background: var(--color-pink); }
.testimonial .container { display: grid; grid-template-columns: 300px 1fr; gap: var(--space-3xl); align-items: center; }
.testimonial-header .quote-icon { width: 60px; height: 60px; color: var(--color-tosca); margin-bottom: var(--space-lg); }
.testimonial-header h2 { font-size: var(--text-3xl); line-height: 1.3; }
.testimonial-header h2 span { color: var(--color-red); }
.testimonial-card { background: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-xl); box-shadow: var(--shadow-md); }
.testimonial-text { font-size: var(--text-base); line-height: 1.8; margin-bottom: var(--space-lg); }
.testimonial-author { font-weight: 700; color: var(--color-red); }
.testimonial-nav { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-xl); }
.testimonial-nav button { width: 40px; height: 40px; border-radius: var(--radius-full); border: 2px solid var(--color-tosca); color: var(--color-tosca); display: flex; align-items: center; justify-content: center; }
.testimonial-nav button:hover { background: var(--color-tosca); color: var(--color-white); }
.testimonial-progress { flex: 1; height: 4px; background: var(--color-gray); border-radius: var(--radius-full); overflow: hidden; }
.testimonial-progress-bar { height: 100%; background: var(--color-red); width: 33%; }

/* Gallery */
.gallery-preview { padding: var(--space-4xl) 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); margin-bottom: var(--space-xl); }
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-cta { text-align: center; }

/* CTA Section */
.cta-section { padding: var(--space-4xl) 0; background: var(--color-gray-light); text-align: center; }
.cta-section h2 { font-size: var(--text-3xl); max-width: 700px; margin: 0 auto var(--space-xl); line-height: 1.4; }

/* Footer */
.footer { background: var(--color-red); color: var(--color-white); padding: var(--space-3xl) 0 var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-2xl); }
.footer-brand .logo { margin-bottom: var(--space-lg); }
.footer-brand .logo img { height: 50px; filter: brightness(0) invert(1); }
.footer-contact { font-size: var(--text-sm); line-height: 1.8; }
.footer-contact a { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-sm); }
.footer-social { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--color-white); color: var(--color-red); }
.footer-links h4 { font-size: var(--text-base); margin-bottom: var(--space-lg); }
.footer-links ul li { margin-bottom: var(--space-sm); }
.footer-links ul li a { font-size: var(--text-sm); opacity: 0.9; }
.footer-links ul li a:hover { opacity: 1; padding-left: var(--space-sm); }
.footer-bottom { padding-top: var(--space-xl); border-top: 1px solid rgba(255,255,255,0.2); text-align: center; font-size: var(--text-sm); opacity: 0.8; }

/* Floating WhatsApp */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; z-index: 999; }
.whatsapp-float a { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; background: var(--color-whatsapp); color: var(--color-white); border-radius: var(--radius-full); box-shadow: var(--shadow-lg); animation: pulse 2s infinite; }
.whatsapp-float a:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Dropdown Menu Styles */
.nav-menu li.has-dropdown {
    position: relative;
}

.nav-menu li.has-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-menu li.has-dropdown > a svg {
    transition: transform 0.3s ease;
}

.nav-menu li.has-dropdown:hover > a svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: var(--space-sm) 0;
    list-style: none;
}

.nav-menu li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: var(--text-sm);
}

.dropdown-menu li a:hover {
    background: var(--color-peach);
    color: var(--color-tosca);
}

/* Improve Dropdown Menu Styles */
.dropdown-menu {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu li a {
    white-space: nowrap;
}

/* Change dropdown to click-based instead of hover */
.nav-menu li.has-dropdown:hover .dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.nav-menu li.has-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu li.has-dropdown.active > a svg {
    transform: rotate(180deg);
}

/* Fix navigation menu text wrap */
.nav-menu a {
    white-space: nowrap;
}

.nav-menu {
    flex-wrap: nowrap;
}

/* Compact navigation for longer menu items */
.nav-menu a {
    padding: var(--space-xs) var(--space-sm) !important;
    font-size: 0.9rem !important;
}

.nav-menu {
    gap: var(--space-md) !important;
}
