/* Modern Mobile-First CSS for Water Heater Repair Static Website */

:root {
    --primary-color: #0f2c59;
    --primary-hover: #0a1f3f;
    --accent-color: #d97706;
    --accent-hover: #b45309;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
    --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: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    padding-bottom: 60px; /* Space for sticky bar on mobile */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    line-height: 1.25;
    margin-bottom: 15px;
    font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

@media (min-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.5rem; }
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Buttons & CTAs */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff !important;
}

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

.btn-secondary {
    background-color: var(--primary-color);
    color: #ffffff !important;
}

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

.btn-outline-white {
    border: 2px solid #ffffff;
    color: #ffffff !important;
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--primary-color) !important;
}

.btn-header-cta {
    background-color: var(--accent-color);
    color: #ffffff !important;
    padding: 8px 16px;
    font-size: 0.9rem;
    display: none;
}

@media (min-width: 768px) {
    .btn-header-cta {
        display: inline-block;
    }
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.full-width {
    width: 100%;
}

/* Top Bar */
.top-bar {
    background-color: #0b1a30;
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.top-phone a {
    color: #f59e0b;
    font-weight: bold;
}

/* Header & Nav */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.nav-menu.active {
    display: block;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-dark);
}

.nav-menu li a.active, .nav-menu li a:hover {
    color: var(--accent-color);
    background-color: var(--bg-light);
}

@media (min-width: 992px) {
    .nav-toggle { display: none; }
    .nav-menu {
        display: block !important;
        position: static;
        box-shadow: none;
        width: auto;
    }
    .nav-menu ul {
        display: flex;
        gap: 20px;
    }
    .nav-menu li a {
        padding: 0;
        border: none;
    }
    .nav-menu li a.active, .nav-menu li a:hover {
        background-color: transparent;
    }
}

/* Alert Banner */
.alert-banner {
    background-color: #fef3c7;
    border-bottom: 1px solid #fde68a;
    padding: 12px 0;
    font-size: 0.95rem;
}

.alert-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.alert-tag {
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-alert {
    background-color: #dc2626;
    color: #ffffff !important;
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    padding: 50px 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

@media (min-width: 576px) {
    .hero-actions {
        flex-direction: row;
    }
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-image-wrap img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Layout Utilities & Cards */
.section {
    padding: 60px 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary-color); }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: #ffffff !important; }
.text-center { text-align: center; }

.section-title {
    margin-bottom: 40px;
    max-width: 800px;
}

.section-title.text-center {
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    gap: 25px;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.problem-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.text-link {
    font-weight: bold;
    color: var(--accent-color);
    display: inline-block;
    margin-top: 10px;
}

/* Lists */
.check-list {
    list-style: none;
    margin: 15px 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.area-list {
    list-style: none;
    margin-top: 15px;
}

.area-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Feature Boxes */
.feature-box {
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

.feature-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

.feature-box h4 {
    color: #ffffff;
}

.feature-box p {
    color: #94a3b8;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f2c59 100%);
    color: #ffffff;
    border-radius: var(--radius);
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.cta-banner h3 { color: #ffffff; }
.cta-banner p { color: #e2e8f0; }

@media (min-width: 768px) {
    .cta-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* FAQs */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent-color);
}

.faq-question.active::after {
    content: "−";
}

.faq-answer {
    display: none;
    padding-bottom: 20px;
}

.faq-answer.active {
    display: block;
}

/* Page Banner */
.page-title-banner {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 50px 0;
}

.page-title-banner h1 {
    color: #ffffff;
}

.page-title-banner p {
    color: #cbd5e1;
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: #09172a;
    color: #94a3b8;
    padding-top: 50px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

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

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #cbd5e1;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding: 20px 0;
}

/* Sticky Mobile Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 15px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
    z-index: 999;
}

@media (min-width: 768px) {
    .mobile-sticky-bar {
        display: none;
    }
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.section-divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 40px 0;
}