/* --- 1. Global Reset and Variables --- */
:root {
    --color-primary: #A52A2A; /* Deep, earthy red/maroon, invoking tradition */
    --color-secondary: #000000; /* Deep black for strong contrast */
    --color-light: #F5F5DC; /* Creamy off-white/ivory for background */
    --color-text: #333333;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #FFFFFF;
    line-height: 1.6;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: #CC5555; /* Slightly lighter red on hover */
}

/* --- Header and Navigation --- */
header {
    background-color: var(--color-secondary);
    color: var(--color-light);
    padding: 15px 0;
    opacity: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; 
}

.logo {
    flex-grow: 1; /* Allows logo to take up available space */
}

.logo-title {
    color: var(--color-light);
    font-size: 1.8em; /* Slightly reduced for better fit */
}

.logo-subtitle {
    font-size: 0.85em;
    opacity: 0.8;
}

/* --- Navigation Styling --- */
.nav-menu ul {
    list-style: none;
    display: flex; /* Default: Horizontal layout for desktop */
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu li a {
    color: var(--color-light);
    font-weight: 700;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 20px;
    transition: background-color 0.3s, color 0.3s;
}

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

/* --- Hamburger Menu Styling (Hidden by default on desktop) --- */
.hamburger {
    display: none; /* Hide hamburger by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it's above the menu */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-light);
    transition: all 0.3s ease-in-out;
}

/* --- 4. Hero Section --- */
#hero {
    background: url('./brush-shotokan-tiger.png') no-repeat center center/cover; 
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    /* margin-top: 70px;  */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55); /* Dark overlay */
}

.hero-content {
    z-index: 10;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- 5. General Section Styling --- */
.section-padding {
    padding: 100px 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 10px auto 0;
}


/* --- 6. About Section --- */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content .text-block {
    flex: 2;
}

.about-content .image-placeholder {
    flex: 1;
}

.image-placeholder img {
    width: 100%;
    height: auto;
    border: 5px solid var(--color-primary);
    border-radius: 5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- 7. Fees Section --- */
#fees {
    text-align: center;
}

.fees-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.fee-box {
    background: white;
    padding: 30px;
    border: 1px solid #DDD;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 450px;
    text-align: center;
    flex: 1;
    min-width: 250px;
}

.fee-box h4 {
    color: var(--color-primary);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.fee-box p {
    font-size: 1.1em;
}


/* --- 8. Instructors Section --- */
#instructors {
    text-align: center;
}

.instructor-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.instructor-card {
    background: white;
    padding: 30px;
    border: 1px solid #DDD;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.instructor-card h4 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin-bottom: 10px;
}


/* --- 9. Schedule & Classes Section --- */
#schedule {
    background-color: var(--color-secondary); /* Dark background for contrast */
    color: var(--color-light);
}

#schedule h2 {
    color: var(--color-light);
}

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

.schedule-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent dark background */
    padding: 30px;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

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

.schedule-card h4 {
    color: var(--color-primary);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.schedule-card p {
    font-size: 1.05em;
}


/* --- 10. Contact Section --- */
#contact {
    background-color: #111111; /* Even darker for final contact emphasis */
    color: var(--color-light);
}

#contact h2 {
    color: var(--color-light);
}

#contact p {
    margin-bottom: 20px;
}

.contact-details p {
    margin: 8px 0;
    font-size: 1.1em;
}

.light-text h3 {
    color: var(--color-light);
    font-weight: 400;
}

/* --- 11. Footer --- */
footer {
    background-color: #111111;
    color: #AAAAAA;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    /* Show hamburger button */
    .hamburger {
        display: block;
    }

    /* Hide the navigation menu by default on mobile */
    .nav-menu {
        position: absolute;
        top: 100%; /* Position right below the header */
        left: 0;
        width: 100%;
        background-color: var(--color-secondary);
        /* Initially hidden */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    /* State for when the menu is active (JS will add this class) */
    .nav-menu.active {
        max-height: 300px; /* Set a large enough height to show all links */
        padding: 15px 0;
    }

    .nav-menu ul {
        flex-direction: column; /* Stack links vertically */
        width: 100%;
        padding: 0 20px;
    }

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu li a {
        display: block; /* Make the whole area clickable */
        padding: 15px 0;
        width: 100%;
    }

    .fees-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .hero-content h2 {
        font-size: 2.5em;
    }
    .section-padding {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2em;
    }
    /* Ensure navigation items stack nicely on small screens */
    header .header-content {
        padding: 10px 10px;
}
}
