/* ============================================================
   EMERGENCY PLUMBER PAGE - UNIQUE SECTION STYLES
============================================================ */

/* -- EMERGENCY HERO -- */
.emrg-hero {
    background: var(--navy);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.emrg-hero-inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    min-height: 520px;
    align-items: stretch;
}

.emrg-hero-text {
    padding: 64px 48px 64px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.emrg-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    width: fit-content;
}

.emrg-live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.emrg-hero-text h1 {
    font-size: clamp(42px, 5.5vw, 80px);
    color: #fff;
    line-height: 1.0;
    margin-bottom: 16px;
}

.emrg-hero-text h1 span { color: var(--red); }

.emrg-hero-text p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 520px;
}

.emrg-cta-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.emrg-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--red);
    color: #fff;
    padding: 18px 36px;
    border-radius: 50px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 1.5px;
    border: 3px solid var(--red);
    transition: all 0.3s;
    text-decoration: none;
}

.emrg-call-btn:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(171, 26, 28, 0.5);
}

.emrg-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 13px 28px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.3s;
    text-decoration: none;
}

.emrg-book-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.emrg-reassurance {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.emrg-reassure-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.emrg-reassure-item i {
    color: var(--red);
    font-size: 12px;
}

.emrg-hero-card {
    background: rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.emrg-hero-card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.emrg-stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.emrg-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.emrg-stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    color: var(--red);
    line-height: 1;
    display: block;
}

.emrg-stat-unit {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 4px;
}

.emrg-stat p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0;
}

/* -- EMERGENCY TYPES GRID -- */
.emrg-types-section {
    background: #f5f5f5;
    padding: var(--pad-section) 0;
}

.emrg-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.emrg-type-card {
    background: #fff;
    border-radius: 12px;
    padding: 26px 22px;
    border: 2px solid #e8eef5;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.emrg-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.emrg-type-card:hover {
    border-color: var(--red);
    box-shadow: 0 6px 24px rgba(204, 31, 31, 0.1);
    transform: translateY(-3px);
}

.emrg-type-card:hover::before { transform: scaleX(1); }

.emrg-type-icon {
    width: 52px;
    height: 52px;
    background: #fff0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 22px;
    margin-bottom: 14px;
}

.emrg-type-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.emrg-type-card p {
    font-size: 13.5px;
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: 12px;
}

.emrg-type-tag {
    display: inline-block;
    background: #fff0f0;
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
}

/* -- WHAT TO DO BEFORE WE ARRIVE -- */
.wtd-section {
    background: var(--navy);
    padding: var(--pad-section) 0;
}

.wtd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.wtd-text h2 { color: #fff; margin-bottom: 14px; }

.wtd-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 18px;
}

.wtd-warning {
    background: rgba(204, 31, 31, 0.15);
    border: 1px solid rgba(204, 31, 31, 0.4);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
}

.wtd-warning i {
    color: var(--red);
    font-size: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

.wtd-warning p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.wtd-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wtd-step {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wtd-step:last-child { border-bottom: none; }

.wtd-step-num {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    color: #fff;
    margin-top: 2px;
}

.wtd-step-body h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.wtd-step-body p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13.5px;
    line-height: 1.6;
    margin: 0;
}

/* -- RESPONSE TIMELINE -- */
.timeline-section {
    background: #fff;
    padding: var(--pad-section) 0;
}

.timeline-track {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: #e8eef5;
}

.tl-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 20px 0;
    position: relative;
}

.tl-dot {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 13px;
    color: #fff;
    z-index: 1;
    text-align: center;
    line-height: 1.2;
}

.tl-dot.red { background: var(--red); }
.tl-dot.navy { background: var(--navy); }
.tl-dot.mid { background: #2a5070; }

.tl-body {
    padding-top: 6px;
    flex: 1;
}

.tl-time {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--red);
    margin-bottom: 4px;
}

.tl-body h4 {
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.tl-body p {
    color: var(--gray-text);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.timeline-img {
    border-radius: 14px;
    overflow: hidden;
}

.timeline-img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

/* -- IS THIS AN EMERGENCY GUIDE -- */
.emrg-guide-section {
    background: #f5f5f5;
    padding: var(--pad-section) 0;
}

.emrg-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.emrg-guide-card {
    border-radius: 12px;
    padding: 28px 24px;
}

.emrg-guide-card.call-now {
    background: #fff0f0;
    border: 2px solid #f5c3c3;
}

.emrg-guide-card.schedule {
    background: #f0f7ff;
    border: 2px solid #c3dcf5;
}

.emrg-guide-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.emrg-guide-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.emrg-guide-icon.red { background: var(--red); }
.emrg-guide-icon.blue { background: var(--navy); }

.emrg-guide-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 900;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emrg-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.emrg-guide-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-text);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 39, 69, 0.07);
    line-height: 1.5;
}

.emrg-guide-list li:last-child { border-bottom: none; }

.emrg-guide-list li i {
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

.emrg-guide-list li i.red-i { color: var(--red); }
.emrg-guide-list li i.blue-i { color: var(--navy); }

.emrg-guide-bottom {
    background: var(--navy);
    color: #fff;
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.emrg-guide-bottom i {
    color: var(--red);
    font-size: 20px;
    flex-shrink: 0;
}

.emrg-guide-bottom p {
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* -- DAMAGE COST SECTION -- */
.emrg-cost-section {
    background: #fff;
    padding: var(--pad-section) 0;
}

.emrg-cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.emrg-cost-card {
    background: #f8faff;
    border: 1px solid #dde8f5;
    border-radius: 10px;
    padding: 22px 18px;
    text-align: center;
}

.emrg-cost-icon {
    width: 46px;
    height: 46px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #fff;
    font-size: 18px;
}

.emrg-cost-scenario {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 5px;
}

.emrg-cost-delay {
    font-size: 12px;
    color: var(--gray-text);
    margin-bottom: 4px;
}

.emrg-cost-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 38px;
    color: var(--red);
    line-height: 1;
}

.emrg-cost-label {
    font-size: 11px;
    color: var(--gray-text);
}

.emrg-cost-note {
    background: var(--navy);
    color: #fff;
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.emrg-cost-note i {
    color: var(--red);
    font-size: 22px;
    flex-shrink: 0;
}

.emrg-cost-note p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.emrg-cost-note strong { color: #fff; }

/* -- HOW IT WORKS STEPS -- */
.hiw-section {
    background: #f5f5f5;
    padding: var(--pad-section) 0;
}

/* -- RESPONSIVE -- */
@media (max-width: 900px) {
    .emrg-hero-inner { grid-template-columns: 1fr; }
    .emrg-hero-card { display: none; }
    .emrg-hero-text { padding: 48px 0; }
    .wtd-grid { grid-template-columns: 1fr; }
    .timeline-grid { grid-template-columns: 1fr; }
    .emrg-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Hero */
    .emrg-hero-text { padding: 40px 0 36px; }
    .emrg-hero-text h1 { font-size: clamp(32px, 8vw, 52px); }
    .emrg-hero-text p { font-size: 15px; }

    /* CTA buttons — full width stacked */
    .emrg-cta-stack {
        align-items: stretch;
        width: 100%;
    }
    .emrg-call-btn {
        width: 100%;
        justify-content: center;
        font-size: 22px;
        padding: 15px 20px;
    }
    .emrg-book-btn {
        width: 100%;
        justify-content: center;
        font-size: 15px;
        padding: 13px 20px;
    }
    .emrg-reassurance { gap: 12px; }

    /* Signs / Prevention sections */
    .signs-section,
    .prevention-section { padding: 44px 0; }

    /* Timeline image hide on mobile */
    .timeline-img { display: none; }

    /* Costs */
    .emrg-cost-grid { grid-template-columns: repeat(2, 1fr); }

    /* HOW IT WORKS */
    .hiw-section { padding: 44px 0; }
}

@media (max-width: 600px) {
    .emrg-types-grid { grid-template-columns: 1fr; }
    .hiw-step-item:not(:last-child)::after { display: none; }
}

@media (max-width: 480px) {
    /* Hero */
    .emrg-hero-text { padding: 32px 0 28px; }
    .emrg-hero-text h1 { font-size: clamp(28px, 9vw, 44px); }
    .emrg-live-badge { font-size: 11px; padding: 5px 12px; }
    .emrg-call-btn { font-size: 19px; padding: 12px 20px; }
    .emrg-reassurance { flex-direction: column; gap: 8px; }

    /* Sections padding */
    .wtd-section,
    .timeline-section,
    .emrg-guide-section,
    .emrg-cost-section,
    .hiw-section,
    .signs-section,
    .prevention-section { padding: 36px 0; }

    /* Types grid */
    .emrg-types-grid { grid-template-columns: 1fr; gap: 12px; }
    .emrg-type-card { padding: 18px 16px; }

    /* Cost grid */
    .emrg-cost-grid { grid-template-columns: 1fr 1fr; }
    .emrg-cost-note { flex-direction: column; gap: 8px; }
    .emrg-guide-bottom { flex-direction: column; gap: 8px; }

    /* Signs / Tips */
    .signs-grid { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: 1fr; }

    /* Guide */
    .emrg-guide-grid { gap: 14px; }
    .emrg-guide-card { padding: 20px 16px; }
}
