/* BHH Website — Bilingual Homework Hotline */
:root {
    --navy: #1a365d;
    --navy-light: #2c5282;
    --blue: #3182ce;
    --gold: #d69e2e;
    --gold-light: #ecc94b;
    --gray-50: #f7fafc;
    --gray-100: #edf2f7;
    --gray-200: #e2e8f0;
    --gray-600: #718096;
    --gray-800: #2d3748;
    --gray-900: #1a202c;
    --white: #ffffff;
    --green: #38a169;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* --- Navigation --- */
.nav {
    background: var(--navy);
    color: var(--white);
    padding: 0 24px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 18px; color: var(--white); text-decoration: none;
}
.nav-logo img { height: 40px; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
    color: rgba(255,255,255,0.85); padding: 8px 14px; border-radius: 8px;
    font-size: 14px; font-weight: 500; transition: all 0.2s; text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--white); background: rgba(255,255,255,0.12); text-decoration: none;
}
.nav-hamburger {
    display: none; background: none; border: none; color: var(--white);
    font-size: 24px; cursor: pointer; padding: 8px;
}

/* --- Hero --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 80px 24px;
    text-align: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: url('') center/cover no-repeat;
    opacity: 0.15;
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero h2 { font-size: 1.3rem; font-weight: 400; opacity: 0.9; margin-bottom: 24px; }
.hero-schedule {
    display: inline-block; background: rgba(255,255,255,0.12);
    padding: 16px 32px; border-radius: 12px; margin-bottom: 24px;
    font-size: 1.1rem;
}
.hero-schedule strong { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.hero-phone {
    display: inline-block; background: var(--gold);
    color: var(--navy); padding: 12px 32px; border-radius: 50px;
    font-size: 1.2rem; font-weight: 700; text-decoration: none;
    transition: transform 0.2s;
}
.hero-phone:hover { transform: scale(1.05); text-decoration: none; }
.hero-partners {
    margin-top: 32px; font-size: 14px; opacity: 0.8;
}

/* --- Section --- */
.section { padding: 60px 24px; }
.section-inner { max-width: 1000px; margin: 0 auto; }
.section-alt { background: var(--gray-50); }
.section h2 {
    font-size: 1.8rem; font-weight: 700; color: var(--navy);
    margin-bottom: 24px; text-align: center;
}
.section h3 { font-size: 1.2rem; font-weight: 600; color: var(--navy-light); margin: 16px 0 8px; }

/* --- Cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.card {
    background: var(--white); border-radius: 12px; padding: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.card h3 { color: var(--navy); margin-bottom: 8px; }
.card p { color: var(--gray-600); font-size: 14px; }
.card-icon { font-size: 2rem; margin-bottom: 12px; }

/* --- Button --- */
.btn {
    display: inline-block; padding: 12px 28px; border-radius: 8px;
    font-weight: 600; font-size: 15px; cursor: pointer;
    transition: all 0.2s; text-decoration: none; border: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); text-decoration: none; }

/* --- Resource List --- */
.resource-list { list-style: none; padding: 0; }
.resource-list li {
    padding: 12px 16px; border-bottom: 1px solid var(--gray-200);
    display: flex; align-items: center; gap: 10px;
}
.resource-list li:last-child { border-bottom: none; }
.resource-list a { font-weight: 500; }

/* --- Video Embed --- */
.video-container {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: 12px; margin: 16px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.video-container iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* --- Accordion --- */
.accordion { margin: 16px 0; }
.accordion-item { border: 1px solid var(--gray-200); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.accordion-header {
    background: var(--gray-50); padding: 14px 18px; cursor: pointer;
    font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center;
    user-select: none;
}
.accordion-header:hover { background: var(--gray-100); }
.accordion-header::after { content: '▸'; transition: transform 0.2s; }
.accordion-item.open .accordion-header::after { transform: rotate(90deg); }
.accordion-body { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; }
.accordion-item.open .accordion-body { max-height: 2000px; padding: 16px 18px; }

/* --- JUNTXS Values --- */
.juntxs-values { margin: 24px 0; }
.juntxs-letter {
    display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.juntxs-letter .letter {
    font-size: 2rem; font-weight: 800; color: var(--gold);
    min-width: 36px; text-align: center; line-height: 1;
}
.juntxs-letter .meaning { font-size: 15px; padding-top: 4px; }

/* --- Footer --- */
.footer {
    background: var(--navy); color: rgba(255,255,255,0.8);
    padding: 40px 24px; text-align: center;
}
.footer-inner { max-width: 800px; margin: 0 auto; }
.footer p { margin-bottom: 8px; font-size: 14px; }
.footer .motto { font-style: italic; font-size: 16px; color: var(--gold); margin-bottom: 16px; }
.footer a { color: var(--gold-light); }

/* --- Chatbot Page --- */
.chatbot-page-container {
    max-width: 700px; margin: 40px auto; padding: 0 24px;
}
.chatbot-full {
    background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    overflow: hidden; height: 70vh; min-height: 500px; display: flex; flex-direction: column;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero h2 { font-size: 1rem; }
    .hero { padding: 48px 16px; }
    .section { padding: 40px 16px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--navy); padding: 16px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    }
    .nav-hamburger { display: block; }
    .cards { grid-template-columns: 1fr; }
}
