/* css/style.css */

/* MASTER COLOR PANEL (CSS Variables) */
:root {
    --brand-h1: #662483;         /* Purple */
    --brand-h2: #951B81;         /* Magenta */
    --brand-bg: #E29017;         /* Orange Background */
    --brand-blue: #2D2E83;       /* Text & Menu Color */
    
    /* NEW: COOLER BUTTON COLORS */
    --brand-btn: #2D2E83;        /* Deep Blue to match header */
    --brand-btn-hover: #951B81;  /* Magenta for the hover state */
    
    --brand-dark: #333333;       
    --brand-light: #ffffff;      
    --section-gray: #f4f6f8;     
    --border-color: #eaeaea;     
}

/* Base Styles & Typography */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    line-height: 1.6; 
    color: var(--brand-dark); 
    background-color: var(--brand-light); 
}

h1, h2, h3, .nav-links a { font-family: 'Merriweather', Georgia, 'Times New Roman', serif; }
h1 { color: var(--brand-h1); margin-bottom: 1rem; }
h2 { color: var(--brand-h2); margin-bottom: 1rem; }
h3 { color: var(--brand-h1); margin-bottom: 1rem; }
p { margin-bottom: 1rem; }
a { text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Long Copy Restrictor */
.long-copy { max-width: 800px; margin: 0 auto; text-align: left; }
.long-copy h2 { font-size: 2.2rem; margin-bottom: 2rem; text-align: center; }
.long-copy h3 { font-size: 1.4rem; color: var(--brand-blue); margin-top: 2rem; margin-bottom: 0.5rem; }
.long-copy p { font-size: 1.1rem; color: var(--brand-dark); margin-bottom: 1.5rem; }

/* Global Buttons (UPDATED FOR NEW COLORS) */
.btn { 
    display: inline-block; 
    padding: 14px 28px; 
    background-color: var(--brand-btn); 
    color: #ffffff; 
    border-radius: 6px; 
    font-weight: 700; 
    margin-top: 1rem; 
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover { 
    background-color: var(--brand-btn-hover); 
    color: #ffffff;
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); 
}

/* --- HEADER STYLES --- */
#header-placeholder {
    min-height: 90px; /* Shrinks the white gap back down on desktop */
}
@media (max-width: 600px) {
    #header-placeholder {
        min-height: 160px; /* Keeps enough space for the stacked mobile menu */
    }
}
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 20px 0 20px; background: #fff; }
.site-logo { margin-bottom: -25px; z-index: 10; position: relative; }
.site-logo img { max-height: 100px; width: auto; display: block; } 
.nav-links { display: flex; gap: 24px; margin-bottom: 1.5rem; }
.nav-links a { color: var(--brand-blue); font-weight: 700; font-size: 1.05rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--brand-h2); }

@media (max-width: 600px) { 
    .site-header { 
        flex-direction: column; 
        align-items: center; /* Centers the logo and nav-links block */
        gap: 15px; 
        padding-bottom: 1.5rem; 
    } 
    .site-logo { 
        margin-bottom: 0; 
    }
    .nav-links { 
        margin-bottom: 0; 
        width: 100%; /* Spans full width to allow centering */
        justify-content: center; /* Centers the horizontal row of links */
        flex-wrap: wrap; /* Ensures links wrap cleanly on very narrow screens */
        gap: 20px; /* Adjusted gap for better thumb-tapping on mobile */
    }
}


/* --- HERO SECTION (Homepage) --- */
.hero { 
    text-align: center; padding: 5rem 20px; 
    background-color: var(--brand-bg); color: var(--brand-blue); 
    background-image: linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px; background-position: center center;
}
.hero h1 { font-size: 3.5rem; color: var(--brand-blue); line-height: 1.2; margin-bottom: 1.5rem; }
.hero p { font-size: 1.25rem; max-width: 650px; margin: 0 auto 3rem auto; font-weight: 500; }
.hero-video-container { max-width: 800px; margin: 0 auto; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 24px rgba(0,0,0,0.15); background-color: #000; line-height: 0; }
.hero-video { 
    width: 100%; 
    height: auto; 
    display: block; 
    
    /* NEW: Zooms the video in 15% to push the watermark out of the hidden overflow box */
    transform: scale(1.15); 
    transform-origin: center center;
}

/* NEW: MOBILE HERO TEXT SCALING */
@media (max-width: 600px) {
    .hero h1, .educator-hero h1 {
        font-size: 2.6rem !important; /* Shrunk to ~75% so big words don't break the layout */
    }
}

/* --- INDEX: Toolkit & Process --- */
.process { padding: 5rem 20px; text-align: center; background-color: #fff; }
.process h2 { color: var(--brand-h1); font-size: 2.2rem; }
.process-steps { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; margin-top: 3rem; }
.step { flex: 1; min-width: 250px; }
.step h3 { color: var(--brand-blue); font-size: 1.4rem; margin-top: 1rem; }
.step-icon { font-size: 2.5rem; background: #fff; color: var(--brand-h1); height: 90px; width: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem auto; box-shadow: 0 8px 16px rgba(0,0,0,0.08); }

/* --- INDEX: Dual Pathway Section --- */
.pathways { background-color: var(--section-gray); padding: 5rem 20px; }
.card { flex: 1; min-width: 300px; max-width: 500px; background: #fff; padding: 3rem 2rem; border-radius: 12px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.03); }
.card h2 { margin-bottom: 1rem; color: var(--brand-h1); font-size: 2rem; }

/* --- INDEX: Makers in Action (Social Proof) --- */
.social-proof { padding: 5rem 20px; text-align: center; background-color: #fff; }
.social-proof h2 { color: var(--brand-h1); font-size: 2.2rem; }
.social-intro { color: var(--brand-dark); max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.15rem; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.proof-card { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 15px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); display: flex; flex-direction: column; justify-content: center; background: #fff; }
.image-card { padding: 0; background-color: var(--section-gray); min-height: 250px; }
.image-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.quote-card { padding: 2.5rem 2rem; text-align: left; }
.quote-card .stars { color: var(--brand-btn); font-size: 1.5rem; margin-bottom: 1rem; letter-spacing: 2px; }
.quote-card .quote { font-size: 1.05rem; font-style: italic; margin-bottom: 1.5rem; color: var(--brand-dark); line-height: 1.6; }
.quote-card .author { font-weight: 700; color: var(--brand-h2); font-size: 0.95rem; margin-bottom: 0; }
@media (max-width: 1000px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .proof-grid { grid-template-columns: 1fr; } }

/* --- INDEX: Engineered for Learning (Mechanics 6-Card Grid) --- */
.mechanics { padding: 5rem 20px; text-align: center; background-color: var(--section-gray); }
.mechanics h2 { color: var(--brand-h1); font-size: 2.2rem; }
.mechanics-intro { color: var(--brand-dark); max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.15rem; }
.mechanics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mechanics-item { background: #fff; padding: 2.5rem 2rem; border-radius: 12px; text-align: center; box-shadow: 0 6px 15px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.mechanics-item:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.1); }
.mechanics-item h3 { color: var(--brand-h2); font-size: 1.3rem; margin-bottom: 0.8rem; }
.mechanics-item p { color: var(--brand-dark); font-size: 1rem; margin-bottom: 0; }
@media (max-width: 900px) { .mechanics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .mechanics-grid { grid-template-columns: 1fr; } }

/* --- DROPDOWN MENU STYLES --- */
.dropdown-wrapper { max-width: 400px; margin: 0 auto; position: relative; }
.standards-dropdown { width: 100%; padding: 16px 20px; font-size: 1.1rem; font-family: inherit; color: var(--brand-blue); background-color: #fff; border: 2px solid var(--brand-blue); border-radius: 8px; appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.05); font-weight: bold; }
.dropdown-wrapper::after { content: "▼"; font-size: 0.8rem; color: var(--brand-blue); position: absolute; right: 20px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.standards-dropdown:hover { border-color: var(--brand-h2); }
.standards-dropdown:focus { outline: none; box-shadow: 0 0 0 3px rgba(102, 36, 131, 0.2); }
.table-responsive { overflow-x: auto; background: #fff; border-radius: 12px; box-shadow: 0 6px 15px rgba(0,0,0,0.05); }
.standards-table { width: 100%; border-collapse: collapse; text-align: left; }
.standards-table th { background-color: var(--brand-blue); color: #fff; padding: 1.5rem; font-family: 'Merriweather', serif; font-size: 1.1rem; }
.standards-table td { padding: 1.5rem; border-bottom: 1px solid var(--border-color); color: var(--brand-dark); vertical-align: top; }
.standards-table tr:last-child td { border-bottom: none; }
.standards-table tr:nth-child(even) { background-color: var(--section-gray); }

/* --- FOOTER STYLES --- */
.site-footer { 
    background-color: var(--brand-blue); 
    color: #ffffff; /* Sets base text to white */
    padding: 5rem 20px 3rem; 
    font-size: 0.95rem; 
}
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.2rem; } 
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: #e0e0f0; transition: color 0.2s; }
.footer-links a:hover { 
    color: var(--brand-h2); /* Changes to Magenta on hover for high contrast */
    text-decoration: underline; 
} 
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 4rem; padding-top: 2rem; font-size: 0.85rem; color: #b0b0c0; }

/* --- NEW: EDUCATOR SPLIT HERO --- */
.educator-hero {
    padding: 6rem 20px;
    background-color: var(--brand-bg);
    color: var(--brand-blue);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center center;
}
.educator-hero-split {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}
.educator-hero-split .hero-text { flex: 1; }
.educator-hero-split .hero-visual { flex: 1; }
.educator-hero h1 { font-size: 3.5rem; color: var(--brand-blue); line-height: 1.2; margin-bottom: 1rem; }
.educator-hero .lead { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--brand-h1); }
.educator-hero p { font-size: 1.15rem; font-weight: 500; margin-bottom: 1.5rem; color: var(--brand-blue); }
.workshop-img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
    border-radius: 12px; box-shadow: 0 12px 24px rgba(0,0,0,0.15); display: block;
}

@media (max-width: 900px) {
    .educator-hero-split { flex-direction: column; text-align: center; gap: 30px; }
}

/* --- NEW: EDUCATOR STICKY SUB-NAV --- */
.educator-subnav {
    position: sticky; top: 0; background: #fff; z-index: 100;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); padding: 15px 20px;
    text-align: center; border-bottom: 1px solid var(--border-color);
}
.educator-subnav a {
    color: var(--brand-blue); font-weight: 700; margin: 0 10px;
    text-decoration: none; font-size: 0.95rem; display: inline-block;
}
.educator-subnav a:hover { color: var(--brand-h2); text-decoration: underline; }

/* --- NEW: INLINE SEO LINKS --- */
.inline-link {
    color: var(--brand-h2); font-weight: 700; text-decoration: underline;
    text-decoration-thickness: 2px; text-underline-offset: 3px; transition: color 0.2s;
}
.inline-link:hover { color: var(--brand-h1); }

/* --- NEW: LEAD CAPTURE FORM --- */
.lead-capture-form {
    background: #fff; padding: 2rem; border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); margin: 2rem auto;
    text-align: center; border: 1px solid var(--border-color); max-width: 600px;
}
.lead-capture-form .form-group {
    display: flex; gap: 10px; justify-content: center;
    margin-top: 1rem; flex-wrap: wrap;
}
.lead-capture-form input[type="email"] {
    padding: 14px 20px; font-size: 1rem; border: 2px solid var(--border-color);
    border-radius: 6px; min-width: 250px; flex: 1; font-family: inherit;
}
.lead-capture-form input[type="email"]:focus { outline: none; border-color: var(--brand-blue); }
.lead-capture-form .btn { margin-top: 0; padding: 14px 24px; }

/* --- NEW: CALLOUT QUOTE --- */
.callout-quote {
    font-size: 1.4rem; font-family: 'Merriweather', Georgia, serif; color: var(--brand-h1);
    border-left: 5px solid var(--brand-btn); padding-left: 1.5rem; margin: 2.5rem 0;
    font-style: italic; line-height: 1.6; background-color: var(--section-gray);
    padding: 1.5rem; border-radius: 0 8px 8px 0;
}

/* --- NEW: MAKER STOREFRONT GRID --- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; text-align: left;
}
.product-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05); border: 1px solid var(--border-color);
    display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover {
    transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.product-image-wrapper {
    position: relative; width: 100%; aspect-ratio: 4 / 3; background-color: #eee;
}
.product-image {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.level-badge {
    position: absolute; top: 15px; right: 15px; background: var(--brand-h1);
    color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.product-info {
    padding: 2rem; display: flex; flex-direction: column; flex-grow: 1;
}
.product-info h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--brand-blue); }
.mechanic-tag { font-size: 0.85rem; color: var(--brand-h2); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.product-info p { font-size: 1rem; color: var(--brand-dark); margin-bottom: 1.5rem; flex-grow: 1; }
.product-info .btn { text-align: center; margin-top: auto; }

/* --- NEW: CONTACT FORM STYLES --- */
.contact-wrapper {
    max-width: 600px; margin: 0 auto; background: #fff; padding: 3rem;
    border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color); text-align: left;
}
.contact-form .form-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.contact-form .form-row { display: flex; gap: 20px; }
.contact-form .form-row .form-group { flex: 1; }
.contact-form label { font-weight: 700; color: var(--brand-blue); margin-bottom: 0.5rem; font-size: 0.95rem; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px 15px; border: 2px solid var(--border-color);
    border-radius: 6px; font-family: inherit; font-size: 1rem; transition: border-color 0.2s; background-color: #fafafa;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--brand-blue); background-color: #fff;
}
.contact-form select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D2E83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 15px;
}
.btn-full { width: 100%; font-size: 1.1rem; padding: 16px; margin-top: 1rem; }

@media (max-width: 600px) {
    .contact-form .form-row { flex-direction: column; gap: 0; }
    .contact-wrapper { padding: 2rem 1.5rem; }
}

/* --- CHECKBOX STYLES FOR CONTACT FORM --- */
.checkbox-group {
    display: flex; flex-direction: column; gap: 12px; margin-top: 0.5rem;
}
.checkbox-label {
    font-weight: 500 !important; color: var(--brand-dark) !important; font-size: 1rem !important;
    display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 0 !important;
}
.checkbox-label input[type="checkbox"] {
    width: auto; padding: 0; margin: 0; cursor: pointer; transform: scale(1.2); 
}