/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #004080;
    color: white;
    padding: 0.5rem 2rem; /* Redus de la 1rem la 0.5rem pentru a micșora înălțimea */
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: top 0.3s ease-in-out;
}

header:hover {
    top: 0; /* Afișează complet la hover */
}

header::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background-color: rgba(0, 86, 179, 0.5); /* Culoare semi-transparentă care se potrivește cu brandul */
    cursor: pointer;
}

.navbar {
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Redus de la 0.75rem la 0.5rem */
    font-size: 1.2rem; /* Redus de la 1.5rem la 1.2rem */
    font-weight: bold;
}

.navbar-logo img {
    height: 30px; /* Redus de la 40px la 30px */
    width: auto;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
}

.navbar-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.3rem 0.6rem; /* Redus de la 0.5rem 0.75rem la 0.3rem 0.6rem */
    border-radius: 4px;
    font-size: 0.9rem; /* Adăugat pentru a reduce dimensiunea textului */
}

.navbar-menu li a:hover,
.navbar-menu li a:focus {
    color: #ffcc00;
    background-color: rgba(255, 204, 0, 0.2);
}

.navbar-menu li a.active {
    color: #ffcc00;
    background-color: rgba(255, 204, 0, 0.3);
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding-top: 20px; /* Ajustează spațiul la începutul conținutului principal pentru a compensa navbar-ul ascuns */
}

.hero {
    background-color: #f5f5f5;
    padding: 3rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.homepage-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.homepage-content h2 {
    color: #0056b3;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.homepage-content p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.service-card h3 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 1rem;
}

.benefits-list {
    margin: 1.5rem 0;
}

.benefits-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.benefits-list li:before {
    content: "✓";
    color: #0056b3;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #003d82;
}

/* Service page styles */
.service-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.service-header {
    margin-bottom: 2rem;
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

.service-block {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-block h2 {
    color: #0056b3;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.service-block h3 {
    color: #333;
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.service-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    margin-top: 1.5rem;
}

.service-features h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.features-list li:before {
    content: "✓";
    color: #0056b3;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact section styles moved from contact.html */
.contact-section {
    padding: 2rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.company-details {
    flex: 1;
    min-width: 300px;
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 5px;
}

/* Responsive iframe for Google Maps */
.company-details iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 5px;
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

.btn-submit {
    background-color: #0056b3;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #003d82;
}

/* Buton hamburger - ascuns pe desktop, vizibil pe mobil */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-left: auto;
}

.hamburger-menu span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Adaugă clasa pentru starea activă a butonului hamburger */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Media query pentru mobile */
@media (max-width: 768px) {
    /* Afișează butonul hamburger */
    .hamburger-menu {
        display: flex;
    }
    
    /* Ajustează navbar-ul pentru vizualizare mobilă */
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #004080;
        padding: 1rem;
        gap: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }
    
    /* Când meniul este deschis */
    .navbar-menu.active {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu li a {
        display: block;
        padding: 0.8rem 0.6rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-menu li:last-child a {
        border-bottom: none;
    }
    
    /* Elimină efectul hover pentru navbar pe mobile */
    header:hover {
        top: 0;
    }
    
    header::after {
        display: none;
    }
}
