/* FILE_VERSION = 1.0.1 */
/*
 * VOGO Landing Pages - aspectul paginilor "Trimite un cadou" si "Servicii in Romania" (shortcode [vogo_landing]).
 * Identitatea site-ului: albastrul VOGO (variabilele din vogo-brand-blue.css), fontul temei, benzi gri deschis cu carduri albe.
 *
 * SECTIUNI:
 *   1. Variabile si baza
 *   2. Butoane
 *   3. Antetul paginii (text pe albastru + fotografie)
 *   4. Benzi si titluri de sectiune
 *   5. Cadou: pasii comenzii
 *   6. Cadou: mozaicul de idei
 *   7. Servicii: grupurile dupa nevoie
 *   8. Banda de ajutor
 *   9. Telefon si tableta
 */

/* 1. Variabile si baza */
.vlp {
    --vlp-blue: var(--vogo-brand-blue, #0F6CBD);
    --vlp-blue-dark: var(--vogo-brand-blue-dark, #0B5A9E);
    --vlp-ink: #1f2937;
    --vlp-muted: #5b6472;
    --vlp-band: #f4f6f9;
    --vlp-line: #e5e7eb;
    color: var(--vlp-ink);
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow-x: clip;
}
/* Pagina sta in containerul temei (main.container): fara spatiul de deasupra si dedesubt, ca antetul sa se lipeasca de meniu */
.main-page-wrapper:has(.vlp) {
    padding-top: 0;
    padding-bottom: 0;
}
.vlp *,
.vlp *::before,
.vlp *::after {
    box-sizing: border-box;
}
.vlp h1,
.vlp h2,
.vlp h3,
.vlp p {
    margin: 0;
}
.vlp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.vlp-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

/* 2. Butoane */
.vlp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.vlp-btn .vlp-icon {
    width: 20px;
    height: 20px;
}
.vlp-btn:focus-visible,
.vlp-tile:focus-visible,
.vlp-service:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}
.vlp-btn-light {
    background: #fff;
    color: var(--vlp-blue);
}
.vlp-btn-light:hover {
    background: #e8f1fb;
    color: var(--vlp-blue-dark);
}
.vlp-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, .7);
    color: #fff;
}
.vlp-btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
    border-color: #fff;
    color: #fff;
}
.vlp-btn-primary {
    background: var(--vlp-blue);
    color: #fff;
}
.vlp-btn-primary:hover {
    background: var(--vlp-blue-dark);
    color: #fff;
}

/* 3. Antetul paginii: albastrul taie in diagonala peste fotografie */
.vlp-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 460px;
    background: var(--vlp-blue);
    color: #fff;
}
.vlp-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 56px 48px 56px max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.vlp-hero-title {
    max-width: 15ch;
    color: #fff;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.vlp-hero-text {
    max-width: 44ch;
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    line-height: 1.55;
}
.vlp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.vlp-hero-photo {
    position: relative;
    margin-left: -12%;
    clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.vlp-hero-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4. Benzi si titluri de sectiune */
.vlp-band {
    background: var(--vlp-band);
    padding: 64px 0;
}
.vlp-section-title {
    color: var(--vlp-ink);
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.vlp-section-text {
    margin-top: 8px;
    color: var(--vlp-muted);
    font-size: 17px;
    line-height: 1.5;
}

/* 5. Cadou: pasii comenzii, legati printr-o linie */
.vlp-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: vlp-step;
}
.vlp-steps::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 28px;
    right: 28px;
    border-top: 2px dashed #b9d3ee;
}
.vlp-step {
    position: relative;
    counter-increment: vlp-step;
    margin: 0;
}
.vlp-step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--vlp-blue);
    color: var(--vlp-blue);
}
.vlp-step-icon::after {
    content: counter(vlp-step);
    position: absolute;
    top: -6px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--vlp-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.vlp-step h3 {
    margin-top: 16px;
    color: var(--vlp-ink);
    font-size: 19px;
    font-weight: 800;
}
.vlp-step p {
    margin-top: 6px;
    max-width: 32ch;
    color: var(--vlp-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* 6. Cadou: mozaic - primele doua idei sunt mari, restul formeaza grila */
.vlp-gifts {
    padding-top: 64px;
    padding-bottom: 64px;
    scroll-margin-top: 90px;
}
.vlp-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 210px;
    gap: 16px;
    margin-top: 28px;
}
.vlp-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #dbe7f4;
    text-decoration: none;
}
.vlp-tile:nth-child(1),
.vlp-tile:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
}
.vlp-tile-photo,
.vlp-tile-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.vlp-tile-photo img {
    object-fit: cover;
    transition: transform .4s ease;
}
.vlp-tile:hover .vlp-tile-photo img {
    transform: scale(1.04);
}
.vlp-tile-copy {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: background-color .2s ease;
}
.vlp-tile:hover .vlp-tile-copy {
    background: var(--vlp-blue);
}
.vlp-tile-title {
    color: var(--vlp-ink);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}
.vlp-tile-text {
    color: var(--vlp-muted);
    font-size: 14px;
    line-height: 1.35;
}
.vlp-tile:nth-child(1) .vlp-tile-title,
.vlp-tile:nth-child(2) .vlp-tile-title {
    font-size: 22px;
}
.vlp-tile:hover .vlp-tile-title,
.vlp-tile:hover .vlp-tile-text {
    color: #fff;
}

/* 7. Servicii: grupurile dupa nevoie, cate o lista de linkuri pe grup */
#servicii-pe-nevoi {
    scroll-margin-top: 90px;
}
.vlp-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.vlp-group {
    padding: 24px;
    border-radius: 14px;
    background: #fff;
    border-top: 4px solid var(--vlp-blue);
}
.vlp-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.vlp-group-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f1fb;
    color: var(--vlp-blue);
}
.vlp-group-head h3 {
    color: var(--vlp-ink);
    font-size: 20px;
    font-weight: 800;
}
.vlp-services {
    margin: 0;
    padding: 0;
    list-style: none;
}
.vlp-services li {
    margin: 0;
    border-top: 1px solid var(--vlp-line);
}
.vlp-services li:first-child {
    border-top: 0;
}
.vlp-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 4px;
    color: var(--vlp-ink);
    text-decoration: none;
}
.vlp-service-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vlp-service-title {
    font-size: 16px;
    font-weight: 600;
}
.vlp-service-text {
    color: var(--vlp-muted);
    font-size: 14px;
}
.vlp-service .vlp-icon {
    width: 20px;
    height: 20px;
    color: var(--vlp-blue);
    transition: transform .2s ease;
}
.vlp-service:hover .vlp-service-title {
    color: var(--vlp-blue);
}
.vlp-service:hover .vlp-icon {
    transform: translateX(4px);
}

/* 8. Banda de ajutor */
.vlp-help {
    padding: 0 24px 72px;
}
.vlp-servicii .vlp-help {
    padding-top: 64px;
}
.vlp-help-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1152px;
    margin: 0 auto;
    padding: 32px;
    border-radius: 18px;
    border: 1.5px solid #cfe0f2;
    background: #fff;
}
.vlp-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f1fb;
    color: var(--vlp-blue);
    flex: 0 0 auto;
}
.vlp-help-icon .vlp-icon {
    width: 30px;
    height: 30px;
}
.vlp-help-copy {
    flex: 1 1 auto;
}
.vlp-help-title {
    color: var(--vlp-ink);
    font-size: 22px;
    font-weight: 800;
}
.vlp-help-copy p {
    margin-top: 4px;
    max-width: 60ch;
    color: var(--vlp-muted);
    font-size: 16px;
    line-height: 1.5;
}

/* Miscarea doar pentru cine nu a cerut reducerea ei */
@media (prefers-reduced-motion: reduce) {
    .vlp *,
    .vlp *::before,
    .vlp *::after {
        transition: none !important;
    }
}

/* 9. Tableta */
@media (max-width: 1024px) {
    .vlp-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 190px;
    }
    .vlp-tile:nth-child(1),
    .vlp-tile:nth-child(2) {
        grid-row: span 1;
    }
    .vlp-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 9. Telefon: fotografia sus, textul dedesubt, totul pe o coloana */
@media (max-width: 767px) {
    .vlp-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .vlp-hero-photo {
        order: -1;
        height: 220px;
        margin-left: 0;
        clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
    }
    .vlp-hero-copy {
        gap: 14px;
        padding: 20px 20px 36px;
    }
    .vlp-hero-text {
        font-size: 16px;
    }
    .vlp-hero-actions .vlp-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
    .vlp-wrap {
        padding: 0 20px;
    }
    .vlp-band,
    .vlp-gifts {
        padding-top: 44px;
        padding-bottom: 44px;
    }
    .vlp-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vlp-steps::before {
        top: 28px;
        bottom: 28px;
        left: 27px;
        right: auto;
        border-top: 0;
        border-left: 2px dashed #b9d3ee;
    }
    .vlp-step {
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 16px;
    }
    .vlp-step-icon {
        grid-row: span 2;
    }
    .vlp-step h3 {
        margin-top: 4px;
    }
    .vlp-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 170px;
        gap: 12px;
    }
    .vlp-tile:nth-child(1),
    .vlp-tile:nth-child(2) {
        grid-column: span 2;
    }
    .vlp-tile-copy {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 8px 10px;
    }
    .vlp-tile-text {
        display: none;
    }
    .vlp-tile:nth-child(1) .vlp-tile-text,
    .vlp-tile:nth-child(2) .vlp-tile-text {
        display: block;
    }
    .vlp-tile-title {
        font-size: 15px;
    }
    .vlp-groups {
        grid-template-columns: 1fr;
    }
    .vlp-help {
        padding: 0 20px 48px;
    }
    .vlp-servicii .vlp-help {
        padding-top: 44px;
    }
    .vlp-help-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
    .vlp-help-inner .vlp-btn {
        width: 100%;
        justify-content: center;
    }
}
