/* About Page Styles */
@import url('globals.css');

:root {
    --about-bg-dark: #072A30;
    --about-bg-light: #EDF2F2;
    --about-accent: #17C64F;
    --about-text-dark: #072A30;
    --about-text-light: #FFFFFF;
    --about-text-muted: #8A9A9A;
}

body {
    background-color: var(--about-bg-light);
    color: var(--about-text-dark);
}

/* Hero Section (Dark) */
.about-hero {
    background-color: var(--about-bg-dark);
    color: var(--about-text-light);
    padding: 180px 20px 100px;
    position: relative;
    overflow: hidden;
}

.about-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.about-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--about-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    padding: 12px 24px;
    background: rgba(23, 198, 79, 0.08);
    /* Light green tint */
    border-radius: 100px;
    border: 1px solid rgba(23, 198, 79, 0.2);
}

.section-header .about-label {
    display: inline-flex;
    /* Ensure it stays inline-flex when inside section-header */
}

.about-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #FFFFFF;
}

.about-hero-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #B8C1C1;
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Background Blobs for Hero */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
}

.hero-blob-1 {
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--about-accent);
}

.hero-blob-2 {
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #0a8f8f;
}

/* Why SuperCo Works (Light) */
.why-superco {
    padding: 100px 20px;
    background-color: var(--about-bg-light);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--about-text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: none;
    font-family: var(--font-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.feature-card {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(23, 198, 79, 0.1);
    color: var(--about-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--about-text-dark);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Our Values (Dark) */
.our-values {
    padding: 100px 20px;
    background-color: var(--about-bg-dark);
    color: var(--about-text-light);
    position: relative;
    overflow: hidden;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--about-accent);
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--about-accent);
    margin-bottom: 12px;
}

.value-card p {
    color: #B8C1C1;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Gallery Section (Light) */
.gallery-section {
    padding: 100px 20px;
    background-color: #FFFFFF;
}

.btn-explore-spaces {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: var(--about-accent);
    color: var(--about-text-dark);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: var(--font-primary);
}

.btn-explore-spaces:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(23, 198, 79, 0.3);
    background-color: #15b345;
}

.btn-explore-spaces svg {
    transition: transform 0.3s ease;
}

.btn-explore-spaces:hover svg {
    transform: translateX(5px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 3;
}

/* Large featured image */
.gallery-item:nth-child(2) {
    grid-area: 1 / 3 / 2 / 5;
}

.gallery-item:nth-child(3) {
    grid-area: 2 / 3 / 3 / 4;
}

.gallery-item:nth-child(4) {
    grid-area: 2 / 4 / 3 / 5;
}

.gallery-item.hidden {
    display: none;
}

.gallery-grid.show-all .gallery-item.hidden {
    display: block;
}

/* FAQ Section (Dark) */
.about-faq {
    background-color: #052024;
    /* Slightly darker than main dark */
    padding: 100px 20px;
    color: white;
}

.faq-container {
    max-width: 1200px;
    /* Increased to accommodate split layout */
    margin: 0 auto;
}

/* Force heading to be white in FAQ section */
.about-faq .section-header h2 {
    color: #FFFFFF !important;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.03em;
    font-family: var(--font-primary);
}

/* FAQ Layout */
.faq-split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.faq-image-side {
    position: relative;
    height: 100%;
}

.faq-image-container {
    position: sticky;
    top: 100px;
    border-radius: 24px;
    overflow: hidden;
    height: 600px;
    /* Fixed height for image area */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ Items Styling - Force Override */
/* Using high specificity to beat home.css */
section.about-faq .faq-item {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Responsive Answer Handling */
section.about-faq .faq-item.active {
    background: rgba(255, 255, 255, 0.08) !important;
    /* Slightly lighter dark */
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Ensure text is visible in active state */
section.about-faq .faq-item.active * {
    color: #FFFFFF !important;
}

section.about-faq .faq-question {
    padding: 20px 24px;
    background: transparent !important;
    color: #FFFFFF !important;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border: none;
    cursor: pointer;
}

section.about-faq .faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    color: #B8C1C1 !important;
    background: transparent !important;
    line-height: 1.6;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

section.about-faq .faq-item.active .faq-answer {
    padding-bottom: 24px;
}

section.about-faq .faq-toggle {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--about-accent) !important;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

section.about-faq .faq-item.active .faq-toggle {
    background: var(--about-accent) !important;
    color: #072A30 !important;
    transform: rotate(45deg);
}

/* Responsive */
@media (max-width: 900px) {
    .faq-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-image-side {
        display: none;
        /* Hide image on tablet/mobile for cleaner view */
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 200px);
    }

    .gallery-item:nth-child(1) {
        grid-area: 1 / 1 / 2 / 3;
    }

    .gallery-item:nth-child(2) {
        grid-area: 2 / 1 / 3 / 3;
    }

    .gallery-item:nth-child(3) {
        grid-area: 3 / 1 / 4 / 3;
    }

    .gallery-item:nth-child(4) {
        grid-area: 4 / 1 / 5 / 3;
    }
}

@media (max-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 3rem;
    }

    section.about-faq .faq-question {
        padding: 16px;
        font-size: 1rem;
    }

    section.about-faq .faq-answer {
        padding: 0 16px;
    }

    section.about-faq .faq-item.active .faq-answer {
        padding-bottom: 16px;
    }
}

/* ===================================================
   NEW VISUAL REDESIGN STYLES
=================================================== */

/* HERO REDESIGN */
.about-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-hero-content {
    text-align: left;
    flex: 1;
    max-width: 600px;
}

.about-hero-image {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.about-hero-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.about-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* WHY SUPERCO WORKS - VISUAL ROWS */
.visual-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.visual-row:last-child {
    margin-bottom: 0;
}

.visual-row.reverse {
    flex-direction: row-reverse;
}

.visual-image {
    flex: 1;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 500px;
}

.visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.visual-row:hover .visual-image img {
    transform: scale(1.05);
}

.visual-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.visual-feature {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.visual-feature h3 {
    font-size: 1.5rem;
    color: var(--about-text-dark);
    margin-bottom: 12px;
}

.visual-feature p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.visual-feature .feature-icon {
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
}

/* CULTURE SECTION - BENTO GRID REDESIGN */
.our-values-redesigned {
    background-color: var(--about-bg-dark);
    padding: 120px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.culture-header-block {
    text-align: center;
    margin-bottom: 60px;
}

.culture-big-label {
    display: block;
    font-size: 100px;
    /* Huge text for visual impact */
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.05);
    /* Subtle transparent */
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    margin-bottom: -50px;
    /* Overlap with h2 */
    position: relative;
    z-index: 0;
    letter-spacing: -0.02em;
}

.culture-header-block h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    margin: 0;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-transform: none;
    font-family: var(--font-primary);
}

/* BENTO GRID LAYOUT */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Image Card: Spans 2 columns, 2 rows */
.bento-item.bento-image {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-item.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.bento-item.bento-image:hover img {
    transform: scale(1.05);
}

.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
}

.bento-overlay h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.bento-overlay p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Value Cards: 1x1 */
.bento-item.bento-value {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Glass effect */
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Make the last two items span 2 columns to fill the bottom row */
/* Make the last two items span 2 columns to fill the bottom row */
.bento-grid .bento-item:nth-last-child(1),
.bento-grid .bento-item:nth-last-child(2) {
    grid-column: span 2;
    align-items: center;
    /* Center content horizontally */
    text-align: center;
    /* Center text */
}

/* Center icon for these specific items */
.bento-grid .bento-item:nth-last-child(1) .bento-icon,
.bento-grid .bento-item:nth-last-child(2) .bento-icon {
    margin-bottom: 20px;
    /* Adjust spacing */
}

.bento-item.bento-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-item.bento-value:hover::before {
    opacity: 1;
}

.bento-item.bento-value:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: auto;
    /* Default push to top */
    color: var(--about-accent);
}

.bento-item.bento-value h3 {
    font-size: 1.25rem;
    color: var(--about-accent);
    /* Use brand color */
    margin-bottom: 12px;
    font-weight: 700;
}

.bento-item.bento-value p {
    font-size: 0.95rem;
    color: #B8C1C1;
    line-height: 1.5;
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .about-hero-container {
        flex-direction: column;
        text-align: center;
    }

    .about-hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .about-hero-image {
        width: 100%;
        max-width: 800px;
        transform: none;
        margin-top: 40px;
    }

    .visual-row {
        gap: 40px;
        display: flex;
        flex-direction: column;
    }

    .visual-row.reverse {
        flex-direction: column;
    }

    /* Reset width for mobile */
    .visual-image,
    .visual-content {
        width: 100%;
    }

    .visual-image {
        height: 300px;
    }

    /* Bento Grid Mobile */
    .bento-grid {
        grid-template-columns: 1fr;
        /* Stack everything */
        grid-auto-rows: auto;
    }

    /* Reset span for mobile */
    .bento-grid .bento-item:nth-last-child(1),
    .bento-grid .bento-item:nth-last-child(2) {
        grid-column: span 1;
    }

    .bento-item.bento-image {
        grid-column: span 1;
        grid-row: span 1;
        height: 300px;
    }

    .bento-item.bento-value {
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .bento-icon {
        margin-bottom: 20px !important;
    }

    .culture-big-label {
        font-size: 50px;
        margin-bottom: -25px;
    }

    .culture-header-block h2 {
        font-size: 2rem;
    }

    .culture-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-item:nth-child(n) {
        grid-area: auto !important;
        height: 250px;
    }

    .btn-explore-spaces {
        width: 100%;
        max-width: 250px;
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* Lightbox Styles - Refined for Responsiveness & Centering */
.lightbox {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 42, 48, 0.98);
    z-index: 999999;
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: opacity 0.4s ease;
    padding: 20px;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    max-width: 95%;
    max-height: 95%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 48px;
    height: 48px;
    background: #17C64F;
    color: #072A30;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000001;
}

.lightbox-close:hover {
    transform: scale(1.1) rotate(90deg);
    background-color: #fff;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 10px;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 100%;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        position: fixed;
        /* Fix to screen on mobile */
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .lightbox-img {
        max-height: 80vh;
    }
}