/* 
==============
TAPAS-TI ACADEMY - STABLE HIGH-CONTRAST THEME
==============
*/

:root {
    /* Brand Palette */
    --color-primary: #1F4F2D;
    /* Forest Green */
    --color-secondary: #D7C7A3;
    /* Earthy Beige */
    --color-accent: #C9A64C;
    /* Deep Gold */
    --color-text-main: #222222;
    /* Almost Black */
    --color-text-light: #555555;
    /* Dark Grey */
    --color-white: #FFFFFF;

    /* Layout */
    --container-width: 1280px;
    --header-height: 100px;
    --border-radius: 12px;

    /* Shadows */
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Base Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text-main);
    background-color: #F9F7F2;
    /* Light Beige Tint */
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: 0.3s;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* 
==============
UTILITIES
==============
*/
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.bg-green {
    background-color: var(--color-primary);
    color: white;
}

.bg-beige {
    background-color: var(--color-secondary);
    color: var(--color-text-main);
}
.bg-green .container div {
    margin-left: 0px !important;
    margin-right: 1rem;
    margin-bottom: 25px;
}
/* Modern Section Utilities */
.bg-green-dark {
    background-color: #14361e;
    /* Darker, richer green */
    color: white;
}

.bg-green-dark .section-title,
.bg-green-dark h2,
.bg-green-dark h3,
.bg-green-dark p {
    color: white !important;
}

.bg-green-dark .section-title::after {
    background-color: var(--color-accent);
}

/* Minimal "Clean" Card (No Border, just Layout) */
.clean-card {
    background: transparent;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.clean-card:hover {
    transform: translateY(-5px);
}

.clean-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

/* Refined Section Title */
.section-title {
    font-size: 3rem;
    /* Larger */
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    letter-spacing: -1px;
    /* Modern tight tracking */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background-color: var(--color-accent);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
}

/* 
==============
HEADER
==============
*/
.main-header {
    height: 110px;
    /* Tall header */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    background: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo img {
    max-height: 70px;
    /* Maximized Size */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Hero Subtext Fix */
.anim-hero.text-contrast-fix {
    color: var(--color-primary) !important;
    /* Force Dark Green for Contrast */
    font-weight: 800 !important;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-primary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

/* Force Header Button Style */
.nav-links .btn {
    padding: 0.8rem 2rem;
    background-color: var(--color-primary) !important;
    color: white !important;
    border-radius: 50px;
    border: none;
    transition: transform 0.2s, background-color 0.2s;
}

.nav-links .btn:hover {
    transform: translateY(-2px);
    background-color: #14361e !important;
    color: white !important;
}

/* Checklist Styling */
.checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    text-align: left;
}

.checklist li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Force Header Button Style */
.nav-links .btn {
    padding: 0.8rem 2rem;
    background-color: var(--color-primary) !important;
    color: white !important;
    border-radius: 50px;
    border: none;
    transition: transform 0.2s, background-color 0.2s;
}

.nav-links .btn:hover {
    transform: translateY(-2px);
    background-color: #14361e !important;
    color: white !important;
}

/* Checklist Styling */
.checklist {
    padding: 0;
    margin: 0;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    /* Align to top for multi-line */
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-align: left;
    line-height: 1.4;
}

.checklist li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
    /* Optical alignment */
}

/* Button Variants */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #14361e;
    border-color: #14361e;
    color: white;
}

.btn-gold {
    background-color: var(--color-accent);
    color: white;
    /* Gold bg, white text for contrast */
    border: 2px solid var(--color-accent);
    box-shadow: 0 4px 15px rgba(201, 166, 76, 0.4);
}

.btn-gold:hover {
    background-color: #b08d35;
    border-color: #b08d35;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* 
==============
HERO SECTION
==============
*/
.hero-section {
    position: relative;
    min-height: 100vh;
    /* Allow expansion for tall content on mobile */
    display: flex;
    align-items: center;
    /* Use the NEW Architecture BG */
    background: url('../assets/images/hero_bg_v2.png') no-repeat center center/cover;
    padding-bottom: 4rem;
    /* Buffer for mobile overflow */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient: Darker Overlay for Text Contrast */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-top: 80px;
}

/* Global Module Styling Fix */
.module-card {
    padding: 1.5rem;
    /* Increased padding */
    padding-left: 2rem;
    /* Keep left accent spacing */
    border-left: 4px solid var(--color-primary);
    border-radius: 30px;
    /* User Request: New Visual */
    margin-bottom: 2rem;
    background: white;
    /* Ensure bg is white for radius to show if on colored bg */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Soft shadow for card feel */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Adapt align-content */
}

.module-card h3 {
    padding: 1rem;
    /* User Request: 15px -> 1rem */
    margin-bottom: 0;
}

/* Desktop Hero Buttons */
/* Desktop Hero Buttons (Robust Fix) */
@media screen and (min-width: 961px) {
    .hero-buttons {
        display: flex;
        flex-direction: row !important;
        gap: 1.5rem;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: auto !important;
        /* Force natural width */
        padding: 1rem 2.5rem;
        margin-bottom: 0;
    }
}

/* 
==============
FOOTER
==============
*/
footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 0;
}

footer a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

footer .logo img {
    /* Resetting filter to show original logo */
    filter: none;
    opacity: 0.9;
    height: 60px;
}

/* 
==============
RESPONSIVE / MOBILE
==============
*/

/* Burger Menu Icon (Hidden by default) */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1100;
}

.burger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* 
   MOBILE STYLES (Max-Width: 960px)
   Wraps ALL mobile adjustments in one clean block.
*/
@media screen and (max-width: 960px) {

    /* Header Adjustments */
    .main-header {
        padding: 0 1.25rem;
        /* User Request: Align to corners */
        height: 80px;
        justify-content: space-between;
        /* Force Logo Left, Burger Right */
    }

    /* Fix Layout: Remove Nav Wrapper from Flex Flow so Burger goes Right */
    .main-header nav {
        position: absolute;
        width: 100%;
        height: 0;
        top: 0;
        left: 0;
        pointer-events: none;
        /* Let clicks pass through */
    }

    /* Stats Fix: Force Column on Mobile */
    .impact-stats {
        flex-direction: column !important;
        gap: 3rem !important;
    }

    .impact-stats>div {
        width: 100%;
    }

    .logo img {
        height: 50px;
        /* Resize logo slightly for mobile */
    }

    /* Burger Menu Visible */
    .burger-menu {
        display: block;
        position: relative;
        /* Ensure z-index works */
        z-index: 2000;
        /* Sit ON TOP of everything */
        pointer-events: auto;
        /* Force clickable */
        cursor: pointer;
    }

    /* Navigation Overlay */
    /* Navigation Overlay */
    .nav-links {
        position: fixed;
        right: 0px;
        top: 0px;
        height: 100vh;
        width: 100%;
        /* Full width mobile menu */
        background-color: #F9F7F2;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-left: 10%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1500;
        /* High z-index */
        pointer-events: auto;
        /* Enable clicks */
        padding-top: 60px;
    }

    /* Active State (Slide In) */
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 1.5rem;
        opacity: 0;
        /* For GSAP Stagger (Mobile Only) */
    }

    /* BLOW UP TEXT */
    .nav-links a {
        font-size: 3rem;
        font-weight: 800;
        text-align: left;
        color: var(--color-primary);
        line-height: 1.1;
        display: block;
    }

    /* Hero Type & Layout */
    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    /* Fixed Responsive Text */
    h2,
    .section-title {
        font-size: 2rem !important;
        /* Force smaller H2 on mobile */
        line-height: 1.3;
    }

    .clean-card h3 {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.5rem;
        /* User Request: Increased Spacing */
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    /* Global Mobile Adjustments */
    .section-padding {
        padding: 3rem 0;
    }

    .glass-card {
        padding: 2rem !important;
    }

    /* Adapt Module Card for Mobile */
    .module-card {
        padding: 1.5rem;
        /* Inherit border-radius: 30px from global */
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}