/* Essential Custom Styles - Header, Footer, Navigation Only */

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

/* Body base styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-display: swap;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #dc2626;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}
.skip-link:focus {
    top: 6px;
}

/* Container removed - now handled by Tailwind CSS with same styles */

/* ===== HEADER STYLES ===== */
header {
    background: linear-gradient(135deg, #dc2626 0%, #dc2626 50%, #1f1f1f 50%, #1f1f1f 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #dc2626 0%, #dc2626 45%, #1f1f1f 55%, #1f1f1f 100%);
    z-index: -1;
}

header::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fbbf24"><path d="M7 2v11h3v9l7-12h-4l3-8z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ===== LOGO STYLES ===== */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #fbbf24;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-top: -2px;
}

.lightning-bolt {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightning-bolt svg {
    width: 50px;
    height: 50px;
    fill: #fbbf24;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

/* ===== NAVIGATION STYLES ===== */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: block;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251,191,36,0.6), transparent);
    transition: left 0.4s;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    color: #1f1f1f;
    background: #fbbf24;
    border: 2px solid #fbbf24;
    text-shadow: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(251,191,36,0.4);
}

/* Active navigation state */
nav a.active {
    color: #1f1f1f;
    background: #fbbf24;
    border: 2px solid #fbbf24;
    text-shadow: none;
    box-shadow: 0 3px 10px rgba(251,191,36,0.3);
}

.emergency-contact {
    background: rgba(0,0,0,0.3);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
    border: 1px solid #fbbf24;
    transition: all 0.3s ease;
}

.emergency-contact:hover {
    background: rgba(220,38,38,0.8);
    transform: scale(1.05);
}

.emergency-contact a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.emergency-contact a:hover {
    color: #fbbf24;
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    order: 3;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 28px;
    height: 3px;
    margin: 6px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.mobile-only-call-btn {
    display: none;
}

/* ===== FOOTER STYLES ===== */
footer {
    background: linear-gradient(135deg, #1f1f1f 0%, #1f1f1f 50%, #dc2626 50%, #dc2626 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fbbf24"><path d="M7 2v11h3v9l7-12h-4l3-8z"/></svg>');
    background-size: 150px auto;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0.1;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section h3,
.footer-section h4 {
    color: #fbbf24;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fbbf24;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    position: relative;
    z-index: 2;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
    }
    
    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: linear-gradient(135deg, #dc2626 0%, #dc2626 50%, #1f1f1f 50%, #1f1f1f 100%);
        z-index: 9999;
        overflow-y: auto;
    }
    
    nav.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Close button for mobile menu */
    nav .mobile-close-btn {
        display: none; /* Hidden by default on desktop */
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: transparent;
        border: none;
        color: white;
        font-size: 3rem;
        cursor: pointer;
        padding: 1rem;
        z-index: 10000;
        line-height: 1;
        width: 60px;
        height: 60px;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        border-radius: 50%;
    }
    
    /* Show close button only in mobile menu when active */
    nav.active .mobile-close-btn {
        display: flex;
    }
    
    nav .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
    }
    

    
    nav ul {
        flex-direction: column;
        padding: 2rem 0;
        margin: 0;
        list-style: none;
        text-align: center;
        gap: 1.5rem;
    }
    
    nav a {
        display: block;
        padding: 1.5rem 2rem;
        font-size: 1.6rem;
        font-weight: 600;
        color: white;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
        min-width: 200px;
        text-align: center;
    }
    
    nav a:hover {
        background: rgba(251, 191, 36, 0.2);
        color: #fbbf24;
        transform: scale(1.05);
    }
    
    nav a.active {
        background: #fbbf24;
        color: #1f1f1f;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .mobile-only-call-btn {
        display: block;
        text-align: center;
        margin-top: 3rem;
    }
    
    .mobile-only-call-btn .btn {
        display: inline-block;
        background: #fbbf24;
        color: #1f1f1f;
        padding: 1.5rem 2.5rem;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        font-size: 1rem;
        transition: all 0.3s ease;
        min-width: 250px;
        text-align: center;
    }
    
    .mobile-only-call-btn .btn:hover {
        background: #f59e0b;
        transform: scale(1.05);
    }
    
    .emergency-contact {
        display: none;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Hamburger menu animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
    }
    
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
    }
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    background: #f3f4f6;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #dc2626;
}

.breadcrumbs span {
    color: #9ca3af;
    margin: 0 0.5rem;
}

/* ===== BUTTON STYLES ===== */
.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251,191,36,0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #fbbf24;
    color: #1f1f1f;
    border: 2px solid #fbbf24;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251,191,36,0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #dc2626;
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
}

/* Blog Content Styling */
.blog-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.blog-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.4;
}

.blog-content p {
    margin: 1rem 0;
    line-height: 1.7;
    color: #4b5563;
}

.blog-content ul, .blog-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: #4b5563;
}

.blog-content strong {
    font-weight: 600;
    color: #1f2937;
}

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

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

/* Line clamp utility for truncating text */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== MOBILE MAP STYLES ===== */
/* Mobile Responsive Styles for Service Area Map */
@media (max-width: 768px) {
    /* Hide the overlay on mobile to show full map */
    .map-overlay {
        display: none !important;
    }
    
    /* Reduce map height slightly on mobile */
    .google-map {
        height: 300px !important;
    }
    
    /* Create mobile legend below map */
    .mobile-map-legend {
        display: block !important;
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        border-top: 1px solid #e5e7eb;
        margin-top: -1px;
    }
    
    .mobile-map-legend h4 {
        color: #dc2626;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        font-weight: bold;
        text-align: center;
    }
    
    .mobile-legend-items {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .mobile-legend-item {
        display: flex;
        align-items: center;
        font-size: 0.8rem;
        color: #333;
    }
    
    .mobile-legend-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin-right: 0.4rem;
        flex-shrink: 0;
    }
    
    .mobile-legend-dot.primary {
        background: #dc2626;
        box-shadow: 0 0 5px rgba(220,38,38,0.5);
    }
    
    .mobile-legend-dot.secondary {
        background: #fbbf24;
        box-shadow: 0 0 5px rgba(251,191,36,0.5);
    }
    
    .mobile-legend-dot.tertiary {
        background: #1f1f1f;
    }
    
    .map-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .map-info-card {
        padding: 1.5rem;
    }
}

/* Desktop - hide mobile legend */
.mobile-map-legend {
    display: none;
} 