/* ==========================================
   THE ARCHITECT'S MONOLITH (THE LEGACY)
   Redesign System for AL-SAMA
   ========================================== */

/* 1. ARCHITECTURAL TEXTURE BASE */
.legacy-page {
    background-color: var(--cream-bg);
    background-image: url('luxury_architectural_grid_texture_1773223620709.png');
    background-size: 800px;
    background-repeat: repeat;
    background-attachment: fixed;
    color: #1a1a1a;
    position: relative;
}

.legacy-page::before,
.spotlight-effect {
    display: none !important;
}

body.legacy-page {
    margin: 0 !important;
    padding: 0 !important;
}

/* 1.5 UNIFIED HEADER OVERLAY (Inherited from common.css) */

/* 2. CINEMATIC STAGE (HERO) */
.parallax-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 0;
    margin: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center top !important; /* Force top alignment to show signs */
    background-attachment: fixed;
    z-index: 1;
}

.bg-1 { background-image: url('assetts/the-legacy/hero/hero1.webp'); }
.bg-2 { background-image: url('assetts/the-legacy/hero/hero2.webp'); }
.bg-3 { background-image: url('assetts/the-legacy/hero/hero3.webp'); }

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.2), rgba(15, 15, 15, 0.6));
    z-index: 1;
}

.hero-content-box {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 1000px;
    padding: 0 40px;
}

.hero-content-box h1,
.hero-content-box h2 {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    opacity: 0; /* Changed to 0 for entry animation */
    transform: translateY(40px); /* Changed for entry animation */
    transition: all 1.2s var(--ease-strong);
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.hero-content-box.visible h1,
.hero-content-box.visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.hero-content-box p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0; /* Changed to 0 for entry animation */
    transform: translateY(20px);
    transition: all 1.5s var(--ease-soft) 0.5s;
    letter-spacing: 0.05em;
    font-weight: 400;
    color: #fff;
}

.hero-content-box.visible p {
    opacity: 1;
    transform: translateY(0);
}

/* 3. THE FLOATING NARRATIVE (JOURNEY) */
.thread-wrapper {
    padding: 180px 5%;
    position: relative;
    z-index: 2;
}

.journey-header {
    text-align: center;
    margin-bottom: 120px;
}

.journey-header h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--brand-gold);
    margin-bottom: 20px;
}

.journey-header p {
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.thread-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-bottom: 250px;
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s var(--ease-strong);
}

.story-section.visible,
.story-section.show {
    opacity: 1;
    transform: translateY(0);
}

.story-section:nth-child(even) {
    direction: rtl;
}

.story-section:nth-child(even) .story-content-box {
    direction: ltr;
}

.story-content-box {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px;
    border-radius: 2px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.03);
    position: relative;
}

.story-content-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 40px;
    height: 40px;
    border-top: 2px solid var(--brand-gold);
    border-left: 2px solid var(--brand-gold);
}

.story-content-box .year {
    font-size: 6rem;
    font-weight: 900;
    color: var(--brand-gold);
    opacity: 0.1;
    position: absolute;
    top: 20px;
    right: 40px;
    font-family: var(--font-headings);
}

.story-content-box h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.story-content-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.img-box {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-soft);
}

.img-box:hover img {
    transform: scale(1.1);
}

/* removed golden box overlay */

/* 4. THE CLIENT MOSAIC */
.sectors-section {
    padding: 160px 5%;
    background: transparent;
}

.sectors-main-title {
    text-align: center;
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 120px;
    color: var(--brand-gold);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.sector-row {
    background: #fff;
    padding: 50px;
    border: 1px solid #eee;
    transition: all 0.5s var(--ease-soft);
    position: relative;
    overflow: hidden;
}

.sector-row:hover {
    transform: translateY(-10px);
    border-color: var(--brand-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
}

.sector-row::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, transparent 50%, rgba(212, 175, 55, 0.05) 50%);
    transition: transform 0.5s var(--ease-soft);
}

.sector-row:hover::before {
    transform: scale(1.5);
}

.sector-heading {
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: var(--brand-cyan);
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    display: block;
}

.client-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.client-list li {
    font-size: 1.1rem;
    font-weight: 500;
}

.client-list li a {
    color: #333 !important;
    text-decoration: none;
    transition: color 0.3s;
    background: rgba(212, 175, 55, 0.05);
    padding: 4px 12px;
    border-radius: 4px;
}

.client-list li a:hover {
    color: var(--brand-gold) !important;
    background: rgba(212, 175, 55, 0.15);
}

/* STICKY DOTS REDESIGN */
.sticky-dots {
    position: fixed !important;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 8px;
    height: 30px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
}

.nav-dot.active {
    background: var(--brand-gold);
    height: 50px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .story-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 120px;
    }
    
    .story-section:nth-child(even) {
        direction: ltr;
    }
    
    .sectors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content-box h2 {
        font-size: 4rem;
    }
    
    .story-content-box {
        padding: 30px;
    }
    
    .story-content-box .year {
        font-size: 4rem;
    }
}

