/* FILE_VERSION = 1.0.0
 * Stilul global al temei vogo-family (D-017): singurul fisier de stil al temei, scris de noi.
 *
 * SECTIUNI:
 *   1. Culori, fonturi, dimensiuni (variabile)
 *   2. Baza paginii
 *   3. Antetul: logo, meniu, cont si cos
 *   4. Meniul principal: calculator (submeniuri la trecerea mouse-ului) si telefon (lista deschisa din buton)
 *   5. Pagina si continutul ei
 *   6. Subsolul
 *   7. Magazinul (sabloanele standard WooCommerce, pana la sabloanele proprii)
 */

/* 1. Variabile: albastrul VOGO, textul, colturile de 5px */
:root {
    --vf-blue: #0F6CBD;
    --vf-blue-dark: #0b5394;
    --vf-text: #1c2b3a;
    --vf-muted: #5f6b7a;
    --vf-border: #e2e7ee;
    --vf-band: #f4f6f9;
    --vf-surface: #ffffff;
    --vf-footer-bg: #0d1b2a;
    --vf-radius: 5px;
    --vf-width: 1200px;
    --vf-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. Baza */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--vf-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--vf-text);
    background: var(--vf-surface);
}

a {
    color: var(--vf-blue);
}

img {
    max-width: 100%;
    height: auto;
}

.vf-main {
    min-height: 60vh;
}

/* 3. Antetul */
.vf-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--vf-surface);
    border-bottom: 1px solid var(--vf-border);
}

.vf-header__inner {
    max-width: var(--vf-width);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.vf-header__logo img {
    display: block;
    width: auto;
    height: 48px;
}

.vf-header__tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.vf-tool {
    color: var(--vf-text);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.vf-tool:hover {
    color: var(--vf-blue);
}

.vf-badge {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--vf-blue);
    color: #ffffff;
    font-size: 12px;
    line-height: 20px;
    text-align: center;
}

/* 4. Meniul principal - calculator: rand orizontal, submeniul apare sub element */
/* Casuta care tine starea meniului pe telefon nu se vede; pe calculator butonul nu apare, meniul e mereu afisat */
.vf-nav__check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vf-nav__toggle {
    display: none;
}

.vf-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.vf-menu > li {
    position: relative;
}

.vf-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--vf-radius);
    color: var(--vf-text);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.vf-menu a:hover,
.vf-menu .current-menu-item > a {
    color: var(--vf-blue);
    background: var(--vf-band);
}

.vf-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    list-style: none;
    margin: 0;
    padding: 6px;
    background: var(--vf-surface);
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    box-shadow: 0 8px 24px rgba(13, 27, 42, 0.10);
}

.vf-menu > li:hover > .sub-menu,
.vf-menu > li:focus-within > .sub-menu {
    display: block;
}

.vf-menu .sub-menu a {
    font-weight: 500;
}

/* 4. Meniul principal - telefon: butonul cu trei linii deschide lista completa, submeniurile indentate */
@media (max-width: 960px) {
    .vf-header__inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .vf-header__logo img {
        height: 40px;
    }

    .vf-nav {
        order: 3;
        width: 100%;
    }

    .vf-nav__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--vf-border);
        border-radius: var(--vf-radius);
        cursor: pointer;
        list-style: none;
        position: absolute;
        top: 13px;
        right: 20px;
    }

    .vf-nav__toggle span,
    .vf-nav__toggle span::before,
    .vf-nav__toggle span::after {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--vf-blue);
        border-radius: 1px;
        position: relative;
        content: "";
    }

    .vf-nav__toggle span::before {
        position: absolute;
        top: -6px;
    }

    .vf-nav__toggle span::after {
        position: absolute;
        top: 6px;
    }

    .vf-nav__menu {
        display: none;
    }

    .vf-nav__check:checked ~ .vf-nav__menu {
        display: block;
    }

    .vf-nav__check:focus-visible ~ .vf-nav__toggle {
        outline: 2px solid var(--vf-blue);
        outline-offset: 2px;
    }

    .vf-header__tools {
        margin-left: auto;
        margin-right: 54px;
    }

    .vf-menu {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        border-top: 1px solid var(--vf-border);
    }

    .vf-menu .sub-menu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0 0 0 16px;
        border: 0;
        box-shadow: none;
    }
}

/* 5. Pagina si continutul */
.vf-page {
    max-width: var(--vf-width);
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.vf-page__title {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.25;
    color: var(--vf-text);
}

.vf-content {
    max-width: 820px;
}

.vf-content h2,
.vf-content h3,
.vf-content h4 {
    margin: 28px 0 10px;
    line-height: 1.3;
}

.vf-content p,
.vf-content ul,
.vf-content ol {
    margin: 0 0 14px;
}

.vf-content img {
    display: block;
    margin: 20px 0;
    border-radius: var(--vf-radius);
}

@media (max-width: 600px) {
    .vf-page {
        padding: 20px 16px 32px;
    }

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

/* 6. Subsolul */
.vf-footer {
    background: var(--vf-footer-bg);
    color: #c9d3de;
}

.vf-footer__inner {
    max-width: var(--vf-width);
    margin: 0 auto;
    padding: 28px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vf-footer a {
    color: #ffffff;
    text-decoration: none;
}

.vf-footer a:hover {
    text-decoration: underline;
}

.vf-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.vf-footer__copy {
    margin: 0;
    font-size: 14px;
}

/* 7. Magazinul: butoanele si campurile standard WooCommerce in culorile si colturile VOGO */
.vf-shop .button,
.vf-shop button[type="submit"] {
    background: var(--vf-blue);
    color: #ffffff;
    border: 0;
    border-radius: var(--vf-radius);
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
}

.vf-shop .button:hover,
.vf-shop button[type="submit"]:hover {
    background: var(--vf-blue-dark);
}

.vf-shop input[type="text"],
.vf-shop input[type="email"],
.vf-shop input[type="tel"],
.vf-shop input[type="password"],
.vf-shop input[type="number"],
.vf-shop select,
.vf-shop textarea {
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    padding: 10px 12px;
    font: inherit;
}

.vf-shop ul.products {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.vf-shop ul.products li.product {
    border: 1px solid var(--vf-border);
    border-radius: var(--vf-radius);
    padding: 12px;
}
