/* ============================================================================
   MESA PLUMBING CO — Custom Demo Site CSS
   "Clean, Professional, Arizona Blue & Green"
   ============================================================================
   Differentiators vs Summit HVAC:
   - Blue (#1e40af) primary, green (#059669) accent (not red)
   - Split hero layout (text left, image right) vs centered
   - 10px border-radius (not 12px)
   - Blue emergency bar (not red)
   - Blue-to-green gradients (not red-to-dark)
   - Barlow Condensed headings + DM Sans body
   - Trust cards with blue left-border accent (not centered icons)
   - Water-pipe decorative accents
   ============================================================================ */

/* ---- Typography System ---- */
:root {
    --mp-font-heading: 'Barlow Condensed', sans-serif;
    --mp-font-body: 'DM Sans', sans-serif;
    --mp-radius: 10px;
    --mp-blue: #1e40af;
    --mp-blue-dark: #1e3a8a;
    --mp-blue-light: #3b82f6;
    --mp-green: #059669;
    --mp-green-dark: #047857;
    --mp-green-light: #10b981;
}

body {
    font-family: var(--mp-font-body);
}

h1, h2, h3, h4, h5, h6,
.demo-logo__name,
.demo-stats-bar__number,
.demo-process__number {
    font-family: var(--mp-font-heading);
}

h1 { font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; }
h2 { font-weight: 700; letter-spacing: -0.01em; }
h3 { font-weight: 600; }

/* ---- Emergency Bar ---- */
.mp-emergency-bar {
    background: var(--mp-blue);
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    font-family: var(--mp-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
}

.mp-emergency-bar .demo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mp-emergency-bar__icon {
    font-size: 1.125rem;
}

.mp-emergency-bar__text {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.mp-emergency-bar__phone {
    color: #fff;
    font-weight: 700;
    font-family: var(--mp-font-heading);
    font-size: 1.0625rem;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 4px 16px;
    border-radius: 6px;
    transition: background 0.15s;
}

.mp-emergency-bar__phone:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

/* Push header and body down for emergency bar */
.demo-header {
    top: 42px;
}

body {
    padding-top: 42px;
}

/* ---- Header Overrides ---- */
.demo-logo__name {
    font-weight: 700;
    font-size: 1.375rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Phone button with blue styling */
.demo-header__actions .demo-btn--phone {
    background: var(--mp-blue);
}

.demo-header__actions .demo-btn--phone:hover {
    background: var(--mp-blue-dark);
}

/* ---- Split Hero Layout ---- */
.demo-hero {
    padding: 0;
    text-align: left;
    min-height: 540px;
    display: flex;
    align-items: stretch;
}

.demo-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.demo-hero__overlay {
    background: linear-gradient(
        to right,
        rgba(30, 58, 138, 0.95) 0%,
        rgba(30, 58, 138, 0.92) 40%,
        rgba(30, 64, 175, 0.7) 65%,
        rgba(30, 64, 175, 0.3) 100%
    );
}

.demo-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 80px;
    max-width: 620px;
}

.demo-hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 3.25rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.08;
    margin-bottom: 20px;
}

.demo-hero p {
    font-family: var(--mp-font-body);
    font-size: 1.125rem;
    text-align: left;
    margin: 0 0 32px;
    max-width: 520px;
    opacity: 0.92;
    line-height: 1.6;
}

.demo-hero__actions {
    justify-content: flex-start;
    margin-bottom: 36px;
}

.demo-hero__actions .demo-btn--primary {
    background: var(--mp-green);
    color: #fff;
    font-family: var(--mp-font-heading);
    font-size: 1.0625rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.demo-hero__actions .demo-btn--primary:hover {
    background: var(--mp-green-dark);
}

.demo-hero__actions .demo-btn--secondary {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    font-family: var(--mp-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.demo-hero__actions .demo-btn--secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

.demo-hero__trust {
    justify-content: flex-start;
    font-family: var(--mp-font-body);
    font-weight: 500;
    gap: 20px;
    font-size: 0.8125rem;
}

/* ---- Page Hero Overrides (interior pages) ---- */
.demo-page-hero--image .demo-page-hero__overlay,
.demo-page-hero__overlay {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.88), rgba(5, 150, 105, 0.65));
}

.demo-page-hero h1,
.demo-page-hero--image h1 {
    text-transform: uppercase;
}

/* ---- Section Overrides ---- */
.demo-section h2 {
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* ---- Card Radius Override ---- */
.demo-service-card,
.demo-why-card,
.demo-testimonial,
.demo-area-card {
    border-radius: var(--mp-radius);
}

.demo-service-card__image {
    border-radius: var(--mp-radius) var(--mp-radius) 0 0;
}

/* ---- Trust Row / "Why Mesa Plumbing" ---- */
.mp-trust-row {
    padding: 64px 0;
    background: var(--demo-bg-alt);
}

.mp-trust-row h2 {
    text-align: center;
    margin-bottom: 12px;
}

.mp-trust-row .demo-section__subtitle {
    text-align: center;
}

.mp-trust-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
    background: var(--demo-bg);
    border-radius: var(--mp-radius);
    border: 1px solid var(--demo-border);
    border-left: 4px solid var(--mp-blue);
    transition: transform var(--demo-transition), box-shadow var(--demo-transition);
}

.mp-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--demo-shadow-xl);
}

.mp-trust-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(5, 150, 105, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.mp-trust-card__content {
    flex: 1;
}

.mp-trust-card h3 {
    font-family: var(--mp-font-heading);
    font-size: 1.1875rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    color: var(--demo-text);
}

.mp-trust-card p {
    font-size: 0.9375rem;
    color: var(--demo-text-muted);
    line-height: 1.6;
}

/* ---- Service Card Blue Border Hover ---- */
.mp-service-card {
    border: 2px solid var(--demo-border);
    border-radius: var(--mp-radius);
    transition: transform var(--demo-transition), box-shadow var(--demo-transition), border-color 0.3s;
}

.mp-service-card:hover {
    border-color: var(--mp-blue);
    box-shadow: var(--demo-shadow-xl);
    transform: translateY(-6px);
}

.mp-service-card .demo-service-card__image {
    border-radius: calc(var(--mp-radius) - 2px) calc(var(--mp-radius) - 2px) 0 0;
}

.mp-service-card .demo-link {
    color: var(--mp-blue);
    font-family: var(--mp-font-body);
    font-weight: 600;
}

.mp-service-card .demo-link:hover {
    color: var(--mp-blue-dark);
}

/* ---- Seasonal CTA Banner ---- */
.mp-seasonal-cta {
    background: linear-gradient(135deg, var(--mp-blue) 0%, var(--mp-green) 100%);
    color: #fff;
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}

.mp-seasonal-cta::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}

.mp-seasonal-cta::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

.mp-seasonal-cta .demo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.mp-seasonal-cta__content {
    max-width: 600px;
}

.mp-seasonal-cta__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.mp-seasonal-cta__content h2 {
    font-family: var(--mp-font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #fff;
}

.mp-seasonal-cta__content p {
    font-size: 1.0625rem;
    opacity: 0.9;
    line-height: 1.6;
}

.mp-seasonal-cta__actions .demo-btn--primary {
    background: #fff;
    color: var(--mp-blue);
    font-family: var(--mp-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 1rem;
    font-weight: 700;
}

.mp-seasonal-cta__actions .demo-btn--primary:hover {
    background: #f0f0f0;
}

/* ---- Process Section ---- */
.mp-process-section {
    background: var(--demo-bg-alt);
}

.demo-process__number {
    background: var(--mp-blue);
    font-family: var(--mp-font-heading);
    box-shadow: 0 4px 16px rgba(30, 64, 175, 0.25);
}

.demo-process__step h3 {
    font-family: var(--mp-font-heading);
    text-transform: uppercase;
}

.mp-process-section .demo-process__step .mp-step-icon {
    display: block;
    font-size: 1.75rem;
    margin-bottom: 8px;
}

/* ---- Stats Bar Override ---- */
.demo-stats-bar {
    background: var(--mp-blue);
}

.mp-stats-bar {
    background: var(--mp-blue);
}

.demo-stats-bar__number {
    font-family: var(--mp-font-heading);
    font-weight: 700;
}

/* ---- CTA Bar Overrides ---- */
.demo-cta-bar {
    background: var(--mp-blue);
}

.mp-cta-bar__overlay {
    background: rgba(30, 58, 138, 0.85);
}

.demo-cta-bar--image .demo-cta-bar__overlay {
    background: rgba(30, 58, 138, 0.82);
}

.demo-cta-bar__content h2 {
    font-family: var(--mp-font-heading);
    text-transform: uppercase;
}

.demo-cta-bar__actions .demo-btn--primary {
    font-family: var(--mp-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---- Testimonial Overrides ---- */
.demo-testimonial__icon {
    color: var(--mp-blue-light);
    opacity: 0.15;
}

.demo-testimonial__avatar {
    background: var(--mp-blue);
}

.demo-testimonial {
    border-top: 3px solid var(--mp-blue);
}

/* ---- Areas Section ---- */
.mp-areas-section .demo-area-tags {
    justify-content: center;
}

/* ---- Area Tags Override ---- */
.demo-area-tag:hover {
    background: var(--mp-blue);
    border-color: var(--mp-blue);
}

/* ---- Footer Overrides ---- */
.demo-footer::before {
    background: linear-gradient(90deg, var(--mp-blue), var(--mp-green), var(--mp-blue-light));
}

/* ---- Sticky Mobile Bottom Bar ---- */
.mp-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: var(--demo-bg);
    border-top: 1px solid var(--demo-border);
    padding: 8px 16px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
}

.mp-mobile-bar__inner {
    display: flex;
    gap: 8px;
    max-width: var(--demo-max-width);
    margin: 0 auto;
}

.mp-mobile-bar__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--mp-font-heading);
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.15s;
}

.mp-mobile-bar__btn--call {
    background: var(--mp-blue);
    color: #fff;
}

.mp-mobile-bar__btn--call:hover {
    background: var(--mp-blue-dark);
    color: #fff;
}

.mp-mobile-bar__btn--estimate {
    background: var(--mp-green);
    color: #fff;
}

.mp-mobile-bar__btn--estimate:hover {
    background: var(--mp-green-dark);
    color: #fff;
}

/* ---- Buttons Override ---- */
.demo-btn {
    font-family: var(--mp-font-body);
}

.demo-btn--primary {
    background: var(--mp-blue);
}

.demo-btn--primary:hover {
    background: var(--mp-blue-dark);
}

.demo-btn--secondary {
    color: var(--mp-blue);
    border-color: var(--mp-blue);
}

.demo-btn--secondary:hover {
    background: rgba(30, 64, 175, 0.05);
    color: var(--mp-blue);
}

/* ---- Link Color Override ---- */
a {
    color: var(--mp-blue);
}

a:hover {
    color: var(--mp-blue-dark);
}

.demo-link {
    color: var(--mp-blue);
}

.demo-link:hover {
    color: var(--mp-blue-dark);
}

/* ---- Feature Checklist Enhancement ---- */
.demo-content li::before {
    color: var(--mp-green);
}

.demo-checklist li::before {
    color: var(--mp-green);
}

/* ---- Emergency Sidebar (service pages) ---- */
.mp-emergency-sidebar {
    background: var(--demo-bg);
    border: 2px solid var(--mp-blue);
    border-radius: var(--mp-radius);
    padding: 24px;
    position: sticky;
    top: 120px;
}

.mp-emergency-sidebar__header {
    background: var(--mp-blue);
    color: #fff;
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    margin: -24px -24px 20px;
    font-family: var(--mp-font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
}

.mp-emergency-sidebar__phone {
    display: block;
    text-align: center;
    font-family: var(--mp-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mp-blue);
    text-decoration: none;
    margin-bottom: 16px;
    padding: 12px;
    border: 2px solid var(--mp-blue);
    border-radius: 8px;
    transition: all 0.15s;
}

.mp-emergency-sidebar__phone:hover {
    background: var(--mp-blue);
    color: #fff;
}

.mp-emergency-sidebar__hours {
    text-align: center;
    font-size: 0.875rem;
    color: var(--demo-text-muted);
    margin-bottom: 20px;
}

.mp-emergency-sidebar .demo-form {
    gap: 10px;
}

.mp-emergency-sidebar .demo-form input,
.mp-emergency-sidebar .demo-form textarea {
    font-size: 0.875rem;
    padding: 10px 12px;
}

.mp-emergency-sidebar .demo-btn--primary {
    background: var(--mp-blue);
    width: 100%;
    font-family: var(--mp-font-heading);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mp-emergency-sidebar .demo-btn--primary:hover {
    background: var(--mp-blue-dark);
}

/* ---- Nav Styling Overrides ---- */
.demo-nav a,
.demo-nav__trigger {
    font-family: var(--mp-font-body);
    font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .mp-emergency-bar {
        font-size: 0.8125rem;
        padding: 8px 0;
    }

    .mp-emergency-bar__text {
        display: none;
    }

    .demo-header {
        top: 36px;
    }

    body {
        padding-top: 36px;
    }

    .demo-hero {
        min-height: auto;
        padding: 70px 0 56px;
        text-align: center;
    }

    .demo-hero__content {
        padding-top: 0;
        padding-bottom: 0;
        max-width: 100%;
        align-items: center;
    }

    .demo-hero__overlay {
        background: linear-gradient(
            135deg,
            rgba(30, 58, 138, 0.92) 0%,
            rgba(30, 64, 175, 0.82) 100%
        );
    }

    .demo-hero h1 {
        font-size: 1.875rem;
    }

    .demo-hero p {
        text-align: center;
        margin: 0 auto 28px;
    }

    .demo-hero__actions {
        justify-content: center;
    }

    .demo-hero__trust {
        justify-content: center;
    }

    .mp-trust-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        border-left: 1px solid var(--demo-border);
        border-top: 4px solid var(--mp-blue);
    }

    .mp-seasonal-cta .demo-container {
        flex-direction: column;
        text-align: center;
    }

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

    /* Adjust demo banner for mobile bar */
    .demo-banner {
        bottom: 56px;
    }

    /* Adjust footer padding for mobile bar */
    .demo-footer {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .mp-emergency-bar .demo-container {
        gap: 8px;
    }

    .mp-emergency-bar__icon {
        display: none;
    }

    .mp-mobile-bar__btn {
        font-size: 0.8125rem;
        padding: 10px 12px;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .mp-trust-card,
    .mp-service-card {
        transition: none;
    }
}
