:root{
    --bg:#ffffff;
    --text:#0f172a;
    --muted:#526071;
    --soft:#f8fafc;
    --line:#e7edf3;
    --dark:#0b1320;
    --gold:#b89a5f;
    --white:#ffffff;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
    margin:0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color:var(--text);
    background:var(--bg);
    line-height:1.6;
}

a{color:inherit;text-decoration:none}

.container{
    width:min(1160px, calc(100% - 16px));
    margin:0 auto;
}

.menu-toggle{
    margin-left:auto;
}

/* PREMIUM STICKY TOPBAR */

.topbar-smooth{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;
    background:rgba(255,255,255,0.15);
    backdrop-filter:blur(12px);
    border-bottom:1px solid rgba(255,255,255,0.15);
    transition:all 0.3s ease;
}

/* ---------- TOPBAR ---------- */

.topbar{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;

    background:rgba(255,255,255,.96);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(15,23,42,.08);
    box-shadow:0 6px 20px rgba(15,23,42,.05);
}

.topbar.scrolled{
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(15,23,42,.08);
    box-shadow:0 10px 30px rgba(15,23,42,.06);
}


/* layout */

.nav{
    display:grid;
    grid-template-columns:auto 1fr auto auto;
    align-items:center;
    gap:24px;
    min-height:80px;
}

.nav-center{
    display:flex;
    justify-content:center;
    gap:22px;
}

.nav-center{
    display:flex;
    justify-content:center;
    gap:24px;
}

.nav-link{
    padding:10px 14px;
    border-radius:6px;
    font-size:17px;
    font-weight:400;
    color:#334155;
    transition:all .2s ease;
}

.nav-link:hover{
    background:#f1f5f9;
}

.brand{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo-box{
    display:none;
}

/* logo */

.brand{
    display:flex;
    align-items:center;
}

.logo{
    width:160px;
    height:80px;
    position:relative;
}

.logo img{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    height:80px;
    width:auto;
}

/* siden toppbaren alltid er lys */
.logo-light{
    display:none;
}

.logo-dark{
    display:block;
}

.topbar.scrolled .logo-light{
    opacity:0 !important;
}

.topbar.scrolled .logo-dark{
    opacity:1 !important;
}

.brand h1{
    margin:0;
    font-family: Georgia, "Times New Roman", serif;
    font-size:22px;
    font-weight:700;
    letter-spacing:.01em;
    color:var(--white);
    transition:color .28s ease;
}

.brand p{
    margin:2px 0 0;
    font-size:13px;
    color:rgba(255,255,255,.82);
    transition:color .28s ease;
}

.topbar.scrolled .logo-box{
    background:#f8fafc;
    color:var(--text);
    border-color:rgba(15,23,42,.08);
}

.topbar.scrolled .brand h1{
    color:var(--text);
}

.topbar.scrolled .brand p{
    color:#64748b;
}

.nav-linksmooth{
    padding:10px 14px;
    border-radius:5px;
    font-size:18px;
    font-weight:300;
    color:rgba(255,255,255,.9);
    transition:all .22s ease;
    white-space:nowrap;
}


.topbar.scrolled .nav-link{
    color:#334155;
}

.topbar.scrolled .nav-link:hover{
    background:#f1f5f9;
}

.nav-button-smooth{
    display:inline-block;
    padding:11px 17px;
    border-radius:5px;
    font-size:14px;
    font-weight:600;
    background:rgba(255,255,255,.14);
    color:var(--white);
    border:1px solid rgba(255,255,255,.2);
    transition:all .22s ease;
    white-space:nowrap;
}

/* kontaktknapp */

.nav-button{
    padding:11px 18px;
    border-radius:6px;
    font-size:14px;
    font-weight:600;

    background:#333333;
    color:#ffffff;
    border:1px solid #333333;

    transition:all .2s ease;
}

.nav-button:hover{
    background:#172235;
}


.topbar.scrolled .nav-button{
    background:var(--dark);
    color:var(--white);
    border-color:var(--dark);
}

.topbar.scrolled .nav-button:hover{
    background:#172235;
}

/* ---------- MOBILE MENU ---------- */

.menu-toggle{
    display:none;
    width:42px;
    height:42px;
    border:none;
    border-radius:8px;
    background:#f1f5f9;
    cursor:pointer;

    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
}

.menu-toggle span{
    width:20px;
    height:2px;
    background:#0f172a;
    border-radius:999px;
}

.mobile-menu{
    display:none;
}

.mobile-menu.open{
    display:block;
}

.mobile-menu-links{
    display:flex;
    flex-direction:column;
    gap:10px;
    padding:14px 0 20px;
}

.mobile-nav-link{
    display:block;
    padding:14px 16px;
    border-radius:6px;
    font-size:16px;

    background:#f8fafc;
    border:1px solid #e7edf3;
}

.mobile-nav-button{
    display:block;
    text-align:center;
    padding:14px 16px;
    border-radius:6px;

    background:#0b1320;
    color:#ffffff;
}

/* HERO */

.hero{
    min-height:100vh;
    color:var(--white);
    background-image:
            linear-gradient(rgba(7,12,22,.10), rgba(7,12,22,.20)),
                /*url('https://images.unsplash.com/photo-1617395547071-98efcee72011?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');*/
            url('./images/background-mountain.avif');
    background-size:cover;
    background-position:center;
    position:relative;
}

.hero::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to bottom, rgba(11,19,32,.06), rgba(11,19,32,.16) 55%, rgba(11,19,32,.28));
}

.hero-content{
    position:relative;
    z-index:1;
    min-height:100vh;
    display:flex;
    align-items:center;
    padding:110px 0 80px;
}

.hero-inner{
    max-width:900px;
}

.eyebrow{
    display:inline-block;
    margin:0 0 16px;
    padding:8px 12px;
    border:1px solid rgba(255,255,255,.18);
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    border-radius:999px;
    font-size:12px;
    letter-spacing:.22em;
    text-transform:uppercase;
    color:rgba(255,255,255,.92);
}

.hero h2{
    margin:0;
    font-size:clamp(2.5rem, 5vw, 4.8rem);
    line-height:1.06;
    padding-left: 15px;
    font-weight:300;
    letter-spacing:-.02em;
}

.hero-text{
    margin-top:22px;
    max-width:720px;
    font-size:19px;
    color:rgba(255,255,255,.9);
}

.hero-actions{
    margin-top:34px;
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.button{
    display:inline-block;
    padding:14px 22px;
    border-radius:16px;
    font-size:14px;
    font-weight:700;
    transition:transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover{
    transform:translateY(-1px);
}

.button-primary{
    background:var(--white);
    color:var(--text);
}

.button-secondary{
    border:1px solid rgba(255,255,255,.34);
    color:var(--white);
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(10px);
}

.hero-note{
    margin-top:22px;
    font-size:14px;
    color:rgba(255,255,255,.76);
}

/* SECTIONS */

.about{
    padding:96px 15px;
}

.grid{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:28px;
}

.box-text{
    font-weight:400;
    font-size:36px;
}

.card{
    background:var(--white);
    border-radius:2px;
    padding:36px;
}

.section-label{
    display:inline-block;
    margin:0;
    font-size:12px;
    letter-spacing:.03em;
    color:#64748b;
}

.gold-line{
    width:56px;
    height:2px;
    margin:16px 0 0;
    background:linear-gradient(90deg, var(--gold), rgba(184,154,95,.15));
    border-radius:999px;
}

.card h3{
    margin:18px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size:35px;
    line-height:1.18;
    letter-spacing:-.01em;
}

.brev{
    background:#eeeeee;
}

.card p{
    margin-top:18px;
    color:var(--muted);
    font-size:24px;
}

/* CONTACT */

.contact-offset{
    padding-top: 36px; /* adjust this value */
}

.contact{
    background:#333333;
    color:var(--white);
    padding:82px 0;
}

.contact-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:34px;
    align-items:start;
    padding-left:15px;
}

.contact-block{
    min-width:0;
}

.contact .section-label{
    color:rgba(255,255,255,.66);
}

.contact-heading{
    margin:0 0 18px 0;
    font-size:16px;
    font-weight:bold;
    color:rgba(255,255,255,.66);
}

.contact-text{
    margin:18px 0 0 0;
    max-width:620px;
    color:rgba(255,255,255,.78);
    line-height:1.6;
}

.contact-text a{
    color:rgba(184, 154, 95,.9);
    text-decoration:none;
    word-break:break-word;
}

.contact-text a:hover{
    text-decoration:underline;
}

.contact-text-company{
    margin:18px 0 0 0;
    max-width:620px;
    font-weight:bold;
    color:rgba(255,255,255,.78);
}

/* TABLET */
@media (max-width: 900px){
    .contact{
        padding:60px 0;
    }

    .contact-grid{
        grid-template-columns:1fr;
        gap:28px;
        padding-left:0;
    }

    .contact-block{
        padding:0 15px;
    }

    .contact-heading,
    .contact-text,
    .contact-text-company{
        margin-top:12px;
    }
}

/* MOBILE PORTRAIT */
@media (max-width: 600px){
    .contact{
        padding:42px 0;
    }

    .contact-grid{
        gap:24px;
    }

    .contact-block{
        padding:0 15px;
    }

    .contact-text,
    .contact-text-company,
    .contact-heading{
        font-size:15px;
    }

    .contact-text{
        margin-top:10px;
        line-height:1.5;
    }

    .contact-text a{
        display:inline-block;
        padding:4px 0;
    }
}

/* MODAL */

.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(11,19,32,.48);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s ease, visibility .25s ease;
    z-index:2000;
}

.modal-overlay.active{
    opacity:1;
    visibility:visible;
}

.modal-dialog{
    position:relative;
    width:min(640px, 100%);
    max-height:min(90vh, 900px);
    overflow:auto;
    background:rgba(255,255,255,.98);
    border:1px solid rgba(15,23,42,.08);
    border-radius:10px;
    box-shadow:0 24px 60px rgba(15,23,42,.18);
    padding:28px;
    transform:translateY(14px) scale(.98);
    transition:transform .25s ease;
}

.modal-overlay.active .modal-dialog{
    transform:translateY(0) scale(1);
}

.modal-close{
    position:absolute;
    top:14px;
    right:14px;
    width:38px;
    height:38px;
    border:none;
    border-radius:999px;
    background:#f8fafc;
    color:#334155;
    font-size:24px;
    line-height:1;
    cursor:pointer;
    transition:background .2s ease, transform .2s ease;
}

.modal-close:hover{
    background:#e2e8f0;
    transform:scale(1.03);
}

.modal-header{
    max-width:none;
    margin-bottom:20px;
}

.modal-kicker{
    margin:0;
    font-size:14px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:#64748b;
}

.modal-header h3{
    margin:8px 0 0;
    font-size:28px;
    line-height:1.15;
    color:#0f172a;
    font-weight:600;
}

.modal-content-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
}

.modal-form{
    display:grid;
    gap:14px;
}

.modal-value a{
    color:#0f172a;
}


.modal-lead{
    margin:10px 0 0;
    font-size:15px;
    color:#526071;
}

.form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

@media (max-width:700px){
    .modal-dialog{
        width:min(100%, 100%);
        padding:20px;
        border-radius:5px;
    }

    .form-row{
        grid-template-columns:1fr;
    }

    .modal-header h3{
        font-size:24px;
    }
}

@media (max-width:700px){
    .form-row{
        grid-template-columns:1fr;
    }
}

@media (max-width: 768px){

    .grid{
        grid-template-columns:1fr;
    }

}

@media (max-width: 640px){
    .hero-content{
        min-height:40vh;
        padding:204px 10px 44px;
        align-items:flex-end;
    }
    .card{
        padding:16px 0;
    }
    /*.box-text{*/
    /*    width:100%;*/
    /*    max-width:none;*/
    /*}*/
}
.box-text{
    width:100%;
    max-width:none;
}

.form-group{
    display:grid;
    gap:8px;
}

.form-group span{
    font-size:13px;
    font-weight:600;
    color:#334155;
}

.form-group input,
.form-group textarea{
    width:100%;
    border:1px solid #dbe4ee;
    border-radius:10px;
    background:#ffffff;
    padding:13px 14px;
    font:inherit;
    color:#0f172a;
    outline:none;
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-group input:hover,
.form-group textarea:hover{
    background:#fcfdff;
}

.form-group input:focus,
.form-group textarea:focus{
    border-color:#94a3b8;
    box-shadow:0 0 0 4px rgba(148,163,184,.14);
}

.modal-submit{
    margin-top:6px;
    border:none;
    border-radius:7px;
    padding:14px 18px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    background:#333333;
    color:#ffffff;
    transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow:0 8px 20px rgba(11,19,32,.18);
}

.modal-submit:hover{
    background:#172235;
    transform:translateY(-1px);
}

body.modal-open{
    overflow:hidden;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width:980px){

    .nav{
        grid-template-columns:auto 1fr auto;
        min-height:70px;
    }

    .nav-desktop{
        display:none;
    }

    .menu-toggle{
        display:flex;
    }

    .logo{
        width:120px;
        height:60px;
    }

    .logo img{
        height:60px;
    }

}

@keyframes fadeDown{
    from{
        opacity:0;
        transform:translateY(-8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.form-status{
    min-height:24px;
    font-size:14px;
    color:#b91c1c;
}

.modal-submit{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
}

.modal-submit.is-loading{
    opacity:.9;
    cursor:wait;
}

.button-spinner{
    width:16px;
    height:16px;
    border:2px solid rgba(255,255,255,.35);
    border-top-color:#ffffff;
    border-radius:50%;
    display:none;
    animation:spin .7s linear infinite;
}

.modal-submit.is-loading .button-spinner{
    display:inline-block;
}

.modal-submit.is-loading .button-text{
    opacity:.95;
}

.thank-you-state{
    text-align:center;
    padding:12px 0 6px;
}

.thank-you-state h4{
    margin:0 0 10px;
    font-size:28px;
    color:#0f172a;
}

.thank-you-state p{
    margin:0 0 22px;
    color:#526071;
    font-size:16px;
    line-height:1.6;
}

.thank-you-close{
    display:inline-block;
    border:none;
    border-radius:10px;
    padding:14px 18px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    background:#0b1320;
    color:#ffffff;
}

@keyframes spin{
    to{ transform:rotate(360deg); }
}