/* --- Global Reset & Typography --- */
body {
    background-color: #f5f5f5; /* Light, clean gray/white background */
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Container to center content on large screens */
.content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05); /* Subtle shadow for depth */
    min-height: 80vh;
}

/* --- Header & Navigation --- */
.main-header {
    padding: 20px 0;
    border-bottom: 2px solid #003366; /* Royal Blue border */
    margin-bottom: 20px;
}

h1 {
    color: #003366;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
}

.header-logo {
    width: 120px;
    height: auto;
}

.top-nav {
    background-color: #003366; /* Dark Blue Bar */
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
    flex-wrap: wrap;
}

.top-nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.top-nav a:hover {
    color: #FFD700; /* Gold color on hover */
    text-decoration: underline;
}

.time-widget {
    margin-left: auto; /* Pushes time to the far right */
    font-size: 0.85rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Language Toggle (US / Italy) --- */
.lang-toggle-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    padding: 8px 15px;
    background-color: #e9ecef;
    border-radius: 4px;
    width: fit-content;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.flag-icon {
    width: 30px;
    height: auto;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Active State (US Flag) */
.active-lang {
    border: 2px solid #DAA520; /* Gold border */
    background-color: #fff;
    color: #333;
    cursor: default;
}

/* Inactive State (Link to Italy) */
.inactive-lang {
    border: 2px solid transparent;
    color: #666;
    opacity: 0.7;
    cursor: pointer;
}

.inactive-lang:hover {
    opacity: 1;
    background-color: #fff;
    color: #003366;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Content Sections --- */
h2, h3 {
    color: #003366;
}

.intro-section {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* The "Hook" - Special Highlight Box */
.engineering-hook {
    background-color: #f8f9fa;
    border-left: 5px solid #DAA520; /* Gold accent line */
    padding: 15px 20px;
    margin-bottom: 30px;
}

.brand-link {
    color: #b71c1c; /* Distinct red for Mazon-Nahon brand */
    font-weight: bold;
    text-decoration: none;
}

.services-list ul {
    list-style-type: square;
    padding-left: 20px;
}

.services-list li {
    margin-bottom: 10px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

/* --- Contact Form (Modern) --- */
.contact-section {
    background-color: #f1f3f5;
    padding: 25px;
    border-radius: 6px;
    max-width: 600px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box; /* Fixes padding width issues */
}

.submit-button {
    background-color: #003366;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background-color: #002244;
}

/* --- Footer --- */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #777;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 10px;
    }
    
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .time-widget {
        margin-left: 0;
        margin-top: 10px;
    }
}