/* ==========================================
   KJORA – BESTÄLL FLERA
   Responsiv layout för mobil, surfplatta och dator
   ========================================== */

@font-face {
    font-family: "Butler";
    src: url("Font/Butler-Free-Med.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "Bank";
    src: url("Font/F25_Bank_Printer.otf") format("opentype");
    font-display: swap;
}
@font-face {
    font-family: "Creato";
    src: url("Font/CreatoDisplay-Light.otf") format("opentype");
    font-display: swap;
}

:root {
    --dark: #2c211b;
    --dark-deep: #241912;
    --cream: #e8c39e;
    --paper: #f7eee3;
    --text: #fff8ef;
    --muted: rgba(255, 248, 239, .82);
    --content-width: 1240px;
}

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

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    color: var(--text);
    background: var(--dark) url("Bilder/Mönster4.png") repeat;
    font-family: "Creato", Arial, sans-serif;
}

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

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

/* Navbar */
.navbar {
    width: 100%;
    min-height: 84px;
    padding: 10px clamp(18px, 5.2vw, 76px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(35, 24, 18, .96);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.nav-logo img {
    width: clamp(96px, 12vw, 150px);
    height: 58px;
    object-fit: contain;
}

.nav-links {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 28px);
}

.nav-links a {
    display: flex;
    align-items: center;
    color: var(--text);
    font-family: "Bank", Arial, sans-serif;
    font-size: clamp(10px, .95vw, 15px);
    letter-spacing: .06em;
    white-space: nowrap;
    transition: color .2s ease;
}

.nav-links a:hover {
    color: var(--cream);
}

.nav-links .cart-link img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    padding: clamp(66px, 8vw, 112px) clamp(22px, 8vw, 110px) clamp(64px, 7vw, 94px);
    background:
        linear-gradient(115deg, rgba(35, 24, 18, .97), rgba(54, 36, 25, .88)),
        url("Bilder/2.jpg") center / cover no-repeat;
}

.hero-inner {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--cream);
    font-family: "Bank", Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .16em;
    line-height: 1.6;
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--text);
    font-family: "Butler", Georgia, serif;
    font-size: clamp(42px, 6.2vw, 82px);
    font-weight: 400;
    line-height: 1.06;
    overflow-wrap: break-word;
}

.hero h1 span {
    color: var(--cream);
}

.hero-lead {
    max-width: 690px;
    margin: 24px 0 28px;
    color: var(--muted);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.8;
}

.button {
    max-width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 20px;
    font-family: "Bank", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .05em;
    line-height: 1.4;
    transition: transform .2s ease, background .2s ease;
}

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

.button-primary {
    background: var(--cream);
    color: #2d2018;
}

/* Intro section */
.intro-section {
    width: min(100%, 1390px);
    margin: 0 auto;
    padding: clamp(48px, 6.5vw, 84px) clamp(22px, 7vw, 94px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(30px, 6vw, 82px);
    align-items: center;
}

.intro-copy,
.intro-image-wrap {
    min-width: 0;
}

.intro-copy h2,
.section-heading h2,
.cta-section h2 {
    margin: 0 0 20px;
    color: var(--text);
    font-family: "Butler", Georgia, serif;
    font-size: clamp(30px, 3.7vw, 49px);
    font-weight: 400;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.intro-copy p:not(.eyebrow) {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.text-link {
    display: inline-block;
    margin-top: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--cream);
    color: #f2d4b5;
    font-family: "Bank", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .04em;
}

.intro-image-wrap {
    overflow: hidden;
    background: rgba(0, 0, 0, .12);
}

.intro-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.image-caption {
    display: block;
    padding: 12px 14px;
    background: #39271d;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Steps */
.steps-section {
    padding: clamp(48px, 6vw, 76px) clamp(20px, 7vw, 94px) clamp(58px, 7vw, 86px);
    background: rgba(27, 19, 15, .84);
}

.section-heading {
    width: min(100%, 900px);
    margin: 0 auto 32px;
    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.steps-grid {
    width: min(100%, 1100px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(14px, 2vw, 22px);
}

.step-card {
    min-width: 0;
    padding: clamp(20px, 2.5vw, 30px);
    background: var(--paper);
    color: #34241b;
    border-top: 3px solid #c99d78;
}

.step-number {
    color: #926744;
    font-family: "Bank", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
}

.step-card h3 {
    margin: 15px 0 10px;
    color: #34241b;
    font-family: "Butler", Georgia, serif;
    font-size: clamp(22px, 2vw, 27px);
    font-weight: 400;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.step-card p {
    margin: 0;
    color: #574438;
    font-size: 15px;
    line-height: 1.7;
}

/* Final call to action */
.cta-section {
    padding: clamp(48px, 6vw, 72px) 22px clamp(52px, 6.5vw, 78px);
    text-align: center;
    background: #3b291e;
    color: var(--text);
}

.cta-section .eyebrow {
    margin-bottom: 12px;
}

.cta-section h2 {
    margin-bottom: 12px;
}

.cta-section > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.button-light {
    background: #fff4e7;
    color: #34241b;
}

/* Footer */
footer {
    width: 100%;
    margin-top: auto;
    padding: clamp(30px, 3.5vw, 48px) clamp(22px, 8vw, 112px);
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 36px);
    background: #241912;
    color: var(--text);
}

footer > div {
    min-width: 0;
}

footer img {
    width: clamp(100px, 8vw, 130px);
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

footer p {
    margin: 12px 0 0;
    color: var(--muted);
    font-family: "Butler", Georgia, serif;
    font-size: 13px;
    line-height: 1.5;
}

footer h4 {
    margin: 8px 0 16px;
    color: var(--cream);
    font-family: "Bank", Arial, sans-serif;
    font-size: 12px;
    letter-spacing: .12em;
}

footer a {
    display: block;
    margin: 10px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

footer a:hover {
    color: var(--cream);
}

/* Tablet: keep columns balanced and prevent navigation overlap */
@media (max-width: 850px) {
    .navbar {
        padding: 10px 22px;
        gap: 16px;
    }

    .nav-logo img {
        width: 100px;
        height: 54px;
    }

    .nav-links {
        gap: 10px 13px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .hero {
        padding: 64px clamp(24px, 6vw, 52px);
    }

    .intro-section {
        padding: 50px 28px;
        gap: 28px;
    }

    .steps-section {
        padding-right: 28px;
        padding-left: 28px;
    }

    .steps-grid {
        gap: 12px;
    }

    .step-card {
        padding: 20px;
    }

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 34px 28px;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 580px) {
    .navbar {
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        padding: 10px 12px 14px;
    }

    .nav-logo img {
        width: 92px;
        height: 48px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px 12px;
    }

    .nav-links a {
        font-size: 10px;
        letter-spacing: .02em;
    }

    .nav-links .cart-link img {
        width: 22px;
        height: 22px;
    }

    .hero {
        padding: 48px 22px 52px;
        background-position: center;
    }

    .hero h1 {
        font-size: clamp(38px, 10vw, 52px);
        line-height: 1.08;
    }

    .hero-lead {
        margin: 20px 0 24px;
        font-size: 16px;
        line-height: 1.7;
    }

    .button {
        padding: 14px 16px;
        gap: 12px;
        font-size: 11px;
    }

    .intro-section {
        grid-template-columns: minmax(0, 1fr);
        padding: 42px 20px;
        gap: 26px;
    }

    .intro-copy h2,
    .section-heading h2,
    .cta-section h2 {
        font-size: clamp(29px, 8vw, 38px);
    }

    .intro-copy p:not(.eyebrow) {
        font-size: 16px;
        line-height: 1.75;
    }

    .intro-image {
        aspect-ratio: 4 / 3;
    }

    .steps-section {
        padding: 42px 18px 48px;
    }

    .section-heading {
        margin-bottom: 22px;
    }

    .steps-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .step-card {
        padding: 22px;
    }

    .step-card h3 {
        font-size: 25px;
    }

    .cta-section {
        padding: 44px 20px 50px;
    }

    .cta-section > p:not(.eyebrow) {
        font-size: 15px;
    }

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
        padding: 28px 18px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    footer img {
        width: 110px;
    }

    footer h4,
    footer a {
        font-size: 12px;
    }
}

/* Very narrow phones */
@media (max-width: 360px) {
    .nav-links {
        gap: 9px;
    }

    .nav-links a {
        font-size: 9px;
    }

    .hero {
        padding-right: 17px;
        padding-left: 17px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .intro-section {
        padding-right: 16px;
        padding-left: 16px;
    }

    .steps-section {
        padding-right: 14px;
        padding-left: 14px;
    }

    footer {
        padding-right: 13px;
        padding-left: 13px;
        gap: 20px 10px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
