/*
Theme Name: Hälsinglands Båtcenter
Description: Svensk annonssida för begagnade båtar och båttrailers.
Version: 2.3.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: halsinglands-batcenter
*/
:root {
    color-scheme: light;
    --ink: #171f28;
    --deep: #122238;
    --paper: #faf9f5;
    --white: #fff;
    --muted: #4e5962;
    --lime: #eed49c;
    --line: #d9dce0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; overflow-wrap: anywhere; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #598542; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
.hb-wrap { width: min(1152px, calc(100% - 64px)); margin-inline: auto; }
.hb-header { background: var(--paper); }
.hb-nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding-block: 17px; }
.hb-brand, .hb-nav nav { display: flex; align-items: center; gap: 14px; }
.hb-brand { text-decoration: none; font-weight: 730; letter-spacing: -.025em; }
.hb-logo-default { display: block; width: 250px; height: 92px; object-fit: cover; mix-blend-mode: multiply; }
.hb-nav nav { flex-wrap: wrap; gap: 10px 26px; }
.hb-nav nav a { text-decoration: none; font-weight: 650; font-size: .94rem; }
.hb-nav nav a:hover { text-decoration: underline; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-width: 210px; max-height: 63px; object-fit: contain; width: auto; }
.hb-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: #f6f8ee; }
.hb-hero::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(110deg, #101e32, #28405b);
}
.hb-cover { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hb-with-cover::before { background: linear-gradient(90deg, #101e32f2, #101e3299 100%); }
.hb-hero-content { padding-block: clamp(56px, 9vw, 120px); }
.hb-hero h1, .hb-detail h1 { font-size: clamp(2.55rem, 6.9vw, 6.15rem); line-height: .99; letter-spacing: -.065em; margin-bottom: 24px; }
.hb-hero p { max-width: 37ch; margin-bottom: 28px; color: #e2ebe0; font-size: clamp(1rem, 2vw, 1.22rem); }
.hb-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 11px 17px; border: 1px solid transparent; border-radius: 6px; background: var(--lime); color: var(--ink); font-weight: 750; text-decoration: none; }
.hb-button:hover { background: #f7e4bc; }
.hb-button-secondary { background: var(--white); border-color: var(--line); }
.hb-inventory { padding-block: clamp(38px, 6vw, 80px); }
.hb-inventory h2 { margin-bottom: 19px; font-size: clamp(2rem, 4vw, 3.2rem); }
.hb-filters, .hb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hb-filters { margin-bottom: 27px; }
.hb-filters a { padding: 6px 16px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; font-weight: 650; background: var(--white); }
.hb-filters a:hover { border-color: var(--ink); }
.hb-filters a[aria-current] { background: var(--deep); border-color: var(--deep); color: var(--white); }
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.hb-card { background: var(--white); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.hb-card a { display: block; height: 100%; text-decoration: none; }
.hb-card a:focus-visible { outline-offset: -4px; }
.hb-card a:hover h3 { text-decoration: underline; }
.hb-card-image { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #e3ebe1; }
.hb-no-image { display: grid; place-items: center; color: var(--muted); }
.hb-card-body { padding: 19px; }
.hb-category { color: var(--muted); font-size: .9rem; font-weight: 650; margin-bottom: 9px; }
.hb-card h3 { font-size: 1.45rem; margin-bottom: 11px; }
.hb-empty { padding: 24px; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--muted); }
.hb-pagination { gap: 22px; margin-top: 25px; }
.hb-hero-actions { gap: 12px 20px; }
.hb-services { padding-block: clamp(38px, 6vw, 72px); border-top: 1px solid var(--line); }
.hb-services h2 { margin-bottom: 23px; font-size: clamp(2rem, 4vw, 3.2rem); }
.hb-services .hb-button { margin-top: 24px; }
.hb-service { padding: 23px; border: 1px solid var(--line); border-radius: 8px; background: #e6eee0; }
.hb-service h3 { margin-bottom: 12px; font-size: 1.45rem; }
.hb-service p { margin-bottom: 0; color: var(--muted); }
.hb-service p + p { margin-top: 12px; }
.hb-contact { padding-block: 38px; background: #e6eee0; }
.hb-contact h2 { margin-bottom: 15px; }
.hb-footer { padding-block: 23px; background: var(--deep); color: var(--white); font-weight: 650; }
.hb-detail { padding-block: clamp(32px, 6vw, 68px); }
.hb-back { display: inline-block; margin-bottom: 24px; }
.hb-detail h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
.hb-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.hb-main-image { display: block; width: 100%; margin-bottom: 24px; border-radius: 8px; }
.hb-description { min-width: 0; }
.hb-description iframe { max-width: 100%; }
.hb-facts { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.hb-facts dl:empty { display: none; }
.hb-facts dl > div { padding-block: 9px; border-top: 1px solid var(--line); }
.hb-facts dt { font-weight: 650; }
.hb-facts dd { margin-left: 0; color: var(--muted); }
.screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:focus { clip-path: none; height: auto; width: auto; padding: 10px; background: white; z-index: 10; }
@media (max-width: 680px) {
    .hb-wrap { width: calc(100% - 36px); }
    .hb-detail-grid { grid-template-columns: 1fr; }
    .hb-nav nav { gap: 8px 17px; }
}

.hb-button, .hb-card, .hb-empty, .hb-service { border-radius: 2px; }
.hb-hero h1 { max-width: 12ch; font-family: Georgia, serif; font-weight: 500; line-height: .97; }
.hb-department { scroll-margin-top: 16px; }
.hb-department-begagnat { background: #f2eee4; }
.hb-department-nytt { background: #edf2f7; }
.hb-department-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.hb-department-heading h2 { font-family: Georgia, serif; font-weight: 500; margin-bottom: 7px; }
.hb-department-heading p { margin: 0; color: var(--muted); }
.hb-department-photo { display: block; width: min(42%, 440px); aspect-ratio: 2.2; object-fit: cover; }
.hb-card-body { padding: 22px; }
.hb-services .hb-service { background: #fff; }
.hb-contact { background: #e8edf3; }
@media (max-width: 550px) {
    .hb-department-heading { flex-direction: column; align-items: stretch; gap: 15px; }
    .hb-department-photo { width: 100%; }
}

.hb-cover { object-position: center 60%; }

.hb-department-nytt { border-top: 5px solid #ebad53; }
.hb-department-heading h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.hb-nav nav a { display: inline-flex; align-items: center; min-height: 44px; }
.hb-nav nav a:first-child { padding-inline: 13px; background: #eed49c; border-radius: 2px; }

.hb-trailer-photos { margin-bottom: 28px; }
.hb-trailer-photos h3 { font-size: 1.25rem; margin-bottom: 12px; }
.hb-trailer-photos img { display: block; width: 100%; height: auto; border-radius: 2px; }
