/**
 * VCS Cloud dealer page layouts.
 */

.vcsMain {
    overflow-x: hidden;
}

.vcsError {
    padding: 2rem 0;
    color: #b00020;
}

/* —— Hero —— */
.vcsHero {
    position: relative;
    min-height: clamp(22rem, 65vh, 40rem);
    display: flex;
    align-items: flex-end;
    color: #fff;
    margin-bottom: 0;
}

.vcsHero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vcsHero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vcsHero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 1;
}

.vcsHero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.25rem 2.5rem;
}

.vcsHero__content {
    max-width: 36rem;
    text-align: center;
    margin: 0 auto;
}

.vcsHero__content--left {
    margin: 0;
    text-align: left;
}

.vcsHero__smallTitle {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0 0 0.5rem;
    opacity: 0.95;
}

.vcsHero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.vcsHero__super {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
    opacity: 0.95;
}

.vcsHero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.vcsHero__content--left .vcsHero__actions {
    justify-content: flex-start;
}

/* —— Intro —— */
.vcsIntro {
    padding: 3rem 0 1rem;
}

.vcsIntro__inner {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.vcsIntro__title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin: 0 0 1rem;
}

.vcsIntro__text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #3a3a3a;
}

/* —— Discovery row —— */
.vcsDiscovery {
    padding: 2rem 0 2.5rem;
}

.vcsDiscovery__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.vcsDiscovery__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vcsDiscovery__link:hover {
    border-color: #bbb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.vcsDiscovery__media {
    display: none;
}

.vcsDiscovery__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-weight: 500;
}

.vcsDiscovery__chev {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23222' d='M6 3l5 5-5 5v-10z'/%3E%3C/svg%3E")
        center / contain no-repeat;
    opacity: 0.6;
}

/* —— Offers / models grids —— */
.vcsOffers,
.vcsModels {
    padding: 2.5rem 0;
}

.vcsOffers__title,
.vcsModels__title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0 0 1.5rem;
    text-align: center;
}

.vcsOffers__grid,
.vcsModels__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.vcsOffers__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ebebeb;
    background: #fff;
    transition: box-shadow 0.15s ease;
}

.vcsOffers__card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.vcsOffers__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.vcsOffers__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vcsOffers__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.vcsOffers__cardTitle {
    font-weight: 600;
    font-size: 1.1rem;
}

.vcsOffers__cardText {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    flex: 1;
}

.vcsOffers__cta {
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
    text-decoration: underline;
}

/* —— Models —— */
.vcsModels__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    background: #fafafa;
}

.vcsModels__media {
    background: #fff;
    aspect-ratio: 16 / 10;
}

.vcsModels__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vcsModels__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.vcsModels__super {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
}

.vcsModels__name {
    margin: 0;
    font-size: 1.2rem;
}

.vcsModels__desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
    flex: 1;
}

.vcsModels__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* —— Care / why / service split —— */
.vcsCare,
.vcsWhy,
.vcsService {
    padding: 2.5rem 0;
}

.vcsCare__layout,
.vcsWhy__layout,
.vcsService__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .vcsCare__layout,
    .vcsWhy__layout,
    .vcsService__layout {
        grid-template-columns: 1fr 1fr;
    }

    .vcsService__layout .vcsService__content {
        order: 1;
    }

    .vcsService__layout .vcsService__media {
        order: 2;
    }
}

.vcsCare__image,
.vcsWhy__image,
.vcsService__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.vcsCare__title,
.vcsWhy__title,
.vcsService__title {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.vcsCare__text,
.vcsService__text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.vcsWhy__reasons {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.vcsWhy__reason {
    margin-bottom: 1.25rem;
}

.vcsWhy__reasonTitle {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.vcsWhy__reasonText {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #444;
}

/* —— Full promos —— */
.vcsPromo {
    position: relative;
    min-height: clamp(18rem, 50vh, 32rem);
    display: flex;
    align-items: center;
    color: #fff;
    margin: 0;
}

.vcsPromo__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vcsPromo__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vcsPromo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.vcsPromo__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.25rem;
}

.vcsPromo__content {
    max-width: 32rem;
}

.vcsPromo__title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    color: #fff;
}

.vcsPromo__text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

/* —— Buttons —— */
.vcsBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.vcsBtn--light {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.vcsBtn--light:hover {
    background: #f2f2f2;
}

.vcsBtn--dark {
    background: #111;
    color: #fff;
    border-color: #111;
}

.vcsBtn--dark:hover {
    background: #333;
}

.vcsBtn--outline {
    background: transparent;
    color: #111;
    border-color: #111;
}

.vcsBtn--outline:hover {
    background: #111;
    color: #fff;
}

/* —— Generic document —— */
.vcsDocument {
    padding: 2rem 0 3rem;
}

.vcsDocument__title {
    margin: 0 0 2rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.vcsDocument__section {
    margin-bottom: 2.5rem;
}

.vcsDocument__sectionTitle {
    margin: 0 0 1rem;
    font-size: 1.35rem;
}

.vcsDocument__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.vcsDocument__item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.vcsDocument__itemTitle {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.vcsDocument__itemText {
    margin: 0;
    color: #444;
    line-height: 1.55;
}

/* —— VCS Cloud JS embed (production bildeve.se/volvo/ parity) —— */
.bildeve-vcs-embed .vcsMain {
    overflow: visible;
}

.vcsEmbed {
    width: 100%;
}

.vcsEmbed__module {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.vcsEmbed__script {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.vcsEmbed__script #fbi-root {
    min-height: 1px;
}
