/* =============================================
   base.css — Reset + base typography
   ============================================= */

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

html, body {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background var(--t), color var(--t);
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

/* Page transition */
.page { display: none; animation: pageIn 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.page.active { display: block; }

@keyframes pageIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Container — same on every page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--s-6);
}

/* Headings — consistent across the site */
h1 { font-size: 40px; font-weight: 900; line-height: 1.08; color: var(--text); }
h2 { font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--text); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3;  color: var(--text); }
h4 { font-size: 15px; font-weight: 700; color: var(--text); }

p { color: var(--text-muted); line-height: 1.7; }

/* Section-header pattern (used inside many sections) */
.section-header {
    text-align: center;
    margin-bottom: var(--s-12);
}

.section-header h2 {
    max-width: 600px;
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    color: var(--orange);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: var(--s-3);
}

/* Inner page hero (used on About / Services / Training / Careers / Contact) */
.page-hero {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: var(--s-12) 0;
    transition: background var(--t);
}

.page-hero h1 {
    font-size: 36px;
    max-width: 720px;
}

/* Ensure footer is pushed down */
#app { min-height: 60vh; }

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 17px; }

    .page-hero    { padding: var(--s-10) 0; }
    .page-hero h1 { font-size: 26px; }

    .section-header { margin-bottom: var(--s-10); }
}
