/*
Theme Name: TowHelpUSA Guide
Description: Emergency towing information and local guide theme
Version: 2.0 - Legitimate Guide Edition
*/

/* CSS Reset and Emergency-First Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

/* Emergency-First Header */
.emergency-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.emergency-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.emergency-header .phone {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.emergency-header .phone:hover {
    color: #f8f9fa;
    text-decoration: underline;
}

.emergency-header .availability {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* Main Navigation */
.main-header {
    background-color: #34495e;
    padding: 20px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: #3498db;
    text-decoration: none;
}

.logo:hover {
    color: #2980b9;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: #2c3e50;
    color: #3498db;
}

/* Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section for Guide Pages */
.hero-section {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Emergency Callout */
.emergency-callout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.3);
}

.emergency-callout h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.emergency-callout p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.emergency-callout strong {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* Content Sections */
.service-guide,
.pricing-guide,
.how-to-guide,
.local-info,
.frequently-asked {
    margin: 50px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-guide h2,
.pricing-guide h2,
.how-to-guide h2,
.local-info h2,
.frequently-asked h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

/* Service Types Grid */
.service-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-category {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #3498db;
}

.service-category h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-list {
    list-style: none;
    margin-top: 15px;
}

.service-list li {
    padding: 5px 0;
    color: #27ae60;
    font-weight: 500;
}

/* Pricing Table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.price-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.price-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.price-item strong {
    color: #e74c3c;
    font-size: 1.4rem;
    display: block;
    margin-bottom: 10px;
}

/* Guide Steps */
.guide-steps {
    margin-top: 30px;
}

.step {
    background: white;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #27ae60;
}

.step h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Emergency Tips */
.emergency-tips {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.emergency-tips h3 {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.emergency-tips ul {
    list-style-type: none;
    padding-left: 0;
}

.emergency-tips li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.emergency-tips li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

/* FAQ Section */
.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-item h3 {
    background: #3498db;
    color: white;
    padding: 20px;
    margin: 0;
    font-size: 1.1rem;
}

.faq-item p {
    padding: 20px;
    margin: 0;
    line-height: 1.6;
}

/* Disclaimer */
.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    margin: 40px 0;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 15px;
}

.disclaimer p {
    color: #856404;
    margin-bottom: 15px;
}

/* Homepage Specific Styles */
.homepage {
    padding: 20px 0;
}

.emergency-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
}

.search-cities {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.city-link {
    background: white;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.city-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.city-link a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.city-link a:hover {
    color: #3498db;
}

.service-info {
    background: #e8f5e8;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
}

.service-info ul {
    list-style: none;
    margin-top: 20px;
}

.service-info li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: #27ae60;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .emergency-header .phone {
        font-size: 1.5rem;
    }
    
    .service-types,
    .pricing-table {
        grid-template-columns: 1fr;
    }
    
    .city-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 15px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .emergency-callout,
    .service-guide,
    .pricing-guide,
    .how-to-guide,
    .local-info,
    .frequently-asked {
        padding: 20px 15px;
    }
}

/* Print Styles */
@media print {
    .emergency-header,
    .main-header,
    .emergency-callout {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .service-guide,
    .pricing-guide,
    .how-to-guide {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus states for keyboard navigation */
a:focus,
button:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
        color: #fff;
    }
    
    .emergency-callout {
        background: #800000;
        color: #fff;
    }
}