/* =========================================
   1. CORE THEME: Modern Editorial
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    /* --- ORIGINAL PALETTE --- */
    --accent-green: #99cc99;   /* Sage Green */
    --accent-yellow: #ffffcc;  /* Sunny Yellow */
    --text-dark: #1a1a1a;      /* Almost Black */
    --text-grey: #555555;      /* Softer grey */
    --bg-white: #ffffff;
    --bg-offwhite: #fafafa;
    
    /* --- TRAINING PAGE ADDITIONS --- */
    --honey-gold: #d4a017;
    --soft-bg: #faf9f6;        /* Very light cream for training modules */
    
    /* --- DIMENSIONS --- */
    --header-height: 80px;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* =========================================
   2. NAVIGATION & HEADER
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Keep sticky as preferred */
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: var(--header-height);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav ul { display: flex; gap: 40px; align-items: center; }
nav a {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    position: relative;
}

/* Underline animation */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-green);
    transition: width 0.3s;
}
nav a:hover::after { width: 100%; }

.hidden { display: none !important; }

/* --- MOBILE MENU --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    header { padding: 1.5rem 4vw; }
    .menu-toggle {
        display: block;
        /* header is a 3-item flex row (logo / toggle / nav) with space-between;
           on mobile nav's only child is hidden so nav collapses to 0 width,
           which left the toggle stranded mid-row instead of at the edge. */
        margin-left: auto;
    }
    nav ul {
        display: none; /* Hides the menu */
        flex-direction: column;
        gap: 0; /* override the desktop 40px gap; spacing handled per-item below */
        width: 100%;
        background-color: white;
        position: absolute;
        top: var(--header-height);
        left: 0;
        padding: 8px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        /* keep the whole menu on screen: cap height and scroll if it ever overflows */
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    nav ul.active { display: flex; }
    nav ul li { margin: 0; width: 100%; text-align: center; }
    nav ul li a { display: block; padding: 14px 0; }
    /* language switch: a centered pill, clearly separated from the links */
    nav ul li a.lang-switch { display: inline-block; margin: 10px auto; }
}

/* =========================================
   3. STANDARD PAGE STYLES (Home, About, etc.)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero - Standard */
.hero {
    min-height: 90vh;
    background: linear-gradient(to bottom, var(--bg-white), var(--accent-yellow));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.hero h1 { font-size: 4rem; max-width: 1000px; }
.hero p { font-size: 1.4rem; max-width: 700px; margin-bottom: 50px; font-weight: 300; color: var(--text-grey); }

/* Buttons - Standard */
.btn-main {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 15px 40px;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border: 1px solid var(--text-dark);
    cursor: pointer;
}
.btn-main:hover {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--text-dark);
}

/* Standard Grids */
section { padding: 80px 10%; } /* Adjusted padding slightly */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 80px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 60px; }
.service-card { text-align: center; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { width: 100%; box-shadow: 20px 20px 0px var(--accent-green); }

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 80px 10%;
    text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-bottom: 20px; }
.footer-links a { color: #aaa; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* =========================================
   4. TRAINING PAGE SPECIFIC STYLES
   ========================================= */

/* Loading Screen */
#loading-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    z-index: 9999;
    position: fixed;
    width: 100%;
    top: 0; left: 0;
}
#protected-content { display: none; }

/* Training Hero */
.hero-section {
    text-align: center;
    padding: 100px 20px 60px;
    background: white;
}
.hero-pre {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-green);
    font-weight: 700;
    margin-bottom: 10px;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-sub {
    font-size: 1.3rem;
    color: var(--text-grey);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}
.hero-btn {
    display: inline-block;
    padding: 15px 35px;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.hero-btn:hover { background: var(--text-dark); color: white; }

/* Video */
.video-container {
    max-width: 900px;
    margin: 0 auto 80px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
    background: black;
}
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Modules Grid */
.modules-section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
    background-color: var(--soft-bg); /* Cream Background */
    border-radius: 12px;
}
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.module-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}
.module-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.module-num {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    display: block;
}
.module-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 0;
}
.module-list { list-style: none; padding: 0; margin-top: 0; }
.module-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-grey);
}
.module-list li::before {
    content: "•";
    color: var(--accent-green);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.5rem; /* Made slightly bigger for better visibility */
    line-height: 1;    /* Resets line height so it doesn't float up */
    top: 2px;          /* Pushes the bullet down to align with text */
}

/* Feature Block (Circles) */
.feature-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
    background-color: white;
}
.feature-img { flex: 1; max-width: 500px; }
.feature-img img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.feature-content { flex: 1; text-align: left; }
.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 900;
}
.feature-title .underline {
    text-decoration: underline;
    text-decoration-color: var(--accent-green);
    text-decoration-thickness: 4px;
}
.feature-title .subtitle {
    display: block;
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 300;
    font-style: italic;
    color: #888;
}
.feature-text { font-size: 1.1rem; color: var(--text-grey); line-height: 1.8; }

/* Transformation & Check List */
.transformation-section { background-color: #fff; padding: 80px 20px; text-align: center; }
.check-list { max-width: 700px; margin: 40px auto; text-align: left; }
.check-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-dark);
}
.check-item i {
    color: var(--accent-green);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 8px;
}

/* Forms & Waitlist */
.waitlist-section { background-color: var(--text-dark); color: white; padding: 100px 20px; text-align: center; }
.waitlist-box {
    background: white;
    color: var(--text-dark);
    max-width: 500px;
    margin: 40px auto 0;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.waitlist-section h2 {
    color: white;
}
.newsletter-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}
.newsletter-input:focus { border-color: var(--accent-green); outline: none; }
.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-green);
    color: white;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}
.btn-submit:hover { background-color: #88bd88; }
.btn-submit:disabled { background-color: #ccc; cursor: not-allowed; }

/* FAQ */
.faq-section { max-width: 800px; margin: 80px auto; padding: 0 20px; }
.faq-item { border-bottom: 1px solid #eee; padding: 25px 0; }
.faq-question { font-weight: bold; font-size: 1.2rem; margin-bottom: 10px; color: var(--text-dark); }
.faq-item p { color: var(--text-grey); }

/* Standard Forms (Login/Contact) - Ensuring they look good */
.form-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: bold; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-section { padding-top: 40px; }
    .about-grid { grid-template-columns: 1fr; }
    .feature-block { flex-direction: column; text-align: center; padding: 60px 20px; }
    .feature-content { text-align: center; }
    footer { padding: 60px 20px; }
}
