/* ========================================
   MAKINDYE SECONDARY SCHOOL - AUTHENTIC COLORS
   ======================================== */

:root {
    /* MAROON/RED COLORS (From School Logo) */
    --primary-900: #5C1A1A; /* Deep Maroon */
    --primary-800: #7D2121; /* Rich Dark Maroon */
    --primary-700: #8B0000; /* PRIMARY BRAND MAROON (Logo Color) */
    --primary-600: #A52A2A; /* Medium Maroon */
    --primary-500: #B22222; /* Firebrick - Lighter Maroon */

    /* CREAM/BEIGE COLORS (From School Logo) */
    --accent-500: #F5E6D3; /* PRIMARY BRAND CREAM (Logo Background) */
    --accent-400: #E8D4BC; /* Deeper Cream/Beige */
    
    /* SYSTEM COLORS - Warmed up to match the maroon theme */
    --success-500: #06a77d;
    --danger-500: #e63946;
    --neutral-50:  #FFFEFA; /* Warmer white */
    --neutral-100: #F8F5F2; /* Light cream */
    --neutral-200: #F0E6D3; /* Same as accent-500 */
    --neutral-300: #E8D4BC; /* Same as accent-400 */
    --neutral-400: #D4B8A0; /* Warm beige */
    --neutral-600: #5C1A1A; /* Same as primary-900 - warm dark text */
    --neutral-700: #4A1414; /* Darker maroon for body text */
    --neutral-900: #2E0E0E; /* Deep maroon for headings */
    
    /* UI ELEMENTS - Updated to use maroon shadows */
    --shadow-sm: 0 1px 2px rgba(92, 26, 26, 0.05);
    --shadow-md: 0 4px 6px rgba(92, 26, 26, 0.1);
    --shadow-lg: 0 10px 15px rgba(92, 26, 26, 0.1);
    --shadow-xl: 0 20px 25px rgba(92, 26, 26, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Additional colors for specific uses */
    --rotary-blue: #2548a0;
    --rotary-gold: #ff6b35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--neutral-900);
    background-color: #ffffff;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* CONTAINER & LAYOUT */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
}

h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    margin-bottom: 0.95rem;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.9rem;
}

p {
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

/* TEXT UTILITIES */
.text-primary {
    color: var(--primary-700);
}

.text-secondary {
    color: var(--neutral-900);
}

.text-accent {
    color: var(--accent-500);
}

/* SPACING UTILITIES */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.py-4 { padding: 2rem 0; }
.py-5 { padding: 3rem 0; }
.py-6 { padding: 4rem 0; }

/* HEADER & NAVIGATION */
.header {
    background: white;
    border-bottom: 2px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-fast);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--accent-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.school-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--accent-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.75rem 1.2rem;
    color: var(--neutral-900);
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-700);
    background: rgba(65, 105, 255, 0.08);
    border-radius: var(--radius-md);
}

.nav-link.active {
    color: var(--primary-700);
    background: rgba(65, 105, 255, 0.1);
    border-radius: var(--radius-md);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.2rem;
    right: 1.2rem;
    height: 3px;
    background: var(--accent-500);
    border-radius: 3px 3px 0 0;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1100;
}

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

.dropdown-item {
    padding: 0.75rem 1.5rem;
    display: block;
    color: var(--neutral-900);
    font-size: 0.9rem;
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(92, 26, 26, 0.05);
    color: var(--primary-700);
}

.nav-link i {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--primary-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(12px, 12px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-700) 100%);
}

.btn-secondary {
    background: white;
    color: var(--primary-700);
    border: 2px solid var(--primary-700);
}

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

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

.btn-accent:hover {
    background: #ff5a2a;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 50%, var(--accent-500) 100%);
    color: white;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,20 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,.05)"/></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-image {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.placeholder-image i {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.8);
}

/* CARDS & SECTIONS */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-500);
    border-radius: 2px;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 1px solid var(--neutral-200);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-700);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.75rem;
}

.card-link {
    color: var(--primary-700);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
    margin-top: 1rem;
}

.card-link:hover {
    gap: 0.75rem;
    color: var(--accent-500);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

/* QUICK LINKS SECTION */
.quick-links {
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
    padding: 4rem 0;
}

.link-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
}

.link-card:hover {
    border-left-color: var(--accent-500);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.link-card i {
    font-size: 2.5rem;
    color: var(--primary-700);
    margin-bottom: 1rem;
}

/* FEATURES SECTION */
.features {
    padding: 4rem 0;
}

.feature-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

/* TESTIMONIALS */
.testimonials {
    background: var(--neutral-100);
    padding: 4rem 0;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    color: var(--neutral-700);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-700);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* FORMS */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--neutral-700);
}

input, textarea, select {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-700);
    box-shadow: 0 0 0 3px rgba(65, 105, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* FOOTER */
.footer {
    background: var(--neutral-900);
    color: var(--accent-500);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-400);
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--accent-500);
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--accent-500);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    color: var(--accent-500);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-500);
    color: white;
    transform: translateY(-3px);
}

/* ALERTS & NOTIFICATIONS */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(6, 168, 125, 0.1);
    border-left-color: var(--success-500);
    color: #047857;
}

.alert-danger {
    background: rgba(230, 57, 70, 0.1);
    border-left-color: var(--danger-500);
    color: #991b1b;
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 100%);
    color: white;
    padding: 4rem 0;
    margin-top: 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-link {
        padding: 1rem 0;
    }

    .nav-link.active::after {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .placeholder-image {
        width: 250px;
        height: 250px;
    }

    .placeholder-image i {
        font-size: 80px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .feature-item {
        grid-template-columns: 80px 1fr;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 2rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 80px 16px 60px;
    }

    .page-header {
        padding: 2rem 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .card {
        padding: 1.5rem;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(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-right {
    animation: slideInRight 0.6s ease-out;
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-700);
}

.text-accent {
    color: var(--accent-500);
}

.hidden {
    display: none !important;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 1rem;
}

.bg-light {
    background: var(--neutral-100);
}

.bg-white {
    background: white;
}
