/* ===== GLOBAL ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #ffffff;
    color: #333;
}
a {
    text-decoration: none;
    color: navy;
}
h1, h2, h3 {
    margin: 10px 0;
}

/* ===== HEADER ===== */
.topbar {
    position: sticky;
    top: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}
.menu {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}
.logo img {
    height: 80px;
}
.logo {
    text-align: center;
}
.logo .motto {
    font-size: 14px;
    color: navy;
    font-weight: bold;
    margin-top: 5px;
}
@media(max-width:768px){
    .logo .motto { display: none; }
}
nav {
    display: flex;
    gap: 35px;
}
nav a {
    color: navy;
    transition: 0.3s;
}
nav a:hover {
    color: #1e3a8a;
}
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 28px;
}

/* ===== SLIDER ===== */
.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
}
.slide {
    display: none;
    position: relative;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.slide img {
    width: 100%;
    display: block;
}
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0,0,0,0.45);
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
}
.slide-text h2 { font-size: 28px; }
.slide-text p { font-size: 16px; }
.slider-btn {
    display: inline-block;
    background: navy;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s;
}
.slider-btn:hover {
    background: #1e3a8a;
    transform: scale(1.05);
}
/* slider arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    font-size: 24px;
    color: #fff;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
}
.prev { left: 10px; }
.next { right: 10px; }

/* ===== PREZENTARE ===== */
.prezentare {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px 20px;
}
.prezentare-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 30px;
}
.prezentare .col {
    background: #f0f8ff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(30,144,255,0.1);
    transition: 0.3s;
}
.prezentare .col:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30,144,255,0.2);
}
.prezentare h2 {
    font-size: 24px;
    color: #1e3a8a;
}
.prezentare h2::after {
    content:"";
    display:block;
    width:60px;
    height:3px;
    margin-top:8px;
    background: linear-gradient(to right,#66b3ff,#1e90ff);
}
.prezentare p {
    font-size:16px;
    line-height:1.6;
}

/* ===== PRODUSE ===== */
.produse {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 10px;
}
.produse h2 {
    text-align:center;
    font-size:28px;
    color:#1e3a8a;
}
.produse h2::after {
    content:"";
    display:block;
    width:70px;
    height:3px;
    margin:10px auto;
    background: linear-gradient(to right,#66b3ff,#1e90ff);
}
.produse-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap:25px;
}
/* CARD WOW */
.produs {
    position: relative;
    background:#f0f8ff;
    border-radius:12px;
    overflow:hidden;
    text-align:center;
    transition:0.3s;
    box-shadow:0 5px 20px rgba(0,100,200,0.1);
}
.produs:hover {
    transform: translateY(-8px);
    box-shadow:0 15px 35px rgba(0,100,200,0.2);
}
/* imagine */
.produs-img {
    position: relative;
    overflow:hidden;
}
.produs-img img {
    width:100%;
    transition:0.5s;
}
.produs:hover .produs-img img {
    transform: scale(1.08);
}
/* overlay */
.produs-img::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity:0;
    transition:0.3s;
}
.produs:hover .produs-img::after {
    opacity:1;
}
/* titlu */
.produs h3 {
    margin:15px 0 5px;
    font-size:20px;
    color:#1e3a8a;
}
.produs:hover h3 {
    color:#0066cc;
}
/* text */
.produs p {
    margin:0 10px 10px;
    font-size:15px;
    color:#555;
}
/* buton WOW */
.buton {
    display:inline-block;
    margin-bottom:15px;
    padding:10px 22px;
    background: linear-gradient(135deg,#4da6ff,#1e90ff);
    color:#fff;
    border-radius:30px;
    font-size:14px;
    transition:0.3s;
}
.buton:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:0 10px 25px rgba(30,144,255,0.4);
}

/* ===== ARTICOLE ===== */
.articole {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 10px;
}
.articole h2 {
    text-align: center;
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 30px;
    position: relative;
}
.articole h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    margin: 10px auto;
    background: linear-gradient(to right, #66b3ff, #1e90ff);
    border-radius: 2px;
}
.articole-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
/* CARD ARTICOL */
.articol {
    background: #f0f8ff;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(0, 100, 200, 0.08);
}
.articol:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 100, 200, 0.15);
}
.articol img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.4s, box-shadow 0.4s;
}
.articol img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.articol h3 {
    font-size: 20px;
    color: #1e3a8a;
    margin: 10px 0 5px;
    font-weight: 600;
}
.articol p {
    font-size: 15px;
    color: #555;
    margin: 0 10px 10px;
    line-height: 1.6;
}
/* BUTON ARTICOL */
.buton-articol {
    display: inline-block;
    margin: 10px 0 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #4da6ff, #1e90ff);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}
.buton-articol:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.35);
}

/* ===== PAGINA ARTICOL (ca pagina produs) ===== */
.pagina-articol {
    max-width: 1100px;
    margin: auto;
    padding: 40px 15px;
}
.hero-articol {
    text-align: center;
    margin-bottom: 40px;
}
.hero-articol h1 {
    font-size: 32px;
    color: #1e3a8a;
    margin-bottom: 10px;
}
.hero-articol p {
    font-size: 18px;
    color: #555;
    margin-bottom: 5px;
}
.hero-articol .data-articol {
    font-size: 14px;
    color: #777;
}
.galerie-articol {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.galerie-articol img {
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
    display: block;
}
.galerie-articol img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.descriere-articol {
    background: #f0f8ff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.descriere-articol h2 {
    color: #1e3a8a;
    margin-bottom: 15px;
}
.descriere-articol p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}
.descriere-articol ul {
    margin-top: 15px;
    padding-left: 20px;
}
.descriere-articol li {
    margin-bottom: 10px;
}
.cta-articol {
    text-align: center;
    margin-bottom: 40px;
}
.btn-articol {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4da6ff, #1e90ff);
    color: white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}
.btn-articol:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(30,144,255,0.4);
}

/* ===== FOOTER ===== */
footer {
    background:white;
    color:#003366;
    padding:20px;
    text-align:center;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
    nav { display:none; flex-direction:column; }
    nav.active { display:flex; }
    .menu-toggle { display:block; }

    .produse-grid,
    .articole-grid {
        grid-template-columns:1fr;
    }

    .slide-text {
        bottom:10px;
        top:auto;
        transform:none;
        left:10px;
        right:10px;
    }

    .pagina-articol {
        padding: 20px 10px;
    }
    .hero-articol h1 {
        font-size: 26px;
    }
    .hero-articol p {
        font-size: 16px;
    }
    .galerie-articol img {
        width: 90%;
    }
    .descriere-articol p {
        font-size: 14px;
    }
    .btn-articol {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* separator animat */
.separator {
    width:60%;
    margin:50px auto;
    height:2px;
    background: repeating-linear-gradient(
        to right,
        #66b3ff,
        #66b3ff 5px,
        transparent 5px,
        transparent 10px
    );
    animation: move 1s linear infinite;
}
@keyframes move {
    from { background-position:0; }
    to { background-position:20px; }
}

/* ===== PAGINA PRODUS WOW ===== */
.pagina-produs {
    max-width: 1100px;
    margin: auto;
    padding: 40px 15px;
}
/* HERO */
.hero-produs {
    text-align: center;
    margin-bottom: 40px;
}
.hero-produs h1 {
    font-size: 32px;
    color: #1e3a8a;
}
.hero-produs p {
    font-size: 18px;
    color: #555;
}
/* GALERIE */
.galerie-produs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.galerie-produs img {
    width: 100%;
    border-radius: 10px;
    transition: 0.4s;
    cursor: pointer;
}
.galerie-produs img:hover {
    transform: scale(1.05);
}
/* DESCRIERE */
.descriere-produs {
    background: #f0f8ff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.descriere-produs h2 {
    color: #1e3a8a;
}
.descriere-produs ul {
    margin-top: 15px;
    padding-left: 20px;
}
.descriere-produs li {
    margin-bottom: 10px;
}
/* CTA */
.cta-produs {
    text-align: center;
}
.btn-produs {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #4da6ff, #1e90ff);
    color: white;
    border-radius: 30px;
    font-size: 16px;
    transition: 0.3s;
}
.btn-produs:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(30,144,255,0.4);
}

/* Meniul principal ca butoane */
.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px; /* spa?iu între butoane */
}

.menu-list > li {
    position: relative; /* pentru submeniu */
}

.menu-list > li > a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0077cc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.menu-list > li > a:hover {
    background-color: #005fa3;
}

/* Submeniuri */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0077cc;
    border-radius: 5px;
    list-style: none;
    padding: 5px 0;
    min-width: 200px;
    z-index: 1000;
}

.submenu li a {
    display: block;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
}

.submenu li a:hover {
    background-color: #005fa3;
}

/* Arată submeniul la hover (desktop) */
.menu-list > li.has-submenu:hover > .submenu {
    display: block;
}

/* Meniu mobil */
.menu-toggle {
    display: none; /* ascuns pe desktop */
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-list {
        flex-direction: column;
        display: none; /* ascuns ini?ial pe mobil */
        width: 100%;
    }
    .menu-list.active {
        display: flex;
    }
    .menu-toggle {
        display: inline-block;
    }
    .menu-list > li.has-submenu > .submenu {
        position: static;
        display: none;
        flex-direction: column;
    }
    .menu-list > li.has-submenu.active > .submenu {
        display: flex;
    }
}