/* Funnel Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

header {
    background: #1f2937;
    padding: 1rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 100px;
}

.phone-cta {
    background: #f59e0b;
    color: #1f2937;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.hero {
    position: relative;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero:not(:has(.video-background))::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.85) 0%, rgba(55, 65, 81, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Legacy support for pages without background image */
.hero:not(:has(.hero-background)) {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

/* Hide old hero-image class if still used */
.hero-image {
    display: none;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: #f59e0b;
    color: #1f2937;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-large {
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero must span full viewport width — override section max-width */
section.hero {
    max-width: 100%;
    margin: 0;
    padding: 6rem 2rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #1f2937;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.service-card h3 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.benefits {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.benefits li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    border-radius: 0 8px 8px 0;
}

.cta-section {
    background: #1f2937;
    color: white;
    text-align: center;
    border-radius: 12px;
    margin: 2rem auto;
    padding: 3rem 2rem;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Content cards must always be visible — override JS scroll animation */
.troubleshooting-step,
.warning-box,
.service-card,
.checklist-section,
.hub-grid,
.benefits {
    opacity: 1 !important;
    transform: none !important;
}

/* Related Services Section */
.related-services {
    background: #1f2937;
    padding: 2rem;
    text-align: center;
}

.related-services h2 {
    color: #f97316;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.related-links a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #374151;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.related-links a:hover {
    background: #f97316;
    color: white;
}

footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
}

footer a:hover {
    color: #f97316;
}

/* FAQ Section Styles */
.faq-section {
    background: #f9fafb;
    border-radius: 12px;
    margin: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.faq-item p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-section {
        margin: 1rem;
        padding: 2rem 1rem;
    }
}

/* Emergency Banner Styles */
.emergency-banner {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
    position: relative;
    z-index: 1000;
}

.emergency-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.emergency-icon {
    font-size: 1.4em;
    animation: pulse 2s infinite;
}

.emergency-text {
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

.emergency-divider {
    color: rgba(255, 255, 255, 0.5);
}

.emergency-phone {
    background: white;
    color: #dc2626;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.emergency-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .emergency-banner {
        padding: 10px 15px;
    }

    .emergency-text {
        font-size: 0.85em;
    }

    .emergency-divider {
        display: none;
    }

    .emergency-phone {
        width: 100%;
        margin-top: 5px;
        display: block;
        text-align: center;
    }
}