/*
Theme Name:   Edge Child - Extreme Pest & Termite (ULTRA-FIXED v3.0)
Theme URI:    https://www.omgitsaspider.com
Description:  ULTRA-FIXED v3.0 - Complete CSS overhaul with FULL CONTENT AREA SUPPORT, sidebar removal, typography fixes, proper z-index hierarchy, responsive content layout, and complete color contrast fixes. All issues from CSS diagnosis report resolved.
Author:       EXTREME PEST & TERMITE LLC
Author URI:   https://www.omgitsaspider.com
Template:     edge
Version:      3.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  edge-child-ultra-fixed
Tags:         pest-control, local-business, responsive, mobile-optimized, full-width, no-sidebar
*/

/* ==========================================================================
   TABLE OF CONTENTS
   1. CSS Variables & Color System
   2. Emergency Service Banner
   3. Header Styling - NAP & Trust Badges
   4. Sticky Header
   5. CONTENT AREA LAYOUT (NEW - CRITICAL FIX)
   6. SIDEBAR REMOVAL (NEW - USER REQUEST)
   7. CONTENT TYPOGRAPHY (NEW - CRITICAL FIX)
   8. RESPONSIVE CONTENT (NEW - CRITICAL FIX)
   9. Z-INDEX HIERARCHY (FIXED)
   10. Footer Styling - Enhanced NAP & Service Areas
   11. Buttons & CTAs
   12. Responsive Design (Mobile-First)
   13. Accessibility & Utilities
   14. Print Styles
   ========================================================================== */

/* ==========================================================================
   1. CSS Variables & Color System
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-primary: #ff6b00;
    --color-primary-dark: #e55f00;
    --color-primary-light: #ff8533;

    /* Text Colors */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-heading: #1a1a1a;
    --color-white: #ffffff;

    /* Background Colors */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8f8f8;
    --color-bg-dark: #1a1a1a;
    --color-bg-footer: #1a1a1a;

    /* Border Colors */
    --color-border: #e0e0e0;
    --color-border-dark: #333333;

    /* Layout Measurements */
    --max-width-content: 1200px;
    --max-width-text: 800px;
    --spacing-unit: 20px;
    --spacing-small: 10px;
    --spacing-large: 40px;

    /* Typography */
    --font-size-base: 16px;
    --font-size-small: 14px;
    --font-size-large: 18px;
    --line-height-base: 1.7;
    --line-height-heading: 1.3;
}

/* ==========================================================================
   2. Emergency Service Banner
   ========================================================================== */

.emergency-service-banner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 10px 0;
    text-align: center;
    font-weight: 700;
    font-size: var(--font-size-small);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 100;
}

.emergency-service-banner i {
    margin-right: 8px;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==========================================================================
   3. Header Styling - NAP & Trust Badges
   ========================================================================== */

/* Top Bar with NAP Display */
.top-bar-nap {
    background: var(--color-bg-dark);
    color: var(--color-white);
    padding: 15px 0;
    font-size: var(--font-size-small);
    border-bottom: 3px solid var(--color-primary);
    position: relative;
    z-index: 101;
}

.top-bar-nap .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.nap-info {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    flex: 1;
}

.nap-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nap-item i {
    color: var(--color-primary);
    font-size: 16px;
    min-width: 18px;
}

.nap-item a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nap-item a:hover {
    color: var(--color-primary);
}

/* Header CTA Wrapper */
.header-cta {
    flex-shrink: 0;
}

/* Trust Badges - Horizontal Layout */
.trust-badges {
    background: var(--color-bg-secondary);
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 102;
}

.trust-badges .container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text);
    font-weight: 600;
    min-width: 0;
    flex: 0 1 auto;
}

.trust-badge i {
    color: var(--color-primary);
    font-size: 24px;
}

.badge-icon {
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
}

.badge-icon i {
    font-size: 20px;
    color: var(--color-white);
}

/* ==========================================================================
   4. Sticky Header
   ========================================================================== */

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.sticky-header.show {
    transform: translateY(0);
}

.sticky-header .container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.sticky-header .sticky-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-header .sticky-logo img,
.sticky-header .logo-small {
    height: 50px;
    width: auto;
}

.sticky-header .sticky-logo a {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-heading);
    text-decoration: none;
}

.sticky-header .sticky-phone {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sticky-phone-label {
    font-weight: 600;
    color: var(--color-text);
    display: none;
}

/* ==========================================================================
   5. CONTENT AREA LAYOUT (NEW - CRITICAL FIX)
   ========================================================================== */

/* Main Content Wrapper */
.site-content,
#content,
.content-wrapper,
.main-wrap {
    width: 100%;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: var(--spacing-large) var(--spacing-unit);
    background: var(--color-bg-primary);
    position: relative;
    z-index: 1;
    min-height: 400px;
}

/* Primary Content Area */
.content-area,
#primary,
.main-content,
.site-main,
.primary-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block;
}

/* Individual Post/Page Container */
article.page,
article.post,
article.hentry,
.entry {
    width: 100%;
    max-width: var(--max-width-text);
    margin: 0 auto;
    padding: var(--spacing-unit) 0;
    background: var(--color-white);
}

/* Entry Content Area */
.entry-content,
.page-content,
.post-content {
    color: var(--color-text);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin: 0 auto;
    width: 100%;
}

/* Remove any grid/flex constraints that might limit content */
.has-sidebar .content-area,
.has-sidebar #primary,
.site-content.has-sidebar {
    grid-column: 1 / -1 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
}

/* Ensure content doesn't hide behind fixed elements */
.sticky-header.show ~ #content,
.sticky-header.show ~ .site-content {
    padding-top: 90px;
}

/* Add bottom padding for back-to-top button */
.site-content {
    padding-bottom: 100px;
}

/* ==========================================================================
   6. SIDEBAR REMOVAL (NEW - USER REQUEST)
   ========================================================================== */

/*
 * COMPLETE SIDEBAR REMOVAL FIX
 * User requested: "most of the stuff in there is for seo purposes"
 * Solution: Hide visually but keep in HTML for SEO
 */

/* Hide ALL sidebar variations (preserves HTML for SEO) */
.sidebar,
#sidebar,
.widget-area,
#secondary,
.secondary-sidebar,
#primary-sidebar,
aside.sidebar,
.site-sidebar,
.content-sidebar,
.edge-sidebar,
.secondary-content,
.widget-container,
#sidebar-primary,
#sidebar-secondary,
.blog-sidebar,
.page-sidebar {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

/* Print: Hide sidebars completely */
@media print {
    .sidebar,
    #sidebar,
    .widget-area,
    aside.sidebar {
        display: none !important;
    }
}

/* Screen readers can still access sidebar content */
.sidebar[aria-hidden="true"],
#sidebar[aria-hidden="true"] {
    speak: normal;
}

/* ==========================================================================
   7. CONTENT TYPOGRAPHY (NEW - CRITICAL FIX)
   ========================================================================== */

/* Base Typography Reset for Content */
.entry-content,
.page-content,
.post-content,
.site-content {
    color: var(--color-text) !important;
}

/* Page/Post Titles */
.entry-title,
.page-title,
h1.entry-title,
.post-title {
    font-size: 36px;
    color: var(--color-heading) !important;
    margin-bottom: 20px;
    line-height: var(--line-height-heading);
    font-weight: 700;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 15px;
}

/* Content Headings - Full Hierarchy */
.entry-content h1,
.page-content h1,
.post-content h1 {
    font-size: 32px;
    color: var(--color-heading) !important;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: var(--line-height-heading);
    font-weight: 700;
}

.entry-content h2,
.page-content h2,
.post-content h2 {
    font-size: 28px;
    color: var(--color-heading) !important;
    margin-top: 35px;
    margin-bottom: 18px;
    line-height: var(--line-height-heading);
    font-weight: 700;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

.entry-content h3,
.page-content h3,
.post-content h3 {
    font-size: 24px;
    color: var(--color-heading) !important;
    margin-top: 30px;
    margin-bottom: 16px;
    line-height: var(--line-height-heading);
    font-weight: 600;
}

.entry-content h4,
.page-content h4,
.post-content h4 {
    font-size: 20px;
    color: var(--color-heading) !important;
    margin-top: 25px;
    margin-bottom: 14px;
    line-height: var(--line-height-heading);
    font-weight: 600;
}

.entry-content h5,
.page-content h5,
.post-content h5 {
    font-size: 18px;
    color: var(--color-heading) !important;
    margin-top: 20px;
    margin-bottom: 12px;
    line-height: var(--line-height-heading);
    font-weight: 600;
}

.entry-content h6,
.page-content h6,
.post-content h6 {
    font-size: 16px;
    color: var(--color-heading) !important;
    margin-top: 18px;
    margin-bottom: 10px;
    line-height: var(--line-height-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* First heading - no top margin */
.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child {
    margin-top: 0;
}

/* Paragraphs */
.entry-content p,
.page-content p,
.post-content p {
    margin-bottom: 1.5em;
    line-height: var(--line-height-base);
    color: var(--color-text) !important;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* Links in Content */
.entry-content a,
.page-content a,
.post-content a,
.site-content a {
    color: var(--color-primary) !important;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover,
.page-content a:hover,
.post-content a:hover {
    color: var(--color-primary-dark) !important;
}

.entry-content a:visited {
    color: var(--color-primary-dark) !important;
}

/* Lists */
.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
    color: var(--color-text) !important;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5em;
    line-height: var(--line-height-base);
    color: var(--color-text) !important;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Blockquotes */
.entry-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--color-text-light) !important;
    background: var(--color-bg-secondary);
    padding: 20px;
    border-radius: 5px;
}

.entry-content blockquote p {
    color: var(--color-text-light) !important;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: var(--font-size-small);
    color: var(--color-text) !important;
    font-style: normal;
}

/* Code and Preformatted Text */
.entry-content code,
.page-content code {
    background: var(--color-bg-secondary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--color-heading) !important;
}

.entry-content pre {
    background: var(--color-bg-secondary);
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5em 0;
    border-left: 4px solid var(--color-primary);
}

.entry-content pre code {
    background: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
}

/* Horizontal Rules */
.entry-content hr {
    border: none;
    border-top: 2px solid var(--color-border);
    margin: 2em 0;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: var(--color-white);
}

.entry-content table th,
.entry-content table td {
    padding: 12px;
    border: 1px solid var(--color-border);
    text-align: left;
    color: var(--color-text) !important;
}

.entry-content table th {
    background: var(--color-bg-secondary);
    font-weight: 700;
    color: var(--color-heading) !important;
}

.entry-content table tr:nth-child(even) {
    background: var(--color-bg-secondary);
}

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em 0;
    border-radius: 5px;
}

.entry-content .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.entry-content .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.entry-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Image Captions */
.entry-content .wp-caption {
    max-width: 100%;
    margin: 1.5em 0;
}

.entry-content .wp-caption-text {
    font-size: var(--font-size-small);
    color: var(--color-text-light) !important;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
}

/* Definition Lists */
.entry-content dl {
    margin: 1.5em 0;
}

.entry-content dt {
    font-weight: 700;
    color: var(--color-heading) !important;
    margin-bottom: 0.5em;
}

.entry-content dd {
    margin-left: 2em;
    margin-bottom: 1em;
    color: var(--color-text) !important;
}

/* Emphasis and Strong */
.entry-content strong,
.entry-content b {
    font-weight: 700;
    color: var(--color-heading) !important;
}

.entry-content em,
.entry-content i {
    font-style: italic;
}

/* Small Text */
.entry-content small {
    font-size: 85%;
    color: var(--color-text-light) !important;
}

/* Mark/Highlight */
.entry-content mark {
    background: #fff3cd;
    padding: 2px 5px;
    border-radius: 3px;
}

/* ==========================================================================
   8. RESPONSIVE CONTENT (NEW - CRITICAL FIX)
   ========================================================================== */

/* Content Responsive Breakpoints */

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .site-content,
    #content {
        max-width: 1400px;
    }
}

/* Standard Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .site-content,
    #content {
        max-width: var(--max-width-content);
    }
}

/* Laptop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .site-content,
    #content {
        padding: 35px 25px 90px;
    }

    article.page,
    article.post {
        max-width: 700px;
    }

    .entry-title,
    .page-title {
        font-size: 32px;
    }

    .entry-content h1 { font-size: 28px; }
    .entry-content h2 { font-size: 24px; }
    .entry-content h3 { font-size: 20px; }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .site-content,
    #content {
        padding: 30px 20px 80px;
    }

    article.page,
    article.post {
        max-width: 100%;
        padding: 15px;
    }

    .entry-title,
    .page-title {
        font-size: 28px;
        padding-bottom: 12px;
    }

    .entry-content h1 { font-size: 26px; margin-top: 30px; }
    .entry-content h2 { font-size: 22px; margin-top: 28px; }
    .entry-content h3 { font-size: 18px; margin-top: 25px; }
    .entry-content h4 { font-size: 16px; margin-top: 20px; }

    .entry-content table {
        font-size: var(--font-size-small);
    }
}

/* Mobile (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .site-content,
    #content {
        padding: 25px 15px 70px;
    }

    article.page,
    article.post {
        max-width: 100%;
        padding: 10px;
    }

    .entry-title,
    .page-title {
        font-size: 24px;
        padding-bottom: 10px;
        border-bottom-width: 2px;
    }

    .entry-content h1 { font-size: 22px; margin-top: 25px; }
    .entry-content h2 { font-size: 20px; margin-top: 22px; }
    .entry-content h3 { font-size: 18px; margin-top: 20px; }
    .entry-content h4 { font-size: 16px; margin-top: 18px; }
    .entry-content h5 { font-size: 15px; }
    .entry-content h6 { font-size: 14px; }

    .entry-content ul,
    .entry-content ol {
        padding-left: 1.5em;
    }

    .entry-content table {
        font-size: 12px;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 8px;
    }

    .entry-content blockquote {
        padding: 15px;
        margin: 1em 0;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .site-content,
    #content {
        padding: 20px 10px 60px;
    }

    article.page,
    article.post {
        padding: 5px;
    }

    .entry-title,
    .page-title {
        font-size: 20px;
        padding-bottom: 8px;
        border-bottom-width: 2px;
        margin-bottom: 15px;
    }

    .entry-content {
        font-size: 15px;
    }

    .entry-content h1 { font-size: 20px; margin-top: 20px; margin-bottom: 15px; }
    .entry-content h2 { font-size: 18px; margin-top: 18px; margin-bottom: 12px; padding-left: 12px; }
    .entry-content h3 { font-size: 16px; margin-top: 16px; margin-bottom: 10px; }
    .entry-content h4 { font-size: 15px; margin-top: 14px; margin-bottom: 8px; }
    .entry-content h5 { font-size: 14px; margin-top: 12px; }
    .entry-content h6 { font-size: 13px; margin-top: 10px; }

    .entry-content p {
        margin-bottom: 1.2em;
    }

    .entry-content ul,
    .entry-content ol {
        padding-left: 1.3em;
        font-size: 14px;
    }

    .entry-content blockquote {
        padding: 12px;
        margin: 0.8em 0;
        font-size: 14px;
    }

    .entry-content table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 6px;
    }

    .entry-content pre {
        padding: 15px;
        font-size: 12px;
    }

    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        margin: 1em 0;
    }
}

/* ==========================================================================
   9. Z-INDEX HIERARCHY (FIXED)
   ========================================================================== */

/*
 * Z-Index Management - Proper Stacking Context
 * Prevents overlapping issues identified in diagnosis
 */

/* Level 1: Base Content Layer */
.site-content,
#content,
.entry-content {
    position: relative;
    z-index: 1;
}

/* Level 2: Header Elements */
.emergency-service-banner {
    position: relative;
    z-index: 100;
}

.top-bar-nap {
    position: relative;
    z-index: 101;
}

.trust-badges {
    position: relative;
    z-index: 102;
}

.site-header {
    position: relative;
    z-index: 103;
}

/* Level 3: Fixed/Sticky Elements */
.back-to-top {
    position: fixed;
    z-index: 999;
}

.sticky-header {
    position: fixed;
    z-index: 1000;
}

/* Level 4: Overlays and Modals */
.modal,
.popup,
.overlay {
    z-index: 2000;
}

/* Level 5: Accessibility Elements (Highest) */
.skip-link:focus {
    z-index: 10000;
}

/* ==========================================================================
   10. Footer Styling - Enhanced NAP & Service Areas
   ========================================================================== */

.site-footer {
    background: var(--color-bg-footer);
    color: var(--color-white);
    padding-top: 60px;
}

.footer-main {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border-dark);
}

.footer-main .container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Footer Widgets Grid */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    color: var(--color-primary);
    font-size: var(--font-size-large);
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget h3 i {
    margin-right: 8px;
}

/* Footer NAP Styling */
.footer-nap {
    background: #222;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.footer-nap-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-nap-item:last-child {
    margin-bottom: 0;
}

.footer-nap-item i {
    color: var(--color-primary);
    font-size: 18px;
    margin-top: 3px;
    min-width: 20px;
    flex-shrink: 0;
}

.footer-nap-item a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
}

.footer-nap-item a:hover {
    color: var(--color-primary);
}

.footer-nap-item strong {
    color: var(--color-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 3px;
}

/* Service Areas Grid - Clean Columns */
.service-areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 15px;
    margin-bottom: 10px;
}

.service-area-item {
    color: #ccc;
    font-size: var(--font-size-small);
    padding: 5px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-area-item i {
    flex-shrink: 0;
}

.service-area-item a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-area-item a:hover {
    color: var(--color-primary);
}

/* Quick Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-links a:before {
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--color-primary);
}

/* Business Hours */
.business-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.business-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border-dark);
}

.business-hours-list li:last-child {
    border-bottom: none;
}

.hours-day {
    color: #ccc;
}

.hours-time {
    color: var(--color-white);
    font-weight: 600;
}

.emergency-hours {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
    font-weight: 700;
}

/* Footer CTA */
.footer-cta {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 10px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: #999;
    font-size: var(--font-size-small);
}

.footer-bottom .container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

.footer-bottom a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Ensure proper typography hierarchy */
.site-footer h3 {
    line-height: var(--line-height-heading);
}

.site-footer h4 {
    color: var(--color-primary);
    font-size: var(--font-size-small);
    margin: 15px 0 10px;
    font-weight: 600;
}

/* Color contrast improvements for accessibility */
.footer-widget {
    color: #e0e0e0;
    line-height: 1.6;
}

/* ==========================================================================
   11. Buttons & CTAs
   ========================================================================== */

/* Click-to-Call Button - Prominent Styling */
.call-button {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-large);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.call-button:hover,
.call-button:focus {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    color: var(--color-white);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.call-button i {
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Footer CTA Button Override */
.footer-cta .call-button {
    background: var(--color-white);
    color: var(--color-primary);
}

.footer-cta .call-button:hover,
.footer-cta .call-button:focus {
    background: #f0f0f0;
    color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

.back-to-top:hover,
.back-to-top:focus {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   12. Responsive Design (Mobile-First)
   ========================================================================== */

/* Small Phones (320px - 480px) */
@media (max-width: 480px) {
    .emergency-service-banner {
        font-size: 12px;
        padding: 8px 10px;
    }

    .top-bar-nap {
        padding: 12px 0;
    }

    .top-bar-nap .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 0 15px;
    }

    .nap-info {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .nap-item {
        justify-content: center;
        font-size: 13px;
    }

    .call-button {
        font-size: 16px;
        padding: 12px 24px;
        width: 100%;
        justify-content: center;
    }

    .trust-badges {
        padding: 15px 0;
    }

    .trust-badges .container {
        gap: 15px;
        padding: 0 15px;
    }

    .trust-badge {
        font-size: 11px;
        gap: 8px;
        flex: 1 1 45%;
        min-width: 120px;
    }

    .badge-icon {
        width: 38px;
        height: 38px;
    }

    .badge-icon i {
        font-size: 18px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-areas-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sticky-header .sticky-phone {
        gap: 10px;
    }

    .sticky-header .call-button {
        font-size: 14px;
        padding: 10px 20px;
    }

    .footer-bottom > div {
        flex-direction: column;
        gap: 15px;
    }
}

/* Tablets and Small Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .top-bar-nap .container {
        flex-direction: column;
        gap: 15px;
    }

    .nap-info {
        justify-content: center;
        gap: 15px;
    }

    .header-cta {
        width: 100%;
        text-align: center;
    }

    .call-button {
        font-size: 17px;
        padding: 13px 28px;
    }

    .trust-badges .container {
        gap: 20px;
    }

    .trust-badge {
        font-size: 12px;
        flex: 0 1 auto;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .service-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sticky-phone-label {
        display: inline;
        font-size: 14px;
    }
}

/* Medium Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .top-bar-nap .container {
        gap: 15px;
    }

    .nap-info {
        gap: 20px;
    }

    .trust-badges .container {
        gap: 25px;
    }

    .trust-badge {
        font-size: 12px;
    }

    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .call-button {
        font-size: 17px;
        padding: 13px 28px;
    }

    .sticky-phone-label {
        display: inline;
    }
}

/* Large Tablets and Small Desktops (1025px - 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
    .trust-badges .container {
        gap: 28px;
    }

    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }

    .sticky-phone-label {
        display: inline;
    }
}

/* Desktop and Larger (1201px+) */
@media (min-width: 1201px) {
    .trust-badges .container {
        gap: 35px;
    }

    .footer-widgets {
        grid-template-columns: repeat(4, 1fr);
    }

    .sticky-phone-label {
        display: inline;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .sticky-header {
        padding: 5px 0;
    }

    .sticky-header .sticky-logo img,
    .sticky-header .logo-small {
        height: 40px;
    }

    .call-button {
        padding: 10px 24px;
        font-size: 16px;
    }
}

/* ==========================================================================
   13. Accessibility & Utilities
   ========================================================================== */

/* Screen Reader Only Content */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 10px 20px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    top: 0;
}

/* Focus Visible Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Schema-Enhanced Content */
.schema-enhanced {
    position: relative;
}

/* Container Width Control */
.container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Clearfix */
.clearfix::after,
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   14. Print Styles
   ========================================================================== */

@media print {
    /* Hide non-essential elements */
    .emergency-service-banner,
    .top-bar-nap,
    .trust-badges,
    .sticky-header,
    .call-button,
    .back-to-top,
    .footer-cta,
    .sidebar,
    #sidebar {
        display: none !important;
    }

    /* Ensure content is visible */
    .site-content,
    .entry-content {
        color: #000 !important;
        background: #fff !important;
        padding: 0 !important;
        max-width: 100% !important;
    }

    .entry-content h1,
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
        color: #000 !important;
        page-break-after: avoid;
    }

    .entry-content p,
    .entry-content li {
        color: #000 !important;
    }

    .entry-content a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    /* Ensure footer NAP is visible and readable */
    .footer-nap {
        border: 2px solid #000;
        background: #fff;
        color: #000;
        page-break-inside: avoid;
    }

    .footer-nap-item,
    .footer-nap-item a {
        color: #000 !important;
    }

    .footer-nap-item i {
        color: #666 !important;
    }

    /* Optimize for print */
    .site-footer {
        background: #fff;
        color: #000;
    }

    .footer-widget h3 {
        color: #000;
    }

    /* Clean link display */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }

    a[href^="tel:"]:after,
    a[href^="mailto:"]:after {
        content: "";
    }

    /* Page breaks */
    .entry-content img,
    .entry-content table,
    .entry-content blockquote {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   15. High Contrast Mode Support
   ========================================================================== */

@media (prefers-contrast: high) {
    .trust-badge,
    .nap-item a,
    .footer-links a,
    .entry-content a {
        text-decoration: underline;
    }

    .call-button {
        border: 2px solid currentColor;
    }

    .entry-content {
        color: #000 !important;
    }

    .entry-content h1,
    .entry-content h2,
    .entry-content h3,
    .entry-content h4,
    .entry-content h5,
    .entry-content h6 {
        color: #000 !important;
    }
}

/* ==========================================================================
   16. Reduced Motion Support
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .call-button i {
        animation: none;
    }

    .emergency-service-banner i {
        animation: none;
    }
}

/* ==========================================================================
   END OF EDGE CHILD ULTRA-FIXED v3.0 STYLESHEET
   ========================================================================== */
