/* --- NAVBAR STYLES (Identical to Home Page) --- */
/* --- 1. SERVICE HERO SECTION --- */
#service-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-dark);
}

#service-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/s-8.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-text-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-light);
    padding: 0 1rem;
}

/* --- 2. SPOTLIGHT BRAND WALL --- */
#brands-section {
    background-color: var(--color-light);
    padding: 5rem 0;
    position: relative;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media(min-width: 640px) {
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.brand-card {
    border: 1px solid #e5e5e5;
    border-radius: 1rem;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: white;
    position: relative;
    overflow: hidden;
}

.brand-card img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.brand-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-secondary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-badge {
    opacity: 1;
    transform: translateY(0);
}


/* --- 3. FOCUS-REVEAL PRODUCT GRID --- */
#products-section {
    background-color: #f8fafc;
    padding: 5rem 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media(min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    height: 380px;
    cursor: pointer;
    border-bottom: 4px solid transparent;
}

.product-card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: height 0.5s ease;
}

.product-card-content {
    padding: 1.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: white;
    transition: height 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.product-icon {
    color: var(--color-secondary);
    transition: transform 0.4s ease;
}

/* Hover State */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-bottom-color: var(--color-secondary);
}

.product-card:hover .product-card-img {
    height: 45%;
    /* Image shrinks */
}

.product-card:hover .product-card-content {
    height: 55%;
    /* Content expands */
}

.product-card:hover .product-desc {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover .product-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

/* --- 4. INTERACTIVE SERVICE TABS --- */
#services-interactive {
    display: flex;
    flex-direction: column;
    background-color: var(--color-dark);
}

@media(min-width: 1024px) {
    #services-interactive {
        flex-direction: row;
        min-height: 80vh;
    }
}

.service-list-col {
    background-color: var(--color-primary);
    color: white;
    padding: 4rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-image-col {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.service-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 6s ease;
    transform: scale(1.1);
}

.service-img.active {
    opacity: 1;
    transform: scale(1);
}

.service-tab {
    padding: 1.5rem;
    border-left: 4px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.service-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.service-tab.active {
    border-left-color: var(--color-secondary);
    opacity: 1;
    background: rgba(0, 0, 0, 0.15);
}

.service-tab h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-tab p {
    font-size: 0.95rem;
    font-weight: 300;
    display: none;
}

.service-tab.active p {
    display: block;
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 5. CTA SECTION --- */
#final-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    padding: 5rem 1rem;
    text-align: center;
    color: var(--color-light);
    position: relative;
    overflow: hidden;
}

#final-cta::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* --- MODAL STYLES --- */
#quote-modal {
    background-color: rgba(43, 42, 41, 0.85);
    z-index: 5000;
}

#quote-modal-content {
    background-color: var(--color-light);
    width: 90%;
    max-width: 500px;
    border-radius: 1rem;
    border-top: 6px solid var(--color-secondary);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

#quote-modal.open #quote-modal-content {
    transform: scale(1);
    opacity: 1;
}