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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(35, 49, 58, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 48px;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

nav .logo {
    color: #fff;
    text-decoration: none;
}

.logo-bilde {
    height: 38px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 36px;
}

nav ul a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

nav ul a:hover {
    color: #fff;
}

.nav-kontakt-knapp {
    background: #F47920;
    color: #fff;
    padding: 9px 22px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}

.nav-kontakt-knapp:hover {
    background: #C4621A;
    transform: translateY(-1px);
}

/* HERO */
.hero {
    height: 70vh;
    background: url('/images/Byggmester Lange AS_Tekstlogo positiv.png') center/50% auto no-repeat #f5f0e8;
}

/* OM OSS INTRO */
.om-oss-intro {
    background: #faf8f5;
    padding: 96px 48px;
    border-top: 3px solid #F47920;
}

.om-oss-intro-topp {
    max-width: 1100px;
    margin: 0 auto 64px;
}

.om-oss-intro-etikett {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #F47920;
    margin-bottom: 14px;
}

.om-oss-intro h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
}

.om-oss-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 36px;
    align-items: start;
}

.om-oss-tekst p {
    font-size: 0.97rem;
    color: #555;
    line-height: 1.85;
    margin-bottom: 20px;
}

.om-oss-bilde-stor img,
.om-oss-bilde-liten img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.om-oss-bilde-liten img {
    height: 300px;
    margin-top: 80px;
}

/* INGRESS */
.ingress {
    background: #2d3e48;
    color: #fff;
    text-align: center;
    padding: 100px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ingress-innhold {
    max-width: 680px;
    width: 100%;
}

.ingress h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.ingress p {
    font-size: 1.05rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

.ingress-detaljer span {
    display: block;
}

.ingress-detaljer span + span {
    margin-top: 6px;
}

.knapp {
    background: #F47920;
    color: #fff;
    padding: 14px 34px;
    border: none;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    letter-spacing: 0.01em;
}

.knapp:hover {
    background: #C4621A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244,121,32,0.35);
}

/* SEKSJONER */
section {
    padding: 96px 48px;
    scroll-margin-top: 72px;
}

section h2 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 56px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* TJENESTER */
.tjenester {
    background: #f8f7f5;
}

.tjenester-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.tjeneste-kort {
    background: #fff;
    border-radius: 14px;
    padding: 40px 28px;
    text-align: left;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05), 0 4px 16px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 3px solid #F47920;
}

.tjeneste-kort:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.tjeneste-ikon {
    font-size: 2.4rem;
    margin-bottom: 20px;
    display: block;
}

.tjeneste-kort h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.tjeneste-kort p {
    color: #777;
    font-size: 0.9rem;
    line-height: 1.65;
}

/* PROSJEKTER */
.prosjekter {
    background: #fff;
}

.prosjekt-galleri {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto;
    max-width: 1100px;
}

.prosjekt-bilde {
    background: #2d3e48;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12);
    margin: 0;
    overflow: hidden;
}

.prosjekt-bilde img {
    display: block;
    height: 360px;
    object-fit: cover;
    width: 100%;
}

.prosjekt-bilde figcaption {
    color: rgba(255,255,255,0.86);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 18px 20px;
}

/* KONTAKT */
.kontakt {
    background: #2d3e48;
    color: #fff;
    padding: 50px 48px 76px
}

.kontakt h2 {
    color: #fff;
}

.kontakt-ingress {
    text-align: center;
    font-size: 0.97rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 56px;
    line-height: 1.65;
}

.kontakt-wrapper {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 56px;
    align-items: start;
}

.kontakt-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.kontakt-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
}

.kontakt-info a {
    color: #F47920;
    text-decoration: none;
    transition: color 0.2s;
}

.kontakt-info a:hover {
    color: #ffaa66;
}

.org-nr {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7) !important;
    margin-top: 8px;
}

.skjema-gruppe {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.felt {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.felt label {
    color: rgba(255,255,255,0.82);
    font-size: 0.82rem;
    font-weight: 600;
}

.skjema-gruppe input,
.skjema-gruppe textarea,
.skjema-gruppe select {
    padding: 13px 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.92rem;
    font-family: inherit;
    width: 100%;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.skjema-gruppe input:focus,
.skjema-gruppe textarea:focus,
.skjema-gruppe select:focus {
    border-color: #F47920;
    background: rgba(255,255,255,0.08);
    outline: 2px solid transparent;
    box-shadow: 0 0 0 2px rgba(244,121,32,0.3);
}

.skjema-gruppe select option {
    background: #222;
}

.skjema-gruppe textarea {
    height: 120px;
    resize: vertical;
}

.skjema-gruppe input::placeholder,
.skjema-gruppe textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

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

/* FOOTER */
footer {
    background: #1f2d35;
    color: rgba(255,255,255,0.72);
    padding: 32px 48px;
    font-size: 0.82rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-venstre {
    text-align: left;
}

.footer-høyre {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.footer-orgnr {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
    align-self: center;
}

.footer-copyright {
    margin-top: 12px;
    font-size: 0.78rem;
}

.laget-av-tekst {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.7);
}

.laget-av-tekst a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.laget-av-tekst a:hover {
    color: #F47920;
}

footer p {
    margin-bottom: 6px;
    line-height: 1.6;
}

footer a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #F47920;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #F47920;
    outline-offset: 3px;
}

/* RESPONSIV */
@media (max-width: 900px) {
    .om-oss-grid {
        grid-template-columns: 1fr;
    }
    .om-oss-bilde-liten img {
        margin-top: 0;
        height: 260px;
    }
    .om-oss-bilde-stor img {
        height: 280px;
    }
    .prosjekt-galleri {
        grid-template-columns: 1fr 1fr;
    }
    .prosjekt-bilde:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 14px 20px;
    }
    nav ul {
        gap: 16px;
    }
    section {
        padding: 64px 20px;
    }
    .ingress h1 {
        font-size: 1.9rem;
    }
    .om-oss-intro {
        padding: 64px 20px;
    }
    .om-oss-intro h2 {
        font-size: 1.8rem;
    }
    .kontakt-wrapper {
        grid-template-columns: 1fr;
    }
    .rad {
        grid-template-columns: 1fr;
    }
    .prosjekt-galleri {
        grid-template-columns: 1fr;
    }
    .prosjekt-bilde:last-child {
        grid-column: auto;
    }
    .prosjekt-bilde img {
        height: 300px;
    }
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }
    .footer-høyre {
        align-items: flex-start;
        text-align: left;
    }
    .footer-orgnr {
        align-self: flex-start;
    }
}

@media (max-width: 560px) {
    nav {
        flex-wrap: wrap;
    }
    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px 18px;
        justify-content: center;
        order: 3;
        padding-top: 12px;
        width: 100%;
    }
    nav ul a {
        display: block;
        font-size: 0.78rem;
        padding: 8px 0;
    }
    .logo-bilde {
        height: 32px;
    }
    .nav-kontakt-knapp {
        padding: 9px 16px;
    }
}

.skjema-feil {
    background: rgba(239,68,68,0.12);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.25);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.felt-feil {
    border-color: #f87171 !important;
}

.felt-feilmelding {
    color: #fca5a5;
    font-size: 0.8rem;
    line-height: 1.4;
}

.personvern-kort {
    color: rgba(255,255,255,0.68);
    font-size: 0.8rem;
    line-height: 1.5;
}

.personvern-kort a {
    color: #ffaa66;
}

.personvern {
    background: #faf8f5;
    padding: 44px 24px;
}

.personvern h2 {
    font-size: 1.45rem;
    margin-bottom: 20px;
}

.personvern-innhold {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 820px;
}

.personvern-innhold p + p {
    margin-top: 10px;
}

.personvern-innhold a {
    color: #9b4b12;
}

.suksess-overlay {
    align-items: center;
    background: rgba(0,0,0,0.72);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1000;
}

.suksess-overlay[hidden] {
    display: none;
}

.suksess-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    max-width: 480px;
    padding: 42px 36px 36px;
    position: relative;
    text-align: center;
    width: 100%;
}

.suksess-modal h2 {
    font-size: 1.55rem;
    margin: 16px 0 12px;
}

.suksess-modal p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
}

.suksess-epost-info {
    font-size: 0.88rem;
}

.suksess-lukk {
    background: transparent;
    border: 0;
    color: #555;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    padding: 8px;
    position: absolute;
    right: 12px;
    top: 8px;
}

.suksess-hake-stor {
    align-items: center;
    background: #16803c;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 1.6rem;
    font-weight: 700;
    height: 56px;
    justify-content: center;
    margin: 0 auto;
    width: 56px;
}

.suksess-modal .knapp {
    margin-top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
