:root {
    --primary: #0077b6; /* Professional Blue */
    --accent: #ffb703;  /* Safety/Caution Yellow */
    --secondary: #023e8a;
    --dark: #121212;
    --light: #f8f9fa;
    --gray: #333;
    --text-dim: #999;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: white; color: var(--dark); line-height: 1.6; }

/* Navigation */
nav { background: #1a1a1a; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; }
.logo { font-size: 1.5rem; font-weight: 800; color: white; text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: #ccc; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* Hero Sections */
.hero { padding: 8rem 5%; background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1605152276897-4f618f831968?auto=format\&fit=crop\&q=80\&w=2000'); background-size: cover; background-position: center; color: white; text-align: center; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1rem; }
.hero span { color: var(--accent); }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 2rem; color: #ddd; }

/* Global Components */
.section { padding: 5rem 10%; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.btn { display: inline-block; padding: 1rem 2rem; background: var(--primary); color: white; text-decoration: none; font-weight: bold; border-radius: 4px; transition: 0.3s; border: none; cursor: pointer; }
.btn:hover { background: var(--secondary); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--dark); }

/* Cards */
.card { padding: 2.5rem; border: 1px solid #eee; border-radius: 8px; transition: 0.3s; }
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: var(--primary); }
.card h3 { margin-bottom: 1rem; color: var(--secondary); }

/* Footer */
footer { background: #111; color: #888; padding: 4rem 10%; border-top: 5px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; }
.footer-bottom { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #222; text-align: center; font-size: 0.8rem; }

/* Multi-page specific styles */
.dedication-box { background: #f0f7ff; padding: 3rem; border-left: 10px solid var(--primary); margin: 3rem 0; }
.service-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }

@media (max-width: 768px) {
    .logo { font-size: 1.2rem; white-space: nowrap; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
}

/* Accordion FAQ */
.faq-container { max-width: 800px; margin: 30px auto; text-align: left; }
.faq-item { background-color: #ffffff; border: 1px solid #dddddd; margin-bottom: 12px; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { border-color: #0077b6; }
.faq-question { padding: 1.2rem 1.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: #023e8a !important; background-color: #f9f9f9; font-size: 1.1rem; }
.faq-question:after { content: '+'; font-size: 1.5rem; color: #0077b6; transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; background-color: #ffffff; }
.faq-answer p { padding: 1rem 1.5rem 1.5rem; color: #333333 !important; line-height: 1.6; margin: 0; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-question { background-color: #f0f7ff; }
.faq-item.active .faq-question:after { transform: rotate(45deg); }
.faq-item.active { box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-color: #0077b6; }

/* Mobile Navigation & Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.menu-toggle span { width: 25px; height: 3px; background-color: white; border-radius: 2px; transition: 0.3s; }

@media (max-width: 768px) {
    .logo { font-size: 1.2rem; white-space: nowrap; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1a1a1a;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-top: 1px solid #333;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: flex; }
    
    /* Stack Hero Buttons */
    .hero .cta-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero .btn {
        margin-left: 0 !important;
        width: 100%;
        max-width: 300px;
    }
    .hero h1 { font-size: 2.2rem; }
}

/* Comprehensive Mobile Responsiveness Fixes */
@media (max-width: 768px) {
    .section { padding: 3rem 5%; } /* Reduce padding for more horizontal space */
    
    /* Force all grids to stack on mobile */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Ensure images stack and take full width */
    .grid div img {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 1rem;
    }
    
    /* Fix Footer on Mobile */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    /* Ensure Hero text doesn't overflow */
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
}

/* Sticky Mobile Call Button */
.sticky-call-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0077b6;
    color: white;
    text-align: center;
    padding: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .sticky-call-btn { display: block; }
    body { padding-bottom: 60px; } /* Prevent footer overlap */
}
