:root {
    --ink: #182630;
    --muted: #64727c;
    --line: #dce4e9;
    --accent: #174b72;
    --accent-dark: #103a58;
    --surface: #ffffff;
    --page: #f2f5f7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.hero {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    overflow: hidden;
    padding: clamp(32px, 7vw, 100px);
    color: #fff;
    background-color: #102b3e;
    background-image:
        linear-gradient(90deg, rgba(8, 26, 40, .86) 0%, rgba(8, 26, 40, .62) 48%, rgba(8, 26, 40, .19) 100%),
        linear-gradient(0deg, rgba(8, 26, 40, .3), transparent 35%),
        url("../images/indexbilde.jpg");
    background-position: center;
    background-size: cover;
}
.hero-content { width: min(100%, 850px); margin: 0 auto; }
.eyebrow {
    margin: 0 0 17px;
    color: #9fc6df;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(3.1rem, 8vw, 6.8rem);
    font-weight: 750;
    letter-spacing: -.065em;
    line-height: .98;
    text-wrap: balance;
}
.hero-lead {
    max-width: 600px;
    margin: 25px 0 0;
    color: rgba(255,255,255,.85);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    margin-top: 35px;
    padding: 14px 19px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-link:hover { transform: translateY(-2px); border-color: #fff; background: rgba(255,255,255,.12); }
.hero-link span { font-size: 1.15rem; }
.hero-caption {
    position: absolute;
    right: clamp(24px, 4vw, 58px);
    bottom: 17px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    letter-spacing: .04em;
}

.services {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(68px, 9vw, 120px) 24px clamp(72px, 9vw, 116px);
}
.services::before {
    position: absolute;
    z-index: 0;
    top: 13%;
    right: -285px;
    width: min(68vw, 840px);
    aspect-ratio: 2000 / 1979;
    background: url("../images/innebandyball.png") center / contain no-repeat;
    content: "";
    opacity: .075;
    pointer-events: none;
}
.section-heading { position: relative; z-index: 1; width: min(100%, 1160px); margin: 0 auto 30px; }
.eyebrow-dark { margin-bottom: 10px; color: var(--accent); }
.section-heading h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 730;
    letter-spacing: -.05em;
    line-height: 1.06;
}
.section-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    width: min(100%, 1160px);
    margin: 0 auto;
}
.service-card {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(24px, 3.3vw, 38px);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(22, 43, 58, .045);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: #c5d4de; box-shadow: 0 20px 46px rgba(22, 43, 58, .09); }
.service-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: #edf4f8;
    color: var(--accent);
}
.service-icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-kicker { margin: 22px 0 5px; color: var(--accent); font-size: .73rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.service-card h3 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.8rem); font-weight: 710; letter-spacing: -.035em; line-height: 1.15; }
.card-description { max-width: 470px; margin: 11px 0 20px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: auto; }
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 10px 0 2px;
    color: var(--accent);
    font-weight: 720;
    text-decoration: none;
}
.card-actions .card-link { margin-top: 0; }
.card-link:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.card-link span { font-size: 1rem; }
.card-link-secondary { color: #526774; }

.site-footer { border-top: 1px solid #d9e1e6; background: #eaf0f3; }
.footer-inner {
    display: flex;
    width: min(100% - 48px, 1160px);
    min-height: 120px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto;
    padding: 24px 0;
}
.footer-brand { margin: 0; color: #53646f; font-size: .9rem; font-weight: 650; }
.admin-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px 20px; color: #596b76; font-size: .82rem; }
.admin-links span { color: #354854; font-weight: 750; }
.admin-links a { text-decoration: none; }
.admin-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid #80b7da; outline-offset: 4px; }
@media (max-width: 700px) {
    .hero { min-height: 88vh; min-height: 88svh; padding: 34px 24px 65px; background-position: 58% center; background-image: linear-gradient(90deg, rgba(8, 26, 40, .82), rgba(8, 26, 40, .48)), linear-gradient(0deg, rgba(8, 26, 40, .34), transparent 40%), url("../images/indexbilde.jpg"); }
    .hero h1 { font-size: clamp(3rem, 13vw, 5rem); }
    .hero-lead { max-width: 490px; }
    .services { padding-right: 16px; padding-left: 16px; }
    .services::before { top: 18%; right: -230px; width: 470px; opacity: .055; }
    .service-grid { grid-template-columns: 1fr; gap: 12px; }
    .service-card { min-height: 265px; border-radius: 18px; }
    .footer-inner { width: min(100% - 32px, 1160px); align-items: flex-start; flex-direction: column; gap: 15px; }
    .admin-links { justify-content: flex-start; gap: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
