/* ==========================================================================
   AQUAMECH UNIFIED STYLESHEET (style.css)
   ========================================================================== */

/* Global Reset & Base Styles */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background-color: #f4f7f6; 
    color: #333; 
    line-height: 1.6; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Header & Navigation */
header { 
    background: white; 
    padding: 15px 0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: relative; 
}

.logo-block { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    z-index: 102; 
}

.logo-box { 
    background: linear-gradient(135deg, #02539a, #00a859); 
    color: white; 
    font-weight: 900; 
    padding: 10px 14px; 
    border-radius: 8px; 
    font-size: 20px; 
}

.logo-text h1 { 
    font-family: 'Poppins', sans-serif; 
    color: #0a1d37; 
    font-size: 22px; 
    font-weight: 900; 
}

.logo-text span { 
    color: #02539a; 
    font-size: 10px; 
    font-weight: 800; 
    display: block; 
}

nav { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

nav a { 
    text-decoration: none; 
    color: #555; 
    font-weight: 700; 
    font-size: 14px; 
    transition: color 0.2s; 
}

nav a:hover, nav a.active { 
    color: #02539a; 
}

nav a.btn { 
    background: #02539a; 
    color: white; 
    padding: 10px 20px; 
    border-radius: 8px; 
    text-align: center; 
}

nav a.btn:hover { 
    background: #0a1d37; 
}

/* Hamburger Mobile Menu Toggle */
.menu-toggle { 
    display: none; 
}

.hamburger { 
    display: none; 
    font-size: 28px; 
    cursor: pointer; 
    color: #02539a; 
    z-index: 102; 
    user-select: none; 
}

/* Banner & Hero Jumbotrons */
.banner { 
    background: #0a1d37; 
    color: white; 
    padding: 40px 0; 
    text-align: center; 
}

.banner h2 { 
    font-family: 'Poppins', sans-serif;
    font-size: 32px; 
    font-weight: 900; 
}

.hero { 
    background: linear-gradient(135deg, #0a1d37 0%, #02539a 100%); 
    color: white; 
    padding: 80px 0; 
    text-align: center; 
}

.hero h2 { 
    font-family: 'Poppins', sans-serif;
    font-size: 42px; 
    font-weight: 900; 
    margin-bottom: 20px; 
}

.hero p { 
    font-size: 18px; 
    color: #cbd5e1; 
    max-width: 650px; 
    margin: 0 auto 30px auto; 
}

.hero-btns { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.btn-primary { 
    background: #00a859; 
    color: white; 
    padding: 12px 30px; 
    border-radius: 8px; 
    font-weight: 700; 
    text-decoration: none; 
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #008747;
}

.btn-secondary { 
    background: rgba(255,255,255,0.1); 
    color: white; 
    padding: 12px 30px; 
    border-radius: 8px; 
    font-weight: 700; 
    text-decoration: none; 
    border: 1px solid rgba(255,255,255,0.2); 
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* About Us Section Grid */
.about-section { 
    padding: 80px 0; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 60px; 
    align-items: center; 
}

.section-tag { 
    color: #02539a; 
    font-weight: 800; 
    text-transform: uppercase; 
    font-size: 13px; 
    display: block; 
    margin-bottom: 10px; 
}

.section-title { 
    font-family: 'Poppins', sans-serif;
    font-size: 32px; 
    font-weight: 900; 
    color: #0a1d37; 
    margin-bottom: 20px; 
}

/* IMAGE FIX: Responsive height with a fallback container */
.image-frame { 
    width: 100%; 
    aspect-ratio: 4 / 3; /* Keeps a perfect proportions wrapper on desktops */
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 12px 35px rgba(0,0,0,0.08); 
    background-color: #f8fafc; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-frame img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Set to 'contain' to ensure 100% of the image is always visible */
}

/* Products & Services Card Layouts */
.grid-gallery { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
    margin-bottom: 50px; 
}

.image-card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.02); 
    transition: transform 0.2s; 
    display: flex;
    flex-direction: column;
}

.image-card:hover { 
    transform: translateY(-4px); 
}

/* Show 100% of the graphic with absolutely NO cropping */
.card-photo-box { 
    width: 100%; 
    /* Remove any aspect-ratio or height limits here */
    overflow: hidden; 
    position: relative;
    background-color: #ffffff;
}

.card-photo-box img { 
    width: 100%; 
    height: auto;       /* Let the height adjust naturally to the image size */
    display: block;
    object-fit: normal; /* Displays the original, un-cropped graphic perfectly */
}

.card-content { 
    padding: 20px; 
    flex-grow: 1;
}

.card-content h4 { 
    font-family: 'Poppins', sans-serif;
    font-size: 17px; 
    font-weight: 800; 
    color: #0a1d37; 
    margin-bottom: 8px; 
}

.card-content p { 
    font-size: 13.5px; 
    color: #555; 
}

/* Badges */
.badge { 
    display: inline-block; 
    font-size: 11px; 
    font-weight: bold; 
    padding: 2px 8px; 
    border-radius: 4px; 
    margin-bottom: 8px; 
    text-transform: uppercase; 
}

.badge-blue { 
    background: #eff6ff; 
    color: #1d4ed8; 
}

.badge-green { 
    background: #ecfdf5; 
    color: #047857; 
}

/* Footer */
footer { 
    background: #020617; 
    color: #64748b; 
    padding: 30px 0; 
    text-align: center; 
    font-size: 13px; 
    margin-top: 40px; 
}

/* Responsive Media Queries */
@media (max-width: 768px) { 
    .grid-2 { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    } 

    .image-frame {
        aspect-ratio: auto; /* Let it scale height automatically on mobile */
        height: auto;
    }

    .image-frame img {
        height: auto; /* Scales down naturally without any cropping */
    }

    .grid-gallery { 
        grid-template-columns: 1fr; 
    } 
    
    .image-card { 
        flex-direction: column !important; 
    }
    
    .card-photo-box { 
        width: 100% !important; 
        aspect-ratio: 16 / 9;
    }
    
    .card-content { 
        width: 100% !important; 
    }

    .hamburger { 
        display: block; 
    }

    nav { 
        display: none; 
        flex-direction: column; 
        width: 100%; 
        background: white; 
        position: absolute; 
        top: 65px; 
        left: 0; 
        padding: 20px; 
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 101;
        gap: 20px;
        align-items: stretch;
    }

    .menu-toggle:checked ~ nav { 
        display: flex; 
    }
}