/* --- CSS RESET & VARIABLES --- */
:root {
    --primary-blue: #244767;
    --secondary-dark: #32373c;
    --accent-light: #abb8c3;
    --text-dark: #333333;
    --white: #ffffff;
    --off-white: #f4f4f4;
    --max-width: 1200px;
}

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

.logo {
    display: flex;
    justify-content: flex-start; /* Aligns items to the left */
    padding: 0px;
    width: 50px;
  }



body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-dark); /* Fallback color */
    color: #333333; 
    line-height: 1.6;
    background-color: #ffffff;
    width: 100%;
    overflow-x: hidden; /* Stops the page from scrolling left/right */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: #39829f;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}


nav ul {
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(2, 9, 11, 0.85);
    font-size: large;
}

nav ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Mobile Menu Icon (Hidden on Desktop) */
.menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    text-align: right;
    
}

/* --- Header SECTION --- */
.motto {
    position: relative;
    height: 60vh;
    /* Added background color fallback */
    background-color: #333; 
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/desert.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.motto h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    
}

.motto p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    padding: 10px;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.motto iframe {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9; /* Keeps standard YouTube shape */
    height: auto;
    padding-bottom: 20px;
}

.btn {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 12px 30px;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ffffff;
    color: #244767;
}


/* --- Contact Us SECTION --- */
.contactus {
    position: relative;
    height: 60vh;
    /* Added background color fallback */
    background-color: #333; 
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/assets/desert.jpg') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    height: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.contactus h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.contactus p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    padding: 10px;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.contactus iframe {
    padding-bottom: 40px;
}

/* --- About Us SECTION --- */
.aboutus {
    position: relative;
    /* Uses min-height so content won't get cut off on mobile if text is long */
    min-height: 60vh; 
    
    /* Background setup */
    background-color: #333; 
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/desert.jpg') no-repeat center center/cover;
    
    /* Flex handles the main H1 alignment */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    padding: 40px 20px; /* Added side padding so text doesn't touch screen edges */
}

.aboutus h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- GRID SYSTEM --- */
.grid-container {
    display: grid;
    /* MOBILE DEFAULT: 1 column (Stacked) */
    grid-template-columns: 1fr; 
    gap: 30px;
    width: 100%;
    max-width: 1200px; /* Prevents it from getting too wide on huge screens */
    margin: 0 auto;
}

/* Image Styling */
.image-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    width: 100%;
    max-width: 500px; /* Stops image from becoming giant on desktop */
    height: auto;
    border-radius: 8px; /* Optional: makes image corners nice */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Text Styling */
.text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-box p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center; /* Center text on mobile */
}

/* --- DESKTOP VIEW (Screens larger than 768px) --- */
@media (min-width: 768px) {
    .grid-container {
        /* Switch to 2 columns: 1st is auto-sized, 2nd takes remaining space */
        grid-template-columns: 1fr 1fr; 
        gap: 50px;
        text-align: left; /* Reset alignment for desktop */
    }

    .text-box p {
        text-align: left; /* Left align text on desktop for easier reading */
        font-size: 1.2rem;
    }
}

/* --- Products Section --- */
.products {
    position: relative;
    min-height: 60vh; 
    
    background-color: #333; 
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/desert.jpg') no-repeat center center/cover;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    padding: 40px 20px; /* Added side padding so text doesn't touch screen edges */
}

.products h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.products h4 {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    
    /* FIXES START HERE */
    width: 100%;           /* Forces text to respect container width */
    max-width: 800px;      /* Keeps it readable on desktop */
    padding: 0 20px;       /* Use even padding on both sides */
    box-sizing: border-box;
}



.products-responsive-container {
    display: grid;
    /* DESKTOP: Create 3 columns of equal width (1fr = 1 fraction) */
    grid-template-columns: 1fr 1fr; 
    gap: 5px; /* Space between columns */
    padding-left: 100px;
}

.products .column-item {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    text-align: center;
}

/* --- PRODUCT CATALOG SPECIFIC STYLES --- */

.product-catalog-grid {
    display: grid;
    /* Change 280px to 250px to prevent overflow on small phones */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.product-catalog-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensures image stays inside the rounded corners */
    display: flex;
    flex-direction: column; /* Stacks image on top of text */
    transition: transform 0.2s ease; /* Adds a slight hover effect animation */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-catalog-card:hover {
    transform: translateY(-5px); /* Lifts the card up slightly on hover */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-catalog-img {
    width: 100%;
    height: 220px; /* Fixed height for uniformity */
    object-fit: contain;
    display: block;
}

.product-catalog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes the button to the bottom if text varies in length */
    text-align: center;
}

.product-catalog-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: bold;
}

.product-catalog-desc {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Specific Button Style just for this grid */
.product-catalog-btn {
    margin-top: auto; /* Forces button to the bottom of the card */
    display: inline-block;
    padding: 10px 20px;
    background-color: #000; /* Change this to your brand color */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.product-catalog-btn:hover {
    background-color: #444; /* Darker shade for hover state */
}

/* MOBILE OVERRIDE: When screen is smaller than 768px (Tablets/Phones) */
@media (max-width: 768px) {
    .responsive-container {
        /* Force grid to be 1 single column */
        grid-template-columns: 1fr; 
    }
}


/* --- SERVICES SECTION --- */
.services-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    color: #244767;
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
}

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

.service-item {
    background: #f4f4f4;
    padding: 25px;
    border-left: 5px solid #244767;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.service-item h3 {
    color: #32373c;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 0.95rem;
    color: #555;
}


/* --- TESTIMONIALS --- */
.testimonials {
    background-color: #32373c;
    color: #ffffff;
    padding: 60px 20px;
}

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

.testimonials h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    text-transform: uppercase;
}
.testimonials h3 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1rem;
    text-transform: uppercase;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 5px;
    position: relative;
}

.testimonial-card::before {
    content: "\201C";
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: bold;
    color: #abb8c3;
    text-align: right;
    display: block;
}

.testimonial-source {
    font-size: 0.8rem;
    color: #888;
    text-align: right;
    display: block;
}

/* --- FOOTER --- */
footer {
    background-color: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 40px 40px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 10px;
    color: #ffffff;
    font-size: 0.9rem;
    ;
}

.copyright {
    font-size: 0.8rem;
}

/* --- RESPONSIVE (Mobile & Tablet) --- */
@media (max-width: 768px) {
    
    /* --- NAVIGATION --- */
    .nav-container {
        position: relative;
    }

    .menu-icon {
        display: block;
        color: #ffffff;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #244767;
        flex-direction: column;
        padding: 20px;
        text-align: center;
        z-index: 2000; /* Ensure menu sits on top of everything */
    }
    
    nav ul.active {
        display: flex;
    }

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

    /* --- PRODUCTS PAGE FIXES --- */
    
    /* 1. Reduce side padding so content can go edge-to-edge */
    .products {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* 2. Force the grid to stack in 1 column & remove extra gaps */
    .product-catalog-grid {
        display: grid;
        grid-template-columns: 1fr; /* Forces items to stack vertically */
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        gap: 20px; /* Reduces gap slightly for mobile */
    }

    /* 3. Remove the indent on the text that was pushing the screen out */
    .products h4 {
        padding-left: 0; 
        padding-right: 0;
        width: 100%;
        box-sizing: border-box; /* Ensures padding doesn't add to width */
    }
}