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

:root {
    --primary: #003D7A;
    --primary-hover: #004B9B;
    --primary-light: #E8F0FA;
    --success: #16A34A;
    --success-bg: #DCFCE7;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --text: #1E293B;
    --text-light: #64748B;
    --border: #CBD5E1;
    --bg: #F1F5F9;
    --white: #FFFFFF;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Topbar ── */
.topbar {
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    padding: 7px 0;
}
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; }
.topbar a { color: var(--white); text-decoration: none; opacity: 0.9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

/* ── Header ── */
header.site {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
    transition: box-shadow .25s ease;
}
header.site.scrolled { box-shadow: 0 4px 18px rgba(0,0,0,0.07); }
header.site .wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: 40px; border-radius: 8px; }
.brand-text { font-size: 17px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.brand-text small { display: block; font-size: 11px; font-weight: 500; color: var(--text-light); letter-spacing: 0.3px; }

nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a {
    text-decoration: none; color: var(--text); font-size: 15px; font-weight: 600;
    padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.nav-cta {
    background: var(--primary); color: var(--white) !important; padding: 10px 18px !important;
    border-radius: 8px; border-bottom: none !important;
}
.nav-cta:hover { background: var(--primary-hover); }

.menu-toggle { display: none; }

@media (max-width: 780px) {
    nav.main { display: none; }
    .menu-toggle {
        display: block; background: none; border: 1.5px solid var(--border); border-radius: 8px;
        padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--primary);
    }
    nav.main.open {
        display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
        position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
        border-bottom: 1px solid var(--border); padding: 12px 24px 18px; box-shadow: var(--shadow);
    }
    nav.main.open a { width: 100%; padding: 10px 0; }
    .nav-cta { margin-top: 6px; text-align: center; }
}

/* ── Hero ── */
.hero {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
    padding: 56px 0 64px;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--primary); background: var(--primary-light);
    padding: 6px 14px; border-radius: 20px; margin-bottom: 18px;
}
.hero h1 { font-size: 40px; line-height: 1.18; color: var(--text); margin-bottom: 18px; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { font-size: 17px; color: var(--text-light); margin-bottom: 28px; max-width: 46ch; }
.hero-media { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .6s ease; }
.hero-media:hover img { transform: scale(1.04); }
.hero-badge {
    position: absolute; left: 18px; bottom: 18px;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(4px);
    border-radius: 10px; padding: 10px 16px; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 10px;
    font-size: 13.5px; font-weight: 700; color: var(--text);
}
.hero-badge .dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--success);
    box-shadow: 0 0 0 3px var(--success-bg); flex-shrink: 0;
}

@media (max-width: 860px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
    .hero-media { order: -1; }
}

/* ── Buttons ── */
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    font-size: 15px; font-weight: 700; padding: 13px 24px; border-radius: 9px;
    border: none; cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,61,122,0.25); }
.btn-ghost { background: var(--white); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary-light); transform: translateY(-2px); }

/* ── Trust bar ── */
.trustbar { background: var(--primary); padding: 22px 0; }
.trustbar .wrap { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; text-align: center; }
.trustbar .item { color: var(--white); }
.trustbar .item strong { display: block; font-size: 22px; font-weight: 800; }
.trustbar .item span { font-size: 12.5px; opacity: 0.85; }

/* ── Section ── */
.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .eyebrow { }
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--text-light); font-size: 16px; }

/* ── Course cards ── */
.kurs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.kurs-kort {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.kurs-kort:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.kurs-kort img { height: 190px; object-fit: cover; transition: transform .5s ease; }
.kurs-kort:hover img { transform: scale(1.06); }
.kurs-kort .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kurs-kort h3 { font-size: 19px; }
.kurs-kort p { color: var(--text-light); font-size: 14.5px; flex: 1; }
.meta-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.pill { font-size: 11px; font-weight: 700; background: var(--primary-light); color: var(--primary); padding: 4px 10px; border-radius: 20px; }

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

/* ── Danger/why section ── */
.why-section .wrap { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 48px; align-items: center; }
.why-media { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); max-width: 440px; margin: 0 auto; }
.why-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: 50% 42%; }
.stat-row { display: flex; gap: 20px; margin-top: 28px; }
.stat { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; flex: 1; }
.stat strong { display: block; font-size: 24px; color: var(--danger); }
.stat span { font-size: 13px; color: var(--text-light); }

@media (max-width: 860px) { .why-section .wrap { grid-template-columns: 1fr; } .why-media { order: -1; max-width: 440px; margin: 0 auto; } }

/* ── Area chips ── */
.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area-card {
    background: var(--white); border: 1px solid var(--border); border-radius: 12px;
    padding: 22px; text-align: center; text-decoration: none; color: var(--text);
    transition: box-shadow .15s, transform .15s;
}
.area-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.area-card .icon { font-size: 26px; margin-bottom: 8px; }
.area-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.area-card span { font-size: 12.5px; color: var(--text-light); }

@media (max-width: 720px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── CTA band ── */
.cta-band { background: var(--primary); padding: 56px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: 26px; margin-bottom: 10px; }
.cta-band p { color: #A9C3E0; margin-bottom: 26px; font-size: 15.5px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1); }
.cta-band .btn-primary { background: var(--white); color: var(--primary); }
.cta-band .btn-primary:hover { background: #EEF4FC; }

/* ── Footer ── */
footer.site { background: #0B1F38; color: #A9C3E0; padding: 48px 0 28px; }
footer.site .foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
footer.site h4 { color: var(--white); font-size: 14px; margin-bottom: 14px; letter-spacing: 0.3px; }
footer.site p { font-size: 14px; line-height: 1.7; }
footer.site ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
footer.site a { text-decoration: none; color: #A9C3E0; font-size: 14px; }
footer.site a:hover { color: var(--white); }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 12.5px; color: #6C88AA; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { footer.site .foot-grid { grid-template-columns: 1fr; } }

/* ── Simple page hero (non-home pages) ── */
.page-hero { background: var(--primary-light); padding: 44px 0; text-align: center; }
.page-hero h1 { font-size: 32px; margin-bottom: 10px; }
.page-hero p { color: var(--text-light); max-width: 60ch; margin: 0 auto; }

/* ── Content blocks (om oss) ── */
.content-block { max-width: 720px; margin: 0 auto; }
.content-block h2 { font-size: 24px; margin: 36px 0 14px; }
.content-block h2:first-child { margin-top: 0; }
.content-block p { margin-bottom: 16px; color: var(--text); }
.pull-quote {
    border-left: 3px solid var(--primary); padding: 4px 0 4px 20px; margin: 28px 0;
    font-size: 18px; font-style: italic; color: var(--primary);
}

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; text-align: center; box-shadow: var(--shadow);
}
.contact-card .icon { font-size: 30px; margin-bottom: 10px; }
.contact-card strong { display: block; font-size: 18px; margin-bottom: 4px; }
.contact-card a.big-link { font-size: 17px; font-weight: 700; color: var(--primary); text-decoration: none; }
.contact-card a.big-link:hover { text-decoration: underline; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Scroll reveal ── */
.reveal {
    opacity: 0; transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-group.visible .reveal-child { opacity: 1; transform: translateY(0); }
.reveal-child {
    opacity: 0; transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
}
.reveal-group.visible .reveal-child:nth-child(1) { transition-delay: .05s; }
.reveal-group.visible .reveal-child:nth-child(2) { transition-delay: .12s; }
.reveal-group.visible .reveal-child:nth-child(3) { transition-delay: .19s; }
.reveal-group.visible .reveal-child:nth-child(4) { transition-delay: .26s; }

/* ── Area card icon polish ── */
.area-card { position: relative; overflow: hidden; }
.area-card::after {
    content: ""; position: absolute; inset: 0; opacity: 0;
    background: radial-gradient(120px 80px at 50% 0%, var(--primary-light), transparent);
    transition: opacity .25s ease;
}
.area-card:hover::after { opacity: 1; }
.area-card .icon { transition: transform .3s ease; }
.area-card:hover .icon { transform: scale(1.15) translateY(-2px); }
