/* =================================================================
   ABOUT PAGE STYLES - MATCHING NEIGHBORHOOD & DIRECTORY PAGES
   ================================================================= */

/* Global Variables inherited from style.css:
   --heading-font, --body-font, --color-*, --section-padding-*, typography tokens
   See: style.css for design token definitions */

/* Reset for About page - Prevent horizontal scroll */
html {
    overflow-x: hidden;
    max-width: 100%;
}

body.about-page {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100%;
}

/* Layout Container */
.about-container {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =================================================================
   HERO SECTION - MATCHING NEIGHBORHOODS HEIGHT
   ================================================================= */
.about-hero-section {
    position: relative;
    height: 85vh;
    min-height: 610px;
    max-height: 1000px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;  /* ✅ Ensure hero is above fixed video layer */
}

.about-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 24px;
}

.about-hero-title {
    font-family: var(--heading-font);
    font-size: var(--heading-size-xl);
    line-height: var(--heading-line-height);
    letter-spacing: var(--heading-spacing);
    text-transform: uppercase;
    color: white;
    margin: 0;
    font-weight: var(--heading-weight);
}

/* =================================================================
   GET TO KNOW COREY SECTION - MATCHING ROH HABIBI DESIGN
   ================================================================= */
.about-know-section {
    padding: var(--section-padding-y-xl) 0;
    background: #ffffff;
    position: relative;
    overflow-x: clip; /* Prevent horizontal scroll from AOS animations */
    z-index: 1;  /* ✅ Ensure section is above fixed video layer */
}

.about-know-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201,176,55,0.3) 50%, transparent 100%);
}

.about-know-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Clearfix for floated image */
.about-know-container::after {
    content: '';
    display: table;
    clear: both;
}

.about-know-image {
    float: left;
    max-width: 550px;
    margin-right: 80px;
    margin-bottom: 40px;
    position: relative;
}

.about-know-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    filter: grayscale(10%) contrast(110%);
}

.about-know-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

.about-know-content {
    /* Text flows naturally around and under the floated image */
}

.about-know-title {
    font-family: var(--heading-font);
    font-size: var(--heading-size-lg);
    font-weight: var(--heading-weight);
    color: var(--color-primary);
    line-height: var(--heading-line-height);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: var(--heading-spacing);
}

h4.about-know-license {
    font-family: var(--body-font) !important;
    font-size: 15px !important;
    font-weight: 300 !important;
    color: #6f6f6f !important;
    text-transform: uppercase;
    letter-spacing: 0.15em !important;
    margin: 0 0 25px 0 !important;
    line-height: 1.4 !important;
}

.about-know-text {
    font-family: var(--body-font), system-ui, sans-serif;
    font-size: 13.5px;
    font-weight: 300;
    line-height: var(--body-line-height);
    letter-spacing: var(--body-letter-spacing);
    color: #6f6f6f;
    margin: 0;
}

.about-know-text p {
    font-size: 13.5px;
    font-weight: 300;
    margin-bottom: 20px;
}

.about-know-text p:last-child {
    margin-bottom: 0;
}

/* =================================================================
   VIDEO SECTION - SIMPLE PARALLAX (NO CLIP-PATH)
   ================================================================= */

/* Section is window with overflow hidden */
.about-video-section {
    position: relative;
    height: clamp(600px, 80vh, 900px);
    overflow: hidden;  /* ✅ This naturally clips video to section */
    z-index: 1;
}

/* Container for video section content (if any) */
.about-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;  /* Content above video */
}

/* Video wrapper - positioned absolutely within section */
.about-video-wrapper {
    position: absolute;  /* ✅ Contained within section, not fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.about-video-wrapper video,
.about-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ✅ Fill section, crop as needed */
    object-position: center;
    display: block;
    border: 0;
}

/* Ensure sections after video have proper stacking */
.follow-section,
section:not(.about-video-section) {
    position: relative;
    z-index: 1;
}

.follow-section {
    background: #fff;
}

/* Prevent fixed video from showing through on iOS Safari */
html, body {
    background: #fff;
}

.about-video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #999;
    font-family: var(--body-font);
    font-size: 14px;
    letter-spacing: 0.1em;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px 60px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.about-video-placeholder i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    color: #ccc;
}

/* =================================================================
   SCROLL ANIMATIONS - MATCHING PAGE-NEIGHBORHOODS
   ================================================================= */

/* Hero Content Slide-Up Animation (matching neighborhood page) */
.hero-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Animation keyframes */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base animation class */
.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state when in view */
.animate-slide-up.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple elements */
.animate-delay-100 {
    transition-delay: 0.1s;
}

.animate-delay-200 {
    transition-delay: 0.2s;
}

.animate-delay-300 {
    transition-delay: 0.3s;
}

.animate-delay-400 {
    transition-delay: 0.4s;
}

/* Performance optimization */
.hero-slide-up,
.animate-slide-up {
    will-change: opacity, transform;
}

.hero-slide-up.animate,
.animate-slide-up.in-view {
    will-change: auto;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */
@media (max-width: 1024px) {
    .about-hero-section {
        height: 70vh;
        min-height: 500px;
        background-attachment: scroll;
    }

    .about-hero-title {
        font-size: clamp(44px, 6vw, 56px);
    }

    .about-know-section {
        padding: var(--section-padding-y-lg) 0;
    }

    .about-know-container {
        padding: 0 40px;
    }

    .about-know-image {
        margin-right: 60px;
    }

    .about-know-title {
        font-size: clamp(38px, 5vw, 48px);
    }

    .about-video-section {
        height: clamp(300px, 56.25vw, 60vh);
    }
}

@media (max-width: 767px) {
    .about-hero-section {
        height: 60vh;
        min-height: 450px;
    }

    .about-hero-title {
        font-size: clamp(32px, 8vw, 40px);
    }

    .about-know-section {
        padding: var(--section-padding-y-md) 0;
    }

    .about-know-container {
        padding: 0 24px;
    }

    .about-know-image {
        float: none;
        margin: 0 auto 40px auto;
        max-width: 100%;
    }

    .about-know-title {
        font-size: clamp(28px, 7vw, 36px);
        text-align: center;
    }

    .about-know-content {
        text-align: center;
    }

    .about-know-text {
        text-align: center;
    }

    .about-video-section {
        height: clamp(280px, 56.25vw, 50vh);
    }
}

@media (max-width: 480px) {
    .about-hero-section {
        height: 60vh;
        min-height: 450px;
    }

    .about-hero-title {
        font-size: clamp(28px, 8vw, 32px);
    }

    .about-know-section {
        padding: var(--section-padding-y-sm) 0;
    }

    .about-know-title {
        font-size: clamp(24px, 7vw, 28px);
    }

    .about-know-container {
        padding: 0 20px;
    }

    .about-video-section {
        height: clamp(280px, 56.25vw, 50vh);
    }

    .about-video-placeholder {
        font-size: 12px;
    }

    .about-video-placeholder i {
        font-size: 48px;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
    .about-hero-section {
        background-attachment: scroll;
        page-break-after: avoid;
    }

    .about-know-section,
    .about-video-section {
        page-break-inside: avoid;
    }
}
