/* ==========================================================================
   Dedicated About Us Page Styles
   ========================================================================== */

.about-page {
    background-color: #fcfcfc;
    color: #1a1a1a;
}

.about-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   1. Hero Header
   -------------------------------------------------------------------------- */
.about-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    padding: 140px 20px 80px;
    text-align: center;
    color: #ffffff;
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #facc15; /* Gold / Yellow accent */
    margin-bottom: 12px;
}

.about-hero-desc {
    max-width: 650px;
    margin: 0 auto;
    font-size: 0.95rem;
    color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   2. Transforming Homes (Zig-Zag Section)
   -------------------------------------------------------------------------- */
.about-intro-section {
    padding: 80px 0;
    background-color: #ffffff;
    overflow-x: hidden; /* Prevents slide-in animations from causing page overflow */
}

.about-main-heading {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

.about-zigzag-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* Slide-in Image Frame Styling */
.about-col.image-col .img-frame {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.about-rounded-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition:
        transform 0.8s cubic-bezier(.22,1,.36,1),
        opacity 0.8s ease;
    will-change: transform, opacity;
}

/* Slide Offsets */
.about-rounded-img.slide-from-left {
    transform: translateX(-120%);
}

.about-rounded-img.slide-from-right {
    transform: translateX(120%);
}

/* Active State (Triggered by IntersectionObserver) */
.about-rounded-img.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Hover Zoom Effect */
.about-col.image-col .img-frame:hover .about-rounded-img.is-visible {
    transform: translateX(0) scale(1.05);
    transition: transform 0.5s ease;
}

/* Text Block Styling */
.about-col.text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-subheading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0284c7;
    line-height: 1.4;
    margin-bottom: 16px;
}

.about-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* CTA Button */
.about-cta-wrapper {
    text-align: center;
    margin-top: 60px;
}

.btn-outline-dark {
    display: inline-block;
    border: 1.5px solid #1e293b;
    color: #1e293b;
    padding: 12px 36px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background-color: #1e293b;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. 2x2 Grid / Mobile Touch Carousel
   -------------------------------------------------------------------------- */
.about-grid-section {
    padding: 80px 0;
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80') center/cover fixed;
}

.cards-2x2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-card {
    padding: 36px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.grid-card.card-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    color: #ffffff;
}

.grid-card.card-light {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #0f172a;
}

.grid-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.grid-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.grid-card .btn-link {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}


/* --------------------------------------------------------------------------
   5. Team Section
   -------------------------------------------------------------------------- */
.about-team-section {
    padding: 80px 0;
    background: #f8fafc;
}

.text-center { text-align: center; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.team-img-wrap img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.team-info {
    padding: 20px;
}

.team-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Responsive Layouts
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .highlight-box {
        grid-template-columns: 1fr;
    }

    .highlight-img-col {
        height: 220px;
    }
}

@media (max-width: 768px) {
    /* Zig-zag Row Mobile Layout */
    .about-row,
    .about-row.reverse {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-row.reverse .about-col.image-col {
        order: -1; /* Keeps image above text on mobile for Row 2 */
    }

    .about-col.image-col .img-frame {
        height: 240px;
    }

    /* Mobile Horizontal Carousel for 2x2 Grid */
    .cards-2x2-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .cards-2x2-grid::-webkit-scrollbar {
        display: none;
    }

    .grid-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Fallback: Ensure images remain visible if JS fails to execute */
.no-js .about-rounded-img {
    opacity: 1;
    transform: none;
}