/* ═══════════════════════════════════════════
   main.css — shared reset, design tokens, and header.
   Loaded by every page before sections.css.
   ═══════════════════════════════════════════ */

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

/* ── DESIGN TOKENS ── */
:root {
    --brand:    #EF4E23;
    --brand-2:  #F6912B;
    --grad:     linear-gradient(120deg, #EF4E23 0%, #F6912B 100%);
    --pale:     #FFF5F0;
    --white:    #FFFFFF;
    --muted:    rgba(239, 78, 35, .09);
    --bdr:      rgba(239, 78, 35, .22);

    --g50:  #F9FAFB;
    --g100: #F3F4F6;
    --g200: #E5E7EB;
    --g300: #D1D5DB;
    --g400: #9CA3AF;
    --g500: #6B7280;
    --g600: #4B5563;
    --g700: #374151;
    --g800: #1F2937;
    --g900: #111827;

    --err:      #DC2626;
    --err-pale: #FEF2F2;

    --fd: 'DM Serif Display', Georgia, serif;
    --fb: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --sh-xs: 0 1px 2px rgba(0, 0, 0, .05);
    --sh-sm: 0 1px 4px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
    --sh-md: 0 4px 16px rgba(14, 16, 32, .12);
    --sh-xl: 0 24px 64px rgba(0, 0, 0, .12), 0 8px 24px rgba(0, 0, 0, .06);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 28px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
    font-family: var(--fb);
    background: #FEFCFA;
    color: var(--g800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── UTILITY ── */
.hidden { display: none !important; }

/* ── HEADER ── */
.hdr {
    background: var(--white);
    border-bottom: 1px solid var(--g100);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--sh-xs);
}

.hdr-in {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hdr-logo-link { display: inline-flex; align-items: center; }

.logo {
    height: 38px;
    width: auto;
    display: block;
}

.hdr-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hdr-nav a {
    font-family: var(--fb);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--g700);
    text-decoration: none;
    position: relative;
    transition: color 0.15s ease;
}

.hdr-nav a:hover { color: var(--brand); }

.hdr-nav a:not(.hdr-nav-cta)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transition: right 0.2s ease;
}

.hdr-nav a:not(.hdr-nav-cta):hover::after { right: 0; }

.hdr-nav-cta {
    padding: 9px 18px;
    background: var(--grad);
    border: none;
    border-radius: var(--r-md);
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(239, 78, 35, 0.25);
    transition: all 0.15s ease;
}

.hdr-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(239, 78, 35, 0.35);
    color: white !important;
}

.hdr-nav-cta::after { display: none !important; }

.hdr-burger {
    display: none;
    background: transparent;
    border: none;
    color: var(--g700);
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.hdr-burger:hover { background: var(--g100); }

@media (max-width: 820px) {
    .hdr-nav {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        border-bottom: 1px solid var(--g100);
        box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
        display: none;
        z-index: 200;
    }
    .hdr-nav.open { display: flex; }
    .hdr-nav a {
        padding: 14px 24px;
        border-bottom: 1px solid var(--g100);
    }
    .hdr-nav a:last-child { border-bottom: none; }
    .hdr-nav a:not(.hdr-nav-cta)::after { display: none; }
    .hdr-nav-cta {
        margin: 8px 24px;
        text-align: center;
        color: white !important;
    }
    .hdr-burger { display: inline-flex; }
}

.grecaptcha-badge { visibility: hidden !important; }
