/*
 * Sections from the page editor (Innstillinger › Nettside › Sider): WwwBlocksHandler::render, views/www/default/content.volt.
 * Follows the theme: headings #1A3760, text #5F6973, buttons are the theme's .btn-thm (brand colour comes with it).
 */
.wbk {
    padding: 44px 0;
}

.wbk + .wbk {
    padding-top: 8px;
}

.wbk-page {
    padding-top: 60px;
}

.wbk-page.has-banner {
    padding-top: 0;
}

.wbk-page-title {
    margin: 0 0 4px;
    font-size: 34px;
    font-weight: 700;
}

.wbk-head {
    margin: 0 0 26px;
    text-align: center;
}

.wbk-head h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
}

.wbk-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 24px;
    font-weight: 600;
    color: #fff;
}

.wbk-more {
    margin-top: 10px;
    text-align: center;
}

/* Text */
.wbk-text {
    font-size: 16px;
    line-height: 1.7;
}

.wbk-text h2,
.wbk-text h3,
.wbk-text h4 {
    margin: 1.2em 0 .5em;
    font-weight: 700;
}

.wbk-text h2 {
    font-size: 28px;
}

.wbk-text h3 {
    font-size: 22px;
}

.wbk-text > .container > :first-child {
    margin-top: 0;
}

.wbk-text > .container > :last-child {
    margin-bottom: 0;
}

.wbk-text p {
    margin: 0 0 1em;
    font-size: inherit;
    line-height: inherit;
}

.wbk-text ul,
.wbk-text ol {
    margin: 0 0 1em;
    padding-left: 22px;
}

.wbk-text ul li {
    list-style: disc;
}

.wbk-text ol li {
    list-style: decimal;
}

.wbk-text a {
    text-decoration: underline;
}

.wbk-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Bilde og tekst */
.wbk-imgtext-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.wbk-imgtext.is-flip .wbk-imgtext-img {
    order: 2;
}

.wbk-imgtext-img img {
    display: block;
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 16px;
}

.wbk-imgtext-body h2 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
}

.wbk-imgtext-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Toppbanner */
.wbk.wbk-hero {
    padding: 0;
    background-color: #1A3760;
    background-size: cover;
    background-position: center;
}

.wbk-hero + .wbk {
    padding-top: 44px;
}

.wbk-hero-shade {
    display: flex;
    align-items: center;
    min-height: 420px;
    padding: 56px 0;
    background: linear-gradient(90deg, rgba(10, 20, 40, .72), rgba(10, 20, 40, .28));
}

.wbk-hero.is-small .wbk-hero-shade {
    min-height: 280px;
}

.wbk-hero.is-large .wbk-hero-shade {
    min-height: 580px;
}

.wbk-hero.is-center .wbk-hero-shade {
    background: rgba(10, 20, 40, .5);
    text-align: center;
}

.wbk-hero-shade > .container {
    width: 100%;
}

.wbk-hero-body {
    max-width: 640px;
}

.wbk-hero.is-center .wbk-hero-body {
    margin: 0 auto;
}

.wbk-hero h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
}

.wbk-hero p {
    margin: 14px 0 0;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .92);
}

/* Biler til salgs */
.wbk-cars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.wbk-car {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #E9ECF2;
    border-radius: 16px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.wbk-car:hover {
    box-shadow: 0 12px 30px rgba(26, 55, 96, .12);
    transform: translateY(-2px);
}

.wbk-car-img {
    display: block;
    aspect-ratio: 4 / 3;
    background: #F2F4F8;
}

.wbk-car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wbk-car-body {
    display: grid;
    gap: 4px;
    padding: 16px 18px 18px;
}

.wbk-car-body b {
    font-size: 16px;
    font-weight: 600;
    color: #1A3760;
}

.wbk-car-body span {
    font-size: 13.5px;
    color: #5F6973;
}

.wbk-car-body strong {
    margin-top: 6px;
    font-size: 19px;
    font-weight: 700;
    color: #1A3760;
}

/* Kontaktskjema */
.wbk-form-box {
    max-width: 820px;
    margin: 0 auto;
    padding: 12px 28px 28px;
    border: 1px solid #E9ECF2;
    border-radius: 16px;
    background: #fff;
}

/* Fordeler */
.wbk-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.wbk-feature {
    padding: 24px;
    border: 1px solid #E9ECF2;
    border-radius: 16px;
    background: #fff;
}

.wbk-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #F2F5FB;
    font-size: 20px;
    color: #1A3760;
}

.wbk-feature h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
}

.wbk-feature p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Oppfordring */
.wbk-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px 38px;
    border-radius: 18px;
    background: #F2F5FB;
}

.wbk-cta-box h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
}

.wbk-cta-box p {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.6;
}

.wbk-cta-box .wbk-btn {
    flex: 0 0 auto;
    margin-top: 0;
}

/* Ansatte */
.wbk-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.wbk-person {
    text-align: center;
}

.wbk-person img {
    width: 120px;
    height: 120px;
    margin-bottom: 14px;
    border-radius: 50%;
    object-fit: cover;
    background: #F2F4F8;
}

.wbk-person h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.wbk-person p {
    margin: 2px 0 0;
    font-size: 14.5px;
}

.wbk-person a {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    word-break: break-all;
}

/* Åpningstider og kart */
.wbk-find-grid {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

.wbk-find-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.wbk-find-info {
    padding: 26px 28px;
    border: 1px solid #E9ECF2;
    border-radius: 16px;
    background: #fff;
}

.wbk-find-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.wbk-find-info ul {
    margin: 0 0 22px;
    padding: 0;
}

.wbk-find-info ul:last-child {
    margin-bottom: 0;
}

.wbk-find-info li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    font-size: 15px;
    list-style: none;
}

.wbk-hours li + li {
    border-top: 1px solid #F0F2F6;
}

.wbk-hours b {
    font-weight: 600;
    color: #1A3760;
    white-space: nowrap;
}

.wbk-contact li {
    justify-content: flex-start;
    align-items: baseline;
}

.wbk-contact i {
    width: 18px;
    color: #1A3760;
}

.wbk-map {
    min-height: 340px;
    overflow: hidden;
    border-radius: 16px;
    background: #F2F4F8;
}

.wbk-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}

/* Spørsmål og svar */
.wbk-faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.wbk-faq-item {
    border: 1px solid #E9ECF2;
    border-radius: 12px;
    background: #fff;
}

.wbk-faq-item + .wbk-faq-item {
    margin-top: 10px;
}

.wbk-faq-item summary {
    position: relative;
    padding: 16px 48px 16px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #1A3760;
    cursor: pointer;
    list-style: none;
}

.wbk-faq-item summary::-webkit-details-marker {
    display: none;
}

.wbk-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
}

.wbk-faq-item[open] summary::after {
    content: "–";
}

.wbk-faq-item > div {
    padding: 0 20px 18px;
    font-size: 15.5px;
    line-height: 1.65;
}

/* Bildegalleri */
.wbk-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.wbk-gallery-grid.is-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wbk-gallery-grid.is-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wbk-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: #F2F4F8;
}

.wbk-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.wbk-gallery-item:hover img {
    transform: scale(1.04);
}

.wbk-gallery-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 14px 10px;
    background: linear-gradient(transparent, rgba(10, 20, 40, .7));
    font-size: 13.5px;
    color: #fff;
}

/* Samarbeidspartnere */
.wbk-partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.wbk-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 168px;
    height: 96px;
    padding: 16px;
    border: 1px solid #E9ECF2;
    border-radius: 12px;
    background: #fff;
}

.wbk-partner img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Video */
.wbk-video-frame {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #0A1428;
}

.wbk-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Icons are inline SVG */
.wbk-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wbk-contact i {
    line-height: 0;
}

.wbk-contact .wbk-svg {
    width: 17px;
    height: 17px;
}

.wbk-car-tag {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #1A3760;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.wbk-car-img {
    position: relative;
}

.wbk-car-specs {
    display: none; /* caption grid of the Kraft theme */
}

.wbk-car-body em {
    font-style: normal;
    font-size: 13.5px;
    color: #5F6973;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Tillitsmerker */
.wbk-trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.wbk-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 10px;
    border: 1px solid #E9ECF2;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    font-size: 14.5px;
    font-weight: 600;
    color: #1A3760;
}

.wbk-trust-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #F2F5FB;
}

a.wbk-trust-item {
    transition: border-color .15s ease, transform .15s ease;
}

a.wbk-trust-item:hover {
    border-color: #1A3760;
    color: #1A3760;
    transform: translateY(-2px);
}

/* Selg bilen */
.wbk-sell-grid,
.wbk-fin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.wbk-sell h2,
.wbk-finance h2 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
}

.wbk-steps {
    display: grid;
    gap: 20px;
    margin: 24px 0 0;
    padding: 0;
    counter-reset: wbkstep;
}

.wbk-steps li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    list-style: none;
    counter-increment: wbkstep;
}

.wbk-steps li::before {
    content: counter(wbkstep);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1.5px solid #1A3760;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 700;
    color: #1A3760;
}

.wbk-steps h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.wbk-steps span {
    font-size: 15px;
}

.wbk-sell-box {
    padding: 32px;
    border-radius: 18px;
    background: #1A3760;
}

.wbk-sell-box h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.wbk-sell-box > p,
.wbk-sell-box label {
    color: rgba(255, 255, 255, .85);
}

.wbk-sell-box .form-section > div {
    margin-top: 12px;
}

.wbk-sell-more[hidden] {
    display: none !important;
}

/* Number plate: blue band with the Norwegian flag and N, like the real thing */
.wbk-plate {
    padding-left: 54px !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 36'%3E%3Crect width='22' height='16' fill='%23ba0c2f'/%3E%3Cpath d='M6 0h4v16H6zM0 6h22v4H0z' fill='%23fff'/%3E%3Cpath d='M7 0h2v16H7zM0 7h22v2H0z' fill='%2300205b'/%3E%3Ctext x='11' y='33' text-anchor='middle' font-family='Arial,sans-serif' font-size='14' font-weight='700' fill='%23fff'%3EN%3C/text%3E%3C/svg%3E") 10px center / 20px auto no-repeat, linear-gradient(90deg, #00529b 40px, #fff 40px) !important;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Tjenester */
.wbk-services {
    background: #F7F8FB;
    padding-bottom: 44px !important;
}

.wbk-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 16px;
}

.wbk-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: 16px;
    background: #1A3760;
    color: #fff;
}

.wbk-tile:hover {
    color: #fff;
}

.wbk-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .45;
}

.wbk-tile h3,
.wbk-tile span {
    position: relative;
    margin: 0;
    color: #fff;
}

.wbk-tile h3 {
    font-size: 20px;
    font-weight: 600;
}

.wbk-tile span {
    font-size: 14.5px;
    opacity: .88;
}

.wbk-tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.wbk-tile:nth-child(4),
.wbk-bento.is-2 .wbk-tile,
.wbk-bento.is-3 .wbk-tile:not(:first-child) {
    grid-column: span 2;
    grid-row: auto;
}

/* Finansiering */
.wbk-ticks {
    margin: 18px 0 0;
    padding: 0;
}

.wbk-ticks li {
    margin-bottom: 8px;
    list-style: none;
    font-size: 15.5px;
}

.wbk-ticks li::before {
    content: "✓";
    margin-right: 10px;
    font-weight: 700;
    color: #1A3760;
}

.m-calc {
    padding: 28px;
    border: 1px solid #E9ECF2;
    border-radius: 16px;
    background: #fff;
}

.m-calc label {
    display: flex;
    justify-content: space-between;
    font-size: 14.5px;
}

.m-calc label b {
    font-weight: 600;
    color: #1A3760;
}

.m-calc input[type=range] {
    display: none; /* the sliders need the new themes' script – here the numbers are an example */
}

.m-calc label {
    margin-bottom: 10px;
}

.m-calc-label {
    display: block;
    margin-top: 16px;
    font-size: 13.5px;
}

.m-calc-sum {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    color: #1A3760;
}

.m-calc small {
    display: block;
    margin-top: 12px;
    font-size: 12.5px;
}

/* Kundeomtaler */
.wbk-reviews {
    background: #F7F8FB;
    padding-bottom: 44px !important;
}

.wbk-reviews .wbk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.wbk-revs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.wbk-rev {
    padding: 26px;
    border: 1px solid #E9ECF2;
    border-radius: 16px;
    background: #fff;
}

.wbk-rev p {
    margin: 12px 0 18px;
    font-size: 15.5px;
    line-height: 1.6;
}

.wbk-stars {
    color: #f5b301;
    letter-spacing: 2px;
}

.wbk-rating {
    font-size: 14.5px;
    font-weight: 600;
    color: #1A3760;
}

.wbk-who {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: #1A3760;
}

.wbk-who i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1A3760;
    font-style: normal;
    font-size: 13px;
    color: #fff;
}

/* Merker på lager */
.wbk-brands {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.wbk-brands a {
    padding: 10px 18px;
    border: 1px solid #E9ECF2;
    border-radius: 999px;
    background: #fff;
    font-size: 14.5px;
    font-weight: 600;
    color: #1A3760;
}

.wbk-brands small {
    margin-left: 4px;
    font-weight: 400;
    color: #5F6973;
}

@media (max-width: 991px) {
    .wbk-sell-grid,
    .wbk-fin-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .wbk-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wbk-cars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wbk-gallery-grid.is-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wbk-find-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .wbk {
        padding: 32px 0;
    }

    .wbk-page {
        padding-top: 32px;
    }

    .wbk-head h2,
    .wbk-imgtext-body h2 {
        font-size: 24px;
    }

    .wbk-page-title {
        font-size: 28px;
    }

    .wbk-imgtext-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .wbk-imgtext.is-flip .wbk-imgtext-img {
        order: 0;
    }

    .wbk-hero h1 {
        font-size: 32px;
    }

    .wbk-hero p {
        font-size: 16px;
    }

    .wbk-hero-shade,
    .wbk-hero.is-large .wbk-hero-shade {
        min-height: 320px;
    }

    .wbk-hero.is-small .wbk-hero-shade {
        min-height: 220px;
    }

    .wbk-cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
    }

    .wbk-gallery-grid,
    .wbk-gallery-grid.is-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wbk-form-box {
        padding: 8px 18px 20px;
    }
}

@media (max-width: 575px) {
    .wbk-cars-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wbk-bento {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 180px;
    }

    .wbk-tile:first-child,
    .wbk-tile:nth-child(4),
    .wbk-bento .wbk-tile {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}
