/* ============================================================================
   DEMO SITE CSS — Clean Service Business Design
   Mesa Plumbing Co (and all demo sites)
   ============================================================================ */

:root {
    --demo-primary: #1e40af;
    --demo-primary-light: #3b82f6;
    --demo-primary-dark: #1e3a8a;
    --demo-accent: #059669;
    --demo-accent-light: #10b981;
    --demo-bg: #ffffff;
    --demo-bg-alt: #f8fafc;
    --demo-text: #1e293b;
    --demo-text-muted: #64748b;
    --demo-border: #e2e8f0;
    --demo-radius: 8px;
    --demo-radius-lg: 12px;
    --demo-shadow: 0 1px 3px rgba(0,0,0,0.1);
    --demo-shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --demo-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --demo-max-width: 1200px;
    --demo-shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --demo-radius-xl: 16px;
    --demo-transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --demo-primary-glow: rgba(30, 64, 175, 0.15);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--demo-font); color: var(--demo-text); background: var(--demo-bg); line-height: 1.6; }
a { color: var(--demo-primary); text-decoration: none; }
a:hover { color: var(--demo-primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Container */
.demo-container { max-width: var(--demo-max-width); margin: 0 auto; padding: 0 24px; }

/* ---- Header / Nav ---- */
.demo-header {
    background: var(--demo-bg);
    border-bottom: 1px solid var(--demo-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.demo-header .demo-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.demo-logo { text-decoration: none; }
.demo-logo__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--demo-primary);
}
.demo-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.demo-nav a, .demo-nav__trigger {
    padding: 8px 14px;
    color: var(--demo-text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--demo-radius);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.demo-nav a:hover, .demo-nav__trigger:hover { background: var(--demo-bg-alt); color: var(--demo-primary); }
.demo-nav__dropdown { position: relative; }
.demo-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--demo-bg);
    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius);
    box-shadow: var(--demo-shadow-lg);
    min-width: 240px;
    padding: 8px;
    z-index: 200;
}
.demo-nav__dropdown:hover .demo-nav__menu { display: block; }
.demo-nav__menu a {
    display: block;
    padding: 8px 12px;
    font-size: 0.875rem;
    border-radius: 4px;
}
.demo-nav__menu a:hover { background: var(--demo-bg-alt); }
.demo-header__actions { display: flex; gap: 8px; }
.demo-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.demo-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--demo-text);
    border-radius: 2px;
    transition: 0.2s;
}

/* ---- Buttons ---- */
.demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--demo-radius);
    font-family: var(--demo-font);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}
.demo-btn--primary { background: var(--demo-primary); color: #fff; }
.demo-btn--primary:hover { background: var(--demo-primary-dark); color: #fff; box-shadow: var(--demo-shadow); }
.demo-btn--secondary { background: transparent; color: var(--demo-primary); border: 1px solid var(--demo-primary); }
.demo-btn--secondary:hover { background: rgba(30, 64, 175, 0.05); color: var(--demo-primary); }
.demo-btn--lg { padding: 14px 32px; font-size: 1rem; }
.demo-btn--phone { white-space: nowrap; }
.demo-link { color: var(--demo-primary); font-weight: 500; font-size: 0.9375rem; }
.demo-link:hover { color: var(--demo-primary-dark); }

/* ---- Hero ---- */
.demo-hero {
    background: linear-gradient(135deg, var(--demo-primary-dark) 0%, var(--demo-primary) 100%);
    color: #fff;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.demo-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; line-height: 1.2; }
.demo-hero p { font-size: 1.125rem; opacity: 0.9; max-width: 640px; margin: 0 auto 32px; }
.demo-hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.demo-hero__actions .demo-btn--primary { background: #fff; color: var(--demo-primary); }
.demo-hero__actions .demo-btn--primary:hover { background: #f0f0f0; }
.demo-hero__actions .demo-btn--secondary { border-color: rgba(255,255,255,0.5); color: #fff; }
.demo-hero__actions .demo-btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.demo-hero__trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.875rem;
    opacity: 0.8;
}
.demo-hero__trust span { display: flex; align-items: center; gap: 6px; }

/* ---- Page Hero (interior pages) ---- */
.demo-page-hero {
    background: var(--demo-bg-alt);
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--demo-border);
}
.demo-page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 8px; line-height: 1.2; }
.demo-page-hero p { color: var(--demo-text-muted); font-size: 1.0625rem; max-width: 700px; }

/* ---- Breadcrumbs ---- */
.demo-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--demo-text-muted);
    margin-bottom: 16px;
}
.demo-breadcrumbs a { color: var(--demo-primary); }

/* ---- Sections ---- */
.demo-section { padding: 64px 0; }
.demo-section--alt { background: var(--demo-bg-alt); }
.demo-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.demo-section__subtitle { color: var(--demo-text-muted); margin-bottom: 32px; font-size: 1.0625rem; }
.demo-section__cta { margin-top: 32px; text-align: center; }

/* ---- Grids ---- */
.demo-grid { display: grid; gap: 24px; }
.demo-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.demo-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---- Service Card ---- */
.demo-service-card {
    background: var(--demo-bg);
    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius-lg);
    padding: 24px;
    overflow: hidden;
    transition: transform var(--demo-transition), box-shadow var(--demo-transition), border-color 0.15s;
}
.demo-service-card:hover { border-color: var(--demo-primary-light); box-shadow: var(--demo-shadow-xl); transform: translateY(-4px); }
.demo-service-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.demo-service-card h3 a { color: var(--demo-text); text-decoration: none; }
.demo-service-card h3 a:hover { color: var(--demo-primary); }
.demo-service-card p { color: var(--demo-text-muted); font-size: 0.9375rem; margin-bottom: 12px; }

/* ---- Area Tags ---- */
.demo-area-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-area-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--demo-bg);
    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--demo-text);
    text-decoration: none;
    transition: all var(--demo-transition);
}
a.demo-area-tag:hover { border-color: var(--demo-primary); background: rgba(30, 64, 175, 0.03); color: var(--demo-primary); }
.demo-area-tag--static { cursor: default; }

/* ---- Area Card ---- */
.demo-area-card {
    background: var(--demo-bg);
    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius-lg);
    padding: 24px;
}
.demo-area-card h3 { margin-bottom: 8px; }
.demo-area-card h3 a { color: var(--demo-text); }
.demo-area-card h3 a:hover { color: var(--demo-primary); }
.demo-area-card p { color: var(--demo-text-muted); font-size: 0.9375rem; margin-bottom: 8px; }
.demo-area-card__zip { font-size: 0.8125rem; color: var(--demo-text-muted); }

/* ---- Testimonials ---- */
.demo-testimonial {
    background: var(--demo-bg);
    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius-lg);
    padding: 24px;
    position: relative;
    padding-top: 40px;
    transition: transform var(--demo-transition), box-shadow var(--demo-transition);
}
.demo-testimonial__stars { margin-bottom: 8px; }
.demo-star { color: #f59e0b; font-size: 1.125rem; }
.demo-testimonial__quote { font-size: 1rem; line-height: 1.6; margin-bottom: 12px; color: var(--demo-text); }
.demo-testimonial__author strong { display: block; font-size: 0.9375rem; }
.demo-testimonial__author span { font-size: 0.8125rem; color: var(--demo-text-muted); }

/* ---- CTA Bar ---- */
.demo-cta-bar {
    background: var(--demo-primary);
    color: #fff;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}
.demo-cta-bar .demo-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.demo-cta-bar__content h2 { font-size: 1.5rem; margin-bottom: 4px; }
.demo-cta-bar__content p { opacity: 0.9; font-size: 0.9375rem; }
.demo-cta-bar__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-cta-bar__actions .demo-btn--primary { background: #fff; color: var(--demo-primary); }
.demo-cta-bar__actions .demo-btn--primary:hover { background: #f0f0f0; }
.demo-cta-bar__actions .demo-btn--secondary { border-color: rgba(255,255,255,0.5); color: #fff; }
.demo-cta-bar__actions .demo-btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---- Content ---- */
.demo-content { max-width: 720px; }
.demo-content h2 { margin-bottom: 16px; }
.demo-content h3 { margin-top: 32px; margin-bottom: 12px; font-size: 1.25rem; }
.demo-content p { margin-bottom: 16px; color: var(--demo-text); }
.demo-content ul { margin-bottom: 16px; padding-left: 0; }
.demo-content li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}
.demo-content li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--demo-accent);
    font-weight: 700;
}
.demo-checklist li::before { content: "\2713"; color: var(--demo-accent); }

/* ---- FAQ ---- */
.demo-faq { max-width: 720px; }
.demo-faq__item { margin-bottom: 24px; }
.demo-faq__item h3 { font-size: 1rem; margin-bottom: 8px; color: var(--demo-text); }
.demo-faq__item p { color: var(--demo-text-muted); }

/* ---- Contact ---- */
.demo-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.demo-contact-info h3, .demo-contact-form h3 { margin-bottom: 16px; }
.demo-contact-info p { margin-bottom: 8px; }
.demo-form { display: flex; flex-direction: column; gap: 12px; }
.demo-form input, .demo-form select, .demo-form textarea {
    padding: 10px 14px;
    border: 1px solid var(--demo-border);
    border-radius: var(--demo-radius);
    font-family: var(--demo-font);
    font-size: 0.9375rem;
    color: var(--demo-text);
    background: var(--demo-bg);
    outline: none;
    transition: border-color 0.15s;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { border-color: var(--demo-primary); }
.demo-form-success { padding: 24px; text-align: center; color: var(--demo-accent); font-weight: 600; }

/* ---- Footer ---- */
.demo-footer { background: var(--demo-text); color: #cbd5e1; padding: 64px 0 24px; position: relative; }
.demo-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.demo-footer__logo { color: #fff; font-size: 1.25rem; margin-bottom: 12px; }
.demo-footer h4 { color: #fff; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.demo-footer ul li { margin-bottom: 8px; }
.demo-footer a { color: #94a3b8; font-size: 0.875rem; }
.demo-footer a:hover { color: #fff; }
.demo-footer__license { font-size: 0.8125rem; color: #64748b; margin-top: 12px; }
.demo-footer__bottom { border-top: 1px solid #334155; padding-top: 24px; font-size: 0.8125rem; color: #64748b; text-align: center; }
.demo-footer__bottom a { color: #94a3b8; }

/* ---- Demo Banner (fixed bottom) ---- */
.demo-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #fff;
    z-index: 1000;
    padding: 10px 0;
    font-size: 0.875rem;
}
.demo-banner__inner {
    max-width: var(--demo-max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.demo-banner__label {
    background: #B00D68;
    color: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.demo-banner__text { flex: 1; }
.demo-banner__text a { color: #B00D68; }
.demo-banner__cta {
    background: #B00D68;
    color: #fff;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
}
.demo-banner__cta:hover { background: #e0117f; color: #fff; }

/* ---- Header Scroll Effect ---- */
.demo-header--scrolled {
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}

/* ---- Hero Background Image Support ---- */
.demo-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.demo-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(30,58,138,0.88), rgba(30,64,175,0.72));
}

.demo-hero__content {
    position: relative;
    z-index: 2;
}

/* ---- Page Hero Background Image Support (Interior Pages) ---- */
.demo-page-hero--image {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    color: #fff;
    border-bottom: none;
    background: var(--demo-primary-dark);
}

.demo-page-hero--image .demo-breadcrumbs,
.demo-page-hero--image .demo-breadcrumbs a {
    color: rgba(255,255,255,0.8);
}

.demo-page-hero--image h1 {
    color: #fff;
}

.demo-page-hero--image p {
    color: rgba(255,255,255,0.9);
}

.demo-page-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.demo-page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(30,58,138,0.85), rgba(30,64,175,0.7));
}

.demo-page-hero--image .demo-container {
    position: relative;
    z-index: 2;
}

/* ---- Service Card Image Enhancement ---- */
.demo-service-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--demo-radius-lg) var(--demo-radius-lg) 0 0;
}

.demo-service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--demo-transition);
}

.demo-service-card:hover .demo-service-card__image img {
    transform: scale(1.05);
}

.demo-service-card__body {
    padding: 24px;
}

/* When card has an image, remove top-level padding */
.demo-service-card:has(.demo-service-card__image) {
    padding: 0;
}

/* ---- Testimonial Enhancement ---- */
.demo-testimonial:hover {
    transform: translateY(-2px);
    box-shadow: var(--demo-shadow-lg);
}

.demo-testimonial__icon {
    position: absolute;
    top: -8px;
    left: 24px;
    font-size: 4rem;
    line-height: 1;
    color: var(--demo-primary-light);
    opacity: 0.2;
    font-family: Georgia, serif;
    pointer-events: none;
}

.demo-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.demo-testimonial__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--demo-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* ---- CTA Bar Background Image Support ---- */
.demo-cta-bar--image {
    background: var(--demo-primary-dark);
}

.demo-cta-bar__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.demo-cta-bar__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(30,58,138,0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.demo-cta-bar--image .demo-container {
    position: relative;
    z-index: 2;
}

/* ---- Why Choose Us Cards ---- */
.demo-why-card {
    background: #fff;
    border-radius: var(--demo-radius-xl);
    overflow: hidden;
    box-shadow: var(--demo-shadow);
    border: 1px solid var(--demo-border);
    transition: transform var(--demo-transition), box-shadow var(--demo-transition);
}

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

.demo-why-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.demo-why-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--demo-transition);
}

.demo-why-card:hover .demo-why-card__image img {
    transform: scale(1.05);
}

.demo-why-card__body {
    padding: 24px;
}

.demo-why-card__body h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--demo-text);
}

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

/* ---- Process / How It Works ---- */
.demo-process {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 48px;
}

.demo-process__step {
    text-align: center;
    flex: 1;
    max-width: 280px;
    padding: 0 16px;
}

.demo-process__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--demo-primary);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 16px var(--demo-primary-glow);
}

.demo-process__step h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--demo-text);
}

.demo-process__step p {
    font-size: 0.9375rem;
    color: var(--demo-text-muted);
    line-height: 1.5;
}

.demo-process__connector {
    width: 60px;
    height: 2px;
    background: var(--demo-border);
    margin-top: 28px;
    flex-shrink: 0;
    position: relative;
}

.demo-process__connector::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -4px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--demo-border);
}

/* ---- Stats Bar ---- */
.demo-stats-bar {
    background: var(--demo-primary-dark);
    padding: 48px 0;
    color: #fff;
}

.demo-stats-bar .demo-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 32px;
}

.demo-stats-bar__item {
    text-align: center;
    min-width: 120px;
}

.demo-stats-bar__number {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.demo-stats-bar__label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Scroll Animations ---- */
/* .js prefix ensures content is visible if JS fails to load */
.js .animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children when parent has animate-in */
.animate-in.visible .demo-service-card,
.animate-in.visible .demo-why-card,
.animate-in.visible .demo-testimonial,
.animate-in.visible .demo-process__step,
.animate-in.visible .demo-stats-bar__item {
    animation: fadeInUp 0.5s ease-out both;
}

.animate-in.visible .demo-service-card:nth-child(2),
.animate-in.visible .demo-why-card:nth-child(2),
.animate-in.visible .demo-testimonial:nth-child(2),
.animate-in.visible .demo-process__step:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-in.visible .demo-service-card:nth-child(3),
.animate-in.visible .demo-why-card:nth-child(3),
.animate-in.visible .demo-testimonial:nth-child(3),
.animate-in.visible .demo-process__step:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Section Dividers ---- */
.demo-section + .demo-section:not(.demo-section--alt) {
    border-top: 1px solid var(--demo-border);
}

/* ---- Area Tag Hover Enhancement ---- */
.demo-area-tag:hover {
    background: var(--demo-primary);
    color: #fff;
    border-color: var(--demo-primary);
    transform: translateY(-2px);
}

/* ---- Footer Gradient Top Edge ---- */
.demo-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--demo-primary), var(--demo-accent), var(--demo-primary-light));
}

/* ---- FAQ Accordion Enhancement ---- */
.demo-faq__item {
    border-bottom: 1px solid var(--demo-border);
    padding-bottom: 24px;
}

.demo-faq__item:last-child {
    border-bottom: none;
}

.demo-faq__item h3 {
    cursor: default;
}

/* ---- Service Detail Page Sidebar Layout ---- */
.demo-service-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.demo-service-detail__sidebar img {
    width: 100%;
    border-radius: var(--demo-radius-xl);
    box-shadow: var(--demo-shadow-lg);
}

/* ---- Related Services Grid ---- */
.demo-related-services h2 {
    margin-bottom: 24px;
}

/* ---- Reviews Grid Enhancement ---- */
.demo-grid--reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* ---- Reduced Motion Preference ---- */
@media (prefers-reduced-motion: reduce) {
    .animate-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .animate-in.visible .demo-service-card,
    .animate-in.visible .demo-why-card,
    .animate-in.visible .demo-testimonial,
    .animate-in.visible .demo-process__step,
    .animate-in.visible .demo-stats-bar__item {
        animation: none;
    }
    .demo-service-card,
    .demo-testimonial,
    .demo-why-card,
    .demo-area-tag {
        transition: none;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .demo-nav { display: none; }
    .demo-header__actions .demo-btn--phone { font-size: 0.8125rem; padding: 8px 14px; }
    .demo-menu-toggle { display: flex; }
    .demo-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--demo-bg);
        border-bottom: 1px solid var(--demo-border);
        padding: 16px 24px;
        box-shadow: var(--demo-shadow-lg);
    }
    .demo-nav.open .demo-nav__menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }
    .demo-nav.open .demo-nav__dropdown:hover .demo-nav__menu { display: block; }
    .demo-hero { padding: 48px 0 40px; }
    .demo-hero h1 { font-size: 1.75rem; }
    .demo-contact-grid { grid-template-columns: 1fr; }
    .demo-footer__grid { grid-template-columns: 1fr 1fr; }
    .demo-cta-bar .demo-container { flex-direction: column; text-align: center; }
    .demo-process {
        flex-direction: column;
        align-items: center;
    }
    .demo-process__connector {
        width: 2px;
        height: 40px;
        margin: 8px 0;
    }
    .demo-process__connector::after {
        right: auto;
        top: auto;
        bottom: -4px;
        left: -4px;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 8px solid var(--demo-border);
        border-bottom: none;
    }
    .demo-service-detail {
        grid-template-columns: 1fr;
    }
    .demo-service-detail__sidebar {
        order: -1;
    }
}
@media (max-width: 480px) {
    .demo-footer__grid { grid-template-columns: 1fr; }
    .demo-grid--3 { grid-template-columns: 1fr; }
    .demo-stats-bar .demo-container {
        gap: 24px;
    }
    .demo-stats-bar__item {
        min-width: 100px;
        flex: 1 1 40%;
    }
}
