/* 
  Tlhako Secondary School - Core Design System
  Aesthetic: Swiss Modern / Minimalist
  Palette: Navy, Royal Blue, Sky Blue
*/

:root {
    /* Colors */
    --navy: #001A72;
    --royal-blue: #1E40AF;
    --sky-blue: #60A5FA;
    --white: #F8FAFC;
    --text-main: #00114d;
    --text-muted: #475569;
    --hero-overlay: rgba(0, 26, 114, 0.75);

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;
}

.menu-toggle,
.mobile-menu-overlay {
    display: none;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout Containers */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
}

/* Typography Utilities */
h1,
h2,
h3 {
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.text-sky {
    color: var(--sky-blue);
}

.text-white {
    color: white;
}

/* Navigation */
header {
    background: var(--navy);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 50px;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--sky-blue);
}

.btn-enroll {
    background: var(--royal-blue);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s;
}

.btn-enroll:hover {
    background: #2563EB;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: url('assets/hero-home.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero .motto {
    font-size: 1.5rem;
    color: var(--sky-blue);
    font-weight: 600;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background: var(--sky-blue);
    color: var(--navy);
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: white;
    transform: scale(1.05);
}

/* Page Hero (Subpages) */
.page-hero {
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url('assets/hero-home.png') center/cover no-repeat;
    padding: 30px 0;
    text-align: center;
    color: white;
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--navy);
}

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

.card {
    background: white;
    padding: 40px;
    border-left: 4px solid var(--royal-blue);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--navy);
}

/* Stats */
.stats {
    background: var(--navy);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h4 {
    font-size: 3rem;
    color: var(--sky-blue);
}

/* Footer */
footer {
    background: var(--navy);
    color: white;
    padding: 20px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-col h5 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--sky-blue);
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .nav-content {
        padding: 0 20px;
    }

    nav,
    .btn-enroll {
        display: none;
    }

    /* Hamburger Toggle */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        max-width: 100%;
        height: 100%;
        background: var(--navy);
        z-index: 1000;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .mobile-menu-overlay.active {
        transform: translateX(0);
    }

    .mobile-menu-overlay ul {
        list-style: none;
        text-align: center;
    }

    .mobile-menu-overlay li {
        margin-bottom: 25px;
    }

    .mobile-menu-overlay a {
        color: white;
        text-decoration: none;
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .mobile-menu-overlay a:hover {
        color: var(--sky-blue);
    }

    /* Toggle Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 20px;
    }
}

/* Forms & Input Elements */
.form-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy);
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Contact Page Components */
.contact-info {
    background: var(--navy);
    color: white;
    padding: 40px;
    border-radius: 8px;
}

.contact-info h3 {
    color: var(--sky-blue);
    margin-bottom: 25px;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Page Layout Grids */
.page-grid {
    display: grid;
    gap: 40px;
}

.page-grid-admission {
    grid-template-columns: 2fr 1fr;
}

.page-grid-contact {
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

@media (max-width: 992px) {

    .page-grid-admission,
    .page-grid-contact {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

/* Checklist Styling */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.checklist .form-section {
    margin-bottom: 30px;
}

.checklist .form-section.accent-border {
    border-left: 4px solid var(--sky-blue);
}

.checklist .form-section.navy-bg {
    background: var(--navy);
    color: white;
}

.checklist .form-section.navy-bg h3 {
    color: var(--sky-blue);
}

.checklist ul {
    list-style: none;
    font-size: 0.9rem;
}

.checklist li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contact Info Refinement */
.contact-info strong {
    display: block;
    font-size: 1.1rem;
    color: var(--sky-blue);
    margin-bottom: 2px;
}

.contact-info ul li i {
    flex-shrink: 0;
    margin-top: 5px;
}