/* =====================================================
   PBT Level 1 – Aztec High School
   Clean shop-floor aesthetic
   ===================================================== */

:root {
    --bg: #0f1115;
    --bg-elevated: #181b22;
    --bg-card: #1e222b;
    --border: #2a303c;
    --text: #e8eaed;
    --text-muted: #9aa0a6;
    --accent: #f59e0b;          /* amber/orange – tools & energy */
    --accent-hover: #fbbf24;
    --accent-dim: rgba(245, 158, 11, 0.15);
    --success: #34d399;
    --blue: #60a5fa;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.35);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

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

/* ===== Header ===== */
.site-header {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
}

.logo:hover { color: var(--text); }

.logo-icon {
    font-size: 1.75rem;
    background: var(--accent-dim);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--accent);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    color: var(--text-muted);
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.main-nav a.active {
    color: var(--accent);
}

.btn-classroom {
    background: var(--accent) !important;
    color: #111 !important;
    font-weight: 600 !important;
    margin-left: 0.5rem;
}

.btn-classroom:hover {
    background: var(--accent-hover) !important;
    color: #111 !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.2s;
}

/* ===== Main ===== */
.main-content {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ===== Hero ===== */
.hero {
    background: linear-gradient(145deg, var(--bg-elevated) 0%, #1a1f2a 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #111;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #111;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

/* ===== Cards & Grids ===== */
.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title span {
    color: var(--accent);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.35rem;
    transition: border-color 0.15s, transform 0.15s;
}

.card:hover {
    border-color: #3a4252;
    transform: translateY(-2px);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--accent-dim);
    color: var(--accent);
}

.badge-stem {
    background: rgba(96, 165, 250, 0.15);
    color: var(--blue);
}

/* ===== Lesson List ===== */
.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lesson-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.15rem 1.25rem;
    transition: border-color 0.15s;
}

.lesson-item:hover {
    border-color: #3a4252;
}

.lesson-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 700;
    font-family: var(--font-display);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.lesson-body {
    flex: 1;
    min-width: 0;
}

.lesson-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.lesson-body h3 a {
    color: var(--text);
}

.lesson-body h3 a:hover {
    color: var(--accent);
}

.lesson-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.lesson-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

/* ===== Resource Cards ===== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s;
}

.resource-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.resource-card .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.resource-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.resource-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* ===== Certification ===== */
.req-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.req-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.req-num {
    background: var(--accent);
    color: #111;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 700px) {
    .about-grid { grid-template-columns: 1fr; }
}

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.info-box h3 {
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
    color: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.footer-grid p, .footer-grid li {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 0.35rem;
}

.footer-grid a {
    color: var(--text-muted);
}

.footer-grid a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.small { font-size: 0.8rem; }

/* ===== Utility ===== */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.text-muted { color: var(--text-muted); }

.alert {
    background: var(--accent-dim);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.925rem;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .nav-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.25rem;
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .btn-classroom { margin-left: 0; margin-top: 0.5rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero { padding: 1.75rem 1.25rem; }
}

@media (max-width: 500px) {
    .lesson-item {
        flex-direction: column;
        gap: 0.75rem;
    }
}
