/* =========================================================
   VILLAS DE SALCHI - ABOUT PAGE STYLES (Huatulco Area)
   ========================================================= */

/* Hero Section Refinement */
.about-hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Fixed is broken on iOS, changed to scroll for compatibility */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.about-hero-content {
    z-index: 2;
    padding: 0 20px;
}

.about-subtitle {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    font-weight: 500;
}

.about-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin: 0;
}

.about-title i {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Editorial Grid */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 40px;
}

.editorial-grid.reverse {
    direction: rtl;
}

.editorial-grid.reverse .editorial-text {
    direction: ltr;
}

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--salchi-accent);
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.editorial-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    color: var(--salchi-primary);
}

.editorial-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.reveal-img {
    width: 100%;
    height: auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* Dark Section / Stats */
.dark-section {
    background-color: var(--salchi-primary);
    color: #fff;
    border-radius: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-bottom: 80px;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--salchi-accent);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.text-block-center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.text-block-center h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.text-block-center p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

/* Fauna Section */
.fauna-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.fauna-card {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.fauna-img-wrap {
    height: 400px;
    overflow: hidden;
}

.fauna-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.fauna-card:hover .fauna-img-wrap img {
    transform: scale(1.1);
}

.fauna-info {
    padding: 40px;
}

.fauna-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--salchi-primary);
}

/* Split Section */
.split-visual-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.split-side.visual {
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 60px;
    color: #fff;
}

.split-overlay {
    z-index: 2;
    position: relative;
}

.split-side.visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.split-side.content {
    background-color: #f9f7f4;
    display: flex;
    align-items: center;
    padding: 80px;
}

.split-inner {
    max-width: 500px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.check-list li {
    font-weight: 500;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--salchi-primary);
}

.check-list li::before {
    content: '→';
    color: var(--salchi-accent);
}

/* Bento About */
.bento-grid-about {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.bento-card-about {
    position: relative;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    border-radius: 0;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    color: #fff;
    overflow: hidden;
}

.bento-card-about.large {
    grid-row: span 2;
    background-image: url('/images/salchi/about_salchi (3).webp');
}

.bento-card-about:nth-child(2) {
    background-image: url('/images/salchi/about_salchi (4).webp');
}

.bento-card-about:nth-child(3) {
    background-image: url('/images/salchi/about_salchi (1).webp');
}

.bento-card-about::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.bento-card-about:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Infra Section */
.infra-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
    text-align: center;
}

.infra-item {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
}

.infra-item i {
    font-size: 2.5rem;
    color: var(--salchi-accent);
    margin-bottom: 25px;
}

.infra-item h4 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--salchi-primary);
}

/* Responsive */
@media (max-width: 1024px) {

    .editorial-grid,
    .fauna-grid,
    .split-visual-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .infra-flex {
        gap: 40px;
    }

    .editorial-grid.reverse {
        direction: ltr;
    }

    .bento-grid-about {
        grid-template-columns: 1fr;
    }

    .split-side.content {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        height: 70vh;
        /* Slightly smaller on mobile and ensured scroll for iOS */
        min-height: 400px;
    }

    .about-hero-content {
        padding: 0 15px;
    }

    .about-title {
        font-size: 2.5rem;
        /* Better scale for mobile */
    }

    .about-subtitle {
        font-size: 11px;
        margin-bottom: 12px;
    }
}