@import url('https://fonts.googleapis.com/css2?family=Russo+One&display=swap');

:root {
    /* Color Palette (High-Visibility Industrial) */
    --bg-body: #F4F4F4;
    /* Light Concrete Gray */
    --bg-dark-section: #1A1A1A;
    /* Asphalt Black */
    --bg-white-section: #FFFFFF;
    /* Clean White */
    --bg-light-section: #F4F4F4;
    /* Same as body, for explicit sections */

    --brand-yellow: #FFC300;
    /* Safety Yellow */
    --brand-yellow-dark: #CC9A00;
    /* Darker shade for button depth */

    --text-dark: #111111;
    /* For light backgrounds */
    --text-light: #F0F0F0;
    /* For dark backgrounds */
    --text-gray: #666666;
    /* For secondary text on light backgrounds */
    --text-gray-light: #B0B0B0;
    /* For secondary text on dark backgrounds */

    --neon-cyan: #00F0FF;
}

.text-neon-cyan {
    color: var(--neon-cyan);
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    font-family: 'Barlow', system-ui, sans-serif;
    font-weight: 500;
    line-height: 1.6;
}

/* Typography */
.font-russo {
    font-family: 'Russo One', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'League Spartan', system-ui, sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

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

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

.text-brand-yellow {
    color: var(--brand-yellow) !important;
}

.text-force-black {
    color: #000000 !important;
    opacity: 1 !important;
}

.border-brand-yellow {
    border-color: var(--brand-yellow) !important;
}

.text-force-white {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

/* Section Backgrounds */
.bg-dark-section {
    background-color: var(--bg-dark-section);
    color: var(--text-light);
}

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

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

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

/* Navigation */
/* Navigation */
.bg-header-dark {
    position: relative;
    background-color: var(--bg-dark-section);
    background-image: url('../img/diamond-plate-clean.png');
    background-size: 300px 300px;
    /* Match card scale */
    background-repeat: repeat;
    border-bottom: 4px solid var(--brand-yellow);
    isolation: isolate;
    /* Create stacking context for overlay */
}

/* Navbar Overlay & Vignette */
.bg-header-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    /* Dark tint (0.7) + Vignette for "appealing lighting" */
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
}

/* Ensure navbar content stays on top */
.bg-header-dark>* {
    position: relative;
    z-index: 1;
}

/* Footer Background (Clone of Header but no border) */
.bg-footer-dark {
    position: relative;
    background-color: var(--bg-dark-section);
    background-image: url('../img/diamond-plate-clean.png');
    background-size: 600px 600px;
    background-repeat: repeat;
    background-position: center top;
    /* Removed yellow border */
    border-top: none;
    isolation: isolate;
}

.bg-footer-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
}

.bg-footer-dark>* {
    position: relative;
    z-index: 1;
}

/* Mobile Menu Button Override */
#mobile-menu {
    background-image: none !important;
    background-color: #1F1F1F !important;
    backdrop-filter: none !important;
    /* Ensure no frosted glass effect interferes */
}

/* Mobile Menu Button Override */
#mobile-menu-btn {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 3rem !important;
    /* Adjusted to 3rem for a tighter fit */
    height: 3rem !important;
}

#mobile-menu-btn img {
    /* No bg color needed, image is colored */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    object-fit: contain;
}

/* Particle Dust/Disintegration Effect */
@keyframes particle-dust {
    0% {
        box-shadow: 0 0 0 0 var(--brand-yellow),
            0 0 0 0 var(--brand-yellow),
            0 0 0 0 var(--brand-yellow),
            0 0 0 0 var(--brand-yellow);
        opacity: 0.8;
        transform: scale(0.5);
    }

    100% {
        box-shadow: -40px -40px 10px 4px transparent,
            40px -25px 10px 4px transparent,
            -25px 35px 8px 4px transparent,
            35px 38px 8px 4px transparent;
        opacity: 0;
        transform: scale(3.5);
    }
}

#mobile-menu-btn {
    position: relative;
    overflow: visible !important;
}

#mobile-menu-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: transparent;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
}

#mobile-menu-btn.animate-dust::after {
    animation: particle-dust 1.2s ease-out forwards;
    background: radial-gradient(circle, var(--brand-yellow) 0%, transparent 70%);
}

/* Heavy Lift Effect */
.img-heavy {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(1);
    position: relative;
    /* Ensure z-index works */
}

.img-heavy:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-yellow);
}

/* MASTER BUTTON RESET */
.btn-primary,
.btn-secondary,
.btn-track,
.btn-track-primary,
input[type="submit"],
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-family: 'Russo One', sans-serif;
    /* Punchy Font */
    font-size: 1rem;
    line-height: 1.2;
    /* Maximum Punch */
    text-decoration: none;
    white-space: nowrap;
    /* Prevent wrapping on tablet */
    transition: all 0.2s ease;
    opacity: 1 !important;
    cursor: pointer;
    background-color: #FFC300 !important;
    /* Safety Yellow */
    color: #1F1F1F !important;
    /* Dark Text */
    border: none !important;
    border-radius: 0.75rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: 1px solid var(--brand-yellow);
    background-color: transparent;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--brand-yellow);
    color: var(--brand-black);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* MODERN INDUSTRIAL PRIMARY (Yellow, Soft Deep Shadow) */
.btn-primary,
.btn-track-primary,
.btn-cta,
input[type="submit"],
button {
    background-color: #FFC300 !important;
    /* Safety Yellow */
    color: #1F1F1F !important;
    /* Dark Text */
    border: none !important;
    border-radius: 12px !important;
    /* 15% Roundness */
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.3);
    /* Soft but deep shadow */
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.3);
    /* Soft but deep shadow */
    padding: 0.5rem 1.5rem;
}

/* Ghost buttons for Hero/Image sections */
section.relative .btn-primary {
    background-color: transparent !important;
    border: 2px solid #FFC300 !important;
    color: #FFC300 !important;
    backdrop-filter: blur(2px);
}

section.relative .btn-secondary {
    background-color: transparent !important;
    border: 2px solid #FFFFFF !important;
    color: #FFFFFF !important;
    backdrop-filter: blur(2px);
}

.btn-primary:hover,
.btn-track-primary:hover,
.btn-cta:hover,
input[type="submit"]:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    /* Pop effect */
    background-color: #FFC300 !important;
}

.btn-primary:active,
.btn-track-primary:active,
.btn-cta:active,
input[type="submit"]:active,
button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* MODERN INDUSTRIAL SECONDARY (White, White Border) */
.btn-secondary,
.btn-track-secondary,
.btn-track-dark,
.btn-industrial-dark {
    background-color: #FFFFFF !important;
    /* White Background */
    color: #000000 !important;
    /* Black Text */
    border: 2px solid #FFFFFF !important;
    /* Solid White Border */
    border-radius: 12px !important;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover,
.btn-track-secondary:hover,
.btn-track-dark:hover,
.btn-industrial-dark:hover {
    background-color: #F0F0F0 !important;
    border-color: #F0F0F0 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* FOOTER SPECIFIC BACKGROUND */
footer.bg-header-dark {
    background-size: 600px 600px !important;
    /* Double the size to reduce repetition */
    background-position: center top !important;
}

/* FOOTER BUTTON REFINEMENT */
footer .btn-secondary {
    background-color: transparent !important;
    border: 1px solid var(--brand-yellow) !important;
    color: #FFFFFF !important;
    /* White text to pop against dark bg */
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    /* 14px */
    border-radius: 0.75rem !important;
    box-shadow: none !important;
}

footer .btn-secondary:hover {
    border-color: #FFFFFF !important;
    color: #FFC300 !important;
    background-color: transparent !important;
    transform: translateY(-1px);
}

footer .btn-primary {
    transform: scale(0.9);
}

footer .btn-primary:hover {
    transform: scale(0.9) translate(-1px, -1px);
}

/* Outline / Ghost Buttons (Mapped to Secondary for consistency) */
.btn-industrial-outline {
    background-color: transparent !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--text-dark) !important;
    border-radius: 2px !important;
    padding: 0.75rem 2rem;
}

.btn-industrial-outline:hover {
    transform: translateY(-1px);
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Cards ("The Toolbox") */
.card-industrial,
.pro-card {
    background-color: #1A1A1A;
    /* Dark Panel */
    border-radius: 4px;
    border: 1px solid var(--metal-border);
    border-top: 4px solid var(--brand-yellow);
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-industrial:hover,
.pro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    /* Cyan Glow */
    border-color: var(--neon-cyan);
    border-top-color: var(--neon-cyan);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark-section);
    /* Essential for mobile Safari overscroll */
}

body {
    background-color: var(--bg-dark-section);
    /* Ensures overscroll matches footer */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ensure ALL main content sections have a background to sit on top of the dark body */
main,
section,
.bg-light-section {
    position: relative;
    /* ensure z-index layering */
}

.card-industrial h3,
.pro-card h3 {
    color: #FFFFFF;
}

.card-industrial p,
.pro-card p {
    color: #B0B0B0;
}

/* HEAVY INDUSTRIAL PLATE (Metal Card) */
.metal-card {
    position: relative;
    background-image: url('../img/diamond-plate-bg.png');
    background-size: cover;
    /* Stretch single image to fit, eliminates tiling artifacts */
    background-repeat: no-repeat;
    background-position: center center;

    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    /* Increased to match user reference/buttons */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    /* Create new stacking context */
}

/* Dark Overlay (Pseudo-element for perfect coverage) */
.metal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Covers entire area including padding */
    background: rgba(0, 0, 0, 0.7);
    /* Darker tint for better contrast */
    z-index: -1;
    /* Sits behind content */
    pointer-events: none;
}

/* Ensure content sits above overlay */
.metal-card>* {
    position: relative;
    z-index: 1;
}



.metal-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 240, 255, 0.2);
    /* Cyan Glow */
    border-color: var(--brand-yellow);
}

/* Nameplate Typography */
.metal-card h2,
.metal-card h3 {
    font-family: 'League Spartan', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: #E0E0E0;
    text-shadow: 2px 2px 0px #000000;
    border-bottom: 4px solid var(--brand-yellow);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.metal-card p,
.metal-card li,
.metal-card span {
    color: #CCCCCC;
    position: relative;
    z-index: 1;
}

.metal-card img {
    position: relative;
    z-index: 1;
}

/* Industrial Icon Wrapper (The Ring) */
.industrial-icon-wrapper {
    width: 5rem;
    /* w-20 */
    height: 5rem;
    /* h-20 */
    border-radius: 9999px;
    /* rounded-full */
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;

    /* The Ring Style */
    border: 3px solid #333333;
    /* Dark Metal Ring */
    box-shadow:
        0 0 0 1px #000000,
        /* Inner black definition */
        0 0 8px rgba(0, 240, 255, 0.4),
        /* Outer Cyan Glow */
        inset 0 0 10px rgba(0, 0, 0, 0.8);
    /* Inner depth */
    background-color: #000;
    /* Ensure dark background behind transparent icons */
}

.industrial-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.4);
    /* Make icons bigger to reduce empty space */
    clip-path: circle(36% at center);
    /* Remove ALL outer rings down to the yellow neon border */
}

/* Scale up the forestry mulching icon more to match the others */
.industrial-icon-wrapper img[src*="forestry-mulching"] {
    transform: scale(1.65);
}

/* Utility Classes */
.container-custom {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}