﻿/* Minimal custom styles for vent-specific sections */
.vent-page .modern-hero {
    /* Helps reduce costly repainting while video is visible under the fixed header */
    contain: paint;
}

.vent-page .hero-video,
.vent-page .hero-video-overlay {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.vent-page .hero-video {
    will-change: transform;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-text-block {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    will-change: transform;
}

.about-text-block:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 20px 60px rgba(193, 2, 48, 0.15);
}

.about-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.about-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(193, 2, 48, 0.8) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 60px;
    margin-top: 50px;
    border: 2px solid rgba(193, 2, 48, 0.2);
    box-shadow: 0 20px 60px rgba(193, 2, 48, 0.1);
    transform: translateZ(0); /* Force GPU acceleration */
}

.highlight-box-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.highlight-box-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(193, 2, 48, 0.8) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.highlight-box-text strong {
    display: block;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 700;
}

.highlight-box-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

.detailed-services-section {
    padding: 100px 0;
}

.detailed-services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detailed-service-item {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    will-change: transform;
}

.detailed-service-item:hover {
    transform: translateY(-8px) translateZ(0);
    box-shadow: 0 20px 60px rgba(193, 2, 48, 0.15);
}

.detailed-service-header {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detailed-service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(193, 2, 48, 0.8) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
}

.detailed-service-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.detailed-service-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

.detailed-service-more {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s, margin-top 0.3s ease;
    margin-top: 0;
    visibility: hidden;
}

.detailed-service-item.expanded .detailed-service-more {
    max-height: 500px; /* Reasonable max height to prevent jank */
    opacity: 1;
    margin-top: 25px;
    visibility: visible;
    transition: opacity 0.4s ease, margin-top 0.4s ease, max-height 0.5s ease;
}

.detailed-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.detailed-read-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.detailed-read-more-btn i {
    transition: transform 0.3s ease;
}

.detailed-service-item.expanded .detailed-read-more-btn i {
    transform: rotate(180deg);
}

@media (max-width: 968px) {
    .detailed-service-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .highlight-box-content {
        flex-direction: column;
        text-align: center;
    }
}
