/* =========================================
   1. GLOBAL RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f9;
    color: #333333;
}
header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* =========================================
   2. NAVBAR CONTAINER
   ========================================= */
.navbar {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1e1e2f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky; 
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    margin-right: auto; 
}

.nav-logo img {
    height: 40px; /* Adjust this to your preferred size */
    width: auto;
    vertical-align: middle;
}

/* If you have text + image */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #d1d1da;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* =========================================
   3. PAGE HEADER (Used on About & Products)
   ========================================= */
.page-header {
    background-color: #1e1e2f;
    color: #ffffff;
    padding: 4rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #a0a0b8;
    font-size: 1.2rem;
}

/* =========================================
   4. BUTTONS (Used in About CTA)
   ========================================= */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #4da6ff;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #3390ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(77, 166, 255, 0.4);
}

/* =========================================
   5. ABOUT: OUR STORY SECTION
   ========================================= */
.about-story {
    background-color: #ffffff;
    padding: 5rem 2rem;
}

.story-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-content {
    flex: 1;
}

.story-content h2 {
    font-size: 2.5rem;
    color: #1e1e2f;
    margin-bottom: 1.5rem;
}

.story-content p {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* =========================================
   6. ABOUT: FEATURES SECTION
   ========================================= */
.about-features {
    background-color: #f4f4f9;
    padding: 5rem 2rem;
    text-align: center;
}

.about-features .section-title {
    font-size: 2.5rem;
    color: #1e1e2f;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: #ffffff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #1e1e2f;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666666;
    line-height: 1.6;
}

/* =========================================
   8. ABOUT: MAP SECTION
   ========================================= */
.about-map {
    background-color: #ffffff;
    padding: 5rem 2rem;
    text-align: center;
}

.about-map .section-title {
    font-size: 2.5rem;
    color: #1e1e2f;
    margin-bottom: 1rem;
}

.map-description {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 2.5rem;
}

/* --- UPDATED MAP CONTAINER --- */
.map-container {
    width: 100%; /* Default to 100% for mobile */
    margin: 0 auto 3rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Force the iframe to fill its container */
.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
}

/* LAPTOP & DESKTOP: Make the map 50% width */
@media (min-width: 992px) {
    .map-container {
        width: 50%; /* Takes up exactly half the screen on laptops */
    }
}

.map-address {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f4f4f9;
    border-radius: 12px;
}

.map-address h3 {
    font-size: 1.5rem;
    color: #1e1e2f;
    margin-bottom: 1.5rem;
}

.map-address p {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .about-map {
        padding: 3rem 1.5rem;
    }
    
    .map-container iframe {
        height: 300px !important; /* Shorter map on mobile */
    }
}
/* =========================================
   7. ABOUT: CALL TO ACTION (CTA)
   ========================================= */
.about-cta {
    background-color: #1e1e2f;
    color: #ffffff;
    text-align: center;
    padding: 5rem 2rem;
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-cta p {
    font-size: 1.2rem;
    color: #a0a0b8;
    margin-bottom: 2.5rem;
}

/* =========================================
   8. FOOTER SECTION
   ========================================= */
.site-footer {
    background-color: #111118;
    color: #a0a0b8;
    padding: 4rem 2rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.footer-col:first-child {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally */
    text-align: center;  /* Centers text */
}

/* Ensure the logo link takes up full width to center the image */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

/* Ensure the image itself is centered and properly sized */
.footer-logo img {
    max-width: 250px; /* Controls the maximum width */
    height: auto;     /* Maintains aspect ratio */
    display: block;
    margin: 0 auto;
}

.footer-desc {
    line-height: 1.6;
    max-width: 300px;
    text-align: center; /* Center the description text too */
    margin: 0 auto;     /* Center the description block */
}

.footer-heading {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #a0a0b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4da6ff;
}

.footer-contact {
    font-style: normal;
    line-height: 1.8;
}

.footer-contact strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-bottom {
    background-color: #0a0a0f;
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #2d2d44;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* =========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet & Mobile Navbar */
@media (max-width: 767px) {
    .hamburger {
        display: block;
        z-index: 100;
    }
    
    .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); }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1e1e2f;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
        z-index: 99;
    }
    
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1.5rem 0; }
    .nav-link { color: #e0e0ff; font-size: 1.2rem; display: block; padding: 0.5rem; }
    .nav-link:hover { color: #4da6ff; }
    .nav-logo { font-size: 1.3rem; }

    /* About Page Responsive */
    .story-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .story-content h2 { font-size: 2rem; }
    .page-header h1 { font-size: 2.2rem; }
    .about-cta h2 { font-size: 2rem; }
    .about-story, .about-features, .about-cta { padding: 3rem 1.5rem; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .navbar { padding: 1rem; }
    .nav-logo { font-size: 1rem; }
    .hamburger { width: 30px; }
    .bar { width: 25px; height: 2px; }
    .nav-item { margin: 1rem 0; }
    .nav-link { font-size: 1.1rem; }
}

@media (max-width: 992px) and (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr); /* Force 3 equal columns */
        gap: 1.5rem; /* Reduced gap to fit everything */
    }
    
    /* Make logo smaller on tablet */
    .footer-logo img {
        max-width: 150px;
    }
    
    /* Center the logo column */
    .footer-col:first-child {
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    /* Reduce font sizes on tablet */
    .footer-heading {
        font-size: 1.1rem;
    }
    
    .footer-links li,
    .footer-contact p {
        font-size: 0.9rem;
    }
}

/* Mobile - Stack everything */
@media (max-width: 767px) {
    .footer-container {
        grid-template-columns: 1fr; /* Single column */
        gap: 2rem;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-col:first-child {
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo img {
        max-width: 180px;
    }
    
    .footer-desc {
        text-align: center;
    }
}