/* FILE_VERSION = 1.0.3
 * Stilul primei pagini (front-page.php), incarcat numai pe prima pagina. Culorile si colturile vin din variabilele
 * din global.css.
 *
 * SECTIUNI:
 *   1. Sectiunile paginii si benzile gri
 *   2. Caruselul
 *   3. Introducerea
 *   4. Categoriile
 *   5. Increderea
 *   6. Recomandarile (trei carduri cu poza)
 *   7. Asistenta 24 x 7
 *   8. Cardurile de produs
 *   9. Bannerele
 *  10. Telefon
 */

/* 1. Sectiunile: aceeasi latime ca antetul; benzile au fundalul gri deschis al site-ului */
.vf-section {
    max-width: var(--vf-width);
    margin: 0 auto;
    padding: 40px 20px;
}

.vf-band {
    background: var(--vf-band);
}

.vf-section__title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.25;
    color: var(--vf-text);
}

.vf-section__lead {
    margin: 0 0 24px;
    color: var(--vf-muted);
}

/* 2. Caruselul: derulare orizontala cu oprire pe fiecare slide; panoul albastru transparent peste poza */
.vf-hero {
    position: relative;
}

.vf-hero__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.vf-hero__track::-webkit-scrollbar {
    display: none;
}

.vf-hero__slide {
    flex: 0 0 100%;
    min-height: 460px;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
}

.vf-hero__panel {
    max-width: 520px;
    margin-left: max(20px, calc((100% - var(--vf-width)) / 2 + 20px));
    padding: 28px;
    border-radius: var(--vf-radius);
    background: rgba(15, 108, 189, 0.88);
    color: #fff;
}

.vf-hero__brand {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.vf-hero__text {
    margin: 0 0 18px;
    font-size: 19px;
    line-height: 1.45;
}

.vf-hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.vf-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.vf-hero__dot[aria-current="true"] {
    background: #fff;
}

/* Sagetile caruselului: discrete, semitransparente, mai vizibile la trecerea mouse-ului; numai pe calculator */
.vf-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0 0 4px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    color: #0d1b2a;
    font-size: 30px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease;
}

.vf-hero__arrow:hover,
.vf-hero__arrow:focus-visible {
    background: rgba(255, 255, 255, 0.9);
}

.vf-hero__arrow--prev {
    left: 16px;
}

.vf-hero__arrow--next {
    right: 16px;
}

@media (max-width: 768px) {
    .vf-hero__arrow {
        display: none;
    }
}

/* 3. Introducerea */
.vf-intro {
    padding-bottom: 8px;
    text-align: center;
}

.vf-intro__title {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.2;
}

.vf-intro__text {
    margin: 0 auto;
    max-width: 720px;
    font-size: 18px;
    color: var(--vf-muted);
}

/* 4. Categoriile: grila de carduri patrate cu numele sub poza */
.vf-cats {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 16px;
}

.vf-cat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}

.vf-cat__image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--vf-radius);
    background: var(--vf-band);
}

.vf-cat__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.vf-cat:hover .vf-cat__image img {
    transform: scale(1.04);
}

.vf-cat__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--vf-blue);
}

/* 5. Increderea */
.vf-trust {
    text-align: center;
}

.vf-trust h2 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.3;
}

.vf-trust p {
    max-width: 820px;
    margin: 0 auto 16px;
}

.vf-trust__quote {
    font-style: italic;
    color: var(--vf-muted);
}

/* 6. Recomandarile: trei carduri cu poza si textul dedesubt */
.vf-promos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vf-promo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    background: var(--vf-surface);
    color: var(--vf-text);
    text-decoration: none;
}

.vf-promo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.vf-promo__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
}

.vf-promo__body strong {
    color: var(--vf-blue);
}

.vf-promo__body span {
    color: var(--vf-muted);
    font-size: 15px;
}

/* Recomandarile clientului (sau indemnul „Log in” pentru vizitator) lipite de cardurile de deasupra:
   spatiul de sub carduri ajunge, fara inca 40px deasupra si marginile paragrafului */
.vf-section.vf-personal {
    padding-top: 0;
    padding-bottom: 24px;
}

.vf-personal > p {
    margin: 0;
}

/* 7. Asistenta 24 x 7 */
.vf-assist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.vf-assist__card {
    overflow: hidden;
    border-radius: var(--vf-radius);
    background: var(--vf-surface);
}

.vf-assist__card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Butonul „Solicita asistenta” sta pe poza, in coltul din dreapta jos */
.vf-assist__media {
    position: relative;
}

.vf-assist__media .vf-button {
    position: absolute;
    right: 16px;
    bottom: 16px;
    box-shadow: 0 6px 18px rgba(13, 27, 42, 0.25);
}

.vf-assist__body {
    padding: 18px;
}

.vf-assist__body h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.3;
}

.vf-assist__body p {
    margin: 0;
    font-size: 14px;
    color: var(--vf-muted);
}

/* 8. Cardurile de produs */
.vf-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.vf-product {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    background: var(--vf-surface);
}

.vf-product__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--vf-radius);
    background: var(--vf-band);
}

.vf-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vf-product__sale {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    border-radius: var(--vf-radius);
    background: var(--vf-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.vf-product__name {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
}

.vf-product__name a {
    color: var(--vf-text);
    text-decoration: none;
}

.vf-product__price {
    margin: 0;
    font-weight: 700;
    color: var(--vf-blue);
}

.vf-product__price del {
    margin-right: 6px;
    font-weight: 400;
    color: var(--vf-muted);
}

.vf-product .vf-button {
    margin-top: auto;
    text-align: center;
}

/* 9. Bannerele: poza ca fundal, textul pe un strat inchis jos */
.vf-banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.vf-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 260px;
    padding: 20px;
    overflow: hidden;
    border-radius: var(--vf-radius);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-decoration: none;
}

.vf-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.75), rgba(13, 27, 42, 0) 65%);
}

.vf-banner > * {
    position: relative;
}

.vf-banner__label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vf-banner__title {
    font-size: 24px;
    line-height: 1.2;
}

.vf-banner__more {
    margin-top: 6px;
    font-size: 14px;
    text-decoration: underline;
}

/* 10. Calculator mic, tableta si telefon: mai putine coloane */
@media (max-width: 1024px) {
    .vf-cats {
        grid-template-columns: repeat(4, 1fr);
    }

    .vf-products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .vf-section {
        padding: 28px 16px;
    }

    .vf-hero__slide {
        min-height: 380px;
        align-items: flex-end;
    }

    .vf-hero__panel {
        margin: 0 12px 40px;
        padding: 18px;
    }

    .vf-hero__brand {
        font-size: 24px;
    }

    .vf-hero__text {
        font-size: 16px;
    }

    .vf-intro__title {
        font-size: 26px;
    }

    .vf-intro__text {
        font-size: 16px;
    }

    .vf-cats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .vf-cat__name {
        font-size: 13px;
    }

    .vf-trust h2 {
        font-size: 21px;
    }

    .vf-promos,
    .vf-assist,
    .vf-banners {
        grid-template-columns: 1fr;
    }

    .vf-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .vf-product {
        padding: 8px;
    }

    .vf-section__title {
        font-size: 23px;
    }
}
