:root {
    --primary: #000000; --light: #D9D9D9; --gray: #8F8F8F; --accent: #BFBFBF; --bg-dark: #0a0a0a; --bg-card: #121212;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { line-height: 1.6; background: var(--bg-dark); color: var(--light); display: flex; flex-direction: column; min-height: 100vh; }

h1, h2, h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px; color: var(--light); }

.container { width: 90%; max-width: 1200px; margin: auto; }

/* Header & Nav */
header { 
    background: linear-gradient(135deg, #161616 0%, #1c1c1c 40%, #111111 40%, #111111 100%);
    padding: 8px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid #1a1a1a; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 4px 15px rgba(191, 191, 191, 0.05);
}
.nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }

/* Logo & Business Info Container */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo img { height: 140px; display: block; }
.logo-info {
    font-size: 11px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: -5px;
    margin-left: 5px;
    line-height: 1.4;
}
.logo-info span {
    color: #ffffff;
    font-weight: 600;
}

nav { display: flex; flex-grow: 1; justify-content: flex-end; gap: 70px; margin-right: 40px; align-items: center; }
nav a { 
    color: #ffffff; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease; 
}
nav a:hover { color: var(--accent); }
nav a.active { color: #ffffff; }

/* Active Underline Indicator Bar */
nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

/* Dropdown Menu Styles - Centered directly beneath 'About' */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #121212;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.8);
    border: 1px solid #1a1a1a;
    z-index: 1000;
    text-align: center;
    border-radius: 4px;
    white-space: nowrap;
}
.dropdown-content a {
    padding: 10px 15px;
    display: block;
    margin: 0 !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
}
.dropdown-content a::after {
    display: none !important;
}
.dropdown-content a:hover {
    background: var(--accent);
    color: var(--primary) !important;
}
.dropdown:hover .dropdown-content {
    display: block;
}

/* Footer Hiring Callout Style */
.footer-hiring-badge {
    margin-bottom: 6px;
}
.footer-careers-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1.2px;
    font-size: 13px; /* Slightly larger than the 11px Marshall text */
    text-transform: uppercase;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.footer-careers-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* Hamburger Menu */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1100; }
.menu-toggle span { width: 30px; height: 3px; background: var(--light); transition: 0.3s; }

/* Main Section */
.hero { height: 85vh; background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url("excavation_pic.jpg"); background-position: center; background-size: cover; display: flex; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.hero-text h2 { font-size: 55px; line-height: 1.1; margin-bottom: 20px; font-weight: 700; color: #ffffff; }
.hero-text h2 span { color: var(--accent); }
.hero-text p { font-size: 18px; color: #ffffff; margin-bottom: 30px; }
.btn { display: inline-block; padding: 15px 30px; border: 2px solid var(--accent); color: #ffffff; text-decoration: none; text-transform: uppercase; font-family: 'Oswald', sans-serif; letter-spacing: 2px; transition: 0.3s; font-weight: 600; }
.btn:hover { background: var(--accent); color: var(--primary); }

/* General Sections */
.section { padding: 80px 20px; text-align: center; }
.grid { display: grid; gap: 30px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Card Styling */
.card { 
    background: var(--bg-card); 
    padding: 40px 30px; 
    border-radius: 6px; 
    border: 1px solid #1a1a1a; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-align: left; 
    background-size: cover; 
    background-position: center; 
    display: block;          
    overflow: hidden;      
    position: relative;    
    background-clip: padding-box; 
    margin-bottom: -1px; 
    min-height: auto;
}
.card:hover { transform: translateY(-10px) scale(1.02); border-color: var(--accent); }
.detail-link { color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; display: block; margin-top: 15px; }

/* Service-specific oversized cards */
.service-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Card Image Backgrounds - Targeted Transparency */
main.main-content .service-card {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)), var(--card-bg-image);
}

.hero + .section .card {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), var(--card-bg-image);
}

/* Global variable definitions for the card images */
.lawn-card { --card-bg-image: url('images/services_page/lawn_pic.jpg'); }
.design-card { --card-bg-image: url('images/services_page/landscape_pic.jpg'); }
.excavation-card { --card-bg-image: url('images/services_page/Exc_skid.jpeg'); }
.cleanup-card { --card-bg-image: url('images/services_page/fall_pic.jpg'); }
.snow-card { --card-bg-image: url('images/services_page/snow_pic.jpg'); }
.hardscape-card { --card-bg-image: url('images/services_page/hardscape.jpeg'); }

/* About Page Specific Layout */
.about-wrapper { display: flex; flex-direction: column; align-items: center; padding: 80px 20px; max-width: 900px; margin: 0 auto; text-align: center; }
.about-text { margin-bottom: 40px; }
.about-text p { color: #ccc; margin-top: 15px; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; }
.about-page-img { width: 100%; height: 400px; object-fit: cover; border-radius: 6px; border: 1px solid #1a1a1a; display: block; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.about-page-img:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(191, 191, 191, 0.4); }

/* Service Detail Pages - Pillow/Tag Pills Centering Fix */
.service-details,
.service-pills,
.service-tags,
.tags-container,
.pill-container,
.services-offered {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    text-align: center !important;
    margin: 30px auto !important;
    width: 100% !important;
    max-width: 900px !important;
}

/* Fallback centering for any div/ul containing service offering tags */
.main-content .section div:has(> span),
.main-content .section div:has(> button),
.main-content .section div:has(> a[class*="pill"]) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-align: center;
    margin: 30px auto;
}

/* Footer */
footer { background: var(--primary); color: #ffffff; text-align: center; padding: 35px; border-top: 1px solid #1a1a1a; font-size: 13px; }

/* Responsive & Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    header .container { padding-right: 20px; }
    .logo-container { align-items: center; width: 100%; text-align: center; }
    .logo-info { margin-left: 0; margin-top: 5px; margin-bottom: 15px; }
    nav { position: absolute; top: 100%; left: 0; width: 100%; background: #1c1c1c; flex-direction: column; max-height: 0; overflow: hidden; transition: 0.4s; text-align: center; gap: 15px; }
    nav.active { max-height: 500px; padding: 20px 0; }
    nav a { display: block; margin: 10px 0 !important; }
    nav a.active::after { display: none; } 
    
    /* Mobile dropdown layout adjustments */
    .dropdown { width: 100%; display: block; }
    .dropdown-content { position: static; transform: none; display: block; background: transparent; box-shadow: none; border: none; width: 100%; text-align: center; }
    .dropdown-content a { font-size: 12px; color: var(--accent) !important; padding: 5px 0; }

    .about-images { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr !important; }
    .service-card { min-height: 300px; }

    .hero-text h2 { 
        font-size: 32px; 
        line-height: 1.2;
    }
    .hero-text p {
        font-size: 15px;
    }
}