/* --- CRITICAL RESET (Fixes Mobile Spilling) --- */
* {
    box-sizing: border-box;
}

:root {
    /* --- COLOR PALETTE --- */
    --bg-color: #F5F5F5;
    --text-color: #3E403B;  /* Deep Black */
    --accent: #88D629;      /* Green */
    
    --accent-secondary: #C29800; /* Gold */
    --header-color: #3E403B;     /* Dark Grey */
    --body-color: #676A62;       /* Medium Grey */
    --caption-color: #A4A7A0;    /* Light Grey */
    --border-line-color: #53554E; /* Divider Grey */
}

/* UPDATED: Fixes "Weird Alignment" without breaking Sticky Header */
html, body {
    max-width: 100%;
    overflow-x: hidden; 
}

body {
    background-color: var(--bg-color);
    color: var(--body-color);
    font-family: 'Overpass', sans-serif;
    margin: 0;
    padding: 16px;
    line-height: 1.5;
    width: 100%;
}

.container {
    max-width: 900px;
    margin: 0 auto 40px auto;
    width: 100%;
}

/* THE PIXEL AESTHETIC */
.pixel-border, .card, .btn-pixel, .nav-cta, .phase-card, .instructor-card, .commit-card, .faq-item, .input-pixel {
    border: 4px solid var(--text-color);
    background: white;
}

/* --- NAVIGATION --- */
nav.pixel-border.sticky-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: sticky; /* Works because overflow is handled on body/html correctly now */
    top: 0;
    z-index: 1000;
    background: white;
    padding: 16px 24px;
    margin-bottom: 40px;
}

.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    flex-shrink: 0;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo .nav-logo {
    height: 48px;
    width: auto;
    padding: 0;
}

.nav-mobile-title {
    display: none; 
    font-weight: 800;
    font-size: 1.0rem;
    letter-spacing: -1px;
    color: var(--header-color);
    text-transform: uppercase;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 16px;
    margin-left: 20px;
}

.nav-links {
    display: flex;
    gap: 8px;
    margin: 0 auto; 
}

.nav-links a {
    text-decoration: none;
    color: var(--header-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    padding: 10px 12px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    border-color: var(--header-color);
    background-color: transparent;
}

.nav-cta {
    display: inline-block;
    background: var(--text-color);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: 4px solid var(--text-color);
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--text-color);
}

.menu-toggle {
    display: none; 
    cursor: pointer;
    padding: 8px;
    border: 2px solid transparent;
}

.hamburger-icon {
    width: 32px;
    height: auto;
    display: block;
}

.menu-toggle:hover {
    border: 2px solid var(--text-color);
}

.nav-title, nav .status { display: none; }

/* --- TYPOGRAPHY --- */
h1 {
    font-size: 72px;
    margin-bottom: 8px;
    letter-spacing: -2px;
    color: var(--header-color);
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--header-color);
}

h3 {
    color: var(--header-color);
}

.subtitle {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--caption-color);
}

/* --- BUTTONS --- */
.cta-group {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 24px;
}

.btn-pixel {
    display: inline-block;
    padding: 12px 28px;
    background: var(--text-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.btn-pixel:hover {
    background: var(--accent);
    color: var(--text-color);
}

.btn-pixel-inverse {
    display: inline-block;
    padding: 12px 28px;
    background: white;
    color: var(--text-color);
    border: 4px solid var(--text-color);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
}

.btn-pixel-inverse:hover {
    background: var(--accent-secondary);
    color: white;
    border-color: var(--text-color);
}

/* --- CARDS & GRID --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card {
    padding: 28px;
}

.card.highlight {
    background: var(--bg-color);
    color: var(--text-color);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin: 12px 0;
    color: var(--header-color);
}

.small {
    font-size: 0.9rem;
    color: var(--caption-color);
}

.payment-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
}

.payment-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.payment-icons img {
    height: 32px;
    width: auto;
}

.more-label {
    font-size: 14px;
    padding: 8px;
    text-align: center;
    color: var(--caption-color);
    width: 100%;
    display: block;
    font-weight: bold;
}

.link {
    color: var(--body-color);
    text-decoration: none;
    font-weight: bold;
}

.link:hover { text-decoration: underline; }

/* FOOTER */
footer {
    text-align: center;
    padding: 28px 16px;
    border-top: 4px solid var(--text-color);
    margin-top: 48px;
}

.socials { margin-top: 12px; }
.socials a {
    color: var(--header-color);
    text-decoration: none;
    font-weight: bold;
}
.socials a:hover { text-decoration: underline; }

/* --- ABOUT SECTION STYLES --- */
.section-divider {
    border-bottom: 4px solid var(--border-line-color);
    margin: 60px 0;
}

h1 .accent-dot, h2 .accent-dot {
    color: var(--accent);
}

/* MISSION */
.mission-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.stats-card {
    background: var(--text-color);
    color: white;
    padding: 32px;
}

.stats-header {
    color: var(--accent-secondary);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 2px solid #676A62;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
}

.stat-row span.highlight {
    color: var(--accent-secondary);
    font-weight: 700;
    font-size: 0.8rem;
}

/* PHILOSOPHY & INSTRUCTORS */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.instructor-card {
    padding: 24px;
    text-align: center;
}

/* Spacing Adjustments for Instructor Card */
.instructor-card h3 {
    margin-bottom: 4px;
    margin-top: 0;
}

.instructor-card p {
    margin-bottom: 24px;
}

.instructor-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 4px solid var(--text-color);
    margin-bottom: 20px;
    display: block;
}

.instructor-role {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

/* SOCIAL ICONS */
.social-placeholders {
    display: flex;
    justify-content: center;
    gap: 16px; 
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-color);
}

.social-placeholders a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.social-placeholders img {
    height: 24px; 
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.social-placeholders img:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

/* --- CURRICULUM SECTION --- */
.curriculum-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.phase-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bg-color);
    padding-bottom: 12px;
    margin-bottom: 8px;
}

.phase-badge {
    background: var(--text-color);
    color: white;
    padding: 4px 12px;
    font-weight: bold;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
}

/* Spacing Adjustments for Phase Card */
.phase-card h3 {
    margin-bottom: -4px;
    margin-top: 8px;
}

.phase-card p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.6;
}

.duration {
    font-family: 'Space Mono', monospace;
    font-weight: bold;
    color: var(--caption-color);
}

/* --- TECHNOLOGIES SECTION --- */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.tech-badge {
    border: 2px solid var(--text-color);
    padding: 8px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    background: white;
    transition: 0.2s;
}

.tech-badge:hover {
    background: var(--text-color);
    color: white;
    transform: translate(-2px, -2px);
}

/* --- REQUIREMENTS SECTION --- */
.req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.pixel-list {
    list-style: none;
    padding: 0;
    margin-top: 24px;
}

.pixel-list li {
    display: flex;
    align-items: center; 
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0; 
}

/* Commit Card */
.commit-card {
    background: var(--text-color);
    color: white;
}

.commit-card h3 {
    color: white;
    margin-top: 0;
}

/* --- FAQ ACCORDION --- */
.faq-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 4px solid var(--text-color);
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-item:hover {
    background: var(--bg-color);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
}

.faq-header h3 {
    margin: 0;
    font-size: 1.1rem; 
    padding-right: 16px;
}

.faq-icon {
    width: 24px;
    height: auto;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(90deg);
}

.faq-body {
    display: none; 
    padding: 0 24px 24px 24px;
    border-top: 4px solid var(--text-color);
    padding-top: 24px;
}

.faq-item.active .faq-body {
    display: block; 
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- STILL HAVE QUESTIONS BLOCK --- */
.still-questions-block {
    background: black; 
    color: white;
    padding: 60px 40px;
    text-align: center;
    margin-top: 60px;
    border: 4px solid var(--text-color); 
}

.still-questions-block h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
    margin-top: 0;
}

.still-questions-block p {
    color: #cccccc;
    margin-bottom: 32px;
    font-size: 1.1rem;
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px; 
    align-items: start;
}

.icon-placeholder {
    width: 48px;
    height: 48px;
    border: 4px solid var(--text-color);
    background-color: #e0e0e0; 
    flex-shrink: 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.info-item .label {
    display: block;
    font-size: 0.85rem;
    font-family: 'Space Mono', monospace;
    color: var(--caption-color);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.info-link, .info-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--header-color);
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Overpass', sans-serif;
    word-break: break-all;
}

/* --- FORM STYLING (FIXED FOR MOBILE) --- */
.form-group {
    margin-bottom: 24px;
    width: 100%; /* Ensures wrapper is full width */
}

.form-group label {
    display: block;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.input-pixel {
    display: block;
    width: 100%;
    max-width: 100%; /* Prevents spilling out of container */
    min-width: 0;    /* Fixes flex/grid item sizing issues */
    padding: 16px;
    border: 4px solid var(--text-color);
    font-family: 'Overpass', sans-serif;
    font-size: 1rem;
    background: white;
    
    /* CRITICAL MOBILE RESET */
    box-sizing: border-box; 
    margin: 0;
    border-radius: 0; 
    -webkit-appearance: none;
    
    outline: none;
    transition: 0.2s;
}

.input-pixel:focus {
    border-color: var(--accent);
    background: #f9f9f9;
}

.form-status-message {
    display: none;
    text-align: center;
    padding: 40px;
    background: var(--text-color);
    color: white;
    border: 4px solid var(--text-color);
}

.form-status-message h3 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 16px;
}

/* RESPONSIVE */
@media (max-width: 950px) {
    
    nav.pixel-border.sticky-nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px;
        gap: 0;
        position: sticky; 
    }

    .nav-header {
        width: 100%;
        display: flex;
        justify-content: space-between;
        position: relative; 
    }

    .nav-mobile-title {
        display: block;
    }

    .menu-toggle {
        display: block; 
    }

    .nav-menu {
        display: none; 
        flex-direction: column;
        width: 100%;
        padding-top: 20px;
        gap: 20px;
        border-top: 4px solid var(--text-color);
        margin-top: 16px;
        margin-left: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 0;
        text-align: center;
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 16px;
        border-bottom: 2px solid var(--bg-color);
        width: 100%;
        box-sizing: border-box;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    nav.active .nav-menu {
        display: flex;
    }
}

@media (max-width: 850px) {
    .mission-grid, .philosophy-grid, .instructor-grid, .req-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Specific Fix for Contact Layout on Mobile */
    .contact-form-wrapper {
        width: 100%;
        padding: 0;
    }
    
    .stats-card { order: -1; }
    
    .grid-2 { grid-template-columns: 1fr; }
    h1 { font-size: 3rem; }
    
    .cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .cta-group .btn-pixel, 
    .cta-group .btn-pixel-inverse {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .curriculum-stack {
        display: flex;
    }
}

@media (min-width: 850px) {
    .curriculum-stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}