/* Sustainability Section Styles */
#features {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
    padding: 100px 0;
}

#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(221, 94, 8, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(86, 214, 109, 0.05) 0%, transparent 50%);
    z-index: 1;
}

#sustainability-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

#features .container {
    position: relative;
    z-index: 3;
}

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.sustainability-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    
    /* Center content vertically initially */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 280px;
}

.sustainability-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #dd5e08, #ff8a00);
    transition: width 0.4s ease;
    border-radius: 0 0 4px 4px;
}

.sustainability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.sustainability-card:hover::after {
    width: calc(100% - 60px);
}

.sustainability-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(221, 94, 8, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.sustainability-card:hover .sustainability-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: rgba(221, 94, 8, 0.15);
}

.sustainability-icon-wrapper img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(221, 94, 8, 0.2));
}

.sustainability-card h4 {
    font-size: 1.4rem; /* Larger initially */
    font-weight: 700;
    color: #333;
    margin-bottom: 0; /* No margin when text is hidden */
    line-height: 1.4;
    transition: font-size 0.4s ease, transform 0.4s ease;
}

.sustainability-card:hover h4 {
    font-size: 1.25rem; /* Shrinks on hover */
}

.sustainability-card-text {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.sustainability-card:hover .sustainability-card-text {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 15px; /* Adds space above the text when revealed */
}

.sustainability-card-text-inner {
    overflow: hidden;
}

.sustainability-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Fallback for touch devices where hover is not ideal */
@media (hover: none) and (pointer: coarse) {
    .sustainability-card h4 {
        font-size: 1.25rem;
    }
    .sustainability-card-text {
        grid-template-rows: 1fr;
        opacity: 1;
        margin-top: 15px;
    }
}

.sustainability-header {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.sustainability-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sustainability-header .highlight {
    color: #dd5e08;
    -webkit-text-fill-color: #dd5e08;
}

.sustainability-header p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .sustainability-header h2 {
        font-size: 2rem;
    }
    .sustainability-card {
        padding: 30px 20px;
    }
}
