/* Modern, professional styling for sump pump replacement & water heater services in Altoona, PA */
:root {
    --primary: #0f2c59;
    --primary-dark: #071936;
    --accent: #d97706;
    --accent-hover: #b45309;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar a {
    color: var(--white);
    text-decoration: underline;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    max-width: 300px;
    line-height: 1.2;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.header-cta {
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background-color 0.2s;
}

.header-cta:hover {
    background-color: var(--accent-hover);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 44, 89, 0.85), rgba(7, 25, 54, 0.9)), url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    color: var(--white);
    padding: 5rem 1rem;
    text-align: left;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

.hero-card {
    background: var(--white);
    color: var(--text-dark);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.hero-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sections General */
section {
    padding: 4rem 1rem;
}

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

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

.section-title h2 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Services Grid */
.bg-light {
    background-color: var(--bg-light);
}

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

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Problem Solution */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.split-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.split-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Service Areas */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    text-align: center;
}

.area-badge {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--primary);
    box-shadow: var(--shadow);
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.faq-item h3 {
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-light);
}

/* Contact & Info Box */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-box {
    background: var(--primary);
    color: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
}

.contact-info-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.contact-info-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-info-box li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 3rem 1rem 1.5rem;
}

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

.footer-col h4 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-col p, .footer-col li, .footer-col a {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
    z-index: 9999;
    text-align: center;
}

.mobile-sticky-cta a {
    background: var(--accent);
    color: var(--white);
    display: block;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

@media(max-width: 768px) {
    .hero-container, .split-section, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-sticky-cta {
        display: block;
    }
    body {
        padding-bottom: 60px;
    }
}
