/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #121212;
    overflow-x: hidden;
}

/* HEADER */
.site-header {
    background-color: #fefefe;
    border-bottom: 1px solid #eaeae6;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.site-logo {
    height: auto;
    max-height: 100px;
    width: auto;
    display: block;
}

/* NAV */
.main-nav-list {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav-list > li {
    position: relative;
    padding: 15px 0;
}

.menu-item-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
}

.nav-item-text {
    color: #000000;
    font-weight: 600;
    font-size: 15px;
}

.nav-item-direct {
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 15px;
    display: block;
}

.nav-item-direct:hover,
.nav-item-direct.active,
.menu-item-wrapper:hover .nav-item-text {
    text-decoration: underline;
}

/* SAGEATA */
.arrow-icon {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #000000;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.main-nav-list > li:hover .arrow-icon {
    transform: rotate(180deg);
}

/* SUBMENU DESKTOP */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 260px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    list-style: none;
    padding: 10px 0;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s;
}

@media (hover: hover) {
    .main-nav-list > li:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.submenu li a:hover {
    background-color: #fcfbf7;
    text-decoration: underline;
}

.submenu.mega-columns {
    min-width: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 15px;
}

.submenu.blog-submenu {
    min-width: 280px;
}

.blog-cat-title {
    padding: 12px 20px 6px 20px;
    font-size: 13px;
    text-transform: uppercase;
    color: #000000;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: underline;
}

.menu-toggle,
.hamburger-menu {
    display: none;
}

/* MAIN */
.main-content {
    background-color: #121212;
    color: #ffffff;
    flex: 1;
    padding: 60px 20px;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.main-content p {
    font-size: 1.1rem;
    color: #cccccc;
    line-height: 1.6;
}

/* FOOTER 4 COLOANE RESPONSIV */
.site-footer {
    background-color: #fefefe;
    color: #000000;
    padding: 50px 20px 20px 20px;
    border-top: 1px solid #eaeae6;
    font-size: 14px;
    width: 100%;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-description {
    line-height: 1.6;
    color: #333333;
    font-size: 13.5px;
    text-align: justify;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list li a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.2s ease;
    display: inline-block;
}

.footer-links-list li a:hover {
    text-decoration: underline;
}

.footer-map-wrapper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eaeae6;
    background-color: #f0f0f0; /* fundal subtil in caz ca harta se incarca mai greu */
}

.footer-bottom {
    max-width: 1300px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid #eaeae6;
    text-align: center;
    font-size: 13px;
    color: #555555;
}

/* MOBILE RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
    /* Header si Meniu pentru Tablete/Mobile */
    .site-logo {
        max-height: 55px;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        cursor: pointer;
        z-index: 1010;
    }

    .hamburger-menu span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #000000;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .navigation-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background-color: #fefefe;
        padding: 80px 10px 40px 10px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        z-index: 1005;
        overflow-y: auto;
    }

    .main-nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .main-nav-list > li {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f0efe9;
    }

    .menu-item-wrapper {
        width: 100%;
        padding: 15px 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-item-direct {
        width: 100%;
        padding: 15px 10px;
    }

    .submenu,
    .submenu.mega-columns,
    .submenu.blog-submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #fcfbf7;
        width: 100%;
        min-width: 100%;
        display: block;
        overflow: hidden;
        max-height: 0;
        padding: 0;
        transition: max-height 0.35s ease, padding 0.25s ease;
        grid-template-columns: 1fr;
    }

    .has-submenu.mobile-open .submenu,
    .has-submenu.mobile-open .submenu.mega-columns,
    .has-submenu.mobile-open .submenu.blog-submenu {
        max-height: 2000px;
    }

    .submenu li a {
        padding: 12px 25px;
        border-bottom: 1px solid #eaeae2;
    }

    .blog-cat-title {
        padding: 12px 20px 4px 25px;
        background-color: #eaeae6;
    }

    .has-submenu.mobile-open .arrow-icon {
        transform: rotate(180deg);
    }

    .menu-toggle:checked ~ .navigation-menu {
        right: 0;
    }

    .menu-toggle:checked ~ .hamburger-menu span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .menu-toggle:checked ~ .hamburger-menu span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .hamburger-menu span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    /* Adaptare Footer pentru ecrane de Tableta (2 Coloane) */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Adaptare Footer pentru ecrane de Telefon (1 Coloana) */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-description {
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 15px auto;
    }
}
.footer-company {
    margin-top: 8px;
    font-size: 13px;
    color: #000;
    line-height: 1.5;
}
.nav-amiabila {
    background-color: #025c1a;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-amiabila:hover {
    background-color: #00225c;
    color: #ffffff !important;
    transform: translateY(-1px);
}
.footer-pdf-link {
    display: inline-block;
    background-color: #025c1a;
    color: #ffffff !important;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-pdf-link:hover {
    background-color: #00225c;
    color: #ffffff !important;
}
.formular-amiabila-image img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #222;
}

.formular-amiabila-image figcaption {
    margin-top: 10px;
    font-size: 14px;
}