﻿/* ============================================================
   Versjon — Editorial Teal
   SITE.CSS (refined boutique rhythm)
============================================================ */

/* ------------------------------
   Design tokens
------------------------------ */

:root {
    --color-text: #1E2426;
    --color-border: rgba(30,36,38,0.12);
    --color-accent: #5FA7A3;
    --font-heading: ui-serif, Georgia, "Times New Roman", serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --maxw: 1180px;
    --pad: 24px;
    --section-gap: 46px;
    --radius: 8px;
    --page-bg: #f4f6f4;
    --band-a: #edf1ee;
    --band-b: #e6ebe8;
    --card-bg: #ffffff;
}


/* ------------------------------
   Reset
------------------------------ */

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

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
}


    /* subtle grain texture */

    body::after {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url("/img/grain.png");
        opacity: 0.025;
        pointer-events: none;
    }

    

/* ------------------------------
   App layout
------------------------------ */

.app {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}


.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}



/* ============================================================
   HEADER
============================================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.045);
    background: #ffffff;
}


.header__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}


/* brand */

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}


.brand__word {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand__icon {
    height: 30px;
    width: auto;
    transform: translateY(1px);
    display: block;
}


/* mobile menu */

.menuBtn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    border-radius: var(--radius);
}


/* nav */

.menu {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 220ms ease, opacity 140ms ease;
    background: #ffffff;
}

.menu--open {
    max-height: 420px;
    opacity: 1;
}


/* mobile nav */

.menuPanel {
    margin-left: auto;
    width: min(180px, 70vw);
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
    text-align: right;
    padding-bottom: 16px;
}


/* nav links */

.menu__link {
    color: var(--color-accent);
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

    .menu__link:hover {
        color: var(--color-text);
    }


@media (min-width: 860px) {

    .menuBtn {
        display: none;
    }

    .menu {
        max-height: none;
        opacity: 1;
        background: transparent;
        overflow: visible;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .menuPanel {
        flex-direction: row;
        gap: 32px;
        padding-bottom: 0;
        width: auto;
    }
}

/* ============================================================
   SECTIONS
============================================================ */

.section {
    position: relative;
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}


    /* editorial divider */

    .section + .section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: min(820px,85%);
        height: 1px;
        transform: translateX(-50%);
        background: rgba(0,0,0,0.05);
    }


.section--bandA {
    background: var(--band-a);
}

.section--bandB {
    background: var(--band-b);
}



/* ============================================================
   TYPOGRAPHY
============================================================ */

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 500;
}


h2 {
    font-family: var(--font-heading);
    font-size: clamp(20px,2.4vw,24px);
    line-height: 1.35;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    color: var(--color-text);
}


p {
    margin: 0 0 16px 0;
    max-width: 62ch;
}

.muted {
    color: rgba(30,36,38,.6);
}


/* ============================================================
   SPLIT
============================================================ */

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

@media (min-width:860px) {

    .split {
        grid-template-columns: 1.35fr .65fr;
        gap: 48px;
    }
}

/* ============================================================
   ASIDE CARDS
============================================================ */

.asideCard {
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 10px;
    padding: 22px;
    box-shadow: none;
}

.asideCard__kicker {
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(30,36,38,.55);
    margin-bottom: 10px;
}



/* ============================================================
   HERO
============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 120px;
    background: linear-gradient( 180deg, #e7efec 0%, #eef3f1 40%, #f4f7f6 100% );
}


    .hero::after {
        content: "";
        position: absolute;
        top: -120px;
        left: 30%;
        width: 700px;
        height: 700px;
        background: radial-gradient( circle, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 35%, transparent 65% );
        filter: blur(80px);
    }


.hero__inner {
    position: relative;
    z-index: 2;
}


.hero__blob {
    position: absolute;
    z-index: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .45;
    animation: heroFloat 28s ease-in-out infinite alternate;
}


.hero__blob--1 {
    background: #9bbab1;
    top: -180px;
    left: -160px;
}


.hero__blob--2 {
    background: #7fa79c;
    top: 80px;
    right: -140px;
}


.hero__blob--3 {
    background: #dfe7e4;
    bottom: -200px;
    left: 45%;
}


@keyframes heroFloat {

    0% {
        transform: translate3d(0,0,0)
    }

    50% {
        transform: translate3d(20px,-10px,0)
    }

    100% {
        transform: translate3d(-10px,15px,0)
    }
}


.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(40px,4vw,52px);
    line-height: 1.15;
    color: var(--color-accent);
    letter-spacing: 0.04em;
}


.hero__subtitle {
    margin-top: 12px;
    max-width: 60ch;
}

.pageHero {
    padding: 40px 0 40px;
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
    margin-top: 60px;
    padding-bottom: 40px;
}


.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}


.footer__link {
    color: rgba(0,0,0,.55);
    text-decoration: none;
}

    .footer__link:hover {
        color: var(--color-text);
    }

/* ============================================================
   FOOTER — Boutique Layout
============================================================ */

.footer {
    background: var(--page-bg);
    margin-top: 0px;
    padding-bottom: 48px;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* left side */

.footer__left {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
}

.footer__brand {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--color-text);
}

.footer__copy {
    font-size: 0.82rem;
    color: rgba(0,0,0,0.55);
}

/* navigation */

.footer__nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* links */

.footer__link {
    font-size: 0.82rem;
    color: rgba(0,0,0,0.55);
    text-decoration: none;
    white-space: nowrap;
    transition: color 140ms ease, opacity 140ms ease;
}

    .footer__link:hover {
        color: var(--color-text);
    }


/* ============================================================
   FOOTER — Versjon Boutique Layout
============================================================ */

.footer {
    background: var(--page-bg);
    margin-top: 0px;
    padding: 22px 0 42px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ------------------------------------------------------------
   LEFT SIDE
------------------------------------------------------------ */

.footer__left {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
}

.footer__brand {
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--color-text);
}

.footer__copy {
    font-size: 0.82rem;
    color: rgba(0,0,0,0.55);
}


/* ------------------------------------------------------------
   NAV LINKS
------------------------------------------------------------ */

.footer__nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer__link {
    font-size: 0.82rem;
    color: rgba(0,0,0,0.55);
    text-decoration: none;
    white-space: nowrap;
    transition: color 140ms ease, opacity 140ms ease;
}

    .footer__link:hover {
        color: var(--color-text);
        opacity: 1;
    }


/* ============================================================
   MOBILE LAYOUT
============================================================ */

@media (max-width: 860px) {

    .footer {
        padding: 20px 0 50px 0;
        margin-top: 0px;
    }

    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 18px;
        width: 100%;
        margin-top: 4px;
    }
}


/* ============================================================
   SMALL PHONE TUNING
============================================================ */

@media (max-width: 420px) {

    .footer__link {
        font-size: 0.8rem;
    }
}

/* ============================================================
   HOW IT WORKS — Steps (desktop: 1-2-3 / 4-5)
   REQUIREMENT: all 5 steps must be inside one .steps.steps--grid container
============================================================ */
.steps {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr; /* mobile */
    gap: 24px;
}

/* Base step style */
.step {
    padding-left: 12px;
    border-left: 2px solid var(--color-border);
}

.step__title {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    color: var(--color-text);
}

.step__text {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(30,36,38,.75);
}

    .step__text p {
        max-width: none;
    }

/* Desktop grid */
@media (min-width: 860px) {
    .steps.steps--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 56px; /* tuned for 1180 container */
        align-items: start;
    }

        .steps.steps--grid .step {
            border-left: none;
            border-top: 2px solid var(--color-border);
            padding-left: 0;
            padding-top: 14px;
        }
}

/* Mobile */
@media (max-width: 900px) {
    .steps.steps--grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* ============================================================
   RESPONSIVE UTILITIES
============================================================ */

/* hidden by default */

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}


/* mobile */

@media (max-width: 860px) {

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

.legalContactLink {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,.2);
    transition: border-color .2s ease, color .2s ease;
}

    .legalContactLink:hover {
        border-bottom-color: var(--accent);
    }