/* Dallas Water Heater Replacement - Main Stylesheet */

:root {
    --primary-blue: #0F4C81;
    --light-blue: #3FA9F5;
    --accent-red: #D93025;
    --light-gray: #F5F5F5;
    --dark-gray: #333333;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--primary-blue);
    background: var(--light-gray);
}

/* Phone Button */
.phone-btn {
    background: var(--accent-red);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(217, 48, 37, 0.3);
}

.phone-btn:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 48, 37, 0.4);
}

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

/* Hero Section */
.hero {
    background-color: var(--primary-blue);
    background-image: 
        linear-gradient(135deg, rgba(15, 76, 129, 0.92) 0%, rgba(63, 169, 245, 0.85) 100%),
        url('assets/images/hero-water-heater.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-phone-btn {
    background: var(--white);
    color: var(--accent-red) !important;
    padding: 1rem 2.5rem !important;
    font-size: 1.25rem !important;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero-phone-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section {
    padding: 5rem 2rem;
}

.section-gray {
    background: var(--light-gray);
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2.5rem;
}

/* City Links Section */
.city-links-section {
    background: var(--white);
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.city-link {
    display: block;
    background: var(--light-gray);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-blue);
    border: 2px solid transparent;
    transition: var(--transition);
}

.city-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.city-link span {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.25rem;
}

.city-link small {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Contact Section */
.contact-section {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
}

.contact-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-phone {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    transition: var(--transition);
}

.contact-phone:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #333;
    text-align: center;
    color: #888;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent-red);
    padding: 1rem;
    z-index: 1001;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.mobile-sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--accent-red) !important;
    padding: 1rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    width: 100%;
}

.mobile-sticky-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Page Header for City Pages */
.page-header {
    background-color: var(--primary-blue);
    background-image: 
        linear-gradient(135deg, rgba(15, 76, 129, 0.92) 0%, rgba(63, 169, 245, 0.85) 100%),
        url('assets/images/hero-water-heater.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

/* City Service Card */
.city-service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 3rem auto;
    max-width: 800px;
}

.city-service-card h2 {
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    margin: 1.5rem 0;
}

.service-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-list li::before {
    content: '✓';
    color: var(--light-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

.city-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.city-cta h3 {
    margin-bottom: 1rem;
}

.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-red);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(217, 48, 37, 0.3);
}

.cta-phone:hover {
    background: #c62828;
    transform: translateY(-2px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-phone-btn {
        font-size: 1rem !important;
        padding: 0.875rem 2rem !important;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .city-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .contact-phone {
        font-size: 1.5rem;
        padding: 0.75rem 1.5rem;
    }

    .mobile-sticky-bar {
        display: block;
    }

    body {
        padding-bottom: 70px;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .city-service-card {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }

    .cta-phone {
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .city-grid {
        grid-template-columns: 1fr;
    }

    .contact-phone {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    header,
    .mobile-sticky-bar,
    .hero-phone-btn {
        display: none !important;
    }

    .city-service-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
