/* --- Global Variables & Resets --- */
:root {
    --primary-color: #f59e0b; /* Professional Warning/Electrical Amber Gold */
    --dark-color: #1e293b;    /* Deep Slate Grey */
    --light-color: #f8fafc;   /* Soft Off-White */
    --text-color: #334155;    /* Readable Body Grey */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-padding {
    padding: 80px 0;
}

.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }
.text-white { color: var(--white); }
.center-text { text-align: center; margin-bottom: 50px; }

h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.text-white h2 {
    color: var(--white);
}

.sub-title {
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

/* --- Layout Grids --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Buttons --- */
.btn-main {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    background-color: #d97706;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--dark-color);
    font-size: 1.8rem;
}

.logo span {
    color: var(--primary-color);
}

.logo small {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    margin-top: -2px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
}

.btn-nav {
    background: var(--dark-color);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 4px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.85)), 
                url('https://unsplash.com') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
}

.hero-content h2 {
    color: var(--white);
    font-size: 3.5rem;
}

.hero-content p {
    color: #cbd5e1;
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* --- About Us Elements --- */
.about-badges {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.badge {
    background-color: var(--light-color);
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* --- Service Cards --- */
.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid var(--dark-color);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* --- Review Box Elements --- */
.review-box {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stars {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.review-box p {
    font-style: italic;
    margin-bottom: 15px;
}

.review-box h4 {
    color: var(--dark-color);
}

/* --- Contact Form Elements --- */
.contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #475569;
    background-color: #334155;
    color: var(--white);
    border-radius: 4px;
}

.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: #94a3b8;
}

/* --- Footer Elements --- */
footer {
    background-color: #0f172a;
    padding: 20px 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    header { padding: 10px 0; }
    .header-flex { flex-direction: column; gap: 10px; }
    nav ul li { margin: 0 10px; }
    .hero-content h2 { font-size: 2.2rem; }
    .section-padding { padding: 50px 0; }
}

/* --- Language Switcher Button --- */
.btn-lang {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--dark-color);
    padding: 5px 10px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 20px;
    transition: all 0.3s ease;
}

.btn-lang:hover {
    background-color: var(--dark-color);
    color: var(--white);
}

/* Header adjustment for layout balance */
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
}

/* --- Hamburger Mobile Styling --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 5px;
    z-index: 1001;
}

.hamburger .bar {
    height: 3px;
    width: 25px;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Screen width handling for Mobile Switch */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Shows hamburger only on mobile screen widths */
    }

    header {
        position: fixed; /* Keeps header fixed on screen scroll */
        height: auto;
    }

    .header-flex {
        flex-direction: row !important; /* Forces logo and hamburger side-by-side */
        justify-content: space-between;
        align-items: center;
    }

    nav {
        display: none; /* Hidden by default on mobile load screen */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    /* Target class added dynamically by Javascript */
    nav.active {
        display: flex; 
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        text-align: center;
    }

    .btn-lang {
        margin-left: 0;
        margin-top: 10px;
    }

    /* Hamburger Animation to 'X' shape when active */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}


/* ==========================================
   COMPLETE MOBILE RESPONSIVE OVERRIDES
   ========================================== */

@media (max-width: 991px) {
    h2 { font-size: 2.1rem; }
    .hero-content h2 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Container cushioning for smaller screens */
    .container {
        width: 88%;
        padding: 0 10px;
    }
    
    .section-padding {
        padding: 50px 0;
    }

    /* Header & Navigation Mobile Fix */
    header {
        position: relative; /* Prevents overlap content blocking on mobile */
        padding: 15px 0;
    }
    
    .header-flex {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap; /* Wraps items cleanly if phone screen is narrow */
        justify-content: center;
        gap: 10px 15px;
    }

    .nav-links li {
        margin-left: 0; /* Clear desktop layout spacing margins */
    }

    .btn-lang {
        margin-left: 0;
        margin-top: 5px;
        padding: 6px 14px;
        width: auto;
    }

    /* Hero Section Mobile Re-sizing */
    .hero {
        height: auto;
        min-height: 60vh;
        margin-top: 0;
        padding: 60px 0;
    }

    .hero-content h2 {
        font-size: 2.1rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    /* Grid layout stack forces single columns on mobile devices */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* About Us Badges formatting */
    .about-badges {
        margin-top: 15px;
    }
    
    .badge {
        padding: 15px;
        font-size: 1rem;
    }

    /* Review testimonial elements stacking adjustments */
    .review-box {
        padding: 20px;
    }

    /* Contact Information text formatting alignment */
    .contact-info {
        margin-bottom: 30px;
    }
    
    .contact-info p {
        font-size: 1rem;
    }

    /* Form input padding refinement for thumb tapping scales */
    .contact-form input, 
    .contact-form select, 
    .contact-form textarea {
        padding: 14px;
        font-size: 1rem;
    }
    
    .btn-main {
        width: 100%; /* Makes button full-width on mobile for easier tapping */
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 { font-size: 1.8rem; }
    h2 { font-size: 1.8rem; }
    .logo h1 { font-size: 1.5rem; }
}
