/*
|--------------------------------------------------------------------------
| 0. GLOBAL STYLES & RESETS
|--------------------------------------------------------------------------
*/

:root {
    /* Updated for Green/Teal Logo Theme */
    --color-primary: #004d73;    /* Deep Industrial Blue/Teal (Headers/Main Text) */
    --color-secondary: #0099e6;  /* Bright Sky Blue (Secondary Accents/Hover) */
    --color-action: #2ECC71;     /* VIBRANT GREEN (Primary Button/CTA Color) */
    
    --color-text-dark: #333;
    --color-text-light: #f4f4f4;
    --color-bg-light: #f4f7f9;   /* Light Grey/Off-white for contrast sections */
    --color-bg-dark: #222;       /* Dark footer/header background */
    --font-primary: 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 8px;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
}

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

h1, h2, h3 {
    color: var(--color-primary);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

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

.padded-section {
    padding: 80px 0; /* Increased padding */
}

.bg-light {
    background-color: var(--color-bg-light);
}

.dark-bg {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}


/*
|--------------------------------------------------------------------------
| 1. HEADER & NAVIGATION
|--------------------------------------------------------------------------
*/

/* Top Info Bar */
.top-bar {
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    font-size: 0.9em;
    padding: 6px 0;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end; /* Align right on desktop */
    align-items: center;
    gap: 25px;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

/* Main Header (Navigation Bar) */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.main-header.sticky-top {
    position: sticky;
    top: 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo */
.logo img {
    max-height: 45px;
    display: block;
}

/* Navigation Menu (Desktop Default) */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-weight: 500;
    padding: 8px 0;
    color: var(--color-text-dark);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* CTA Button Base Styles */
.cta-button {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.cta-button.primary,
.cta-button { /* Base CTA style for the header */
    background-color: var(--color-action); /* Green */
    color: white;
    border-color: var(--color-action); /* Green */
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: none;
}

.cta-button:hover,
.cta-button.primary:hover {
    background-color: #27AE60; /* Darker Green */
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.cta-button.secondary:hover {
    background-color: var(--color-primary);
    color: white;
    box-shadow: none;
}

/* Mobile Menu Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
    /* Hide by default (desktop first approach) */
    display: none; 
    
    /* Base style setup */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-primary); 
    padding: 8px;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    
    /* Ensure the button is styled correctly for the flex container */
    flex-shrink: 0;
}
 
/*
|--------------------------------------------------------------------------
| 2. HERO SECTION (SLIDESHOW)
|--------------------------------------------------------------------------
*/

.slideshow-container {
    /* Main container for the entire slideshow */
    position: relative;
    width: 100%;
    height: 85vh; /* Taller hero section */
    min-height: 550px;
    overflow: hidden;
    background-color: #001f3f; /* Fallback color for the dark industrial theme */
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease; /* Smooth fade transition */
}

.slide.active-slide {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the whole slide area */
    display: block;
}

/* Overlay for Text Readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darker overlay for industrial feel */
    z-index: 5;
}

/* Fixed Caption Area */
.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    width: 90%;
    padding: 0 20px;
}

.slide-caption h1 {
    font-size: 3.5em;
    font-weight: 900;
    color: white; /* Overriding primary color for the hero text */
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.4em;
}

.slide-caption p {
    font-size: 1.3em;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* NEW BUTTON STYLES FOR HERO SECTION */
.hero-ctas a {
    padding: 12px 30px;
    border-radius: 9999px; /* Fully rounded/pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: inline-block; /* Ensure padding and dimensions work */
}

.hero-btn-primary {
    background-color: var(--color-action); /* Green */
    color: white;
    border: 2px solid var(--color-action); /* Green */
}

.hero-btn-primary:hover {
    background-color: #27AE60; /* Darker Green */
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 2px solid rgba(255, 255, 255, 0.5); /* White border, slightly translucent */
    box-shadow: none;
}

.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}
/* END NEW BUTTON STYLES */

/* Navigation Arrows */
.slide-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 15;
    transition: background 0.3s, opacity 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 0; /* Center the icon */
}

.slide-nav button:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slide-nav .prev {
    left: 20px;
}

.slide-nav .next {
    right: 20px;
}

/* Dot Indicators */
.dot-container {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    padding: 0;
}

.dot.active {
    background-color: var(--color-action); /* Green for active dot */
    transform: scale(1.2);
}

/*
|--------------------------------------------------------------------------
| 3. ABOUT US / STRENGTHS
|--------------------------------------------------------------------------
*/

.section-headline {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
}

/* NEW: Two-column layout for the About section (Image-Text) */
.about-showcase {
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* Image slightly wider than text */
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-showcase-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 77, 115, 0.2);
}

.pre-headline-small {
    font-size: 1em;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.headline-large {
    font-size: 3em;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 20px;
}

.about-showcase-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.cta-button.block-style {
    display: inline-block;
    margin-top: 10px;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.strength-card {
    padding: 30px 20px;
    border: 1px solid var(--color-bg-light);
    border-radius: var(--border-radius);
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.strength-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 77, 115, 0.1);
}

/* Updated icon styling for Font Awesome */
.strength-card .icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
    color: var(--color-action); /* Green for icons */
}

.strength-card h3 {
    font-size: 1.3em;
    color: var(--color-primary);
    margin-bottom: 5px;
}

/*
|--------------------------------------------------------------------------
| 4. PRODUCT SHOWCASE
|--------------------------------------------------------------------------
*/

.section-intro {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--color-text-dark);
}

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

.product-card,
.product-cta-card {
    display: block;
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 77, 115, 0.2);
    color: var(--color-primary);
}

/* Image Styling for Product Cards */
.product-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--color-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s;
}

.product-card:hover .product-img {
    border-color: var(--color-action); /* Green border on hover */
}

.product-card h3,
.product-cta-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.product-cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primary); /* Standout color */
    color: white;
}

.product-cta-card h3 {
    color: white;
}

.product-cta-card p {
    margin-bottom: 20px;
}

.product-cta-card .cta-button {
    background-color: var(--color-action); /* Green */
    color: white;
}

/*
|--------------------------------------------------------------------------
| 5. FOOTER
|--------------------------------------------------------------------------
*/

.main-footer a {
    color: var(--color-text-light);
    opacity: 0.8;
}

.main-footer a:hover {
    color: var(--color-action); /* Green hover */
    opacity: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h3 {
    color: var(--color-secondary);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-col p, .footer-col li {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: var(--color-text-light);
}

.footer-col ul {
    list-style: none;
}

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--color-text-light);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-light);
}

.footer-contact-form textarea {
    resize: vertical;
    min-height: 80px;
}

.footer-contact-form .cta-button {
    width: 100%;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/*
|--------------------------------------------------------------------------
| 6. RESPONSIVENESS (Media Queries) - MOBILE LOGIC ADDED HERE
|--------------------------------------------------------------------------
*/

/* Tablet and Smaller Desktop Styles (Max 992px) */
@media (max-width: 992px) {

    /* New About Showcase: Stacks columns on tablet */
    .about-showcase {
        grid-template-columns: 1fr; 
        gap: 30px;
    }

    .headline-large {
        font-size: 2.5em;
    }

    .strengths-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for strengths */
    }

    .hero-section {
        min-height: 60vh;
    }

    .headline {
        font-size: 2.8em;
    }

    .intro-text {
        font-size: 1.3em;
    }
}

/* Mobile Styles (Max 768px) */
@media (max-width: 768px) {
    .padded-section {
        padding: 40px 0; /* Reduced vertical padding */
    }

    .desktop-only {
        display: none !important; /* Hide desktop-only elements (like the Instant Quote CTA) */
    }

    /* Top Bar adjustments */
    .top-bar .container {
        justify-content: center; /* Center items on small screen */
        gap: 8px 15px;
        flex-wrap: wrap;
    }
    .top-bar span {
        font-size: 0.75em;
    }

    /* Show and style the mobile toggle button (Green Rectangle) */
    .mobile-menu-toggle {
        display: block; /* Overrides 'display: none' */
        
        /* Styles for the Green Rectangle button */
        background-color: var(--color-action); /* Solid GREEN background */
        color: white; /* White icon for the hamburger lines */
        border: none;
        border-radius: 4px;
        padding: 8px 10px;
        box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
        
        transform: none; /* Resetting transform */
    }

    /* Update hover/focus states for the new green button */
    .mobile-menu-toggle:hover,
    .mobile-menu-toggle:focus {
        background-color: #27AE60; /* Darker Green on hover */
        color: white; 
        transform: scale(1.05);
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4); 
    }

    /* Navigation: Hide by default on mobile */
    .main-nav {
        /* Position below the header row */
        position: absolute;
        top: 75px; /* Adjust based on header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;

        /* Hiding mechanism: uses max-height transition */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    /* Active class: applied by JavaScript on button click */
    .main-nav.nav-active {
        max-height: 400px; /* Large enough to display all links */
    }

    .main-nav ul {
        flex-direction: column; /* Stack links vertically */
        padding: 10px 0;
        align-items: center;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-bg-light);
    }

    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block; /* Make the whole area clickable */
        padding: 12px 20px;
        font-size: 1em;
    }

    .main-nav a::after {
        display: none; /* Hide hover underline on mobile menu */
    }

    /* Hero Section */
    .headline {
        font-size: 2em;
    }

    .intro-text {
        font-size: 1.1em;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 10px;
    }

    .cta-button {
        /* Ensure CTA buttons take full width when stacked */
        width: 100%; 
    }

    /* New About Showcase on mobile */
    .about-showcase {
        margin-bottom: 40px;
    }

    .headline-large {
        font-size: 2em; /* Smaller headline on mobile */
    }

    /* Grids */
    .strengths-grid {
        grid-template-columns: 1fr; 
    }

    /* Footer adjustments */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        padding: 0;
    }
}