/* RavenResidential Energy Management Widget Styles */
.raven-residential-container {
    width: 100%;
    background: #f1f5f9;
    padding: 60px 40px;
    box-sizing: border-box;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 50px;
}

.main-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 30px 0;
    line-height: 1.2;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1e3a8a;
    margin: 0 0 20px 0;
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text:last-child {
    margin-bottom: 0;
}

/* Main Content Slider */
.raven-residential-content {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.slide {
    display: none;
    width: calc(50% - 30px);
    flex-shrink: 0;
}

.slide.active {
    display: block;
}

.slide.active + .slide.active {
    display: block;
}

/* Slides Container */
.slides-container {
    display: flex;
    gap: 60px;
    transition: transform 0.3s ease;
}

/* Slide Content */
.slide-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    text-align: center;
}

/* Images */
.image-container {
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

/* Content */
.slide-content {
    position: relative;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0;
    line-height: 1.3;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.body-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1e3a8a;
    margin: 0;
    font-family: 'Arial', sans-serif;
    max-width: 600px;
}

/* Expandable Content */
.expandable-content {
    position: relative;
    margin-top: 20px;
}

.expand-button {
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.expand-button:hover {
    background: #1e3a8a;
    transform: scale(1.1);
}

.expand-button.expanded .expand-icon {
    transform: rotate(45deg);
}

.expand-icon {
    transition: transform 0.3s ease;
}

/* When expanded, slide-content-inner covers the image */
.slide-content-inner.expanded {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 1);
    z-index: 10;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    height: fit-content;
}

.slide-content-inner.expanded .section-heading {
    margin-bottom: 15px;
    color: #1e3a8a;
}

.slide-content-inner.expanded .body-text {
    margin-bottom: 20px;
    color: #1e3a8a;
}

/* Navigation Arrows */
.navigation-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.navigation-arrow:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.navigation-arrow i {
    font-size: 20px;
    color: #6b7280;
    transition: color 0.3s ease;
}

.navigation-arrow:hover i {
    color: #ffffff;
}

.navigation-prev {
    left: 20px;
}

.navigation-next {
    right: 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .raven-residential-container {
        padding: 50px 30px;
        max-width: 100%;
    }
    
    .slide {
        width: calc(50% - 25px);
    }
    
    .slides-container {
        gap: 50px;
    }
}

@media (max-width: 1024px) {
    .raven-residential-container {
        padding: 40px 25px;
    }
    
    .main-heading {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .intro-text {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .slide {
        width: calc(50% - 20px);
    }
    
    .slides-container {
        gap: 40px;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .image-container img {
        height: 350px;
    }
}

@media (max-width: 900px) {
    .raven-residential-container {
        padding: 35px 20px;
    }
    
    .main-heading {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .intro-text {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .slide {
        width: calc(50% - 15px);
    }
    
    .slides-container {
        gap: 30px;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .expand-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .expanded-text {
        padding: 18px;
        font-size: 0.9rem;
    }
    
    .image-container img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .raven-residential-container {
        padding: 30px 20px;
    }
    
    .main-heading {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .intro-text {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    /* Switch to single slide view on mobile */
    .slide {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .slides-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-heading {
        font-size: 1.4rem;
    }
    
    .expand-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: -15px;
    }
    
    .expanded-text {
        padding: 20px;
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .navigation-arrow {
        width: 45px;
        height: 45px;
    }
    
    .navigation-arrow i {
        font-size: 18px;
    }
    
    .image-container img {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .raven-residential-container {
        padding: 25px 15px;
    }
    
    .main-heading {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .intro-text {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .slide {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .slides-container {
        gap: 25px;
    }
    
    .section-heading {
        font-size: 1.2rem;
    }
    
    .expand-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
        bottom: -12px;
    }
    
    .expanded-text {
        padding: 18px;
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .unified-text-container {
        padding: 20px;
        margin-bottom: 18px;
    }
    
    .unified-text-container .section-heading {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .unified-text-container .body-text {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .unified-text-container .expanded-text {
        font-size: 0.85rem;
        padding-top: 15px;
    }
    
    .navigation-arrow {
        width: 40px;
        height: 40px;
    }
    
    .navigation-arrow i {
        font-size: 16px;
    }
    
    .image-container img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .raven-residential-container {
        padding: 20px 12px;
    }
    
    .main-heading {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .intro-text {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .slide {
        padding: 0 12px;
    }
    
    .slides-container {
        gap: 20px;
    }
    
    .section-heading {
        font-size: 1.1rem;
    }
    
    .expand-button {
        width: 30px;
        height: 30px;
        font-size: 16px;
        bottom: -10px;
    }
    
    .expanded-text {
        padding: 15px;
        font-size: 0.8rem;
        margin-bottom: 18px;
    }
    
    .unified-text-container {
        padding: 18px;
        margin-bottom: 15px;
    }
    
    .unified-text-container .section-heading {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .unified-text-container .body-text {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .unified-text-container .expanded-text {
        font-size: 0.8rem;
        padding-top: 12px;
    }
    
    .navigation-arrow {
        width: 35px;
        height: 35px;
    }
    
    .navigation-arrow i {
        font-size: 14px;
    }
    
    .image-container img {
        height: 180px;
    }
}

@media (max-width: 360px) {
    .raven-residential-container {
        padding: 15px 10px;
    }
    
    .main-heading {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .intro-text {
        font-size: 0.75rem;
        margin-bottom: 5px;
    }
    
    .slide {
        padding: 0 10px;
    }
    
    .slides-container {
        gap: 18px;
    }
    
    .section-heading {
        font-size: 1rem;
    }
    
    .expand-button {
        width: 28px;
        height: 28px;
        font-size: 15px;
        bottom: -8px;
    }
    
    .expanded-text {
        padding: 12px;
        font-size: 0.75rem;
        margin-bottom: 15px;
    }
    
    .navigation-arrow {
        width: 30px;
        height: 30px;
    }
    
    .navigation-arrow i {
        font-size: 12px;
    }
    
    .image-container img {
        height: 160px;
    }
}

/* Animation */
@keyframes ravenResidentialFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.raven-residential-container {
    animation: ravenResidentialFadeIn 0.8s ease-out;
}

.header-section {
    animation: ravenResidentialFadeIn 0.6s ease-out;
}

.images-section {
    animation: ravenResidentialFadeIn 0.8s ease-out;
}

.content-sections {
    animation: ravenResidentialFadeIn 1s ease-out;
}

/* Focus states for accessibility */
.expand-button:focus {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

.navigation-arrow:focus {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .image-container {
        border: 2px solid #000;
    }
    
    .feature-item::before,
    .service-item::before {
        border: 1px solid #000;
    }
    
    .main-heading,
    .section-heading {
        text-shadow: 1px 1px 0 #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .raven-residential-container,
    .header-section,
    .images-section,
    .content-sections {
        animation: none;
    }
    
    .image-container img,
    .expand-button,
    .navigation-arrow {
        transition: none;
    }
    
    .image-container:hover img {
        transform: none;
    }
    
    .expand-button:hover,
    .navigation-arrow:hover {
        transform: none;
    }
} 