*, *::before, *::after {
    box-sizing: border-box;
}

/* === Fundal și fonturi globale === */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #f0f0f0;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    padding: 40px 20px;
    text-align: center;
}

/* === Header === */
header {
    background-color: #1e1e1e;
    padding: 20px;
}

.branding {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header {
    background-color: #1e1e1e;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    height: 250px;
    width: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin: 10px 0;
}

.logo:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 8px rgba(0, 172, 237, 0.5));
}

.header-lines {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex: 1;
}

.line {
    height: 2px;
    background: linear-gradient(to right, transparent, #00aced, transparent);
}

header h1 {
    margin: 0;
    font-size: 2em;
}

/* === Navigare === */
nav {
    background-color: #2c2c2c;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 10px 15px;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    color: #00aced;
    text-shadow: 0 0 5px #00aced, 0 0 10px #00aced, 0 0 15px #00aced;
}

/* === Meniu mobil === */
.menu-toggle {
    display: none;
    background: #00aced;
    border: none;
    color: white;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    margin: 10px auto;
}

/* === Footer === */
footer {
    background-color: #1e1e1e;
    color: #ccc;
    padding: 20px;
    font-size: 0.95em;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.footer-left, .footer-right {
    flex: 1 1 300px;
}

.footer-left {
    line-height: 1.6;
}

.footer-left a {
    color: #ccc;
    text-decoration: none;
}

.footer-left a:hover {
    color: #00aced;
}

.footer-container {
    display: flex;
    justify-content: flex-start; /* le aliniem la stânga */
    flex-wrap: wrap;
    gap: 40px; /* mai mult spațiu între coloane */
    margin-bottom: 15px;
}

.footer-left, .footer-center, .footer-right {
    flex: 1 1 250px; /* împărțim spațiul echilibrat */
}

.footer-center {
    text-align: left; /* aliniere la stânga */
}

.footer-center h4 {
    margin-bottom: 10px;
    color: #00aced;
}

.footer-center ul {
    list-style: none;
    padding: 0;
}

.footer-center ul li {
    margin-bottom: 8px;
}

.footer-center a {
    color: #ccc;
    text-decoration: none;
}

.footer-center a:hover {
    color: #00aced;
}

.footer-right iframe {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85em;
    color: #888;
    border-top: 1px solid #333;
    padding-top: 10px;
}

/* === Formulare (contact) === */
form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px #00aced, 0 0 20px #00aced;
}

form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #00aced;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2c2c2c;
    color: #f0f0f0;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #00aced;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group label {
    font-weight: normal;
    color: #ccc;
}

input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

button[type="submit"],
input[type="submit"] {
    background-color: #00aced;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #007ea7;
}

/* === Submeniu categorii produse === */
.categories {
    text-align: center;
    margin: 20px 0;
}

.categories button {
    background-color: #00aced;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.categories button:hover {
    background-color: #0084b4;
}

/* === Titlu produse === */
.product-title {
    font-size: 2.2em;
    color: #00aced;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 0 3px rgba(0, 172, 237, 0.7), 0 0 6px rgba(0, 172, 237, 0.5);
    transition: text-shadow 0.3s ease;
}

.product-title:hover {
    text-shadow: 0 0 6px rgba(0, 172, 237, 0.8), 0 0 12px rgba(0, 172, 237, 0.6);
}

/* === Lista și cardurile de produse === */
.product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 100px;
}

.product {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px #00aced, 0 0 20px #00aced;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px #00aced, 0 0 30px #00aced;
}

.button-group {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spec-button, .cerere-oferta {
    text-align: center;
    padding: 8px 15px;
    background-color: #00aced;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.spec-button:hover, .cerere-oferta:hover {
    background-color: #007ea7;
    box-shadow: 0 0 8px #00aced, 0 0 12px #00aced;
}

.product h3 {
    margin-top: 10px;
    font-size: 1.1em;
}

.product p {
    font-size: 0.95em;
    color: #ccc;
}

.product img {
    width: 100%;
    height: 200px;
    border-radius: 5px;
    margin-bottom: 10px;
    object-fit: contain;
    background-color: #f0f0f0;
}

/* === Clasă pentru ascunderea produselor filtrate === */
.hidden {
    display: none;
}

/* === Modal specificații === */
.specs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.specs-content {
    background: #fff;
    color: #222;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    position: relative;
}

.modal-hidden {
    display: none;
}


#specs-text {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
    line-height: 1.5;
}

.spec-link {
    color: #00aced;
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

.spec-link:hover {
    color: #007ea7;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
}

/* === Despre noi === */
.about-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.about-text {
    flex: 1 1 500px;
    text-align: left;
    line-height: 1.8;
}

.about-images {
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-images img {
    width: 50%;
    max-width: 50%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

/* === Secțiuni suplimentare === */
.why-us, .vision {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: left;
    line-height: 1.7;
}

.why-us h2, .vision h2 {
    margin-bottom: 20px;
    color: #00aced;
    font-size: 1.8em;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.checklist li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #00aced;
    font-weight: bold;
}

/* === Media queries grupat === */
@media (max-width: 768px) {
    /* Navigare */
    nav {
        flex-direction: column;
        display: none;
        align-items: center;
    }

    nav.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    nav a {
        margin: 8px 0;
    }

    /* Main */
    main {
        padding: 20px 10px;
    }

    /* Footer */
    footer {
        font-size: 0.8em;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-center, .footer-left, .footer-right {
        text-align: center;
    }

    /* Header mobil */
    .site-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .header-slogan {
        text-align: center;
        white-space: normal;
    }

    /* Despre noi - mobil */
    .about-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-images {
        flex-direction: column;
        align-items: center;
        display: none;
    }

    .terms-section {
        padding: 20px 10px;
    }

}

.terms-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding: 30px 20px;
    line-height: 1.8;
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 10px #00aced, 0 0 20px #00aced;
}

.terms-section h3 {
    color: #00aced;
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.terms-section p {
    margin-bottom: 20px;
    color: #ccc;
}

.terms-section strong {
    color: #ffffff;
}
