/* ============================================
   ADVI WEBSITE - Complete Stylesheet
   Hvit bakgrunn, Advi blå (#0d3c74), moderne design
   ============================================ */

:root {
    --white: #ffffff;
    --light: #f8fafc;
    --light-gray: #f1f5f9;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-300: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;

    --primary: #0d3c74;
    --primary-light: #1e5299;
    --primary-dark: #092d59;
    --primary-10: rgba(13, 60, 116, 0.1);
    --primary-20: rgba(13, 60, 116, 0.2);

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    --space-4xl: 12rem;

    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Self-hosted Montserrat (variable font, weights 700-900) */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700 900;
    font-display: swap;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--white);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}
::selection { background: var(--primary); color: var(--white); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 var(--space-xl); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-100);
    transition: transform 0.3s ease, padding 0.3s ease;
}
/* Header hidden state - now minimal on all devices */
.header--hidden {
    transform: none; /* Don't hide completely */
    padding: var(--space-xs) 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header--scrolled {
    padding: var(--space-sm) 0;
}
.header--scrolled .logo img {
    width: 80px;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo { transition: opacity 0.3s ease; }
.logo img { width: 120px; height: auto; transition: width 0.3s ease; }
.header--scrolled .logo {
    opacity: 0;
    pointer-events: none;
}

/* ADVI text logo when scrolled */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--gray-900);
    text-transform: uppercase;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: var(--space-xl);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.header--hidden .logo-text {
    opacity: 1;
    visibility: visible;
}

/* Desktop: Show hamburger when header is hidden (scrolled down) */
@media (min-width: 901px) {
    .header--hidden {
        justify-content: flex-end;
    }
    .header--hidden .nav {
        justify-content: flex-end;
        position: relative;
    }
    .header--hidden .nav__toggle {
        display: block;
        z-index: 1001;
        background: var(--white);
        border-radius: 10px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .header--hidden .nav__toggle:hover {
        background: var(--light);
    }
    .header--hidden .nav__menu:not(.active) {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        position: absolute;
    }
    .header--hidden .logo {
        opacity: 0;
        visibility: hidden;
        position: absolute;
        pointer-events: none;
    }
    /* Desktop dropdown menu when active (NOT fullscreen) */
    .header--hidden .nav__menu.active {
        position: absolute;
        top: 100%;
        right: 0;
        width: auto;
        min-width: 220px;
        height: auto;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        opacity: 1;
        visibility: visible;
        padding: var(--space-sm);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
        border: 1px solid var(--gray-100);
        margin-top: var(--space-sm);
    }
    .header--hidden .nav__menu.active li {
        width: 100%;
    }
    .header--hidden .nav__menu.active .nav__link {
        font-size: 1rem;
        font-weight: 600;
        display: block;
        padding: var(--space-sm) var(--space-md);
        border-radius: 8px;
        transition: all 0.2s;
        color: var(--gray-700);
    }
    .header--hidden .nav__menu.active .nav__link:hover {
        background: var(--primary-10);
        color: var(--primary);
    }
    .header--hidden .nav__menu.active .nav__cta {
        font-size: 1rem;
        padding: var(--space-sm) var(--space-md);
        margin-top: var(--space-xs);
        text-align: center;
        display: block;
    }
}
.nav__menu { display: flex; align-items: center; gap: var(--space-xl); list-style: none; }
.nav__link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-700);
    transition: color 0.2s;
    letter-spacing: -0.01em;
}
.nav__link:hover, .nav__link.active { color: var(--primary); }

/* Dropdown menu */
.nav__item--dropdown {
    position: relative;
}
.nav__link--dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav__link--dropdown svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}
.nav__item--dropdown:hover .nav__link--dropdown svg {
    transform: rotate(180deg);
}
.nav__dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--gray-100);
    padding: var(--space-sm);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: var(--space-sm);
    z-index: 100;
}
.nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
}
.nav__dropdown-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
}
.nav__dropdown-link:hover {
    background: var(--primary-10);
    color: var(--primary);
}
.nav__dropdown-link small {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 400;
    margin-top: 2px;
}
.nav__cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s;
}
.nav__cta:hover { background: var(--primary-light); transform: translateY(-2px); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.nav__toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--gray-900);
    margin: 6px 0;
    transition: all 0.3s;
    border-radius: 2px;
}
/* Hamburger animation when menu is open */
.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 900px) {
    /* Mobile: Collapsible dropdowns */
    .nav__item--dropdown {
        position: static;
        width: 100%;
    }

    /* Mobile: Disable hover on touch devices */
    .nav__item--dropdown:hover .nav__dropdown {
        opacity: 0;
        visibility: hidden;
        max-height: 0;
    }

    /* Mobile: Show dropdown arrow and make it clickable */
    .nav__link--dropdown {
        position: relative;
        justify-content: center;
        touch-action: manipulation; /* Remove 300ms tap delay */
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }
    .nav__link--dropdown svg {
        display: block;
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
        pointer-events: none; /* Ensure clicks pass through to parent */
    }

    /* Mobile: Rotate arrow when dropdown is open */
    .nav__item--dropdown.open .nav__link--dropdown svg {
        transform: rotate(180deg);
    }

    /* Mobile: Hide dropdowns by default */
    .nav__dropdown {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        background: var(--light);
        border-radius: 8px;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* Mobile: Show dropdown ONLY when .open class is present */
    .nav__item--dropdown.open .nav__dropdown,
    .nav__item--dropdown.open:hover .nav__dropdown {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
        padding: var(--space-sm);
        margin-top: var(--space-sm);
    }

    .nav__dropdown-link {
        font-size: 0.95rem;
        padding: var(--space-sm);
        text-align: center;
    }
    .nav__dropdown-link small {
        display: none;
    }

    /* Mobile fullscreen menu */
    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        z-index: 999;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: var(--space-md);
        background: var(--white);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(-20px);
        padding: 80px var(--space-lg) var(--space-xl);
        overflow-y: auto;
    }
    .nav__menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .nav__menu li {
        width: 100%;
        max-width: 320px;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav__menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    .nav__menu.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav__menu.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav__menu.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav__menu.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav__menu.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav__menu.active li:nth-child(6) { transition-delay: 0.3s; }
    .nav__menu.active li:nth-child(7) { transition-delay: 0.35s; }

    .nav__link {
        font-size: 1.25rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: var(--space-sm) var(--space-md);
        border-radius: 12px;
        transition: all 0.3s;
        color: var(--gray-700);
    }
    .nav__link:hover,
    .nav__link.active {
        background: var(--primary-10);
        color: var(--primary);
    }
    .nav__cta {
        font-size: 1.1rem;
        padding: var(--space-sm) var(--space-xl);
        width: 100%;
        justify-content: center;
        margin-top: var(--space-sm);
    }
    .nav__toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }

    /* Mobile: Hide logo on scroll */
    .header--scrolled .logo,
    .header--hidden .logo {
        opacity: 0;
        pointer-events: none;
    }

    /* Mobile: Show ADVI text when scrolled or hidden */
    .header--scrolled .logo-text,
    .header--hidden .logo-text {
        opacity: 1;
        visibility: visible;
        left: var(--space-md);
        font-size: 1.1rem;
    }

    /* Mobile: Compact header when scrolled */
    .header--scrolled {
        padding: var(--space-xs) 0;
        background: rgba(255,255,255,0.98);
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .nav__link { font-size: 0.95rem; }
    .nav__cta { font-size: 0.95rem; }
    .nav__menu { gap: var(--space-lg); }
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px; /* Space for fixed header with larger logo */
}
.hero__image { position: absolute; inset: 0; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 35%, rgba(255,255,255,0.2) 100%);
}
.hero__content { position: relative; z-index: 1; max-width: 650px; padding: 80px 0; }
.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: var(--space-lg);
}
.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-lg);
}
.hero__title span { color: var(--primary); }
.hero__text {
    font-size: 1.15rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}
.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    background: var(--primary);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
}
.hero__cta:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.hero__cta svg { width: 20px; height: 20px; }

/* Scroll indicator on homepage hero */
.hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.3s;
    cursor: default;
}
.hero__scroll-indicator:hover {
    opacity: 1;
}
.hero__scroll-indicator svg {
    width: 24px;
    height: 24px;
    animation: hero-bounce 2s infinite;
}
@keyframes hero-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* Smaller hero for subpages */
.hero--small {
    min-height: auto;
    padding-top: 160px;
    padding-bottom: 80px;
    align-items: flex-start;
}
.hero--small .hero__content {
    padding: 60px 0;
}

/* Responsive hero padding */
@media (max-width: 900px) {
    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    .hero--small {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero--small .hero__content {
        padding: 30px 0;
    }
    .hero__content {
        padding: 50px 0;
        max-width: 100%;
    }
    .hero__scroll-indicator {
        display: none;
    }
}

/* Responsive two-column grid utility */
.grid-2col-responsive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}
@media (max-width: 768px) {
    .grid-2col-responsive {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    background: var(--light);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}
.stats-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
@media (max-width: 768px) { .stats-bar__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); } }
@media (max-width: 400px) { .stats-bar__grid { grid-template-columns: 1fr; } }
.stat-item { text-align: center; }
.stat-item__number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-item__label {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: var(--space-3xl) 0; }
.section--gray { background: var(--light); }
.section__header { margin-bottom: var(--space-2xl); }
.section__header--center { text-align: center; max-width: 700px; margin-left: auto; margin-right: auto; }
.section__label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}
.section__title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}
.section__text {
    font-size: 1.1rem;
    color: var(--gray-500);
    margin-top: var(--space-md);
    line-height: 1.7;
}

/* ============================================
   SERVICE CARDS (Horizontal scroll)
   ============================================ */
.services-scroll {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    padding-bottom: var(--space-lg);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.services-scroll::-webkit-scrollbar { display: none; }

.service-card {
    flex: 0 0 min(350px, 85vw);
    min-height: 480px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--shadow);
}
.service-card__image { position: absolute; inset: 0; }
.service-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s; }
.service-card:hover .service-card__image img { transform: scale(1.1); }
.service-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--gray-900) 0%, transparent 60%);
}
.service-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    color: var(--white);
}
.service-card__number { font-size: 0.75rem; opacity: 0.6; margin-bottom: var(--space-sm); }
.service-card__title { font-size: 1.4rem; font-weight: 700; margin-bottom: var(--space-sm); }
.service-card__text { font-size: 0.9rem; opacity: 0.8; margin-bottom: var(--space-md); }
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s;
}
.service-card:hover .service-card__link { opacity: 1; transform: translateY(0); }
.service-card__link svg { width: 14px; height: 14px; }

/* Service Card with Image on Top (cinematic style) */
.service-card--image {
    flex: none;
    min-height: auto;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
}
.service-card--image:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.service-card--image .service-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.service-card--image .service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card--image:hover .service-card__image img {
    transform: scale(1.08);
}
.service-card--image .service-card__content {
    position: relative;
    padding: var(--space-lg);
    color: var(--gray-900);
    background: var(--white);
}
.service-card--image .service-card__number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 1;
    margin-bottom: var(--space-xs);
}
.service-card--image .service-card__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}
.service-card--image .service-card__text {
    font-size: 0.95rem;
    color: var(--gray-500);
    opacity: 1;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.service-card--image .service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 1;
    transform: none;
    transition: gap 0.3s;
}
.service-card--image:hover .service-card__link {
    gap: 10px;
}

/* ============================================
   GRID SERVICE CARDS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* 2-column variant - responsive */
.services-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) { .services-grid--2col { grid-template-columns: 1fr; } }

/* 3-column variant - responsive */
.services-grid--3col {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .services-grid--3col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid--3col { grid-template-columns: 1fr; } }

/* 4-column variant - responsive */
.services-grid--4col {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) { .services-grid--4col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid--4col { grid-template-columns: 1fr; } }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}
@media (max-width: 1100px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}
.card__icon {
    width: 60px;
    height: 60px;
    background: var(--primary-10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}
.card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}
.card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}
.card__text {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: var(--space-md);
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}
.card__link:hover { gap: 10px; }
.card__link svg { width: 14px; height: 14px; }
a.card--clickable {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
a.card--clickable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   SPLIT LAYOUT (About sections)
   ============================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split__image { position: relative; overflow: hidden; min-height: 400px; }
.split__image img { width: 100%; height: 100%; object-fit: cover; }
.split__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl);
    background: var(--light);
}
.split__content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}
.split__content p {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

/* Reverse split */
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

/* Feature list */
.feature-list { display: flex; flex-direction: column; gap: var(--space-md); }
.feature-list__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.feature-list__item:hover { transform: translateX(8px); box-shadow: var(--shadow-sm); }
.feature-list__icon {
    width: 50px;
    height: 50px;
    background: var(--primary-10);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.feature-list__icon svg { width: 24px; height: 24px; color: var(--primary); }
.feature-list__text { font-weight: 600; color: var(--gray-700); }

/* ============================================
   TEAM SECTION
   ============================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}
.team-card__image {
    height: 340px;
    overflow: hidden;
}
.team-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Shows more of the person - head and shoulders */
    transition: transform 0.5s;
}
/* Individual image adjustments for better framing */
.team-card__image img[alt="Petter Hindal"] {
    object-position: center 15%; /* More zoomed out for Petter */
}
.team-card__image img[alt="Joakim Hustvedt"] {
    object-position: center 10%; /* More zoomed out for Joakim */
}
.team-card:hover .team-card__image img {
    transform: scale(1.05);
}
.team-card__content {
    padding: var(--space-lg);
}
.team-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}
.team-card__role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: var(--space-md);
}
.team-card__bio {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.team-card__certs {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}
.team-card__certs strong {
    color: var(--gray-700);
}
.team-card__contact {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.85rem;
}
.team-card__contact a {
    color: var(--primary);
    font-weight: 500;
}
.team-card__contact a:hover {
    text-decoration: underline;
}

/* Clickable team cards */
.team-card--clickable {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-card--clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.team-card--clickable .team-card__content {
    text-align: center;
}
.team-card--clickable .team-card__contact {
    justify-content: center;
}
.team-card__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.3s;
}
.team-card__more-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s;
}
.team-card--clickable:hover .team-card__more {
    gap: 8px;
}
.team-card--clickable:hover .team-card__more-icon {
    transform: scale(1.1);
}

/* Team Modal */
.team-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.team-modal.active {
    opacity: 1;
    visibility: visible;
}
.team-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}
.team-modal__content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}
.team-modal.active .team-modal__content {
    transform: translateY(0);
}
.team-modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border: none;
    background: var(--light);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray-700);
    transition: all 0.2s;
    z-index: 10;
}
.team-modal__close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}
.team-modal__header {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    border-bottom: 1px solid var(--gray-100);
}
.team-modal__image {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.team-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}
.team-modal__image--placeholder {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.9);
    flex-shrink: 0;
}
.team-modal__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.team-modal__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
}
.team-modal__role {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.team-modal__contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.team-modal__contact a {
    color: var(--gray-600);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
}
.team-modal__contact a:hover {
    color: var(--primary);
}
.team-modal__body {
    padding: var(--space-xl);
}
.team-modal__bio {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}
.team-modal__bio p {
    margin-bottom: var(--space-md);
}
.team-modal__certs {
    background: var(--light);
    padding: var(--space-md);
    border-radius: 8px;
}
.team-modal__certs-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
}
.team-modal__certs-list {
    font-size: 0.9rem;
    color: var(--gray-600);
}

@media (max-width: 600px) {
    .team-modal {
        padding: var(--space-sm);
    }
    .team-modal__content {
        max-height: 95vh;
    }
    .team-modal__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-lg);
    }
    .team-modal__image,
    .team-modal__image--placeholder {
        width: 120px;
        height: 120px;
    }
    .team-modal__name {
        font-size: 1.25rem;
    }
    .team-modal__body {
        padding: var(--space-lg);
    }
    .team-modal__bio {
        font-size: 0.95rem;
    }
    .team-modal__contact {
        justify-content: center;
    }
}

.team-card__image--placeholder {
    height: 340px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}

/* ============================================
   PARTNER SECTION
   ============================================ */
.partner-banner { background: var(--primary); padding: var(--space-2xl) 0; }
.partner-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    color: var(--white);
}
@media (max-width: 768px) { .partner-banner__content { flex-direction: column; text-align: center; } }
.partner-banner__text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-xs); }
.partner-banner__text p { opacity: 0.8; }
.partner-banner__badge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}
.partner-banner__badge img { height: 40px; filter: brightness(0) invert(1); }

/* Partners grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .partners-grid { grid-template-columns: 1fr; } }

.partner-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}
.partner-card__logo {
    height: 60px;
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
}
.partner-card__logo img {
    max-height: 50px;
    max-width: 150px;
    object-fit: contain;
}
.partner-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}
.partner-card__text {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.partner-card__features {
    list-style: none;
}
.partner-card__features li {
    font-size: 0.85rem;
    color: var(--gray-700);
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
}
.partner-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cta-section__bg { position: absolute; inset: 0; }
.cta-section__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-section__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 60, 116, 0.92) 0%, rgba(13, 60, 116, 0.85) 100%);
}
.cta-section__content {
    position: relative;
    z-index: 1;
    color: var(--white);
    padding: var(--space-xl);
    max-width: 700px;
}
.cta-section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
}
.cta-section__text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}
.cta-section__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    background: var(--white);
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s;
}
.cta-section__btn:hover { transform: scale(1.05); box-shadow: var(--shadow); }
.cta-section__btn svg { width: 18px; height: 18px; }

/* Simple CTA without background */
.cta-simple {
    background: var(--light);
    padding: var(--space-2xl) 0;
    text-align: center;
}
.cta-simple__title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
}
.cta-simple__text {
    font-size: 1.05rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-simple__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}
.btn--primary {
    background: var(--primary);
    color: var(--white);
}
.btn--primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn--outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}
.contact-info__item {
    display: flex;
    gap: var(--space-md);
}
.contact-info__icon {
    width: 50px;
    height: 50px;
    background: var(--primary-10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info__icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}
.contact-info__content h3 {
    font-weight: 600;
    margin-bottom: var(--space-xs);
}
.contact-info__content p {
    color: var(--gray-500);
    font-size: 0.95rem;
}
.contact-info__content a {
    color: var(--primary);
}
.contact-info__content a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-100);
}
.form-group {
    margin-bottom: var(--space-md);
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--gray-700);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-privacy {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: var(--space-md);
}

/* ============================================
   CONTENT PAGES
   ============================================ */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}
.content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}
.content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}
.content p {
    font-size: 1.05rem;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}
.content ul {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}
.content li {
    font-size: 1.05rem;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
    line-height: 1.7;
}

/* Highlight box */
.highlight-box {
    background: var(--primary-10);
    border-left: 4px solid var(--primary);
    padding: var(--space-lg);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: var(--space-xl) 0;
}
.highlight-box p {
    color: var(--gray-900);
    margin: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    margin-bottom: var(--space-md);
    overflow: hidden;
}
.faq-item__question {
    padding: var(--space-lg);
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item__answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); } }
.footer__brand { max-width: 280px; }
.footer__logo { margin-bottom: var(--space-md); }
.footer__logo img { height: auto; max-width: 200px; }
.footer__tagline { color: var(--gray-300); line-height: 1.6; }
.footer__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-300);
    margin-bottom: var(--space-md);
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a, .footer__links li { color: var(--gray-300); font-size: 0.95rem; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-700);
    font-size: 0.85rem;
    color: var(--gray-300);
    flex-wrap: wrap;
    gap: var(--space-md);
}
.footer__legal { display: flex; gap: var(--space-lg); }
.footer__legal a { color: var(--gray-300); }
.footer__legal a:hover { color: var(--white); }
.footer__partner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.footer__partner img {
    height: 50px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.footer__partner img:hover { opacity: 1; }

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Responsive video embed */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image with rounded corners */
.img-rounded {
    border-radius: var(--radius);
}

/* Placeholder for missing images */
.img-placeholder {
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    font-size: 0.9rem;
}

/* ============================================
   EXPANDABLE SERVICE CARDS
   ============================================ */
.card--expandable {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.card--expandable:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}
.card--expandable.expanded {
    transform: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Card header - always visible */
.card__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}
.card__header-content {
    flex: 1;
}
.card__subtitle {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}
.card__expand-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}
.card__expand-icon svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    transition: transform 0.3s;
}
.card--expandable.expanded .card__expand-icon svg {
    transform: rotate(180deg);
}
.card--expandable:hover .card__expand-icon {
    background: var(--primary-20);
}

/* Short description - always visible */
.card__intro {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-top: var(--space-md);
}

/* Expandable content - hidden by default */
.card__details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                margin-top 0.3s ease;
    margin-top: 0;
}
.card--expandable.expanded .card__details {
    max-height: 2000px;
    opacity: 1;
    margin-top: var(--space-md);
}

/* Click hint */
.card__hint {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: var(--space-md);
    opacity: 0.8;
    transition: opacity 0.2s;
}
.card--expandable:hover .card__hint {
    opacity: 1;
}
.card--expandable.expanded .card__hint {
    display: none;
}

/* ============================================
   COMPREHENSIVE MOBILE OPTIMIZATIONS
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-lg);
    }
    .section {
        padding: var(--space-3xl) 0;
    }
    .section__header {
        margin-bottom: var(--space-2xl);
    }
    .split__content {
        padding: var(--space-2xl);
    }
    .cta-simple {
        padding: var(--space-2xl) 0;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    .section {
        padding: var(--space-2xl) 0;
    }
    .section__header {
        margin-bottom: var(--space-xl);
    }
    .hero__overlay {
        background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.7) 100%);
    }
    .hero__content {
        padding: 40px 0;
    }
    .hero__text {
        font-size: 1rem;
    }
    .hero__cta {
        padding: var(--space-md) var(--space-xl);
        width: 100%;
        justify-content: center;
    }
    .split__content {
        padding: var(--space-xl);
    }
    .split__image {
        min-height: 300px;
    }
    .card {
        padding: var(--space-lg);
    }
    .card__icon {
        width: 50px;
        height: 50px;
    }
    .card__icon svg {
        width: 24px;
        height: 24px;
    }
    .card__title {
        font-size: 1.1rem;
    }
    .services-grid {
        gap: var(--space-md);
    }
    .team-card__image,
    .team-card__image--placeholder {
        height: 300px;
    }
    .team-card__image img {
        object-position: center 25%; /* Shows head and shoulders in profile */
    }
    .cta-simple {
        padding: var(--space-xl) 0;
    }
    .cta-simple__title {
        font-size: 1.5rem;
    }
    .cta-section__content {
        padding: var(--space-lg);
    }
    .btn {
        padding: var(--space-sm) var(--space-lg);
        font-size: 0.95rem;
    }
    .footer {
        padding: var(--space-2xl) 0 var(--space-md);
    }
    .footer__grid {
        gap: var(--space-xl);
        margin-bottom: var(--space-xl);
    }
    .footer__brand {
        max-width: 100%;
    }
    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-sm);
    }
    .footer__legal {
        justify-content: center;
    }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    /* Header improvements for small screens */
    .logo img {
        width: 100px;
    }
    .logo-text {
        left: var(--space-sm) !important;
        font-size: 1.1rem !important;
    }
    .nav__toggle {
        padding: 8px;
    }
    .nav__toggle span {
        width: 24px;
        margin: 5px 0;
    }

    /* Mobile menu improvements */
    .nav__menu {
        padding: var(--space-2xl) var(--space-sm);
        gap: var(--space-md);
    }
    .nav__link {
        font-size: 1.1rem !important;
        padding: var(--space-sm) !important;
    }
    .nav__cta {
        font-size: 1rem !important;
        padding: var(--space-sm) var(--space-lg) !important;
    }
    .nav__dropdown {
        padding: var(--space-xs);
        max-width: 90vw;
    }
    .nav__dropdown-link {
        font-size: 0.85rem;
        padding: var(--space-xs);
    }

    /* Hero */
    .hero {
        min-height: 80vh;
        padding-top: 80px;
    }
    .hero__content {
        padding: 30px 0;
    }
    .hero--small {
        padding-top: 90px;
        padding-bottom: 30px;
    }
    .hero--small .hero__content {
        padding: 20px 0;
    }
    .hero__title {
        font-size: 1.8rem;
    }
    .hero__badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    /* Sections & grids */
    .section {
        padding: var(--space-xl) 0;
    }
    .section__title {
        font-size: 1.5rem;
    }
    .section__header {
        margin-bottom: var(--space-lg);
    }
    .services-grid {
        gap: var(--space-md);
    }
    .services-grid--4col {
        gap: var(--space-md);
    }

    /* Cards */
    .card {
        padding: var(--space-md);
    }
    .service-card--image .service-card__content {
        padding: var(--space-md);
    }
    .service-card--image .service-card__title {
        font-size: 1.1rem;
    }

    /* Team cards */
    .team-grid {
        gap: var(--space-md);
    }
    .team-card__content {
        padding: var(--space-md);
    }
    .team-card__image,
    .team-card__image--placeholder {
        height: 280px;
    }

    /* Partner cards */
    .partner-card {
        padding: var(--space-lg);
    }

    /* Feature list */
    .feature-list__item {
        padding: var(--space-sm);
    }
    .feature-list__icon {
        width: 40px;
        height: 40px;
    }
    .feature-list__icon svg {
        width: 20px;
        height: 20px;
    }
    .feature-list__text {
        font-size: 0.9rem;
    }

    /* Split layout */
    .split__content {
        padding: var(--space-lg);
    }
    .split__image {
        min-height: 250px;
    }

    /* CTA sections */
    .cta-simple__title {
        font-size: 1.3rem;
    }
    .cta-section__title {
        font-size: 1.5rem;
    }
    .cta-section__content {
        padding: var(--space-md);
    }

    /* Service choice cards */
    .service-choice-title {
        font-size: 1.4rem;
    }
    .service-choice-card__body {
        padding: var(--space-lg);
    }

    /* Grid gaps */
    .grid-2col-responsive {
        gap: var(--space-md);
    }

    /* Footer */
    .footer {
        padding: var(--space-xl) 0 var(--space-md);
    }
    .footer__grid {
        gap: var(--space-lg);
    }

    /* Forms */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: var(--space-sm);
    }

    /* Expandable cards */
    .card--expandable .card__header {
        padding: var(--space-md);
    }
    .card__details {
        padding: 0 var(--space-md);
    }
}

/* ============================================
   UTILITY & COMPONENT CLASSES (Fase 5)
   Replaces inline styles for CSP compliance
   ============================================ */

/* --- Layout utilities --- */
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.max-w-1000 { max-width: 1000px; margin-left: auto; margin-right: auto; }
.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.mb-3xl { margin-bottom: var(--space-3xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-sm { margin-bottom: var(--space-sm); }
.mt-3xl { margin-top: var(--space-3xl); }
.mt-xl { margin-top: var(--space-xl); }
.mt-md { margin-top: var(--space-md); }
.mt-sm { margin-top: var(--space-sm); }
.mt-lg { margin-top: var(--space-lg); }
.text-center { text-align: center; }
.items-start { align-items: start; }

/* --- Text styles --- */
.text-intro {
    font-size: 1.2rem;
    color: var(--gray-500);
    line-height: 1.8;
}
.text-muted { color: var(--gray-600); line-height: 1.8; }
.text-muted-sm { color: var(--gray-500); margin-bottom: var(--space-xl); }
.text-subtle { color: var(--gray-500); }
.text-sm-note {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: var(--space-md);
}
.text-sm-primary {
    font-size: 0.85rem;
    color: var(--primary);
    margin-top: var(--space-sm);
    font-weight: 500;
}
.heading-sm {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}
.heading-sm--primary {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

/* --- Box / container styles --- */
.box--light {
    background: var(--light);
    padding: var(--space-md);
    border-radius: 8px;
    margin-top: var(--space-md);
}
.box--primary {
    background: var(--primary-10);
    padding: var(--space-md);
    border-radius: 8px;
    margin-top: var(--space-md);
}
.box--light-xl {
    background: var(--light);
    border-radius: var(--radius);
    padding: var(--space-xl);
    margin-bottom: var(--space-3xl);
}
.box--white {
    background: var(--white);
    padding: var(--space-xl);
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
}
.card--accent {
    border-left: 4px solid var(--primary);
}
.card--max-w-800 {
    max-width: 800px;
}

/* --- Help label (used in expandable card details) --- */
.help-label {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0 0 var(--space-sm) 0;
}
.help-note {
    font-size: 0.9rem;
    color: var(--gray-700);
    margin: 0;
}

/* --- Lists --- */
.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gray-700);
}
.checklist__icon {
    flex-shrink: 0;
    margin-top: 2px;
}
.detail-list {
    padding-left: 1.5rem;
    color: var(--gray-500);
    margin-top: var(--space-md);
}
.detail-list--compact {
    padding-left: 1.5rem;
    color: var(--gray-500);
    margin-top: var(--space-sm);
}
.detail-list--sm {
    padding-left: 1.2rem;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin: 0;
}

/* --- Card detail text --- */
.card__text--detail {
    font-size: 1rem;
    line-height: 1.7;
}
.card__text--detail-mt {
    font-size: 1rem;
    line-height: 1.7;
    margin-top: var(--space-md);
}

/* --- Service choice cards (tjenester.html) --- */
.service-choice-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}
.service-choice-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.service-choice-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}
.service-choice-card__image {
    overflow: hidden;
    min-height: 240px;
}
.service-choice-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-choice-card__body {
    padding: var(--space-xl) var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-choice-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.service-choice-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-md);
}
.service-choice-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--gray-900);
}
.service-choice-text {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}
.service-choice-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.service-choice-tag {
    background: var(--light);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray-700);
}
.service-choice-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}
@media (max-width: 800px) {
    .service-choice-card {
        grid-template-columns: 1fr;
    }
    .service-choice-card__image {
        height: 200px;
    }
    .service-choice-card__body {
        padding: var(--space-lg);
    }
}

/* --- Feature badges (konsulenttjenester.html) --- */
.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    justify-content: center;
}
.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

/* --- Privacy policy --- */
.privacy-section { padding-top: var(--space-4xl); }
.privacy-container { max-width: 800px; }
.privacy-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
}
.privacy-body {
    line-height: 1.8;
    color: var(--gray-700);
}
.privacy-h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}
.privacy-link { color: var(--primary); }

/* --- Contact page --- */
.contact-card--centered { text-align: center; }
.contact-card__icon-centered {
    margin: 0 auto var(--space-md);
}
.contact-phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}
.contact-email {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}
.contact-phone a,
.contact-email a { color: inherit; }
.contact-address { font-weight: 500; }
.map-link {
    display: inline-block;
    transition: transform 0.3s;
}
.map-image {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* --- Om oss page (certifications) --- */
.cert-box {
    background: var(--light);
    padding: var(--space-xl);
    border-radius: var(--radius);
    text-align: center;
}
.cert-box__image { max-width: 250px; width: 100%; }
.cert-box__image--full { max-width: 100%; width: 100%; }

/* --- Partner page --- */
.partner-card__logo img.partner-logo--ms {
    max-height: 100px;
    max-width: 300px;
}

/* --- Team modal certs (hidden by default, shown via JS class) --- */
.team-modal__certs { display: none; }
.team-modal__certs.active { display: block; }

/* --- Hero image positioning --- */
.hero__image--top40 { object-position: center 40%; }
.hero__image--left20 { object-position: 20% center; }

/* --- Tilleggstjenester subtitle --- */
.section__subtitle {
    color: var(--gray-500);
    max-width: 600px;
    margin: var(--space-md) auto 0;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Skip-to-content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Touch target minimum sizes */
.nav__toggle {
    min-width: 44px;
    min-height: 44px;
}
.card__expand-icon {
    min-width: 44px;
    min-height: 44px;
}

/* Service choice card hover state (tjenester.html) */
.service-choice-card--hover {
    border-color: var(--primary) !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header, .footer, .cta-section, .cta-simple, .hero__overlay,
    .nav__toggle, .skip-link {
        display: none !important;
    }
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }
    .hero__image {
        display: none;
    }
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
    a[href^="#"]::after,
    a[href^="mailto:"]::after,
    a[href^="tel:"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
    .section {
        padding: 1rem 0;
    }
}
