
/* ========================================
   uPVC DOORS PREMIUM STYLES
   ========================================
*/

:root {
    --door-primary: #412ca5;
    --door-accent: #5b4bc4; /* Slightly lighter purple for accents */
    --door-bg: #f8fafc;
    --door-card-bg: #ffffff;
    --door-text-dark: #1e293b;
    --door-text-light: #64748b;
    --door-light-tint: #F0EDF9; /* Brand Light Purple */
}

/* --- Door Spotlight Section (Split Layout) --- */
.door-spotlight-section {
    padding: 6rem 0;
    background-color: #ffffff;
    overflow: hidden;
}

.door-spotlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ds-image-wrapper {
    position: relative;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(65, 44, 165, 0.2);
    overflow: hidden;
    border: 4px solid #fff;
}

.ds-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.ds-image-wrapper:hover img {
    transform: scale(1.05);
}

.ds-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--door-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(65, 44, 165, 0.3);
    z-index: 2;
}

.ds-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--door-text-dark);
    margin-bottom: 1rem;
}

.ds-desc {
    font-size: 1.1rem;
    color: var(--door-text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Mini Feature Grid inside Spotlight */
.ds-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ds-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--door-light-tint);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ds-feature:hover {
    background: var(--door-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(65, 44, 165, 0.2);
}

.ds-feature i {
    font-size: 1.25rem;
    color: var(--door-primary);
}

.ds-feature:hover i {
    color: #ffffff;
}

.ds-feature span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Reversed Layout */
@media (min-width: 992px) {
    .ds-reversed .door-spotlight-grid {
        direction: rtl; /* Visually swap columns */
    }
    .ds-reversed .ds-content-col {
        direction: ltr; /* Reset text direction */
    }
    .ds-reversed .ds-image-col {
        direction: ltr;
    }
}

@media (max-width: 991px) {
    .door-spotlight-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ds-image-wrapper {
        order: -1;
    }
}


/* --- Configuration Section (Simple Cards) --- */
.door-config-section {
    padding: 6rem 0;
    background-color: var(--door-light-tint); /* Light Purple Background */
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.config-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(65, 44, 165, 0.1);
}

.config-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(65, 44, 165, 0.15);
    border-color: var(--door-primary);
}

.config-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: #f3f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--door-primary);
    font-size: 2rem;
    transition: all 0.4s ease;
}

.config-card:hover .config-icon-wrapper {
    background-color: var(--door-primary);
    color: #ffffff;
    transform: rotateY(180deg);
}

.config-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--door-text-dark);
    margin-bottom: 0.75rem;
}

.config-desc {
    color: var(--door-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- Interactive Tech Specs (Tabs) --- */
.specs-section {
    padding: 6rem 0;
    background: #fff;
}

.tech-tabs-container {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.tech-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tech-tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--door-text-light);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tech-tab-btn:hover {
    color: var(--door-primary);
    background-color: var(--door-light-tint);
}

.tech-tab-btn.active {
    background: var(--door-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(65, 44, 165, 0.3);
}

.tech-tab-content {
    display: none;
    animation: fadeInContent 0.5s ease forwards;
}

.tech-tab-content.active {
    display: block;
}

@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tech-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}
.tech-detail-row:last-child { border-bottom: none; }

.tech-label {
    font-weight: 600;
    color: var(--door-text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tech-label i { color: var(--door-primary); }

.tech-value {
    color: var(--door-text-light);
    font-weight: 500;
    text-align: right;
}

/* --- Premium FAQ --- */
.premium-faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.premium-faq-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.premium-faq-item.active {
    border-color: var(--door-primary);
    box-shadow: 0 10px 25px -5px rgba(65, 44, 165, 0.15);
}

.premium-faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--door-text-dark);
    text-align: left;
}

.premium-faq-item.active .premium-faq-question {
    color: var(--door-primary);
    background-color: var(--door-light-tint);
}

.premium-faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.premium-faq-item.active .premium-faq-icon {
    background-color: var(--door-primary);
    color: #fff;
    transform: rotate(180deg);
}

.premium-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background-color: #fff;
}

.premium-faq-item.active .premium-faq-answer {
    max-height: 500px;
    transition: max-height 0.5s ease-in-out;
}

.premium-faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--door-text-light);
    margin: 0;
}

@media (max-width: 768px) {
    .tech-detail-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .tech-value { text-align: left; color: var(--door-primary); }
}