/*
Theme Name: Helt Skrudd
Theme URI: https://heltskrudd.no
Author: Helt Skrudd
Description: Et raskt, tilgjengelig WordPress-tema for Helt Skrudd Sykkelservice.
Version: 1.6.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: heltskrudd
*/

:root {
    --hs-ink: #17201c;
    --hs-muted: #5f6a64;
    --hs-paper: #f7f5ef;
    --hs-white: #ffffff;
    --hs-green: #1f6b4f;
    --hs-green-dark: #164c39;
    --hs-lime: #c9ef68;
    --hs-orange: #f4a340;
    --hs-line: #dce2dc;
    --hs-warm: #efe9da;
    --hs-radius: 18px;
    --hs-shadow: 0 18px 50px rgba(23, 32, 28, .09);
    --hs-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--hs-ink);
    background: var(--hs-paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--hs-green); text-underline-offset: .2em; }
a:hover { color: var(--hs-green-dark); }
h1, h2, h3, h4 { margin: 0 0 .55em; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
p { margin: 0 0 1.2em; }
.hs-shell { width: min(calc(100% - 40px), var(--hs-width)); margin-inline: auto; }
.hs-skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 1000; padding: .7rem 1rem; background: var(--hs-white); }
.hs-skip-link:focus { top: 1rem; }
.screen-reader-text { position: absolute; overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,245,239,.94); border-bottom: 1px solid rgba(23,32,28,.08); backdrop-filter: blur(12px); }
.hs-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hs-brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--hs-ink); text-decoration: none; font-weight: 900; letter-spacing: -.04em; font-size: 1.2rem; }
.hs-brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--hs-green-dark); background: var(--hs-lime); font-size: 1.1rem; }
.hs-brand-logo { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; object-fit: contain; mix-blend-mode: multiply; }
.hs-brand-copy small { display: block; margin-top: -.25rem; color: var(--hs-muted); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.hs-brand img { width: auto; max-width: 220px; max-height: 58px; }
.hs-menu { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.hs-menu a { color: var(--hs-ink); font-size: .92rem; font-weight: 700; text-decoration: none; }
.hs-menu a:hover, .hs-menu .current-menu-item > a { color: var(--hs-green); }
.hs-header-actions { display: flex; align-items: center; gap: .75rem; }
.hs-menu-toggle { display: none; border: 0; background: transparent; font: inherit; font-weight: 800; }

.hs-button, .wp-block-button__link {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 48px; padding: .72rem 1.15rem; border: 2px solid var(--hs-green); border-radius: 999px;
    color: var(--hs-white); background: var(--hs-green); font-weight: 800; line-height: 1.1; text-decoration: none;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.hs-button:hover { color: var(--hs-white); background: var(--hs-green-dark); transform: translateY(-1px); }
.hs-button--light { color: var(--hs-ink); border-color: var(--hs-white); background: var(--hs-white); }
.hs-button--light:hover { color: var(--hs-white); border-color: var(--hs-ink); background: var(--hs-ink); }
.hs-button--outline { color: var(--hs-green); background: transparent; }
.hs-button--outline:hover { color: var(--hs-white); }
.hs-text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; }
.hs-text-link::after { content: "→"; transition: transform .2s ease; }
.hs-text-link:hover::after { transform: translateX(4px); }

.hs-hero { overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0 5rem; color: var(--hs-white); background: var(--hs-green-dark); }
.hs-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.hs-hero-grid > * { min-width: 0; }
.hs-eyebrow { display: inline-flex; margin-bottom: 1rem; color: var(--hs-green); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hs-hero .hs-eyebrow { color: var(--hs-lime); }
.hs-hero h1 { max-width: 850px; }
.hs-hero p { max-width: 660px; color: rgba(255,255,255,.78); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hs-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hs-hero-card { position: relative; min-height: 420px; padding: 2rem; border: 1px solid rgba(255,255,255,.16); border-radius: 40% 40% var(--hs-radius) var(--hs-radius); background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.03)); }
.hs-hero-logo { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; filter: grayscale(1) invert(1); mix-blend-mode: screen; opacity: .96; }
.hs-hero-wheel { position: absolute; width: min(72%, 280px); aspect-ratio: 1; border: 18px solid var(--hs-lime); border-radius: 50%; opacity: .9; }
.hs-hero-wheel:first-child { left: -8%; bottom: 10%; }
.hs-hero-wheel:nth-child(2) { right: -8%; bottom: 10%; }
.hs-hero-frame { position: absolute; inset: 38% 20% auto; height: 18px; background: var(--hs-white); transform: rotate(-12deg); transform-origin: center; }
.hs-hero-note { position: absolute; top: 2rem; right: 1.4rem; max-width: 180px; padding: 1rem; color: var(--hs-ink); border-radius: 14px; background: var(--hs-lime); font-size: .9rem; font-weight: 800; transform: rotate(3deg); }

.hs-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.hs-section--white { background: var(--hs-white); }
.hs-section--warm { background: var(--hs-warm); }
.hs-section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.hs-section-head > div { max-width: 720px; }
.hs-section-head p { color: var(--hs-muted); }
.hs-grid { display: grid; gap: 1.25rem; }
.hs-grid--3 { grid-template-columns: repeat(3, 1fr); }
.hs-grid--4 { grid-template-columns: repeat(4, 1fr); }
.hs-value-card { padding: 1.6rem; border: 1px solid var(--hs-line); border-radius: var(--hs-radius); background: var(--hs-white); }
.hs-value-number { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.2rem; border-radius: 50%; color: var(--hs-green-dark); background: var(--hs-lime); font-weight: 900; }
.hs-value-card p { color: var(--hs-muted); }

.hs-product-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--hs-line); border-radius: var(--hs-radius); background: var(--hs-white); box-shadow: 0 1px 0 rgba(23,32,28,.03); transition: transform .2s ease, box-shadow .2s ease; }
.hs-product-card:hover { transform: translateY(-4px); box-shadow: var(--hs-shadow); }
.hs-product-image { position: relative; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 1rem; background: #f4f5f1; }
.hs-product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.hs-product-card:hover .hs-product-image img { transform: scale(1.025); }
.hs-product-placeholder { color: var(--hs-muted); font-size: .9rem; }
.hs-badge { position: absolute; top: .8rem; left: .8rem; padding: .35rem .65rem; border-radius: 999px; color: var(--hs-green-dark); background: var(--hs-lime); font-size: .72rem; font-weight: 900; }
.hs-badge--muted { color: var(--hs-white); background: var(--hs-muted); }
.hs-badge--backorder { color: #4d3a00; background: #f3cf4e; }
.hs-product-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.hs-product-meta { margin-bottom: .45rem; color: var(--hs-green); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hs-product-body h3 { font-size: 1.18rem; }
.hs-product-body h3 a { color: var(--hs-ink); text-decoration: none; }
.hs-product-summary { color: var(--hs-muted); font-size: .92rem; }
.hs-product-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--hs-line); }
.hs-price { font-weight: 900; white-space: nowrap; }

.hs-band { padding: 2rem 0; color: var(--hs-white); background: var(--hs-ink); }
.hs-band-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hs-band-item { display: flex; align-items: center; gap: .8rem; }
.hs-band-icon { color: var(--hs-lime); font-size: 1.4rem; }
.hs-band-item small { display: block; color: rgba(255,255,255,.6); }

.hs-cta { padding: clamp(2.2rem, 6vw, 4.5rem); border-radius: calc(var(--hs-radius) * 1.5); color: var(--hs-white); background: var(--hs-green); }
.hs-cta-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 2rem; }
.hs-cta p { color: rgba(255,255,255,.8); }
.hs-cta .hs-actions { justify-content: flex-end; margin-top: 0; }

.hs-page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 3rem; }
.hs-page-hero h1 { max-width: 900px; font-size: clamp(2.6rem, 6vw, 5rem); }
.hs-page-hero p { max-width: 720px; color: var(--hs-muted); font-size: 1.18rem; }
.hs-content { max-width: 820px; padding-bottom: 6rem; }
.hs-content > * + * { margin-top: 1.3rem; }
.hs-content h2, .hs-content h3 { margin-top: 1.6em; }
.hs-form { margin-top: 2rem; padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid var(--hs-line); border-radius: var(--hs-radius); background: var(--hs-white); }
.hs-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
.hs-form label { display: block; margin-bottom: .35rem; font-weight: 800; }
.hs-form input[type="text"], .hs-form input[type="email"], .hs-form input[type="tel"], .hs-form textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #bcc7c0; border-radius: 10px; color: var(--hs-ink); background: var(--hs-white); font: inherit; }
.hs-form input:focus, .hs-form textarea:focus { outline: 3px solid rgba(31,107,79,.18); border-color: var(--hs-green); }
.hs-consent { font-size: .88rem; }
.hs-consent label { display: flex; align-items: flex-start; gap: .5rem; font-weight: 500; }
.hs-honeypot { position: absolute !important; left: -10000px !important; }
.hs-form-message { margin: 1.5rem 0; padding: 1rem 1.2rem; border-radius: 10px; }
.hs-form-message--success { color: #174c36; background: #dff4e9; }
.hs-form-message--error { color: #732c25; background: #f8e1df; }

.hs-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 2rem; }
.hs-filter { padding: .55rem .9rem; border: 1px solid var(--hs-line); border-radius: 999px; color: var(--hs-ink); background: var(--hs-white); font-size: .88rem; font-weight: 800; text-decoration: none; }
.hs-filter:hover, .hs-filter.is-active { color: var(--hs-white); border-color: var(--hs-green); background: var(--hs-green); }
.hs-finder { margin: -1rem 0 2.5rem; padding: clamp(1.25rem, 4vw, 2.4rem); border: 1px solid var(--hs-line); border-radius: calc(var(--hs-radius) * 1.35); background: var(--hs-paper); box-shadow: var(--hs-shadow); }
.hs-finder-progress { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.hs-finder-progress li { display: flex; align-items: center; gap: .5rem; color: var(--hs-muted); font-size: .78rem; font-weight: 800; }
.hs-finder-progress li:not(:last-child)::after { content: ""; width: clamp(18px, 4vw, 48px); height: 2px; margin-left: .2rem; background: var(--hs-line); }
.hs-finder-progress span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--hs-line); border-radius: 50%; background: var(--hs-white); }
.hs-finder-progress .is-active { color: var(--hs-green-dark); }
.hs-finder-progress .is-active span { color: var(--hs-white); border-color: var(--hs-green); background: var(--hs-green); }
.hs-finder h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.hs-finder-intro { max-width: 720px; color: var(--hs-muted); }
.hs-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.hs-choice-grid--categories { grid-template-columns: repeat(3, 1fr); }
.hs-choice-card { position: relative; display: flex; min-height: 150px; padding: 1.3rem; border: 2px solid var(--hs-line); border-radius: var(--hs-radius); color: var(--hs-ink); background: var(--hs-white); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.hs-choice-card:hover, .hs-choice-card:focus-visible { color: var(--hs-ink); border-color: var(--hs-green); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(23,32,28,.08); }
.hs-choice-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; margin-right: 1rem; border-radius: 50%; color: var(--hs-green-dark); background: var(--hs-lime); font-size: 1.25rem; font-weight: 900; }
.hs-choice-copy { display: flex; flex-direction: column; }
.hs-choice-copy strong { font-size: 1.12rem; }
.hs-choice-copy small { margin-top: .35rem; color: var(--hs-muted); line-height: 1.45; }
.hs-choice-arrow { margin-top: auto; padding-top: .8rem; color: var(--hs-green); font-weight: 900; }
.hs-finder-back { display: inline-flex; margin-bottom: 1rem; font-size: .88rem; font-weight: 800; }
.hs-results-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin: 2.2rem 0 1.4rem; }
.hs-results-head h2 { margin-bottom: .2rem; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.hs-results-head p { margin: 0; color: var(--hs-muted); }
.hs-result-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.hs-product-search { display: flex; flex: 1 1 320px; gap: .6rem; }
.hs-product-search input[type="search"] { width: min(100%, 420px); padding: .68rem .9rem; border: 1px solid #bcc7c0; border-radius: 999px; color: var(--hs-ink); background: var(--hs-white); font: inherit; }
.hs-product-search .hs-button { min-height: 44px; padding-block: .6rem; }
.hs-stock-priority { display: inline-flex; align-items: center; gap: .45rem; color: var(--hs-muted); font-size: .82rem; font-weight: 800; }
.hs-stock-priority::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2f9e63; }
.hs-pagination { margin-top: 2.5rem; }
.hs-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; margin-right: .35rem; border: 1px solid var(--hs-line); border-radius: 50%; text-decoration: none; }
.hs-pagination .current { color: var(--hs-white); border-color: var(--hs-green); background: var(--hs-green); }

.hs-product-detail { padding: clamp(3rem, 7vw, 6rem) 0; }
.hs-product-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(2rem, 6vw, 5rem); }
.hs-product-gallery { position: sticky; top: 110px; display: grid; place-items: center; min-height: 480px; padding: 2rem; border-radius: var(--hs-radius); background: var(--hs-white); }
.hs-product-gallery img { width: 100%; max-height: 520px; object-fit: contain; }
.hs-product-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.hs-product-topline .hs-eyebrow { margin-bottom: 0; }
.hs-quote-button { flex: 0 0 auto; padding: .65rem 1rem; color: var(--hs-green); border-color: var(--hs-green); background: var(--hs-orange); }
.hs-quote-button:hover { color: var(--hs-green-dark); border-color: var(--hs-green-dark); background: #f7b45a; }
.hs-product-info h1 { font-size: clamp(2.3rem, 5vw, 4.3rem); }
.hs-product-price { margin: 1rem 0; color: var(--hs-green); font-size: 1.65rem; font-weight: 900; }
.hs-stock { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; font-weight: 800; }
.hs-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2f9e63; }
.hs-stock--backorder::before { background: #e0ad00; }
.hs-stock--out::before { background: #c06855; }
.hs-product-number { margin: -.75rem 0 1.5rem; color: var(--hs-muted); font-size: .9rem; font-weight: 700; }
.hs-advice { margin: 2rem 0; padding: 1.5rem; border-left: 6px solid var(--hs-lime); border-radius: 0 var(--hs-radius) var(--hs-radius) 0; background: var(--hs-white); }
.hs-advice-label { color: var(--hs-green); font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hs-remote-note { margin-top: 1rem; color: var(--hs-muted); font-size: .82rem; }

.site-footer { padding: 4rem 0 1.5rem; color: rgba(255,255,255,.78); background: var(--hs-ink); }
.hs-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.site-footer h2, .site-footer h3 { color: var(--hs-white); }
.site-footer a { color: var(--hs-white); }
.hs-footer-links { margin: 0; padding: 0; list-style: none; }
.hs-footer-links li + li { margin-top: .5rem; }
.hs-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

@media (max-width: 960px) {
    .hs-menu-toggle { display: inline-flex; }
    .hs-nav { display: none; position: absolute; inset: 82px 0 auto; padding: 1.2rem 20px 1.5rem; border-bottom: 1px solid var(--hs-line); background: var(--hs-paper); }
    .hs-nav.is-open { display: block; }
    .hs-menu { align-items: stretch; flex-direction: column; gap: .9rem; }
    .hs-header-actions .hs-button { display: none; }
    .hs-hero-grid, .hs-product-layout, .hs-cta-grid { grid-template-columns: 1fr; }
    .hs-hero-card { min-height: 340px; }
    .hs-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .hs-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .hs-choice-grid--categories { grid-template-columns: repeat(2, 1fr); }
    .hs-product-gallery { position: static; min-height: 360px; }
    .hs-product-topline { align-items: flex-start; }
    .hs-cta .hs-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .hs-shell { width: min(calc(100% - 28px), var(--hs-width)); }
    .hs-header-inner { min-height: 70px; }
    .hs-nav { top: 70px; }
    .hs-product-topline { flex-direction: column; }
    .hs-brand-copy small { display: none; }
    .hs-hero { padding-top: 3.5rem; }
    .hs-hero h1 { font-size: clamp(2.35rem, 11vw, 3.1rem); }
    .hs-hero p { max-width: 100%; overflow-wrap: anywhere; }
    .hs-hero .hs-actions { align-items: stretch; flex-direction: column; }
    .hs-hero .hs-actions .hs-button { width: 100%; max-width: 100%; }
    .hs-hero-card { overflow: hidden; width: 100%; min-height: 280px; }
    .hs-section-head { align-items: start; flex-direction: column; }
    .hs-grid--4, .hs-grid--3, .hs-band-inner, .hs-footer-grid { grid-template-columns: 1fr; }
    .hs-choice-grid, .hs-choice-grid--categories { grid-template-columns: 1fr; }
    .hs-choice-card { min-height: 125px; }
    .hs-finder-progress li { font-size: 0; }
    .hs-finder-progress li:not(:last-child)::after { width: 32px; }
    .hs-results-head { align-items: flex-start; flex-direction: column; }
    .hs-product-search { width: 100%; }
    .hs-form-grid { grid-template-columns: 1fr; }
    .hs-product-footer { align-items: flex-start; flex-direction: column; }
    .hs-footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
