/**
 * residential.css - Residential Holiday Lighting
 * Holiday Lights Decor - Multi-Franchise Template
 *
 * Warm, family-oriented Christmas spirit design.
 * Uses GLOBAL palette from main.css with subtle page accents.
 *
 * Loaded via: $page_css = ['residential.css']
 * Dependencies: main.css (global), pages-common.css (breadcrumb, FAQ, section-header)
 *
 * @version 12.0.0 (UNIFIED PALETTE)
 */

/* ==========================================================================
   RESIDENTIAL VARIABLES — mapped to global palette
   ========================================================================== */
:root {
    --res-green: var(--color-primary-dark);
    --res-green-mid: #234f3e;
    --res-green-light: var(--color-primary);
    --res-cranberry: var(--color-secondary);
    --res-cranberry-light: #d4253f;
    --res-cranberry-pale: rgba(196, 30, 58, 0.07);
    --res-gold: var(--color-gold);
    --res-cream: var(--color-bg-alt);
    --res-light: var(--color-bg-alt);
    --res-border: #e4dfd6;
    --res-text: var(--color-text);
    --res-text-muted: var(--color-text-muted);
    --res-radius: 12px;
    --res-radius-lg: 20px;
}


/* ==========================================================================
   HERO — Warm, inviting, centered
   ========================================================================== */

.res-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--res-green);
    padding-top: var(--header-height);
    text-align: center;
}

.res-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.res-hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.18;
}

.res-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 110%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(196, 30, 58, 0.06) 0%, transparent 40%),
        linear-gradient(170deg, var(--res-green) 0%, var(--res-green-mid) 100%);
}

.res-hero-warmth {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 70%,
        rgba(212, 175, 55, 0.04) 0%,
        transparent 60%
    );
}

.res-hero .snow-container {
    z-index: 1;
}

.res-hero .container {
    position: relative;
    z-index: 2;
}

.res-hero-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 0 50px;
}

/* Hero Badge */
.res-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--res-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.res-hero-badge svg {
    width: 14px;
    height: 14px;
}

/* Hero Title */
.res-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    color: #fff;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.res-hero h1 span {
    color: var(--res-gold);
}

.res-hero-lead {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Trust Strip */
.res-hero-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.res-hero-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.res-hero-trust-item svg {
    width: 15px;
    height: 15px;
    color: var(--res-gold);
}

/* Hero Actions */
.res-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.res-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--res-cranberry);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--res-cranberry);
    transition: all 0.3s;
}

.res-btn-primary:hover {
    background: var(--res-cranberry-light);
    border-color: var(--res-cranberry-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
    color: #fff;
}

.res-btn-primary svg {
    width: 16px;
    height: 16px;
}

.res-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.3s;
}

.res-btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
}

.res-btn-outline svg {
    width: 16px;
    height: 16px;
}


/* ==========================================================================
   SERVICES — Split layout
   ========================================================================== */

.res-services {
    padding: 90px 0;
    background: #fff;
}

.res-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.res-services-content .section-label {
    display: block;
    margin-bottom: 12px;
}

.res-services-content h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    color: var(--res-text);
    line-height: 1.2;
    margin-bottom: 14px;
}

.res-services-lead {
    font-size: 0.95rem;
    color: var(--res-text-muted);
    line-height: 1.75;
    margin-bottom: 30px;
}

/* Checklist */
.res-checklist {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.res-checklist-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.res-checklist-icon {
    width: 36px;
    height: 36px;
    background: var(--res-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--res-gold);
}

.res-checklist-icon svg {
    width: 16px;
    height: 16px;
}

.res-checklist-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--res-text);
    margin-bottom: 2px;
}

.res-checklist-item span {
    font-size: 0.82rem;
    color: var(--res-text-muted);
    line-height: 1.5;
}

/* Image side */
.res-services-image {
    position: relative;
    border-radius: var(--res-radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(45, 45, 45, 0.1);
}

.res-services-image img {
    width: 100%;
    height: auto;
    display: block;
}

.res-services-image-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: var(--res-green);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--res-radius);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.res-services-image-badge strong {
    display: block;
    font-size: 0.9rem;
    color: var(--res-gold);
    margin-bottom: 2px;
}

.res-services-image-badge span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}


/* ==========================================================================
   OPTIONS — Photo cards with pricing
   ========================================================================== */

.res-options {
    padding: 90px 0;
    background: var(--res-cream);
}

.res-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.res-option-card {
    background: #fff;
    border: 1px solid var(--res-border);
    border-radius: var(--res-radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.res-option-card:hover {
    border-color: var(--res-green);
    box-shadow: 0 8px 30px rgba(45, 45, 45, 0.08);
    transform: translateY(-3px);
}

.res-option-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.res-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.res-option-card:hover .res-option-image img {
    transform: scale(1.05);
}

.res-option-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--res-green);
    color: var(--res-gold);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.res-option-body {
    padding: 18px 20px 22px;
}

.res-option-body h3 {
    font-size: 1.05rem;
    color: var(--res-text);
    margin-bottom: 6px;
}

.res-option-body p {
    font-size: 0.82rem;
    color: var(--res-text-muted);
    line-height: 1.55;
}


/* ==========================================================================
   PROCESS — Vertical timeline
   ========================================================================== */

.res-process {
    padding: 90px 0;
    background: #fff;
}

.res-process-steps {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Vertical line */
.res-process-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: var(--res-border);
}

.res-process-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 12px 0;
    position: relative;
}

.res-step-marker {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.res-step-number {
    width: 48px;
    height: 48px;
    background: var(--res-green);
    color: var(--res-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(26, 71, 42, 0.2);
}

.res-step-content {
    padding-top: 8px;
}

.res-step-content h3 {
    font-size: 1.05rem;
    color: var(--res-text);
    margin-bottom: 4px;
}

.res-step-content p {
    font-size: 0.85rem;
    color: var(--res-text-muted);
    line-height: 1.6;
}


/* ==========================================================================
   PACKAGES — 3-tier pricing
   ========================================================================== */

.res-packages {
    padding: 90px 0;
    background: var(--res-cream);
}

.res-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.res-package-card {
    background: #fff;
    border: 1px solid var(--res-border);
    border-radius: var(--res-radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: all 0.3s;
}

.res-package-card:hover {
    box-shadow: 0 8px 30px rgba(45, 45, 45, 0.08);
    transform: translateY(-3px);
}

/* Featured card */
.res-package-featured {
    border: 2px solid var(--res-cranberry);
    background: #fff;
}

.res-package-featured:hover {
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.12);
}

.res-package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--res-cranberry);
    color: #fff;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* Package Header */
.res-package-header {
    text-align: center;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--res-border);
}

.res-package-header h3 {
    font-size: 1.15rem;
    color: var(--res-text);
    margin-bottom: 8px;
}

.res-package-price {
    margin-bottom: 8px;
}

.res-package-price strong {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--res-text);
}

.res-package-price span {
    font-size: 1.3rem;
    color: var(--res-text-muted);
    font-weight: 600;
}

.res-package-featured .res-package-price strong {
    color: var(--res-cranberry);
}

.res-package-header p {
    font-size: 0.82rem;
    color: var(--res-text-muted);
    line-height: 1.5;
}

/* Features */
.res-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.res-package-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--res-text);
    line-height: 1.4;
}

.res-package-features li svg {
    width: 16px;
    height: 16px;
    color: var(--res-green-light);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Buttons */
.res-package-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border: 2px solid var(--res-green);
    background: transparent;
    color: var(--res-green);
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.res-package-btn:hover {
    background: var(--res-green);
    color: #fff;
}

.res-package-btn svg {
    width: 16px;
    height: 16px;
}

.res-package-btn-featured {
    background: var(--res-cranberry);
    border-color: var(--res-cranberry);
    color: #fff;
}

.res-package-btn-featured:hover {
    background: var(--res-cranberry-light);
    border-color: var(--res-cranberry-light);
    color: #fff;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.25);
}

/* Note below packages */
.res-packages-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--res-text-muted);
    margin-top: 32px;
    line-height: 1.6;
}

.res-packages-note a {
    color: var(--res-cranberry);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.res-packages-note a:hover {
    color: var(--res-cranberry-light);
}


/* ==========================================================================
   CTA — Warm festive
   ========================================================================== */

.res-cta {
    position: relative;
    padding: 80px 0;
    background: var(--res-green);
    text-align: center;
    overflow: hidden;
}

.res-cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(196, 30, 58, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.res-cta .container {
    position: relative;
    z-index: 1;
}

.res-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.res-cta h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.2;
}

.res-cta p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-bottom: 28px;
}

.res-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.res-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--res-cranberry);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid var(--res-cranberry);
    transition: all 0.3s;
}

.res-cta-btn:hover {
    background: var(--res-cranberry-light);
    border-color: var(--res-cranberry-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
    color: #fff;
}

.res-cta-btn svg {
    width: 16px;
    height: 16px;
}

.res-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.res-cta-phone:hover {
    color: var(--res-gold);
}

.res-cta-phone svg {
    width: 15px;
    height: 15px;
}


/* ==========================================================================
   FAQ OVERRIDE
   ========================================================================== */

.page-residential .faq-section {
    padding: 80px 0;
    background: #fff;
}


/* ==========================================================================
   SERVICES NAV
   ========================================================================== */

.res-services-nav {
    padding: 50px 0 150px;
    background: #fff;
    text-align: center;
}

.res-services-nav h3 {
    font-size: 0.95rem;
    color: var(--res-text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.res-nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.res-nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--res-border);
    border-radius: 8px;
    color: var(--res-text);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.res-nav-links a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(34, 139, 34, 0.03);
}

.res-nav-links a svg {
    width: 16px;
    height: 16px;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .res-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .res-hero {
        min-height: auto;
    }

    .res-hero-content {
        padding: 50px 0 40px;
    }

    .res-services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .res-services-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .res-packages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .res-services,
    .res-options,
    .res-process,
    .res-packages {
        padding: 60px 0;
    }

    .res-options-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .res-hero-trust {
        gap: 16px;
    }

    .res-cta {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .res-hero h1 {
        font-size: 1.7rem;
    }

    .res-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .res-btn-primary,
    .res-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .res-hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .res-process-steps::before {
        left: 19px;
    }

    .res-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .res-nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .res-nav-links a {
        justify-content: center;
    }
}.res-options-grid--2col{grid-template-columns:repeat(2,1fr)}
