/* ============================================
   Phoenix Emergency HVAC - Brand Styles
   Color Palette:
   - Primary Navy: #1E3A5F
   - Accent Orange: #E85D04
   - White: #FFFFFF
   - Light Gray: #6B8CAE
   - Background: #F5F7FA
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #1E3A5F;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: #4A5568;
}

a {
    color: #E85D04;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #C44D03;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: #E85D04;
    color: white;
    box-shadow: 0 4px 14px rgba(232, 93, 4, 0.3);
}

.btn-primary:hover {
    background: #C44D03;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4);
}

.btn-secondary {
    background: #1E3A5F;
    color: white;
}

.btn-secondary:hover {
    background: #152C48;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #1E3A5F;
    border: 2px solid #1E3A5F;
}

.btn-outline:hover {
    background: #1E3A5F;
    color: white;
}

.btn-phone {
    background: #E85D04;
    color: white;
    animation: pulse 2s infinite;
}

.btn-phone:hover {
    background: #C44D03;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(232, 93, 4, 0); }
}

.phone-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Header */
.header {
    background: #1E3A5F;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-text span {
    color: #E85D04;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phone {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.header-phone a {
    color: white;
}

.header-phone a:hover {
    color: #E85D04;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1E3A5F 0%, #2D4A6F 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-banner.png') center center / cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.hero-phone {
    margin-bottom: 30px;
}

.hero-phone a {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E85D04;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.hero-phone a:hover {
    color: #F77F00;
    transform: scale(1.05);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 10px 18px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.trust-badge svg {
    width: 22px;
    height: 22px;
    fill: #E85D04;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #E85D04;
    border-radius: 2px;
}

.section-header p {
    color: #6B8CAE;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #F5F7FA;
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.15);
    border-color: #E85D04;
}

.service-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.service-card h3 {
    margin-bottom: 15px;
    color: #1E3A5F;
}

.service-card p {
    color: #6B8CAE;
    margin-bottom: 20px;
}

/* Why Us Section */
.why-us {
    padding: 80px 0;
    background: #1E3A5F;
}

.why-us .section-header h2,
.why-us .section-header p {
    color: white;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.why-us-item {
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.why-us-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.why-us-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.why-us-svg {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: block;
}

.why-us-item h4 {
    color: white;
    margin-bottom: 10px;
}

.why-us-item p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

/* Problems Section */
.problems {
    padding: 80px 0;
    background: white;
}

.problems-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.problem-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #F5F7FA;
    border-radius: 12px;
    border-left: 4px solid #E85D04;
}

.problem-item svg {
    width: 24px;
    height: 24px;
    fill: #E85D04;
    flex-shrink: 0;
    margin-top: 2px;
}

.problem-item p {
    margin: 0;
    color: #4A5568;
}

.problem-item strong {
    color: #1E3A5F;
}

/* Service Areas Section */
.service-areas {
    padding: 80px 0;
    background: #F5F7FA;
}

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.area-link {
    display: inline-block;
    padding: 12px 24px;
    background: white;
    color: #1E3A5F;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #E1E8EF;
}

.area-link:hover {
    background: #E85D04;
    color: white;
    border-color: #E85D04;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(232, 93, 4, 0.3);
}

.zip-codes {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.zip-codes h4 {
    margin-bottom: 15px;
    color: #1E3A5F;
}

.zip-codes p {
    color: #6B8CAE;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* Reviews Section */
.reviews {
    padding: 80px 0;
    background: white;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: #F5F7FA;
    border-radius: 16px;
    padding: 30px;
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4rem;
    color: #E85D04;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.review-stars {
    color: #E85D04;
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: #4A5568;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.review-author {
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 5px;
}

.review-location {
    color: #6B8CAE;
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: #F5F7FA;
}

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

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: white;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E3A5F;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #F5F7FA;
}

.faq-icon {
    font-size: 1.5rem;
    color: #E85D04;
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
    padding: 0 25px 20px;
    color: #4A5568;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #E85D04 0%, #F77F00 100%);
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-phone {
    margin-bottom: 30px;
}

.cta-phone a {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta-phone a:hover {
    color: #1E3A5F;
}

.cta-section .btn-secondary {
    background: white;
    color: #E85D04;
}

.cta-section .btn-secondary:hover {
    background: #1E3A5F;
    color: white;
}

/* Footer */
.footer {
    background: #1E3A5F;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #E85D04;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
}

/* Sticky Mobile CTA */
.sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #E85D04;
    padding: 15px 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.sticky-cta .phone-icon {
    width: 24px;
    height: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .header-phone {
        display: none;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-phone a {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-badges {
        gap: 15px;
    }
    
    .trust-badge {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .services, .why-us, .problems, .service-areas, .reviews, .faq, .cta-section {
        padding: 60px 0;
    }
    
    .cta-phone a {
        font-size: 2rem;
    }
    
    .sticky-cta {
        display: block;
    }
    
    .footer {
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
}
