/* ========================================
   RESIDENTIAL SOLAR PAGE - PREMIUM DESIGN
   Modern, High-Converting Layout
   ======================================== */

/* ===== HERO SECTION - SPLIT LAYOUT ===== */

.residential-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    background: url("../images/hero-solar.c23051301d3e.png") center/cover no-repeat;
    padding: 80px 0;
    overflow: hidden;
}

@media (max-height: 900px) {
    .residential-hero {
        min-height: auto;
        padding: 90px 0 70px;
    }
}

/* Left-to-right gradient overlay */
.residential-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(44, 62, 80, 0.92) 0%,
            rgba(44, 62, 80, 0.85) 50%,
            rgba(44, 62, 80, 0.75) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-split-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 58% 42%;
    align-items: center;
    gap: 3.5rem;
}

.hero-content-left {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 107, 53, 0.15);
    color: var(--solar-orange);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 107, 53, 0.3);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.hero-content-left h1 {
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.hero-content-left p {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--solar-orange);
    color: var(--white);
    padding: 18px 44px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.0625rem;
    border: none;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-hero-primary:hover {
    background: var(--solar-orange-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 36px rgba(255, 107, 53, 0.5);
    color: var(--white);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    padding: 14px 38px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.0625rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    color: var(--white);
}

.hero-trust-indicators {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    font-weight: 500;
}

.trust-indicator i {
    color: var(--solar-yellow);
    font-size: 1rem;
}

.hero-content-right {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero-visual {
    width: 100%;
    max-width: 400px;
    height: 340px;
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.12) 0%,
            rgba(247, 184, 1, 0.10) 50%,
            rgba(255, 107, 53, 0.08) 100%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    padding: 1.5px;
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.35),
            rgba(247, 184, 1, 0.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.hero-visual::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ===== BENEFITS SECTION - 3 COLUMN GRID ===== */

.benefits-section {
    padding: 80px 0;
    background: #F8F9FA;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.benefit-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 107, 53, 0.2);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--solar-orange);
    font-size: 2rem;
}

.benefit-card h4 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
}

/* ===== SYSTEM SIZES - PRICING CARDS ===== */

.system-sizes-section {
    padding: 80px 0;
    background: var(--white);
}

.pricing-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 32px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    transform: scale(1.05);
    border-color: var(--solar-orange);
    box-shadow: 0 12px 48px rgba(255, 107, 53, 0.15);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--solar-orange);
    color: var(--white);
    padding: 6px 24px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.pricing-card h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.pricing-card .system-subtitle {
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.pricing-features li i {
    color: var(--energy-green);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.pricing-card .btn-pricing {
    width: 100%;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: 2px solid var(--solar-orange);
}

.pricing-card .btn-pricing-outline {
    background: transparent;
    color: var(--solar-orange);
}

.pricing-card .btn-pricing-outline:hover {
    background: var(--solar-orange);
    color: var(--white);
}

.pricing-card .btn-pricing-solid {
    background: var(--solar-orange);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.25);
}

.pricing-card .btn-pricing-solid:hover {
    background: var(--solar-orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

/* ===== CALCULATOR SECTION - SPLIT LAYOUT ===== */

.calculator-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.calculator-split-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.calculator-visual {
    flex: 0.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-icon-large {
    width: 200px;
    height: 200px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.calculator-icon-large i {
    font-size: 5rem;
    color: var(--solar-orange);
}

.calculator-content {
    flex: 1;
    color: var(--white);
}

.calculator-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.calculator-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-calculator {
    background: var(--white);
    color: var(--solar-orange);
    padding: 16px 48px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.0625rem;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-calculator:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    background: var(--gray-50);
    color: var(--solar-orange);
}

/* ===== INSTALLATION TIMELINE ===== */

.installation-section {
    padding: 80px 0;
    background: var(--white);
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.timeline-horizontal {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--solar-orange) 0%, var(--solar-orange) 100%);
    opacity: 0.3;
    z-index: 0;
}

.timeline-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--white);
    border: 3px solid var(--solar-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--solar-orange);
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.timeline-step:hover .step-number {
    background: var(--solar-orange);
    color: var(--white);
    transform: scale(1.1);
}

.timeline-step h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 0.75rem;
}

.timeline-step p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== FINAL CTA SECTION ===== */

.final-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #2C3E50 0%, #1A252F 100%);
    text-align: center;
}

.final-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.final-cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.final-cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-final-cta {
    background: var(--solar-orange);
    color: var(--white);
    padding: 20px 64px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.25rem;
    border: none;
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-final-cta:hover {
    background: var(--solar-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(255, 107, 53, 0.5);
    color: var(--white);
}

.trust-line {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ===== SECTION HEADERS ===== */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .hero-split-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .hero-content-left {
        max-width: 100%;
    }

    .hero-content-left p {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust-indicators {
        justify-content: center;
    }

    .hero-content-right {
        display: none;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .pricing-cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .calculator-split-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .calculator-content h2 {
        font-size: 2rem;
    }
}

/* Laptop (1024px - 1200px) */
@media (max-width: 1200px) {
    .residential-hero {
        padding: 70px 0;
        min-height: 80vh;
    }

    .hero-split-container {
        gap: 2.5rem;
        grid-template-columns: 56% 44%;
    }

    .hero-content-left h1 {
        font-size: clamp(1.875rem, 3.8vw, 3rem);
    }

    .hero-visual {
        max-width: 360px;
        height: 300px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .residential-hero {
        padding: 60px 0;
        min-height: 75vh;
    }

    .hero-split-container {
        grid-template-columns: 54% 46%;
        gap: 2rem;
    }

    .hero-content-left h1 {
        font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    }

    .hero-content-left p {
        font-size: 1rem;
    }

    .btn-hero-primary {
        padding: 16px 36px;
    }

    .btn-hero-secondary {
        padding: 14px 34px;
    }

    .hero-visual {
        max-width: 320px;
        height: 280px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .timeline-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .timeline-horizontal::before {
        display: none;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .residential-hero {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero-split-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 3rem;
        text-align: center;
    }

    .hero-content-left {
        order: 1;
    }

    .hero-content-right {
        order: 2;
        justify-self: center;
    }

    .hero-visual {
        max-width: 300px;
        height: 260px;
    }

    .hero-content-left h1 {
        font-size: clamp(1.875rem, 5.5vw, 2.25rem);
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content-left p {
        font-size: 1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 16px 32px;
    }

    .hero-trust-indicators {
        justify-content: center;
        gap: 1.5rem;
    }

    .benefits-section {
        padding: 50px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.875rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .system-sizes-section {
        padding: 50px 0;
    }

    .pricing-cards-container {
        padding: 0 1.5rem;
    }

    .calculator-section {
        padding: 50px 0;
    }

    .calculator-split-container {
        padding: 0 1.5rem;
    }

    .calculator-visual {
        display: none;
    }

    .calculator-content h2 {
        font-size: 1.75rem;
    }

    .calculator-content p {
        font-size: 1rem;
    }

    .btn-calculator {
        width: 100%;
        justify-content: center;
    }

    .installation-section {
        padding: 50px 0;
    }

    .timeline-horizontal {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .final-cta-section {
        padding: 60px 0;
    }

    .final-cta-section h2 {
        font-size: 2rem;
    }

    .final-cta-section p {
        font-size: 1.0625rem;
    }

    .btn-final-cta {
        width: 100%;
        padding: 18px 32px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .hero-content-left h1 {
        font-size: 1.75rem;
    }

    .benefit-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .benefit-card {
        padding: 32px 24px;
    }

    .pricing-card {
        padding: 32px 24px;
    }

    .step-number {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }

    .final-cta-section h2 {
        font-size: 1.75rem;
    }
}