/* ==========================================================================
   S&S Architects and Infra — Layout Refresh Overrides
   Feature Flag: Activated when class="layout-refresh-enabled" is on <html>.
   To rollback instantly: Remove "layout-refresh-enabled" from the <html> tag.
   ========================================================================== */

/* 1. Global Section Spacing & Cadence */
.layout-refresh-enabled {
    --section-padding: 70px 0;
}

.layout-refresh-enabled .section {
    padding: 70px 0;
}

/* Refined vertical rhythm between consecutive sections */
.layout-refresh-enabled .about {
    padding: 75px 0 60px;
}

.layout-refresh-enabled .founder {
    padding: 55px 0;
}

.layout-refresh-enabled .cofounder {
    padding: 55px 0;
}

.layout-refresh-enabled .philosophy {
    padding: 65px 0;
}

.layout-refresh-enabled .expertise {
    padding: 70px 0;
}

.layout-refresh-enabled .projects {
    padding: 70px 0;
}

.layout-refresh-enabled .faq {
    padding: 65px 0;
}

.layout-refresh-enabled .contact {
    padding: 70px 0 60px;
}

.layout-refresh-enabled .footer-top {
    padding: 60px 0 40px;
}

/* 2. Section Headers: Balanced, Intentional Spacing */
.layout-refresh-enabled .section-header {
    margin-bottom: 38px;
}

.layout-refresh-enabled .section-subtitle {
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.layout-refresh-enabled .section-title {
    margin-bottom: 14px;
    letter-spacing: 4px;
    line-height: 1.2;
}

.layout-refresh-enabled .title-decoration {
    margin-bottom: 4px;
}

.layout-refresh-enabled .section-header-desc {
    max-width: 660px;
    margin: 14px auto 0;
    font-size: 0.98rem;
    line-height: 1.65;
}

/* 3. About Us Section Content Balance */
.layout-refresh-enabled .about-content {
    gap: 50px;
    align-items: center;
}

.layout-refresh-enabled .about-img-main img {
    height: 310px;
    border-radius: 2px;
}

.layout-refresh-enabled .about-img-secondary {
    gap: 16px;
}

.layout-refresh-enabled .about-img-secondary img {
    height: 175px;
    border-radius: 2px;
}

.layout-refresh-enabled .about-quote {
    margin: 22px 0 20px;
    padding: 22px 26px;
}

.layout-refresh-enabled .about-description {
    margin-bottom: 16px;
    line-height: 1.75;
}

/* 4. Leadership: Founding Partner & Chief Architect */
.layout-refresh-enabled .founder-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 45px;
    align-items: center;
}

.layout-refresh-enabled .founder-title-new {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin-bottom: 6px;
    line-height: 1.15;
}

.layout-refresh-enabled .founder-name {
    font-size: 1.55rem;
    margin-bottom: 22px;
}

.layout-refresh-enabled .founder-description {
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 14px;
}

.layout-refresh-enabled .founder-credentials {
    margin-top: 22px;
    gap: 14px;
}

.layout-refresh-enabled .credential-item {
    gap: 16px;
}

.layout-refresh-enabled .founder-quote-bar {
    margin-top: 24px;
    padding: 22px 28px;
}

.layout-refresh-enabled .founder-photo {
    max-height: 540px;
    object-fit: cover;
    border-radius: 2px;
}

.layout-refresh-enabled .cofounder-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 45px;
    align-items: center;
}

.layout-refresh-enabled .cofounder-img-quote {
    margin-top: 18px;
    padding: 18px 24px;
}

/* 5. Design Philosophy */
.layout-refresh-enabled .philosophy-content {
    gap: 50px;
    align-items: center;
}

.layout-refresh-enabled .philosophy-img-grid {
    gap: 14px;
}

.layout-refresh-enabled .philosophy-img-grid img,
.layout-refresh-enabled .philosophy-img-grid picture img {
    height: 185px;
}

.layout-refresh-enabled .philosophy-img-grid img.philosophy-main,
.layout-refresh-enabled .philosophy-img-grid picture.philosophy-main img {
    height: 230px;
}

.layout-refresh-enabled .philosophy-description {
    line-height: 1.75;
    margin-bottom: 16px;
}

/* 6. Expertise / Services Cards */
.layout-refresh-enabled .expertise-grid {
    gap: 24px;
}

.layout-refresh-enabled .expertise-card {
    padding: 34px 26px 30px;
}

.layout-refresh-enabled .card-icon {
    margin-bottom: 20px;
}

.layout-refresh-enabled .card-title {
    font-size: 1.45rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.layout-refresh-enabled .card-description {
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 20px;
}

/* 7. Projects Gallery & Filters */
.layout-refresh-enabled .project-filters {
    margin-bottom: 36px;
    gap: 10px;
}

.layout-refresh-enabled .filter-btn {
    padding: 7px 18px;
    font-size: 0.85rem;
}

.layout-refresh-enabled .projects-grid {
    gap: 22px;
}

/* 8. FAQ Accordion Section */
.layout-refresh-enabled .faq-grid {
    gap: 12px;
}

.layout-refresh-enabled .faq-question {
    padding: 18px 24px;
    font-size: 1.05rem;
}

.layout-refresh-enabled .faq-answer {
    padding: 0 24px 18px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.layout-refresh-enabled .faq-footer-cta {
    margin-top: 36px;
}

/* 9. Contact Us Section */
.layout-refresh-enabled .contact-content {
    gap: 50px;
    align-items: start;
}

.layout-refresh-enabled .contact-form-wrapper {
    padding: 38px 34px;
}

.layout-refresh-enabled .contact-form {
    gap: 24px;
}

.layout-refresh-enabled .contact-info {
    gap: 26px;
}

/* 10. Disable artificial content-visibility layout collapsing */
.layout-refresh-enabled .projects,
.layout-refresh-enabled .expertise,
.layout-refresh-enabled .philosophy,
.layout-refresh-enabled .faq {
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

/* 11. Responsive Breakpoints */
@media (max-width: 992px) {
    .layout-refresh-enabled .section {
        padding: 55px 0;
    }
    .layout-refresh-enabled .about-content,
    .layout-refresh-enabled .founder-grid,
    .layout-refresh-enabled .cofounder-grid,
    .layout-refresh-enabled .philosophy-content,
    .layout-refresh-enabled .contact-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .layout-refresh-enabled .section {
        padding: 48px 0;
    }
    .layout-refresh-enabled .section-header {
        margin-bottom: 28px;
    }
    .layout-refresh-enabled .founder-grid,
    .layout-refresh-enabled .cofounder-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .layout-refresh-enabled .founder-photo {
        max-height: 420px;
    }
    .layout-refresh-enabled .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .layout-refresh-enabled .about-img-main img {
        height: 240px;
    }
    .layout-refresh-enabled .about-img-secondary img {
        height: 140px;
    }
    .layout-refresh-enabled .philosophy-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .layout-refresh-enabled .expertise-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .layout-refresh-enabled .contact-content {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .layout-refresh-enabled .contact-form-wrapper {
        padding: 28px 22px;
    }
}

@media (max-width: 480px) {
    .layout-refresh-enabled .section {
        padding: 40px 0;
    }
    .layout-refresh-enabled .section-header {
        margin-bottom: 24px;
    }
    .layout-refresh-enabled .section-title {
        letter-spacing: 2px;
    }
}
