/* ═══════════════════════════════════════════════════════════════════════════

LOCATION PAGES STYLESHEET - FINAL FIX

Visual Hull - SEO Services Location Pages
Version: 2.4 - FIXED CTA BACKGROUND FLICKER ISSUE

CRITICAL FIX:
- CTA section background now uses !important to prevent override
- .section:nth-child(even) was conflicting with .cta-section
- Dark gradient now stays visible after page load

═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   ROOT VARIABLES
═══════════════════════════════════════════════════════════════════════════ */

:root {
    --primary-blue: #3B82F6;
    --primary-purple: #8B5CF6;
    --primary-dark: #0F172A;
    --secondary-dark: #1E293B;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-100: #F1F5F9;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: #1E293B;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION - MATCHES SERVICES.PHP EXACTLY
═══════════════════════════════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #3B82F6 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
}

.breadcrumb a {
    color: rgba(255,255,255,.9);
    text-decoration: none;
    transition: color .3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,.9);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    color: rgba(255,255,255,.9);
    font-size: 16px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.feature-item strong {
    color: #fff;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all .3s ease;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}

.btn-secondary {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px -2px rgba(0,0,0,.2);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════════════════════ */

.section {
    padding: 80px 0;
}

/* Alternate background for even sections - BUT NOT CTA */
.section:nth-child(even):not(.cta-section):not(.final-cta-section) {
    background: var(--gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59,130,246,.1) 0%, rgba(139,92,246,.1) 100%);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WHY LOCATION SECTION
═══════════════════════════════════════════════════════════════════════════ */

.why-location h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 32px;
    margin-bottom: 16px;
}

.why-location p {
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.challenges-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.challenges-list li {
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
    border-left: 4px solid var(--primary-blue);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.challenges-list li strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.solution-box {
    background: linear-gradient(135deg, rgba(59,130,246,.05) 0%, rgba(139,92,246,.05) 100%);
    padding: 32px;
    border-radius: 16px;
    border: 2px solid var(--primary-blue);
    margin-top: 32px;
}

.solution-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.solution-box ul {
    list-style: none;
    padding: 0;
}

.solution-box li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-700);
}

.solution-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEIGHBORHOODS GRID
═══════════════════════════════════════════════════════════════════════════ */

.neighborhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.neighborhood-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
    transition: all .3s ease;
    border: 2px solid transparent;
}

.neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
    border-color: var(--primary-blue);
}

.neighborhood-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.neighborhood-card p {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES OVERVIEW
═══════════════════════════════════════════════════════════════════════════ */

.service-block {
    background: #fff;
    padding: 32px;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.service-block h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.service-block p {
    color: var(--gray-700);
    margin-bottom: 16px;
}

.service-block ul {
    list-style: none;
    padding: 0;
}

.service-block li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray-700);
}

.service-block li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SUCCESS FACTORS
═══════════════════════════════════════════════════════════════════════════ */

.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.factor-card {
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
    transition: all .3s ease;
}

.factor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
}

.factor-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.factor-card p {
    color: var(--gray-700);
    margin-bottom: 16px;
}

.factor-card ul {
    list-style: none;
    padding: 0;
}

.factor-card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--gray-700);
    font-size: 14px;
}

.factor-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING SECTION
═══════════════════════════════════════════════════════════════════════════ */

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.pricing-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
    border: 2px solid transparent;
    transition: all .3s ease;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,.1);
    border-color: var(--primary-blue);
}

.pricing-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-card li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray-700);
    font-size: 15px;
}

.pricing-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
    font-size: 18px;
}

.pricing-note {
    background: linear-gradient(135deg, rgba(59,130,246,.05) 0%, rgba(139,92,246,.05) 100%);
    padding: 32px;
    border-radius: 12px;
    margin-top: 40px;
}

.pricing-note h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════════════════════════════════ */

.faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    overflow: hidden;
    transition: all .3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background: transparent;
    border: none;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all .3s ease;
}

.faq-question:hover {
    color: var(--primary-blue);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 24px;
    color: var(--primary-blue);
    transition: transform .3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION - FIXED BACKGROUND FLICKER ISSUE ✅
═══════════════════════════════════════════════════════════════════════════ */

.cta-section,
.final-cta-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #3B82F6 100%) !important;
    color: #fff;
    padding: 80px 0;
}

.cta-section .section-tag,
.final-cta-section .section-tag {
    background: rgba(255,255,255,.2) !important;
    color: #fff !important;
}

.cta-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff !important;
    margin-bottom: 24px;
    text-align: center;
}

.cta-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,.95) !important;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.cta-subtitle strong {
    color: #fff;
}

.cta-text {
    color: rgba(255,255,255,.9) !important;
    text-align: center;
    margin-bottom: 32px;
    font-size: 18px;
}

.audit-benefits {
    max-width: 600px;
    margin: 0 auto 32px;
    background: rgba(255,255,255,.15);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.2);
}

.audit-benefits h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 16px;
    text-align: center;
}

.audit-benefits ol {
    color: rgba(255,255,255,.95);
    padding-left: 20px;
}

.audit-benefits li {
    margin-bottom: 10px;
    color: rgba(255,255,255,.95);
}

.service-area-note {
    max-width: 600px;
    margin: 0 auto 32px;
}

.service-area-note h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 16px;
    text-align: center;
}

.service-area-note p {
    color: rgba(255,255,255,.9);
    text-align: center;
    margin-bottom: 12px;
}

.service-area-note ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.service-area-note li {
    margin-bottom: 8px;
}

.service-area-note a {
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
}

.service-area-note a:hover {
    color: #60A5FA;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Buttons have proper contrast on dark background */
.cta-section .btn-primary,
.final-cta-section .btn-primary {
    background: #fff !important;
    color: #0F172A !important;
    font-weight: 700;
}

.cta-section .btn-primary:hover,
.final-cta-section .btn-primary:hover {
    background: #F1F5F9 !important;
    transform: translateY(-2px);
}

.cta-section .btn-secondary,
.final-cta-section .btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.cta-section .btn-secondary:hover,
.final-cta-section .btn-secondary:hover {
    background: rgba(255,255,255,.1) !important;
    border-color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
    }

    .neighborhood-grid {
        grid-template-columns: 1fr;
    }

    .factors-grid {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-title {
        font-size: 32px;
    }
}
