/* ==========================================================================
   Kjær Klima — public site design system
   Scandinavian / editorial: generous whitespace, flat surfaces, one accent.
   Palette from the logo: navy #002e57, blue #07629f, orange #fb8615.
   ========================================================================== */

:root {
    --navy: #002e57;
    --blue: #07629f;
    --orange: #fb8615;
    --orange-600: #e0740a;

    --ink: #10243c;        /* body/headings */
    --stone: #5d6b7a;      /* muted text */
    --line: #e7e2d7;       /* hairline on bone */
    --line-2: #ececec;

    --bone: #f5f2eb;       /* warm off-white section bg */
    --canvas: #ffffff;

    --container: 1200px;
    --gap: 24px;
    --section-y: clamp(56px, 8vw, 104px);

    --radius: 0px;         /* images stay sharp */
    --radius-pill: 999px;

    font-synthesis: none;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: -0.011em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }

p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding-block: var(--section-y); }
.section--bone { background: var(--bone); }
.section--navy { background: var(--navy); color: #dbe6f1; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: .9rem;
}

.lead { font-size: 1.2rem; color: var(--stone); max-width: 60ch; }
.muted { color: var(--stone); }
.center { text-align: center; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head.center { margin-inline: auto; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #f0f0f0; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- Header / nav ----------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand img { height: 40px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--navy); font-weight: 600; font-size: .96rem; letter-spacing: -0.01em; }
.nav__links a:hover { color: var(--blue); text-decoration: none; }
.nav__toggle { display: none; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: min(82vh, 760px);
    display: flex; align-items: flex-end;
    color: #fff;
    background: var(--navy) center/cover no-repeat;
    background-image:
        linear-gradient(180deg, rgba(0,16,33,.25) 0%, rgba(0,16,33,.78) 92%),
        var(--hero-img);
}
.hero__inner { padding-block: clamp(40px, 7vw, 88px); max-width: 820px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.25rem; max-width: 52ch; }

/* ---- Grids ------------------------------------------------------------ */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---- Category tiles --------------------------------------------------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; }
.cat-tile {
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px; background: var(--canvas); border: 1px solid var(--line);
    color: var(--navy); font-weight: 700; letter-spacing: -0.02em;
}
.cat-tile:hover { border-color: var(--navy); text-decoration: none; }
.cat-tile span:last-child { color: var(--orange); }

/* ---- Product cards ---------------------------------------------------- */
.product-card { display: flex; flex-direction: column; background: var(--canvas); }
.product-card__media { position: relative; aspect-ratio: 4/3; background: var(--bone); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__badge { position: absolute; top: 12px; left: 12px; }
.product-card__body { padding: 18px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.product-card__brand { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); }
.product-card__name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0 10px; }
.product-card__name a { color: var(--navy); }
.product-card__name a:hover { color: var(--blue); text-decoration: none; }
.product-card__foot { margin-top: auto; }
.price { font-size: 1.3rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.price--was { font-size: .95rem; color: var(--stone); text-decoration: line-through; font-weight: 600; margin-left: 8px; }
.price-note { font-size: .85rem; color: var(--stone); }

.badge {
    display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius-pill);
}
.badge--soldout { background: var(--navy); color: #fff; }

.empty-state { border: 1px dashed var(--line); padding: 48px; text-align: center; color: var(--stone); }

/* ---- Features --------------------------------------------------------- */
.feature__icon { width: 44px; height: 44px; color: var(--orange); margin-bottom: 16px; }
.feature h3 { color: var(--navy); margin-bottom: .35em; }
.feature p { color: var(--stone); font-size: 1rem; margin: 0; }

/* ---- Split media band ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px,5vw,72px); }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split--reverse .split__media { order: -1; }

/* ---- Breadcrumb ------------------------------------------------------- */
.breadcrumb { font-size: .9rem; color: var(--stone); padding-block: 22px; }
.breadcrumb a { color: var(--stone); }

/* ---- Product detail --------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px,5vw,64px); }
.pdp__main { aspect-ratio: 4/3; background: var(--bone); overflow: hidden; }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 10px; }
.pdp__thumbs img { aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs th { color: var(--stone); font-weight: 600; width: 42%; }

/* ---- Forms ------------------------------------------------------------ */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--navy); }
.field input, .field textarea {
    width: 100%; padding: 13px 15px; font: inherit; color: var(--ink);
    background: var(--canvas); border: 1px solid #cfd6dd; border-radius: 4px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.alert { padding: 16px 20px; border-radius: 6px; margin-bottom: 20px; }
.alert--success { background: #e9f5ec; color: #1c6b3a; }
.alert--info { background: #eaf2f9; color: var(--blue); }
.form-errors { color: #b3261e; }
.form-errors ul { margin: 0; padding-left: 18px; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--navy); color: #aebfd0; padding-block: 56px 32px; }
.site-footer a { color: #d6e2ef; }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.footer-brand b { color: var(--orange); }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .85rem; }

/* ---- Utilities -------------------------------------------------------- */
.stack > * + * { margin-top: var(--gap); }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .split, .pdp { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav__links { display: none; }
    .nav__links.open {
        display: flex; position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: flex-start; gap: 4px;
        background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px;
    }
    .nav__toggle { display: inline-flex; background: none; border: 0; color: var(--navy); cursor: pointer; }
    .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .pdp__thumbs { grid-template-columns: repeat(4,1fr); }
}
