/* =========================================
   VISIOONWEBSITES - DEMO WEBSITES
   STRUCTURA NOUA CU SCROLL INDEPENDENT
========================================= */


/* =========================================
   1. PREVIEW SI RAMA DISPOZITIVULUI
========================================= */

.demo-preview {
    width: 100%;
    display: flex;
    align-items: center;
}

.demo-device {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px;
    background: #17191b;
    border: 1px solid #303030;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .15);
    overflow: hidden;
    align-self: center;
}

/* Ecranul nu mai deruleaza.
   El contine headerul si zona de continut. */

.demo-screen {
    width: 100% !important;
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
    flex: 0 0 520px !important;

    position: relative;
    overflow: hidden !important;

    padding: 0 !important;
    margin: 0 !important;

    background: #fff;
    border-radius: 2px;
    overscroll-behavior: contain;
}

/* Scrollbar pentru continutul interior */

.demo-content {
    scrollbar-width: thin;
    scrollbar-color: #bbb #f5f5f5;
}

.demo-content::-webkit-scrollbar {
    width: 7px;
}

.demo-content::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 10px;
}

.demo-content::-webkit-scrollbar-track {
    background: #f5f5f5;
}


/* =========================================
   2. RESET GENERAL
========================================= */

.demo-screen,
.demo-screen * {
    box-sizing: border-box;
}

.demo-screen .demo-app {
    width: 100%;
    height: 100%;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;
    position: relative;

    background: #fff;
    color: #333;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.demo-screen h1,
.demo-screen h2,
.demo-screen h3,
.demo-screen p {
    margin-top: 0;
}

.demo-screen h1,
.demo-screen h2,
.demo-screen h3 {
    color: #202020;
    line-height: 1.15;
    font-weight: 700;
}

.demo-screen img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.demo-screen button,
.demo-screen a {
    font-family: inherit;
}


/* =========================================
   3. HEADER - NAVBAR + NOTIFICARE
========================================= */

/*
   Headerul NU este sticky si NU este fixed.

   El este in afara demo-content.
   demo-app foloseste flex-direction: column.

   Astfel, continutul se deruleaza separat,
   iar headerul ramane permanent pe loc.
*/

.demo-sticky-header {
    position: relative !important;
    top: auto !important;
    left: auto !important;

    width: 100%;
    flex: 0 0 auto;

    display: block;

    margin: 0 !important;
    padding: 0 !important;

    background: #fff;
    z-index: 20;
}


/* =========================================
   4. NAVBAR
========================================= */

.demo-navbar {
    width: 100%;
    min-height: 68px;

    padding: 12px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: #fff;
    border-bottom: 1px solid #eee;

    position: relative !important;
    top: auto !important;

    margin: 0 !important;
    flex-shrink: 0;
}

.demo-logo {
    color: #202020;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.demo-logo span {
    color: #E60202;
    margin-left: 3px;
}

.demo-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
}

.demo-nav-link {
    border: 0;
    background: transparent;

    color: #333;

    padding: 8px 0;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition: color .2s ease;
}

.demo-nav-link:hover,
.demo-nav-link.is-active {
    color: #E60202;
}


/* =========================================
   5. DROPDOWN MAGAZIN
========================================= */

.demo-nav-dropdown {
    position: relative;
}

.demo-dropdown-menu {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    min-width: 175px;

    background: #fff;
    padding: 8px;

    border: 1px solid #eee;
    border-radius: 7px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);

    z-index: 30;
}

.demo-nav-dropdown:hover .demo-dropdown-menu,
.demo-nav-dropdown:focus-within .demo-dropdown-menu {
    display: block;
}

.demo-dropdown-menu button {
    display: block;
    width: 100%;

    text-align: left;

    padding: 9px;

    border: 0;
    background: transparent;

    color: #333;
    font-size: 12px;

    cursor: pointer;
}

.demo-dropdown-menu button:hover {
    color: #E60202;
    background: #f7f7f7;
}


/* =========================================
   6. MENIU MOBIL
========================================= */

.demo-mobile-menu {
    display: none;

    border: 0;
    background: transparent;

    font-size: 23px;
    color: #333;

    cursor: pointer;
}


/* =========================================
   7. BANDA DEMONSTRATIVA
========================================= */

.demo-notice {
    position: relative !important;
    top: auto !important;

    width: 100%;

    margin: 0 !important;
    padding: 9px 5%;

    background: #f3f3f3;
    border-bottom: 1px solid #e8e8e8;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 14px;
    line-height: 1.4;

    color: #E60202;
}

.demo-notice-icon {
    flex-shrink: 0;
}


/* =========================================
   8. ZONA INDEPENDENTA DE SCROLL
========================================= */

/*
   Acesta este SINGURUL element care deruleaza.

   Navbarul si notificarea nu sunt copii
   ai acestui container.
*/

.demo-content {
    width: 100%;

    flex: 1 1 auto;
    min-height: 0;

    position: relative;

    overflow-y: auto;
    overflow-x: hidden;

    background: #fff;

    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    scroll-behavior: smooth;
}


/* =========================================
   9. ELEMENTE GENERALE
========================================= */

.demo-eyebrow {
    display: inline-block;

    color: #E60202;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;

    margin-bottom: 14px;
}


/* =========================================
   10. HERO
========================================= */

.demo-hero {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 35px;

    padding: 65px 7%;

    background: #fff;
}

.demo-hero-content h1 {
    font-size: clamp(27px, 3.2vw, 43px);

    margin-bottom: 20px;

    letter-spacing: -1.5px;
}

.demo-hero-content p {
    max-width: 470px;

    color: #666;
    font-size: 14px;

    margin-bottom: 25px;
}

.demo-hero-image img {
    width: 100%;
    height: 290px;

    border-radius: 7px;
    object-fit: cover;
}


/* =========================================
   11. BUTOANE PRINCIPALE
========================================= */

.demo-primary-btn {
    display: inline-block;

    padding: 12px 22px;

    background: #E60202;
    color: #fff !important;

    border: 1px solid #E60202;
    border-radius: 4px;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
    cursor: pointer;

    transition: .2s ease;
}

.demo-primary-btn:hover {
    background: #bd0000;
    border-color: #bd0000;
}


/* =========================================
   12. DESPRE
========================================= */

.demo-about {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 40px;

    padding: 65px 7%;

    background: #f8f8f8;
}

.demo-about h2,
.demo-contact h2 {
    font-size: clamp(23px, 2.7vw, 34px);
    margin-bottom: 18px;
}

.demo-about p,
.demo-contact p {
    color: #666;
    font-size: 13px;
}

.demo-about img {
    width: 100%;
    height: 260px;

    border-radius: 6px;
    object-fit: cover;
}


/* =========================================
   13. CONTACT
========================================= */

.demo-contact {
    padding: 65px 7%;

    text-align: center;

    background: #fff;
}

.demo-contact>p {
    max-width: 500px;
    margin: 0 auto 25px;
}

.demo-contact-list {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    gap: 12px;
}

.demo-contact-list a {
    color: #333;
    text-decoration: none;

    padding: 11px 16px;

    border: 1px solid #e5e5e5;
    border-radius: 5px;

    font-size: 12px;

    transition: .2s;
}

.demo-contact-list a:hover {
    border-color: #E60202;
    color: #E60202;
}


/* =========================================
   14. PAGINA SERVICII
========================================= */

.demo-page-content {
    padding: 60px 7%;
    background: #fff;
}

.demo-page-content>h1 {
    font-size: 34px;
    margin-bottom: 14px;
}

.demo-page-content>p {
    color: #666;
    font-size: 13px;
}

.demo-services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
    margin-top: 35px;
}

.demo-services-grid article {
    padding: 20px;

    border: 1px solid #eee;
    border-radius: 6px;

    overflow: hidden;
    background: #fff;
}

.demo-services-grid h3 {
    font-size: 17px;
}

.demo-services-grid article p {
    color: #777;
    font-size: 12px;
    margin-bottom: 0;
}


/* =========================================
   15. CATALOG SERVICII
========================================= */

.demo-products-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
    margin-top: 35px;
}

.demo-product-card {
    border: 1px solid #eee;
    border-radius: 6px;

    overflow: hidden;
    background: #fff;
}

.demo-product-card button {
    display: block;
    width: 100%;

    padding: 0;

    border: 0;
    background: #fff;

    text-align: left;
    cursor: pointer;
}

.demo-product-card img {
    width: 100%;
    height: 170px;

    object-fit: cover;
    transition: transform .3s;
}

.demo-product-card button:hover img {
    transform: scale(1.03);
}

.demo-product-card h3,
.demo-product-card p,
.demo-product-card span {
    margin: 12px 14px;
}

.demo-product-card h3 {
    font-size: 15px;
}

.demo-product-card p {
    color: #666;
    font-size: 12px;
}

.demo-product-card span {
    display: block;
    color: #E60202;
    font-size: 12px;
}


/* =========================================
   16. CATEGORII CATALOG
========================================= */

.demo-category-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
    margin-top: 25px;
}

.demo-category-list button {
    padding: 9px 13px;

    border: 1px solid #eee;
    background: #fff;

    border-radius: 4px;

    font-size: 11px;
    cursor: pointer;
}

.demo-category-list button.is-active,
.demo-category-list button:hover {
    background: #E60202;
    color: #fff;
    border-color: #E60202;
}


/* =========================================
   17. PAGINA INDIVIDUALA SERVICIU
========================================= */

.demo-product-detail {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;
    gap: 35px;

    padding: 60px 7%;
}

.demo-product-detail>img {
    width: 100%;
    height: 330px;

    border-radius: 6px;
    object-fit: cover;
}

.demo-product-detail h1 {
    font-size: 30px;
}

.demo-product-detail p {
    color: #666;
    font-size: 13px;
}

.demo-product-detail .demo-product-price {
    color: #E60202;
    font-size: 22px;
    font-weight: 700;
}

.demo-back-btn {
    display: block;

    margin-top: 15px;
    padding: 8px 0;

    border: 0;
    background: transparent;

    color: #555;
    font-size: 12px;

    cursor: pointer;
}

.demo-back-btn:hover {
    color: #E60202;
}


/* =========================================
   18. FOOTER
========================================= */

.demo-footer {
    padding: 22px 5%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    border-top: 1px solid #eee;

    color: #888;
    font-size: 10px;
}

.demo-footer span:first-child {
    color: #333;
    font-weight: 800;
}


/* =========================================
   19. TABLETA
========================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .demo-device {
        max-width: 760px;
        padding: 9px;
        border-radius: 16px;
    }

    .demo-screen {
        height: 520px !important;
        min-height: 520px !important;
        max-height: 520px !important;
        flex-basis: 520px !important;
    }

    .demo-navbar {
        min-height: 60px;
        padding: 10px 4%;
    }

    .demo-navigation {
        gap: 15px;
    }

    .demo-nav-link {
        font-size: 11px;
    }

    .demo-notice {
        padding: 9px 4%;
        font-size: 10px;
    }

    .demo-hero {
        gap: 20px;
        padding: 45px 5%;
    }

    .demo-hero-content h1 {
        font-size: 30px;
    }

    .demo-hero-image img {
        height: 220px;
    }

    .demo-about {
        gap: 25px;
        padding: 45px 5%;
    }

    .demo-about img {
        height: 210px;
    }

    .demo-page-content,
    .demo-contact {
        padding: 45px 5%;
    }

    .demo-product-detail {
        padding: 45px 5%;
    }

}


/* =========================================
   20. TELEFON
========================================= */

@media (max-width: 767px) {

    .demo-device {
        width: 100%;
        max-width: 390px;

        padding: 8px;

        border-radius: 27px;
        border: 2px solid #252525;
    }

    .demo-screen {
        height: 520px !important;
        min-height: 520px !important;
        max-height: 520px !important;
        flex-basis: 520px !important;
    }

    .demo-navbar {
        min-height: 55px;
        padding: 10px 5%;
    }

    .demo-logo {
        font-size: 15px;
    }

    .demo-mobile-menu {
        display: block;
    }

    .demo-navigation {
        display: none;

        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        padding: 15px;

        background: #fff;
        border-top: 1px solid #eee;

        box-shadow: 0 8px 15px rgba(0, 0, 0, .07);

        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        z-index: 30;
    }

    .demo-navigation.is-open {
        display: flex;
    }

    .demo-navigation .demo-nav-link {
        display: block;
        width: 100%;

        text-align: left;

        padding: 10px;
        font-size: 12px;
    }

    .demo-nav-dropdown {
        width: 100%;
    }

    .demo-dropdown-menu {
        position: static;

        box-shadow: none;
        border: 0;

        padding-left: 15px;
    }

    .demo-notice {
        padding: 8px 4%;
        font-size: 9px;
    }

    .demo-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 22px;
        padding: 35px 6%;
    }

    .demo-hero-content h1 {
        font-size: 29px;
    }

    .demo-hero-content p {
        font-size: 12px;
    }

    .demo-hero-image img {
        height: 185px;
    }

    .demo-about {
        display: flex;
        flex-direction: column;

        gap: 20px;
        padding: 35px 6%;
    }

    .demo-about h2,
    .demo-contact h2 {
        font-size: 25px;
    }

    .demo-about img {
        height: 190px;
    }

    .demo-contact {
        padding: 35px 6%;
    }

    .demo-contact-list {
        flex-direction: column;
    }

    .demo-contact-list a {
        text-align: center;
    }

    .demo-page-content {
        padding: 35px 6%;
    }

    .demo-page-content>h1 {
        font-size: 27px;
    }

    .demo-services-grid,
    .demo-products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .demo-services-grid img,
    .demo-product-card img {
        height: 190px;
    }

    .demo-product-detail {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        padding: 35px 6%;
        gap: 22px;
    }

    .demo-product-detail>img {
        height: 220px;
    }

    .demo-product-detail h1 {
        font-size: 26px;
    }

    .demo-footer {
        flex-direction: column;
        align-items: flex-start;

        padding: 20px 6%;
    }

    .demo-category-list {
        flex-direction: column;
    }

    .demo-category-list button {
        width: 100%;
        text-align: left;
    }

}


/* =========================================
   BUTOANE SELECTARE TIP WEBSITE
========================================= */


/* Fundal rosu pentru butonul activ */
.demo-tab.is-active .elementor-button,
.elementor-button.demo-tab.is-active {
    background-color: #E60202 !important;
    color: #fff !important;
}

/* Text alb pentru butonul activ */
.demo-tab.is-active .elementor-button-text,
.elementor-button.demo-tab.is-active .elementor-button-text {
    color: #fff !important;
}