@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #0a192f;
    --secondary-color: #f4b400;
    --accent-color: #ff4d4d;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a:hover {
    color: var(--secondary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.brand {
    font-size: 24px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 90px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 32px;
    cursor: pointer;
    z-index: 2005;
    width: 40px;
    height: 40px;
    position: relative;
}

/* Fallback span for CSS-only icon */
.mobile-menu-btn span, .mobile-menu-btn span::before, .mobile-menu-btn span::after {
    content: '';
    display: block;
    background: var(--primary-color);
    height: 3px;
    width: 30px;
    border-radius: 3px;
    position: absolute;
    left: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-btn span {
    top: 18px;
}

.mobile-menu-btn span::before {
    top: -10px;
    left: 0;
}

.mobile-menu-btn span::after {
    top: 10px;
    left: 0;
}

/* Active state for CSS hamburger */
.mobile-menu-btn.active span {
    background: transparent;
}

.mobile-menu-btn.active span::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-btn.active span::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
    color: var(--white);
    display: flex;
    align-items: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #e5a900;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(244, 180, 0, 0.4);
}

/* Section Spacing */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-info {
    padding: 25px;
}

.service-info h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonials {
    background: var(--light-bg);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none;
}

.testimonial-card {
    min-width: 400px;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info span {
    font-weight: 700;
}

/* Contact & Map Footer Section */
.contact-map-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 80px 5%;
    margin-bottom: 0;
    align-items: flex-start;
    background: var(--primary-color);
    min-height: auto;
}

.contact-section-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 50px;
    color: var(--white);
}

.contact-form-container {
    flex: 1;
    min-width: 45%;
    background: transparent;
    color: var(--white);
    padding: 0;
}

.contact-form {
    border: 2px solid var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
}

.map-container {
    flex: 1;
    min-width: 45%;
    min-height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 5px;
}

.contact-form button {
    width: 100%;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-question {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.faq-answer {
    padding: 10px 0;
    color: #666;
}

/* Footer Section */
footer {
    background: #050d18;
    color: #a0aec0;
    padding: 80px 0 20px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE MEDIA QUERIES */

@media (max-width: 768px) {
    header .container {
        position: relative;
    }

    .top-bar {
        display: none !important;
    }

    nav {
        padding: 10px 0;
    }

    .brand img {
        height: 80px;
    }

    .mobile-menu-btn {
        display: block !important;
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
    }

    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 2000;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77,0.2,0.05,1.0);
        padding: 0;
        margin: 0;
        gap: 30px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        font-size: 24px;
        color: var(--primary-color);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero {
        height: auto;
        padding: 60px 0;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
        margin-left: 0 !important;
        margin-top: 10px;
    }

    /* FIX FOR THE MASSIVE GAP UNDER MAP */
    .contact-map-section {
        padding: 40px 5% 0px 5% !important; /* Zero bottom padding */
        gap: 20px;
        flex-direction: column;
        min-height: 0 !important;
    }

    .contact-section-wrapper {
        margin-bottom: 20px;
    }

    .map-container {
        min-height: 250px !important;
        height: 250px !important;
        margin-bottom: 0px !important; /* No extra margin */
        width: 100%;
    }

    .contact-form-container {
        min-width: 100%;
    }
    
    footer {
        padding: 50px 0 20px !important;
        margin-top: 0 !important;
    }
}
