:root {
    /* Color Palette - Professional Plumbing Theme */
    --primary-blue: #1a4d7a;
    --primary-blue-dark: #0f3456;
    --accent-orange: #d97730;
    --accent-orange-light: #e89456;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --text-dark: #2c3e50;
    --text-medium: #5a6c7d;
    --text-light: #7f8c8d;
    --border-light: #e1e8ed;
    --success-green: #27ae60;
    --warning-orange: #f39c12;
    --danger-red: #c0392b;
    --info-blue: #3498db;
    
    /* Typography */
    --font-display: 'Crimson Pro', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--background-light);
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
.main-nav {
    background: var(--primary-blue);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

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

.logo h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.logo .location {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
    color: var(--accent-orange-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-orange-light);
    border-bottom-color: var(--accent-orange);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.guide-content {
    background: var(--background-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

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

.breadcrumb .separator {
    margin: 0 0.5rem;
}

/* Header */
.guide-header {
    margin-bottom: 3rem;
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 2rem;
}

.guide-header h1 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.safety-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid var(--warning-orange);
    padding: 1.25rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

.safety-notice strong {
    color: var(--warning-orange);
    display: block;
    margin-bottom: 0.5rem;
}

/* Table of Contents */
.table-of-contents {
    background: var(--background-light);
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.table-of-contents h2 {
    font-family: var(--font-display);
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
}

.table-of-contents a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.table-of-contents a:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

/* Guide Sections */
.guide-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.guide-section h2 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
}

.guide-section h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--primary-blue-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guide-section h4 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.guide-section p {
    margin-bottom: 1rem;
}

.intro-paragraph p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--background-light);
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
}

/* Warning Boxes */
.warning-box {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffcccc 100%);
    border-left: 4px solid var(--danger-red);
    padding: 1.5rem;
    border-radius: 6px;
    margin: 2rem 0;
}

.warning-box h3 {
    color: var(--danger-red);
    margin-top: 0;
}

.final-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid var(--warning-orange);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.final-warning h3 {
    color: var(--warning-orange);
    margin-top: 0;
}

.danger-notice {
    background: #ffe5e5;
    border: 2px solid var(--danger-red);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.danger-notice strong {
    color: var(--danger-red);
}

/* Professional Recommendation */
.professional-recommendation {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid var(--info-blue);
    padding: 1.25rem;
    border-radius: 6px;
    margin: 1.5rem 0;
}

.inline-link {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.inline-link:hover {
    color: var(--accent-orange);
}

/* Pros and Cons */
.pros-section,
.cons-section {
    margin: 2rem 0;
}

.pros-section h4,
.cons-section h4 {
    color: var(--success-green);
    margin-top: 1.5rem;
}

.cons-section h4 {
    color: var(--danger-red);
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.tip-card h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Method Cards */
.method-comparison,
.water-heater-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.method-card,
.heater-type-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.method-card h4,
.heater-type-card h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.method-details ul,
.pros-cons ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.method-details li,
.pros-cons li {
    margin-bottom: 0.5rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.pros,
.cons {
    padding: 1rem;
    border-radius: 6px;
}

.pros {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
}

.cons {
    background: #ffebee;
    border: 1px solid #ef9a9a;
}

.pros strong,
.cons strong {
    display: block;
    margin-bottom: 0.5rem;
}

/* Emergency Steps */
.emergency-steps {
    margin: 2rem 0;
}

.step-card {
    background: white;
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.step-number {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.priority-1 { border-left-color: var(--danger-red); }
.priority-2 { border-left-color: var(--warning-orange); }
.priority-3 { border-left-color: var(--info-blue); }
.priority-4 { border-left-color: var(--success-green); }
.priority-5 { border-left-color: var(--primary-blue); }

.step-card h4 {
    margin-top: 0;
    color: var(--primary-blue);
}

.step-card ol,
.step-card ul {
    margin: 1rem 0 1rem 1.5rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: var(--primary-blue);
    color: white;
}

thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid var(--border-light);
}

tbody tr:hover {
    background: var(--background-light);
}

tbody td {
    padding: 1rem;
}

tbody tr.critical {
    background: #ffe5e5;
}

tbody tr.high {
    background: #fff3e0;
}

tbody tr.medium {
    background: #fff9c4;
}

tbody tr.low {
    background: #f1f8e9;
}

.severity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.severity-badge.critical {
    background: var(--danger-red);
    color: white;
}

.severity-badge.high {
    background: var(--warning-orange);
    color: white;
}

.severity-badge.medium {
    background: #ffc107;
    color: var(--text-dark);
}

.severity-badge.low {
    background: var(--success-green);
    color: white;
}

/* Cost Tables */
.cost-table,
.cost-comparison-table {
    background: white;
}

.cost-table tbody td:last-child,
.cost-comparison-table tbody td:last-child {
    font-weight: 600;
    color: var(--success-green);
}

.installation-note,
.cost-note {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Emergency Indicators */
.emergency-indicators ul {
    list-style: none;
    padding: 0;
}

.emergency-indicators li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--background-light);
    border-left: 4px solid var(--danger-red);
    border-radius: 4px;
}

.emergency-indicators strong {
    color: var(--primary-blue);
}

/* Seasonal Warning */
.seasonal-warning {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    border: 2px solid var(--info-blue);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.seasonal-warning h3 {
    color: var(--info-blue);
    margin-top: 0;
}

.seasonal-warning h4 {
    color: var(--primary-blue);
    margin-top: 1.5rem;
}

/* Maintenance Schedule */
.maintenance-schedule {
    margin: 2rem 0;
}

.maintenance-schedule h4 {
    background: var(--primary-blue);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.maintenance-schedule ul {
    margin-bottom: 2rem;
}

/* Warning Signs Grid */
.warning-signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.warning-card {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid;
}

.warning-card.urgent {
    background: #ffebee;
    border-color: var(--danger-red);
}

.warning-card.moderate {
    background: #fff9c4;
    border-color: var(--warning-orange);
}

.warning-card.minor {
    background: #e8f5e9;
    border-color: var(--success-green);
}

.warning-card h4 {
    margin-top: 0;
    color: var(--primary-blue);
}

/* Pipe Materials Grid */
.pipe-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pipe-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.pipe-card h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
}

.pipe-card p {
    margin-bottom: 0.75rem;
}

.pipe-card strong {
    color: var(--primary-blue);
}

.urgent-replacement {
    background: #ffe5e5;
    border: 2px solid var(--danger-red);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.urgent-replacement strong {
    color: var(--danger-red);
}

/* Repiping Indicators */
.repiping-indicators {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.indicator-list,
.cost-list {
    padding-left: 1.5rem;
}

.indicator-list li,
.cost-list li {
    margin-bottom: 1rem;
}

/* Sewer Problems */
.sewer-problems {
    margin: 2rem 0;
}

.problem-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.problem-card h5 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.sewer-repair-options {
    margin: 2rem 0;
}

.repair-method {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-blue);
}

.repair-method h5 {
    color: var(--primary-blue);
    margin-top: 0;
}

/* Maintenance Categories */
.maintenance-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.maintenance-category {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.maintenance-category h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
}

.maintenance-list {
    list-style: none;
    padding-left: 0;
}

.maintenance-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.maintenance-list li:before {
    content: "✓ ";
    color: var(--success-green);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Habits Grid */
.habits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.habit-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--info-blue);
}

.habit-card h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
}

.habit-card ul {
    padding-left: 1.25rem;
}

/* DIY Problems */
.diy-problems {
    margin: 2rem 0;
}

.problem-solution-card {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.problem-solution-card h4 {
    color: var(--primary-blue);
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.problem-solution-card ol,
.problem-solution-card ul {
    margin: 1rem 0 1rem 1.5rem;
}

.problem-solution-card p {
    margin-bottom: 1rem;
}

/* Professional Required */
.professional-required {
    margin: 2rem 0;
}

.pro-problem-card {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffcccc 100%);
    border: 2px solid var(--danger-red);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pro-problem-card h4 {
    color: var(--danger-red);
    margin-top: 0;
    margin-bottom: 1rem;
}

/* DIY Safety */
.diy-safety {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid var(--warning-orange);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.diy-safety h3 {
    color: var(--warning-orange);
    margin-top: 0;
}

.diy-safety ul {
    padding-left: 1.5rem;
}

.diy-safety li {
    margin-bottom: 1rem;
}

/* FAQ */
.faq-container {
    margin: 2rem 0;
}

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

.faq-question {
    color: var(--primary-blue);
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.faq-answer {
    color: var(--text-medium);
}

.faq-answer strong {
    color: var(--primary-blue);
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

/* Related Services / Contact */
.related-services {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    padding: 3rem;
    margin-top: 4rem;
}

.service-areas {
    margin: 2rem 0;
}

.service-areas h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

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

.cities-grid ul {
    list-style: none;
    padding: 0;
}

.cities-grid li {
    padding: 0.5rem 0;
    color: var(--text-medium);
}

.cities-grid li:before {
    content: "📍 ";
    margin-right: 0.5rem;
}

.call-to-action {
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.call-to-action h3 {
    color: var(--primary-blue);
    margin-top: 0;
}

.cta-link {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 3px solid var(--accent-orange);
    transition: all 0.3s ease;
}

.cta-link:hover {
    color: var(--accent-orange);
}

.services-list ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.services-list li {
    padding: 0.75rem;
    background: var(--background-light);
    border-radius: 6px;
    border-left: 3px solid var(--primary-blue);
}

/* Footer */
.site-footer {
    background: var(--primary-blue-dark);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--accent-orange-light);
    margin-bottom: 1rem;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-orange-light);
    opacity: 1;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.disclaimer {
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .guide-content {
        padding: 2rem;
    }
    
    .guide-header h1 {
        font-size: 2.2rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    .guide-content {
        padding: 1.5rem;
    }
    
    .guide-header h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .method-comparison,
    .water-heater-types,
    .pipe-materials-grid {
        grid-template-columns: 1fr;
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.85rem;
    }
    
    thead th,
    tbody td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .guide-header h1 {
        font-size: 1.5rem;
    }
    
    .guide-section h2 {
        font-size: 1.6rem;
    }
    
    .guide-section h3 {
        font-size: 1.3rem;
    }
    
    body {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .footer {
        display: none;
    }
    
    .guide-content {
        box-shadow: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
    }
}