:root {
    /* --- Industrial Color Palette --- */
    --color-primary: #0f172a;    /* Deep Slate (Engineering/Dark) */
    --color-primary-light: #334155;
    --color-accent: #f59e0b;     /* Safety Amber (Mining/Industrial) */
    --color-accent-green: #10b981; /* Tech Green (Farming) */
    --color-primary-green: #016450;
    
    --color-text-main: #1e293b;
    --color-text-light: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    
    /* --- Layout & Spacing --- */
    --max-width: 1200px;
    --radius-sm: 4px;
    --radius-green-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--color-text-main);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: 2px solid var(--color-accent);
}
.btn-primary:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    margin-left: 10px;
}
.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo img { height: 40px; width: auto; }

/* Navigation */
.site-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 32px; align-items: center;
}
.site-nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--color-accent); }

.btn-nav-contact {
    padding: 8px 20px;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: var(--radius-green-sm);
}
.btn-nav-contact:hover { background: var(--color-primary-light); }

/* Mobile Toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.hamburger { width: 24px; height: 2px; background: var(--color-primary); display: block; position: relative; }
.hamburger::before, .hamburger::after {
    content: ""; position: absolute; left: 0; width: 24px; height: 2px; background: var(--color-primary);
    transition: 0.2s;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Forces it to fill 100% of the screen height */
    min-height: 600px; /* Prevents it from getting too squashed on tiny screens */
    background-color: var(--color-primary);
    overflow: hidden;
    color: #fff;
    
    /* Centering Magic */
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center */
    
    /* Wave Colors */
    --wave-light: #334155;
    --wave-mid:   #1e293b;
    --wave-dark:  #0f172a;
}

#hero-waves {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 1; 
    pointer-events: none; 
    opacity: 0.6;
    object-fit: cover; /* Ensures SVG covers the whole background */
}

/* SVG Styling */
.rect-top { fill: var(--wave-mid); }
.rect-bottom { fill: var(--wave-dark); }
#hero-waves path {
    transition: .35s ease;
    fill: none; 
    stroke-width: 4;
    stroke-linejoin: round; 
    stroke-linecap: round;
}
#floor { stroke: url(#grad-one); }
#roof { stroke: url(#grad-two); }
.stop-one-start { stop-color: var(--wave-dark); }
.stop-one-end   { stop-color: var(--wave-light); }
.stop-two-start { stop-color: var(--wave-light); }
.stop-two-end   { stop-color: var(--color-accent-green); }

.hero-overlay {
    position: relative; 
    z-index: 2; 
    width: 100%;
    padding: 0 20px; /* Prevents text touching edges on mobile */
    margin-top: 60px; /* Slight offset to account for the fixed navbar */
}

.hero-inner { 
    text-align: center; 
    max-width: 900px; 
    margin: 0 auto; 
}

/* --- UPDATED HERO LOGO --- */
.hero-logo {
    /* Fluid sizing: never smaller than 90px, ideally 18% of screen width, never larger than 180px */
    width: clamp(90px, 18vw, 180px);
    height: clamp(90px, 18vw, 180px);
    
    border-radius: 50%; /* Makes it perfectly round */
    object-fit: contain; /* Ensures the entire logo is visible inside the circle */
    display: block;
    margin: 0 auto 24px; /* Centered with space below */
    
    
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem); /* Responsive font sizing */
    font-weight: 800;
    margin: 0 0 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #cbd5e1;
    margin: 0 auto 40px;
    max-width: 700px;
    font-weight: 300;
}

/* --- About Section --- */
.about { padding: 100px 0; background: #fff; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-content h2 { font-size: 2.5rem; color: var(--color-primary); margin: 0 0 24px; }
.about-content .lead { font-size: 1.25rem; color: var(--color-primary-light); font-weight: 500; }
.about-content p { color: var(--color-text-light); }

.slideshow-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.mySlides { display: none; height: 100%; width: 100%; }
.mySlides img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.fade { animation: fade 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }


/* --- Services Section --- */
.services { padding: 100px 0; background: var(--color-bg-alt); }
.services .section-header { text-align: center; max-width: 600px; margin: 0 auto 60px; }
.services h2 { font-size: 2.5rem; margin: 0 0 16px; color: var(--color-primary); }

.services-grid {
    display: grid;
    /* This creates responsive columns automatically */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Space between cards */
    
    /* This ensures the grid itself is centered */
    justify-content: center;
    
    /* Reset any default padding causing the shift */
    padding: 0;
    margin: 0 auto;
    width: 100%;
}

.service-link {
    /* Forces the link to behave like a container, not text */
    display: flex; 
    justify-content: center; /* Centers the card inside the link area */
    text-decoration: none;   /* Removes default link underlines */
    width: 100%;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.services-container {
    display: grid;
    /* This magic line creates a responsive grid that fits as many columns as possible */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem;
    
    /* This ensures the whole grid is centered if there's extra space */
    justify-content: center; 
    
    /* Removes list defaults if using ul */
    padding: 0;
    margin: 0;
}

/* Image Section */
.card-image { 
    height: 220px; 
    overflow: hidden; 
    order: -1; /* Keeps image at top */
    border-bottom: 1px solid #f1f5f9;
}
.card-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}
.service-card:hover .card-image img { transform: scale(1.05); }

/* Content Section */
.card-content { 
    padding: 32px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.card-content h3 { 
    font-size: 1.5rem; 
    margin: 0 0 20px; 
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent); /* Small underline accent */
    display: inline-block;
    padding-bottom: 8px;
    width: fit-content;
}

/* New List Styling */
.service-list p {
    color: var(--color-text-light);
    margin-bottom: 10px; /* Tighter spacing for list items */
    font-size: 0.95rem;
    line-height: 1.5;
}
.service-list {
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes 'Read More' to bottom */
}

.read-more {
    font-weight: 700; 
    color: var(--color-accent);
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
    margin-top: auto;
}

/* --- Contact Section --- */
.contact { padding: 100px 0; background: #fff; }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background: #fff;
}
.contact-info h2 { font-size: 2.5rem; margin: 0 0 16px; color: var(--color-primary); }
.contact-info p { color: var(--color-text-light); margin-bottom: 40px; }

.business-info { list-style: none; padding: 0; margin: 0; }
.business-info li {
    display: flex; gap: 20px; margin-bottom: 30px;
}
.contact-icon {
    width: 48px; height: 48px;
    background: var(--color-bg-alt);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.business-info strong { display: block; color: var(--color-primary); font-size: 1.1rem; margin-bottom: 4px; }
.business-info .detail { display: block; color: var(--color-text-light); }
.business-info .link { color: var(--color-primary); text-decoration: underline; }

.map-container {
    height: 100%; min-height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* --- Footer --- */
.site-footer {
    background: var(--color-primary);
    color: #94a3b8;
    padding: 60px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--color-accent);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center;
}
.footer-brand .brand-name { display: block; color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; margin-left: 24px; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .hero { height: auto; padding: 140px 0 80px; }
}

/* --- UPDATED MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* 1. Header Layout & Alignment Fix */
    .header-inner {
        height: 70px;
        padding: 0 20px;
        /* Ensure specific positioning for children */
        position: relative; 
    }

    /* Force the hamburger to the far right */
    .nav-toggle {
        display: block;
        z-index: 1005;
        position: relative;
        margin-left: auto; /* This pushes the button to the far right edge */
        border-radius: 50%; /* Optional: nice touch for the click target */
    }

    /* 2. Mobile Nav Overlay - The "Premium" Look */
    .site-nav {
        position: fixed;
        inset: 0; /* Shorthand for top:0, left:0, right:0, bottom:0 */
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98); /* Clean, solid white with slight transparency */
        backdrop-filter: blur(10px); /* Modern glass effect */
        
        display: flex;
        align-items: center;
        justify-content: center;
        
        /* Animation states */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease-in-out;
        z-index: 1001;
    }

    .site-nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* 3. The List Structure */
    .site-nav ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 32px; /* Elegant spacing between items */
        padding: 0;
    }
    
    .site-nav li {
        width: auto; /* Let content dictate width */
        background-color: transparent !important; /* Force remove the color blocks */
        display: block;
    }

    /* 4. Typography - Professional & Bold */
    .site-nav a {
        font-size: 1.75rem; /* Large, readable text */
        font-weight: 700;
        color: var(--color-primary); /* Dark engineering slate */
        text-decoration: none;
        letter-spacing: -0.5px;
        transition: color 0.2s ease;
        display: inline-block;
    }

    .site-nav a:hover {
        color: var(--color-accent); /* Orange highlight on touch/hover */
    }

    /* 5. The "Contact" Button as a Feature */
    .site-nav .btn-nav-contact {
        margin-top: 16px;
        background-color: var(--color-accent) !important; /* Orange background */
        color: #fff !important;
        padding: 16px 40px !important; /* Large touch target */
        border-radius: 50px !important; /* Pill shape */
        font-size: 1.25rem !important;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    }
    
    /* 6. Fix for the Backdrop Element */
    /* Ensure the backdrop doesn't mess up the header layout */
    #nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        display: none;
    }
    #nav-backdrop.show {
        display: block;
    }

    /* 7. Hamburger Color Logic */
    /* When menu is open, the background is white, so the lines must be DARK */
    .nav-toggle[aria-expanded="true"] .hamburger::before,
    .nav-toggle[aria-expanded="true"] .hamburger::after {
        background: var(--color-primary); /* Dark lines on white background */
    }
    
    /* 8. Hero Text Adjustments */
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-sub {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* 9. Hero Actions Stack */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        margin-left: 0 !important;
    }
}

/* --- Fix for Hero Buttons (Add to style.css) --- */

/* Desktop Layout */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px; /* Space between buttons */
    margin-top: 32px;
}

/* Mobile Layout (Max-width 768px) */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;    /* Center them */
        width: 100%;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;           /* Make buttons wide for easy tapping */
        max-width: 280px;      /* But don't let them get too huge */
        margin-left: 0 !important; /* CRITICAL: Removes the desktop spacing */
        text-align: center;
    }
    
    /* --- Footer Section Fix --- */
    .site-footer .footer-inner {
        flex-direction: column;
        gap: 32px; /* Space between brand and links */
        text-align: center;
    }
    .site-footer .footer-links {
        display: flex;
        flex-direction: column; /* Stack links */
        align-items: center;
        gap: 16px; /* Space between individual links */
    }
    .site-footer .footer-links a {
        margin-left: 0; /* Remove side margin */
    }
}