/*
 * Century Rayon School - Modern Theme CSS
 * Version: 2.0
 * Description: Modern, light theme with maroon accents
 */

/* ==========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================== */
:root {
    /* Brand Colors */
    --primary-maroon: #7c3848;
    --maroon-light: #a24c58;
    --maroon-dark: #5d2a35;
    --accent-gold: #ffc107;
    --accent-gold-dark: #f5b800;
    
    /* Neutral Colors */
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-lighter: #fafbfc;
    --bg-cream: #f5f3ee;
    --text-dark: #2c3e50;
    --text-body: #34495e;
    --text-muted: #6c757d;
    --text-light: #95a5a6;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    
    /* Semantic Colors */
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.18);
    --shadow-hover: 0 6px 20px rgba(124, 56, 72, 0.2);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 50px;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Typography */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Raleway', Georgia, serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-maroon);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--maroon-dark);
    text-decoration: underline;
}

strong, b {
    font-weight: 600;
}

/* ==========================================
   MODERN NAVIGATION HEADER
   ========================================== */
.modern-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.modern-header.scrolled {
    box-shadow: var(--shadow-md);
}

.modern-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.modern-header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.modern-logo {
    height: 60px;
    width: 90px;
    border-radius: 0%;
/*    box-shadow: var(--shadow-sm);*/
    transition: transform var(--transition-base);
}

.modern-logo:hover {
    transform: scale(1.05);
}

.modern-school-name {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-maroon);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Desktop Navigation */
.modern-nav {
    display: flex;
    align-items: center;
}

.modern-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
}

.modern-menu > li {
    position: relative;
}

.modern-menu > li > a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.modern-menu > li > a:hover,
.modern-menu > li > a.active {
    background: var(--bg-light);
    color: var(--primary-maroon);
    text-decoration: none;
}

/* Dropdown Styles */
.modern-menu .dropdown-arrow {
    margin-left: 0.35rem;
    font-size: 0.7rem;
    transition: transform var(--transition-base);
}

.modern-menu > li:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.modern-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 240px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: var(--z-dropdown);
}

.modern-menu > li:hover .modern-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modern-submenu li {
    border-bottom: 1px solid var(--border-light);
}

.modern-submenu li:last-child {
    border-bottom: none;
}

.modern-submenu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.modern-submenu li a:hover {
    background: linear-gradient(135deg, var(--primary-maroon), var(--maroon-light));
    color: var(--white);
    padding-left: 1.75rem;
    text-decoration: none;
}

/* Mobile Toggle */
.modern-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-maroon);
    cursor: pointer;
    padding: 0.5rem;
}

/* ==========================================
   MODERN FOOTER
   ========================================== */
.modern-footer {
    background: linear-gradient(135deg, var(--primary-maroon), var(--maroon-dark));
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.modern-footer h5 {
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.modern-footer p,
.modern-footer a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.8;
}

.modern-footer a:hover {
    color: var(--accent-gold);
    text-decoration: none;
}

.modern-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.container-modern {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-modern {
    padding: 4rem 0;
}

.section-modern-alt {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.text-maroon {
    color: var(--primary-maroon);
}

.text-gold {
    color: var(--accent-gold);
}

.bg-maroon {
    background-color: var(--primary-maroon);
}

.bg-gold {
    background-color: var(--accent-gold);
}

/* Modern Section Headers */
.section-header-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header-modern h2 {
    color: var(--primary-maroon);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-header-modern p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.section-divider-modern {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-dark));
    border-radius: var(--radius-pill);
    margin: 0 auto;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .modern-menu {
        display: none;
    }
    
    .modern-mobile-toggle {
        display: block;
    }
    
    .modern-school-name {
        font-size: 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .modern-header-container {
        padding: 0.5rem 1rem;
    }
    
    .modern-logo {
        height: 50px;
        width: 50px;
    }
    
    .modern-school-name {
        font-size: 1rem;
    }
    
    .section-modern {
        padding: 2.5rem 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .section-header-modern h2 {
        font-size: 1.75rem;
    }
    
    .modern-school-name {
        font-size: 0.9rem;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-maroon), var(--maroon-dark));
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
