/* ===============================
   Norsom Impoex Company – main styles
   =============================== */

/* Reset & base */

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333333;
    background-color: #ffffff;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ===============================
   Layout helpers
   =============================== */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section--beige {
    background-color: #f5efe5; /* lys sandfarge */
}

.section--divider {
    background-color: #f2e6d4; /* litt mørkere beige */
}

.section--footer-top {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}


/* Løft Quality-seksjonen opp */
.section-grades {
    padding-top: 2.5rem;   /* var ca 4–4.5rem før */
}

/* Løft overskriften litt opp */
.section-grades h2 {
    margin-top: 0;
}

/* Litt luft mellom tekst og bokser (behold denne) */
.quality-intro {
    margin-bottom: 3.5rem;
}
.text-center {
    text-align: center;
}

.text-narrow {
    max-width: 720px;
    margin: 0 auto;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.split--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}


/* Luft mellom Quality-tekst og kort */
.quality-intro {
    margin-bottom: 3.5rem; /* øk/reduser hvis du vil */
}
/* ===============================
   Header & navbar
   =============================== */

/* Header layout */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #f4ecdd;
    border-bottom: 1px solid #e3d7c3;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
}

/* Logo-gruppen */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* Selve bildet – lite og kontrollert */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 8px;
    margin-right: 18px;
}

/* Teksten ved siden av logoen */
.logo-text {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #23452b;
    white-space: nowrap;
}

/* Nav */

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 1.02rem;
    font-weight: 500;
    color: #555555;
    position: relative;
    padding-bottom: 0.25rem;
    letter-spacing: 0.03em;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #c49a5a;
    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a.active {
    color: #23452b;
}

/* Mobile nav knapp */

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.35rem 0.55rem;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ===============================
   Hero
   =============================== */

/* Grønn gradient-bakgrunn som på designet */
/* ===============================
   Hero – Norsom (image based)
   =============================== */

.hero {
    position: relative;
    min-height: 48vh;              /* 👈 mindre enn ABS */
    background-image: url("../img/home.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;           /* vertikal senter */
    justify-content: center;       /* horisontal senter */
    text-align: center;
    color: #ffffff;
}

/* Mørk grønn overlay for lesbarhet */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 45, 36, 0.55); /* mørk grønn */
    z-index: 1;
}

/* Innhold over overlay */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 3.5rem 1.5rem;
}

.hero h1 {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 2.4rem;     /* mer elegant enn ABS */
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.05rem;
    color: #f2efe9;
    margin-bottom: 1.8rem;
}

/* Knapper sentrert */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Mobile header fix ===== */
@media (max-width: 768px) {
    .header-inner,
    .navbar-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;              /* 🔑 luft mellom navn og hamburger */
        padding-right: 1rem;   /* ekstra luft på høyre side */
    }

    .site-title,
    .brand-name {
        font-size: 0.95rem;    /* litt mindre tekst på mobil */
        max-width: 75%;        /* 🔑 hindrer krasj */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .menu-toggle,
    .hamburger {
        margin-left: auto;     /* 🔑 skyver menyen helt til høyre */
    }
}
/* ===============================
   Three info boxes (cards)
   =============================== */

.split-cards {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: #ffffff;
    border: 1px solid #e2d6c2;
    border-radius: 14px;
    padding: 2.2rem 2rem;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.04);
    min-height: 260px;
}

.info-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.info-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
}

/* ===============================
   Buttons & links
   =============================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    cursor: pointer;
    transition:
        transform 0.1s ease,
        box-shadow 0.1s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.btn-primary {
    background: #23452b;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(11, 39, 21, 0.4);
}

.btn-primary:hover {
    background: #1b3621;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border-color: #c49a5a;
    color: #c49a5a;
}

.btn-outline:hover {
    background: #c49a5a;
    color: #ffffff;
}

/* Tekst-lenker */

.text-link {
    color: #8b5a2b;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}

/* ===============================
   Cards & lists (generelt)
   =============================== */

.card,
.card--small,
.card-small {
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #ddcdb3;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        background-color 0.15s ease;
}

/* Hover-effekt for kortene */
.card:hover,
.card--small:hover,
.card-small:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.12),
        0 4px 14px rgba(0, 0, 0, 0.06);
    border-color: #c49a5a;
    background-color: #fffdf8;
}

.card--small h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Lister med checkmark */

.list-check {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.list-check li {
    margin-bottom: 0.9rem;
    padding-left: 1.6rem;
    position: relative;
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.12rem;
    color: #c49a5a;
    font-size: 0.95rem;
}

/* ===============================
   Page header (undersider)
   =============================== */

.page-header {
    background: #f5efe5;
    border-bottom: 1px solid #ddcdb3;
    padding: 3rem 0 2.5rem;
}

.page-header h1 {
    font-family: "Georgia", "Times New Roman", serif;
    margin: 0 0 0.5rem;
}

/* ===============================
   Contact form (gammel, hvis du fortsatt bruker den et sted)
   =============================== */

.contact-form {
    background-color: #f5efe5;
    padding: 1.8rem;
    border-radius: 10px;
    border: 1px solid #ddcdb3;
    max-width: 520px;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #666666;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #d6cbb9;
    margin-bottom: 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #c49a5a;
    border-color: #c49a5a;
}

/* ===============================
   Footer
   =============================== */

.site-footer {
    background-color: #1e3427;
    color: #f4eee3;
    padding: 3rem 0 1.5rem;
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-col {
    flex: 1 1 220px;
    min-width: 220px;
}

.footer-col h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff7a29;
}

.footer-col p {
    margin: 0 0 0.4rem;
}

.footer-col--image img {
    max-width: 260px;
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.site-footer a {
    color: #ffffff;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: #d2d0cd;
    text-align: center;
}

/* ===============================
   Responsivitet
   =============================== */

@media (max-width: 900px) {
    .split,
    .split--reverse,
    .grid-3 {
        grid-template-columns: 1fr;
    }

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

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

    .hero {
        min-height: 60vh;
    }
}

@media (max-width: 768px) {
    .header-inner {
        align-items: center;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        right: 0;
        top: 100%;
        background-color: #f5efe5;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid #ddcdb3;
        transition: max-height 0.25s ease;
    }

    .main-nav.open {
        max-height: 260px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 0.75rem 1.5rem 1.5rem;
    }

    .hero-inner,
    .hero-content {
        max-width: 100%;
    }

    .footer-columns {
        flex-direction: column;
    }
}