:root {
    --brand-green: #24562B;
    --brand-red:   #EA0404;
    --brand-yellow:#FFFF00;
    --text-dark:   #332B2B;
    --text-gray:   #555555;
    --bg-light:    #f9f9f9;
    --white:       #ffffff;
    --max-width:   1200px;
}

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

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

body {
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background: url('/assets/images/hero-office-clean.jpg') center/cover fixed no-repeat;
    line-height: 1.6;
}

/* Fix: Prevent background scrolling when menu is open */
body.nav-open { overflow: hidden; }

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

p {
    color: #2f2f2f;
    line-height: 1.7;
    margin-bottom: 18px;
    letter-spacing: 0.01em;
    font-weight: 400;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--white);
    border-bottom: 3px solid var(--brand-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img { height: 60px; width: auto; }

/* FIX: This container keeps the phone and burger together on the right */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-menu { display: flex; gap: 25px; align-items: center; justify-content: center; flex: 1; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #ddd;
    background: var(--white);
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    align-items: flex-start;
    z-index: 1300;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: 0.3s;
}

/* FIX: Visual feedback when the hamburger is clicked */
body.nav-open .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.hamburger-cta {
    font-weight: 800;
    color: var(--brand-red);
    font-size: 12px;
    padding-top: 4px;
}

.nav-link {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-dark);
    text-transform: uppercase;
    padding: 10px 0;
}

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

/* Dropdowns */
.dropdown-item { position: relative; }
.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    background-color: var(--brand-green);
    min-width: 240px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-top: 4px solid var(--brand-yellow);
    z-index: 1100;
    border-radius: 0 0 4px 4px;
}

.dropdown-item:hover > .dropdown-menu,
.dropdown-item:focus-within > .dropdown-menu {
    display: block !important;
}
.dropdown-item.open > .dropdown-menu {
    display: block !important;
}

.dropdown-menu li a {
    display: block; padding: 12px 20px;
    font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.12);
    color: var(--white); text-transform: none;
}
.dropdown-menu li a:hover { background-color: rgba(255,255,255,0.12); color: var(--white); padding-left: 25px; }

/* Mega menu for service areas */
.dropdown-menu.mega {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    left: 0;
    right: 0;
    transform: none;
    padding: 14px 18px;
    gap: 8px 18px;
    background: var(--brand-green);
    border: 1px solid var(--brand-yellow);
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    max-height: 420px;
    overflow-y: auto;
}
.dropdown-menu.mega li {
    flex: 0 1 200px;
}
.dropdown-menu.mega li a {
    border-bottom: none;
    padding: 10px 10px;
    color: var(--white);
    font-weight: 600;
    display: block;
}
.dropdown-menu.mega li a:hover {
    padding-left: 12px;
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

/* Buttons */
.btn-phone {
    background-color: var(--brand-yellow);
    color: var(--brand-red); font-weight: 800;
    padding: 10px 24px;
    border-radius: 50px; font-size: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    align-self: center;
}
.header-cta {
    display: inline-block;
    margin-left: auto;
}
.btn-phone:hover { transform: translateY(-1px); box-shadow: 0 6px 8px rgba(0,0,0,0.15); background-color: #ffea00; }

/* Hero Section */
.hero-wrapper {
    background-color: transparent;
    padding: 50px 0;
}

.hero-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 30px;
    align-items: center;
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    box-shadow: none;
    min-height: 500px;
}

.hero-sidebar {
    background-color: #f0f0f0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
    border-right: 1px solid #e5e5e5;
}

.sidebar-btn {
    background-color: var(--brand-red);
    color: var(--white);
    padding: 16px 14px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    text-align: center;
    border-radius: 10px;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 16px rgba(0,0,0,0.18);
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-btn.est { background-color: var(--brand-green); }
.sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 22px rgba(0,0,0,0.22);
}

.hero-content {
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.16);
    backdrop-filter: blur(4px);
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    color: var(--brand-green);
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.tagline {
    color: var(--brand-red);
    font-weight: 700;
    font-size: 20px;
    font-style: italic;
    margin: 10px auto 22px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 0, 0.15);
    text-shadow: 0 1px 2px rgba(0,0,0,0.08);
    display: inline-block;
}

.hero-desc { color: var(--text-gray); font-size: 16px; margin-bottom: 30px; }

.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

.btn-hero {
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}
.btn-green { background: var(--brand-green); color: white; }
.btn-green:hover { background: #1a4220; }
.btn-outline { border: 2px solid var(--brand-green); color: var(--brand-green); }
.btn-outline:hover { background: var(--brand-green); color: white; }

.hero-service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 18px;
    margin: 10px 0 28px;
    text-align: left;
}
.hero-service-list li {
    color: var(--brand-red);
    font-weight: 700;
    padding-left: 18px;
    position: relative;
    text-shadow: 0 1px 1px rgba(0,0,0,0.06);
}
.hero-service-list li::before {
    content: '•';
    color: var(--brand-red);
    position: absolute;
    left: 0;
    top: 0;
}

/* Info Sections */
.info-section {
    padding: 60px 0;
    background: var(--white);
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: center;
}
.info-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.info-text h2 {
    color: var(--brand-green);
    font-size: 30px;
    margin-bottom: 16px;
    text-align: left;
}
.info-text p {
    color: #2f2f2f;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 14px;
    text-align: left;
}

.services-section { padding: 60px 0; background-color: var(--white); }
.section-title { text-align: center; color: var(--brand-green); font-size: 32px; margin-bottom: 40px; text-transform: uppercase; font-weight: 800; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.service-card { border: 1px solid #eee; background: var(--bg-light); padding: 20px; border-radius: 8px; text-align: center; font-weight: 600; color: var(--text-dark); transition: 0.3s; }
.service-card:hover { background: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--brand-green); color: var(--brand-green); transform: translateY(-3px); }

.section-padding { padding: 60px 0; }
.bg-gray { background-color: #f4f4f4; border-top: 1px solid #eaeaea; }
.text-block { max-width: 900px; margin: 0 auto; text-align: center; font-size: 18px; color: #444; }
.text-block p { margin-bottom: 22px; color: #2f2f2f; text-align: center; }

/* Videos & Testimonials */
.videos-section { padding: 60px 0; background: var(--white); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px;}
.video-frame { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); background: #000; }
.video-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { background: var(--brand-green); padding: 40px 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.12); text-align: center; border: 1px solid rgba(0,0,0,0.06); }
.stars { color: var(--brand-yellow); font-size: 24px; margin-bottom: 15px; letter-spacing: 3px; }
.review-text { font-style: italic; font-size: 16px; margin-bottom: 20px; line-height: 1.8; color: #f5f5f5; }
.review-author { font-weight: 800; color: #ffffff; text-transform: uppercase; font-size: 14px; }

/* Service Areas & Footer */
.service-areas { background: #eee; padding: 40px 0; text-align: center; border-top: 1px solid #ddd; }
.service-areas a { color: #0056b3; font-weight: 700; margin: 0 10px; }

footer { background-color: var(--brand-green); color: var(--white); padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.footer-col h3 { color: var(--brand-yellow); margin-bottom: 25px; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; }
.footer-col p, .footer-col a { color: #e0e0e0; margin-bottom: 12px; display: block; font-size: 15px; }
.footer-col a:hover { color: var(--brand-yellow); }
.copyright { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #ccc; }

/* FIXED RESPONSIVE MEDIA QUERIES */
@media (max-width: 900px) {
    .hero-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .hero-sidebar { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid #ddd; padding: 20px; }
    .sidebar-btn { flex: 1; min-width: 100px; font-size: 12px; padding: 12px 5px; }
    .hero-content { padding: 40px 20px; text-align: center; }
    .hero-actions { justify-content: center; }
    
    .hamburger { display: flex; }
    .header-cta {
        width: 100%;
        text-align: center;
        margin-top: 8px;
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        inset: 0;
        background: var(--white); /* Changed to solid white for better visibility */
        flex-direction: column;
        padding: 120px 24px 24px;
        gap: 16px;
        transform: translateX(100%); /* Changed to slide from the right */
        transition: transform 0.3s ease-in-out;
        z-index: 1200;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    body.nav-open .nav-menu { transform: translateX(0); }
    
    .dropdown-menu { position: static; display: none !important; box-shadow: none; border: none; }
    .dropdown-item.open .dropdown-menu { display: block !important; }

    .dropdown-menu.mega { flex-wrap: wrap; width: 100%; gap: 8px 12px; }
    .dropdown-menu.mega li { flex: 0 1 48%; }
    .btn-phone.header-cta { width: 100%; text-align: center; }
}

@media (max-width: 768px) {
    /* FIX: This keeps everything on one row instead of squeezing into a column */
    .header-inner { 
        flex-direction: row; 
        justify-content: space-between;
        height: auto; 
        padding: 15px 0; 
        gap: 0; 
    }
    .logo img { height: 50px; }
    
    /* Ensure the burger and phone stay visible on the same row */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}
