/* BASIS */

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

body {
    margin: 0;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #3d2d25;
    background-color: #f9f3ef;
}

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

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
    margin: 0;
    color: #3a2b24;
}

p {
    margin: 0;
}

/* LAYOUT */

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

/* HERO */

.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;

    /* makes z-index layering predictable */
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;

    /* gradient on top of image */
    background-image: linear-gradient(to bottom,
            rgba(249, 243, 239, 0.15) 0%,
            rgba(249, 243, 239, 0.65) 44%,
            rgba(249, 243, 239, 0.92) 100%);
    z-index: 1;
}

.hero-bg picture,
.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}

.hero-bg picture {
    display: block;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}


.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* KNAPPER */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}

.btn-primary {
    background: #c9936e;
    color: #fff;
    border-color: #c9936e;
    box-shadow: 0 8px 18px rgba(201, 147, 110, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(201, 147, 110, 0.28);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.85);
    color: #3d2d25;
    border-color: rgba(61, 45, 37, 0.1);
}

.btn-ghost:hover {
    background: #fff;
}

/* PRODUKTSEKSJONER */

.product {
    padding: 4rem 0;
    --product-halo: rgba(249, 243, 239, 0.9);
    --product-halo-transparent: rgba(249, 243, 239, 0);
}

.product:nth-of-type(odd) {
    background: #f9f3ef;
}

.product:nth-of-type(even) {
    background: #f4ece6;
    --product-halo: rgba(244, 236, 230, 0.9);
    --product-halo-transparent: rgba(244, 236, 230, 0);
}

.product-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: center;
}

.product--reverse .product-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
}

.product--reverse .product-inner {
    direction: rtl;
    /* hack for å bytte rekkefølge uten å endre HTML */
}

.product--reverse .product-image,
.product--reverse .product-text {
    direction: ltr;
}

.product-image {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 24px;
    background: radial-gradient(circle, var(--product-halo) 0%, var(--product-halo-transparent) 70%);
}

.product-image img {
    max-width: 260px;
    filter: drop-shadow(0 18px 28px rgba(75, 56, 43, 0.2));
}

/* Produkttekst */

.product-text {
    max-width: 540px;
}

.product-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: #c9936e;
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.7rem;
}

.product-tag--blue {
    background: #7aa8c7;
}

.product-text h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.product-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #c9936e;
    margin-bottom: 1rem;
}

.product-body {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.product-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.product-bullets li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.45rem;
}

.product-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #c9936e;
}

.product-price {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* WHY-SEKSJON */

.why {
    padding: 4rem 0 3.5rem;
    background: #f9f3ef;
}

.why h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1rem;
    color: #5a4b43;
}

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

.why-item {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
}

/* FOOTER */

.footer {
    padding: 2rem 0;
    background: #3a2b24;
    color: #f7eee7;
    font-size: 0.85rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav a {
    color: #f7eee7;
    text-decoration: none;
    opacity: 0.85;
}

.footer-nav a:hover {
    opacity: 1;
}

/* RESPONSIVT */

@media (max-width: 900px) {

    .product-inner,
    .product--reverse .product-inner {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .product-image {
        order: -1;
    }

    .hero {
        text-align: left;
    }

    .hero-content {
        padding-top: 3rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}
