/* =========================================
   File Location: /css/style.css
   Description: Main Stylesheet for Great Goodluck Schools
   ========================================= */

:root {
    /* Prestigious Nigerian School Color Palette */
    --primary-green: #0a4d2e;
    --primary-green-dark: #06311d;
    --primary-gold: #c5a059;
    --primary-gold-light: #dfba73;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-main: #333333;
    --white: #ffffff;
    --danger: #d32f2f;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

/* Typography
   ========================================= */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
}

p {
    font-size: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

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

/* =========================================
   Navigation & Logo
   ========================================= */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

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

/* Explicit Logo Sizing */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 15px;
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 700;
    line-height: 1.1;
}

.logo-text span {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-gold);
    font-family: 'Inter', sans-serif;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    padding: 4px 0;
}

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

/* =========================================
   Buttons
   ========================================= */
.btn {
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
}

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

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

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

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

.btn-outline {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: transparent;
}

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

/* =========================================
   Hero Section
   ========================================= */
.hero {
    background-color: var(--primary-green);
    background-image: url('/images/pic1.jpg'); /* root-relative to match header.php */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 120px 0;
    min-height: 80vh;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 77, 46, 0.85);
}

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

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-gold);
    margin-bottom: 20px;
    background: #fff;
}

.hero h1 {
    color: var(--white);
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* =========================================
   Grid Components
   ========================================= */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* =========================================
   Stats Bar
   ========================================= */
.stats {
    background: var(--primary-gold);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.stat-card h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* =========================================
   Cards & Uniform Images
   ========================================= */
.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.divider {
    height: 3px;
    width: 60px;
    background: var(--primary-gold);
    margin: 15px 0 25px 0;
}

.divider.center {
    margin: 15px auto 30px auto;
}

/* =========================================
   Admission Banner
   ========================================= */
.admission-banner {
    background: #e8f5e9;
    border: 2px solid var(--primary-green);
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.bank-details {
    background: var(--white);
    padding: 20px;
    border-radius: 5px;
    font-family: 'Inter', monospace;
    font-size: 1.05em;
    margin: 20px auto;
    display: inline-block;
    text-align: left;
    border-left: 4px solid var(--primary-gold);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--primary-green-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
}

.footer ul li a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
    line-height: 2;
    font-size: 0.95rem;
}

.footer ul li a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    text-align: center;
}

/* =========================================
   WhatsApp Float
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: var(--transition);
    font-size: 30px;
    text-decoration: none;
}

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

/* =========================================
   Mobile Responsiveness
   ========================================= */
@media (max-width: 992px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }

    .hero {
        min-height: 60vh;
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .logo-text {
        font-size: 1.2rem;
    }

    .logo img {
        height: 45px;
    }

    .bank-details {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   Animation & Interactive States
   ========================================= */

/* Navbar Scroll State */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/* Scroll Animation Classes (Fade Up) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for cards */
.grid-3 .card:nth-child(1) {
    transition-delay: 0.1s;
}

.grid-3 .card:nth-child(2) {
    transition-delay: 0.3s;
}

.grid-3 .card:nth-child(3) {
    transition-delay: 0.5s;
}

.grid-4 .stat-card:nth-child(1) {
    transition-delay: 0.1s;
}

.grid-4 .stat-card:nth-child(2) {
    transition-delay: 0.2s;
}

.grid-4 .stat-card:nth-child(3) {
    transition-delay: 0.3s;
}

.grid-4 .stat-card:nth-child(4) {
    transition-delay: 0.4s;
}

/* =========================================
   Mobile Hamburger Menu Styles
   ========================================= */
.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.7rem;
    color: var(--primary-green);
    background: none;
    border: none;
}

/* Mobile Nav */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transition: left 0.4s ease;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 8px 0;
    }

    .nav-links a {
        display: inline-block;
        width: 100%;
    }

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