:root{
    --primary: #008929;
    --accent: #008929;
    --secondary: #058800;
}

/* Energy page color overrides - these will override :root when body has energy-page class */
body.energy-page {
    --primary: #008929;
    --primary-dark: #005f1f;
    --primary-light: #00b83a;
    --secondary: #058800;
    --accent: #008929;
}

/* Override red rgba backgrounds with green equivalents */
/* Green color: rgba(0, 137, 41, ...) - equivalent to #008929 */

body.energy-page .mobile-cta:focus {
    background: rgba(0, 137, 41, 0.1) !important;
}

body.energy-page .mega-menu-heading,
body.energy-page .section-label {
    border-bottom-color: rgba(0, 137, 41, 0.1) !important;
}

body.energy-page .mega-menu-link:focus,
body.energy-page .mega-menu-news .mega-menu-link:hover,
body.energy-page .mega-menu-news .mega-menu-link:focus {
    background: rgba(0, 137, 41, 0.05) !important;
}

body.energy-page .mega-menu-news .mega-menu-link {
    border-left-color: rgba(0, 137, 41, 0.2) !important;
}

body.energy-page .section-label {
    background-color: rgba(0, 137, 41, 0.1) !important;
}

body.energy-page .service-link.read-more-btn:hover {
    background-color: rgba(0, 137, 41, 0.08) !important;
}

body.energy-page .area-card:hover::after {
    border-color: rgba(0, 137, 41, 0.2) !important;
}

body.energy-page .hero-video-overlay {
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.5) 100%),
        linear-gradient(180deg, rgba(0, 137, 41, 0.15) 0%, transparent 50%) !important;
}

body.energy-page .about-text::before {
    background: linear-gradient(180deg, var(--primary), var(--primary-light)) !important;
}

body.energy-page .video-wrapper::before {
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(0, 137, 41, 0.1) 90deg,
        transparent 180deg,
        rgba(0, 137, 41, 0.1) 270deg,
        transparent 360deg
    ) !important;
}

body.energy-page .video-wrapper::after {
    background: linear-gradient(135deg, 
        rgba(0, 137, 41, 0.15) 0%, 
        transparent 50%,
        rgba(0, 137, 41, 0.1) 100%) !important;
}

body.energy-page .stat-card::after {
    background: radial-gradient(
        circle,
        rgba(0, 137, 41, 0.15) 0%,
        transparent 70%
    ) !important;
}

body.energy-page .stat-number {
    text-shadow: 0 0 30px rgba(0, 137, 41, 0.3) !important;
}

body.energy-page .contact-section::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 137, 41, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 137, 41, 0.02) 0%, transparent 50%) !important;
}

body.energy-page .service-icon {
    background-color: rgba(0, 137, 41, 0.1) !important;
}

body.energy-page .service-card:hover .service-icon {
    background-color: rgba(0, 137, 41, 0.15) !important;
}

/* Keep cta-primary button green on hover for energy page */
body.energy-page .cta-primary {
    background-color: var(--secondary) !important;
}

body.energy-page .cta-primary:hover {
    background-color: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

body.energy-page .area-card:hover {
    box-shadow: 
        0 25px 50px rgba(0, 137, 41, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 137, 41, 0.2) !important;
}

body.energy-page .area-icon {
    box-shadow: 
        0 10px 25px rgba(0, 137, 41, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

body.energy-page .area-card:hover .area-icon {
    box-shadow: 
        0 15px 35px rgba(0, 137, 41, 0.35),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

body.energy-page #services {
    background: linear-gradient(360deg, var(--primary) 34%, #ffffff 0%) !important;
}

/* Energy-specific styles */
.energy-hero .hero-video-overlay {
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.7) 0%, rgba(0, 150, 136, 0.8) 100%);
}

.service-features {
    list-style: none;
    margin-top: 20px;
    text-align: center;
}
  
.service-features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.service-features i {
    color: var(--accent);
    margin-right: 10px;
    font-size: 0.9rem;
}

.energy-hero .hero-title {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Solutions Section */
.solutions-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.solution-card {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    gap: 60px;
}

.solution-card.reverse {
    flex-direction: row-reverse;
}

.solution-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-image:hover img {
    transform: scale(1.05);
}

.solution-content {
    flex: 1;
}

.solution-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.solution-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #5a6c7d;
}

.solution-features {
    list-style: none;
    padding: 0;
}

.solution-features li {
    padding: 8px 0;
    font-size: 1rem;
    color: #4a5568;
}

.solution-features li i {
    color: #27ae60;
    margin-right: 10px;
}

/* Uppdaterad Benefits Section */
.benefits-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.benefits-section .section-header {
    color: #2c3e50;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 137, 41, 0.15);
    border-color: var(--primary);
}

.benefit-item:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 137, 41, 0.3);
}

.benefit-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
    position: relative;
}

.benefit-item p {
    line-height: 1.7;
    color: #5a6c7d;
    font-size: 1rem;
    margin: 0;
}

/* Alternerande färger för benefit-ikoner */
.benefits-grid .benefit-item:nth-child(2) .benefit-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.benefits-grid .benefit-item:nth-child(3) .benefit-icon {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.benefits-grid .benefit-item:nth-child(4) .benefit-icon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* Responsive Design */
@media (max-width: 968px) {
    .solution-card,
    .solution-card.reverse {
        flex-direction: column;
        gap: 40px;
    }
    
    .solution-image,
    .solution-content {
        flex: none;
        width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .benefit-item {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .benefits-section {
        padding: 80px 0;
    }
    
    .benefit-item {
        padding: 30px 20px;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .benefit-item h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .benefit-item {
        padding: 25px 20px;
    }
}