/* 
   ESD EUROPEAN SCHOOL - MULTI-PAGE PREMIUM DESIGN SYSTEM
   Custom Palettes & High-End Typography
*/

:root {
    /* Color Palette - ESD Branding with Premium Touches */
    --primary: #6F9BDE;         /* Strategic Blue */
    --primary-light: #B1DFF4;   /* Sky Blue */
    --accent: #FFD67B;          /* Soft Sun Gold */
    --bg-cream: #FFE9C9;        /* Warm Premium Cream */
    --bg-white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #5D6D7E;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 4px;           /* Cleaner, sharper look like PCIS */
    --radius-md: 12px;
    --radius-lg: 24px;
    --container-width: 1200px;
    --section-padding-lg: 120px 24px;
    --section-padding-md: 80px 24px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-lg { padding: var(--section-padding-lg); }
.section-md { padding: var(--section-padding-md); }

.text-center { text-align: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #5A87C9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(111, 155, 222, 0.2);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-dark);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 16px 34px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* NAVIGATION (PCIS Style: Heavy, Clear, Sticky) */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    display: flex;
    gap: 15px;
}

/* HERO SYSTEM (Multi-page header) */
.page-header {
    height: 60vh;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45); /* Increased for premium look */
}

/* Premium Filter Overlay */
.premium-filter {
    position: relative;
    display: block;
    overflow: hidden;
}

.premium-filter::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Soft premium overlay */
    pointer-events: none;
    transition: var(--transition-smooth);
}

.premium-filter:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    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.3);
    z-index: 2000;
    transition: var(--transition-smooth);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.header-content {
    position: relative;
    z-index: 2;
}

.header-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
}

/* HOME HERO (Full Height) */
.hero-home {
    height: 100vh;
    background-image: url('hero-home.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-home::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 30px;
    color: var(--white);
}

/* GRID SYSTEM */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

/* BLOCKS & CARDS */
.card {
    background: var(--bg-white);
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.bg-cream { background-color: var(--bg-cream); }
.bg-primary { background-color: var(--primary); color: var(--white); }

/* FOOTER */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer h4 { color: var(--white); margin-bottom: 25px; font-size: 1.2rem; }
.footer p, .footer a { color: #aaa; font-size: 0.9rem; margin-bottom: 12px; display: block; }
.footer a:hover { color: var(--accent); }

/* MOBILE RESPONSIVENESS (Advanced Menu System) */
@media (max-width: 992px) {
    /* Layout Adjustments */
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; }
    .section-lg { padding: 80px 24px; }
    
    /* Typography Scaling */
    .hero-text h1 { font-size: 2.8rem; }
    .header-content h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    
    /* Navigation Reset */
    .nav-cta { display: none; } /* Hide secondary CTA on mobile */
    
    /* Hamburger Toggle */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 1001;
    }
    
    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-dark);
        transition: var(--transition-smooth);
    }
    
    /* Toggle Active State (X Animation) */
    .nav-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    
    /* Mobile Menu Overlay */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 100%;
        height: 100vh;
        background-color: var(--bg-cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 1000;
        transition: var(--transition-smooth);
        padding: 40px;
    }
    
    .nav-links.active {
        right: 0; /* Shown when active */
    }
    
    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-dark);
    }
    
    .nav-links a:hover {
        color: var(--primary);
    }
}

@media (min-width: 993px) {
    .nav-toggle { display: none; }
}
