/* Custom CSS for Water Damage Restoration Boerne TX */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Enhancements */
header {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Logo Hover Effect */
.logo-container:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Navigation Enhancements */
nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transform: scaleX(1);
    transition: transform 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2563eb;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #e5e7eb;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, #1e3a8a, #1e40af, #2563eb);
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Stats Animation */
.stat-number {
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Process Steps */
.process-step {
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: scale(1.05);
}

.process-number {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transition: all 0.3s ease;
}

.process-step:hover .process-number {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    transform: scale(1.1);
}

/* FAQ Animations */
.faq-button {
    transition: all 0.3s ease;
}

.faq-button:hover {
    background-color: #f8fafc;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotated {
    transform: rotate(180deg);
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Area Cards */
.area-card {
    transition: all 0.3s ease;
}

.area-card:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Mobile Header */
    .mobile-menu {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }
    
    /* Mobile Hero */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Mobile Cards */
    .service-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile Buttons */
    .mobile-btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.75rem;
    }
    
    /* Mobile Stats */
    .mobile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    /* Extra small screens */
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    .mobile-padding {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Phone Number Highlight */
.phone-highlight {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-highlight:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    transform: scale(1.05);
}

/* Star Rating */
.star-rating {
    color: #fbbf24;
    text-shadow: 0 1px 3px rgba(251, 191, 36, 0.5);
}

/* Emergency Badge */
.emergency-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    animation: pulse 2s infinite;
}

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

/* Service Area Grid */
.service-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Footer Enhancements */
footer {
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #60a5fa;
}

/* 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 States */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid #374151;
    }
    
    .btn-primary {
        border: 2px solid #dc2626;
    }
}

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

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3 {
        color: #000;
        page-break-after: avoid;
    }
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, #2563eb, #3b82f6) 1;
}