/* ============================================================================
   SUMMIT HEATING & COOLING — Custom Demo Site CSS
   "Southern Comfort Meets 24/7 Urgency"
   ============================================================================ */

/* ---- Typography System ---- */
:root {
    --sh-font-heading: 'Barlow Condensed', sans-serif;
    --sh-font-body: 'DM Sans', sans-serif;
    --sh-radius: 12px;
    --sh-emergency: #b91c1c;
    --sh-emergency-dark: #991b1b;
    --sh-emergency-light: #dc2626;
}

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

h1, h2, h3, h4, h5, h6,
.demo-logo__name,
.demo-stats-bar__number,
.demo-process__number {
    font-family: var(--sh-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 ---- */
.sh-emergency-bar {
    background: var(--sh-emergency);
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    font-family: var(--sh-font-body);
    font-size: 0.9375rem;
    font-weight: 500;
}

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

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

.sh-emergency-bar__text {
    font-weight: 500;
}

.sh-emergency-bar__phone {
    color: #fff;
    font-weight: 700;
    font-family: var(--sh-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;
}

.sh-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 pulse animation */
.demo-header__actions .demo-btn--phone {
    animation: sh-phone-pulse 10s ease-in-out infinite;
    background: var(--sh-emergency);
}

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

@keyframes sh-phone-pulse {
    0%, 85%, 100% { box-shadow: none; }
    90% { box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.3); }
    95% { box-shadow: 0 0 0 8px rgba(185, 28, 28, 0); }
}

/* ---- Hero Overrides ---- */
.demo-hero {
    padding: 120px 0 100px;
    text-align: left;
}

.demo-hero__overlay {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.85), rgba(30, 41, 59, 0.75));
}

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

.demo-hero p {
    font-family: var(--sh-font-body);
    font-size: 1.1875rem;
    text-align: left;
    margin: 0 0 36px;
    max-width: 560px;
}

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

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

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

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

.demo-hero__trust {
    justify-content: flex-start;
    font-family: var(--sh-font-body);
    font-weight: 500;
}

/* ---- Page Hero Overrides (interior) ---- */
.demo-page-hero--image .demo-page-hero__overlay,
.demo-page-hero__overlay {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.82), rgba(30, 41, 59, 0.72));
}

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

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

/* Angled section dividers */
.sh-angled {
    position: relative;
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 0 100%);
    padding-top: 80px;
    padding-bottom: 80px;
}

.sh-angled--reverse {
    clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 97%);
}

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

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

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

.demo-service-card:hover {
    border-image: linear-gradient(135deg, var(--sh-emergency), var(--demo-accent)) 1;
    border-style: solid;
    border-width: 2px;
    box-shadow: var(--demo-shadow-xl);
    transform: translateY(-6px);
}

/* Modern browsers: gradient border via background-clip trick */
@supports (background-clip: padding-box) {
    .demo-service-card {
        border: 2px solid transparent;
        background: linear-gradient(var(--demo-bg), var(--demo-bg)) padding-box,
                    linear-gradient(135deg, var(--demo-border), var(--demo-border)) border-box;
        transition: transform var(--demo-transition), box-shadow var(--demo-transition), background 0.3s;
    }

    .demo-service-card:hover {
        border-image: none;
        background: linear-gradient(var(--demo-bg), var(--demo-bg)) padding-box,
                    linear-gradient(135deg, var(--sh-emergency), var(--demo-accent)) border-box;
        box-shadow: var(--demo-shadow-xl);
        transform: translateY(-6px);
    }
}

/* ---- Trust Row / "Why Summit" ---- */
.sh-trust-row {
    padding: 64px 0;
}

.sh-trust-row h2 {
    text-align: center;
    margin-bottom: 40px;
}

.sh-trust-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--demo-bg);
    border-radius: var(--sh-radius);
    border: 1px solid var(--demo-border);
    transition: transform var(--demo-transition), box-shadow var(--demo-transition);
}

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

.sh-trust-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--demo-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.75rem;
}

.sh-trust-card h3 {
    font-family: var(--sh-font-heading);
    font-size: 1.25rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

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

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

.sh-seasonal-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}

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

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

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

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

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

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

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

/* ---- Stats Bar Override ---- */
.demo-stats-bar {
    background: var(--sh-emergency-dark);
}

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

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

.demo-cta-bar--image .demo-cta-bar__overlay {
    background: rgba(153, 27, 27, 0.8);
}

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

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

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

.demo-testimonial__avatar {
    background: var(--sh-emergency);
}

/* ---- Footer Overrides ---- */
.demo-footer::before {
    background: linear-gradient(90deg, var(--sh-emergency), var(--demo-accent), var(--sh-emergency-light));
}

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

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

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

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

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

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

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

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

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

/* ---- Sticky Mobile Bottom Bar ---- */
.sh-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);
}

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

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

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

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

.sh-mobile-bar__btn--schedule {
    background: var(--demo-accent);
    color: #fff;
}

.sh-mobile-bar__btn--schedule:hover {
    background: #047857;
    color: #fff;
}

/* ---- Process Section Override ---- */
.demo-process__number {
    background: var(--sh-emergency);
    font-family: var(--sh-font-heading);
    box-shadow: 0 4px 16px rgba(185, 28, 28, 0.25);
}

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

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

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

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

.demo-btn--primary {
    background: var(--sh-emergency);
}

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

.demo-btn--secondary {
    color: var(--sh-emergency);
    border-color: var(--sh-emergency);
}

.demo-btn--secondary:hover {
    background: rgba(185, 28, 28, 0.05);
    color: var(--sh-emergency);
}

/* ---- Link Color Override ---- */
a {
    color: var(--demo-accent);
}

a:hover {
    color: #047857;
}

.demo-link {
    color: var(--sh-emergency);
}

.demo-link:hover {
    color: var(--sh-emergency-dark);
}

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

.demo-checklist li::before {
    color: var(--sh-emergency);
}

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

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

    .demo-header {
        top: 36px;
    }

    body {
        padding-top: 36px;
    }

    .demo-hero {
        padding: 80px 0 60px;
        text-align: center;
    }

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

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

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

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

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

    .sh-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) {
    .sh-emergency-bar .demo-container {
        gap: 8px;
    }

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

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

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .demo-header__actions .demo-btn--phone {
        animation: none;
    }
}
