/* ========================================
   Splendid Homes Page - Luxury Showcase
   ======================================== */

/* Extended Color Palette */
:root {
    --champagne-gold: #C5A572;
    --cool-white: #F8F9FA;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    right: 0;
    top: 0;
    width: 3px;
    height: 0%;
    background: linear-gradient(180deg, var(--gold-primary), var(--champagne-gold));
    z-index: 1000;
    transition: height 0.1s ease;
}

/* ========================================
   Section Base Styles
   ======================================== */
.section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* ========================================
   Section 1: Ultra Luxury Design-Build
   ======================================== */
.section-ultra {
    background-color: var(--black-primary);
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Background Slideshow */
.bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 3s ease;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Blinds Effect Container */
.blinds-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blinds-container.revealing {
    opacity: 1;
}

.blind-slat {
    flex: 1;
    background-size: cover;
    background-repeat: no-repeat;
    transform-origin: top center;
    transform: scaleY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blinds-container.revealing .blind-slat {
    transform: scaleY(1);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.5);
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, transparent 30%, transparent 70%, rgba(10, 10, 10, 0.8) 100%),
        radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.4) 100%);
}

/* Content Styles */
.section-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    padding: 2rem;
    width: 100%;
}

.content-wrapper {
    text-align: center;
}

/* Hero Title */
.hero-title {
    font-family: 'Playfair Display', var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
    text-align: center;
}

.hero-title .title-line {
    display: block;
    overflow: hidden;
}

.hero-title .animate-title {
    animation: slideUp 1s ease both;
}

.hero-title .title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-title .title-line:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title .gold {
    color: var(--gold-primary);
    text-shadow: 0 0 80px rgba(191, 139, 53, 0.3);
}


/* ========================================
   Content Sections (New Design)
   ======================================== */
.content-section {
    padding: 0;
    background-color: #f5f4f0;
}

.content-section.section-alt {
    background-color: var(--black-primary);
}

.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
}

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse > * {
    direction: ltr;
}

/* Content Text Area */
.content-text {
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f5f4f0;
}

.section-alt .content-text {
    background-color: var(--black-secondary);
}

.content-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 1.5rem;
}

.section-alt .content-label {
    color: var(--gold-primary);
}

.content-title {
    font-family: 'Playfair Display', var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.section-alt .content-title {
    color: var(--white);
}

.content-title .gold {
    color: var(--gold-primary);
}

.content-desc {
    font-family: 'Inter', var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: #555;
    margin-bottom: 2.5rem;
}

.section-alt .content-desc {
    color: var(--gray-light);
}

/* Content Actions */
.content-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.read-more-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more-link:hover {
    color: var(--gold-primary);
}

.section-alt .read-more-link {
    color: var(--gray-light);
}

.enquiry-btn {
    display: inline-block;
    padding: 1.25rem 2rem;
    background-color: #6b6b6b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.enquiry-btn:hover {
    background-color: var(--gold-primary);
    color: var(--black-primary);
}

.section-alt .enquiry-btn {
    background-color: var(--gold-primary);
    color: var(--black-primary);
}

.section-alt .enquiry-btn:hover {
    background-color: var(--gold-light);
}

/* Gallery Slider */
.content-gallery {
    position: relative;
    overflow: hidden;
    background-color: var(--black-tertiary);
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.gallery-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.gallery-slide {
    flex: 0 0 100%;
    height: 100%;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Navigation */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--gold-primary);
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
}

.gallery-nav:hover svg {
    color: #fff;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Legacy Styles for compatibility */
.section-title-large {
    font-family: 'Playfair Display', var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.section-title-large .title-line {
    display: block;
}

.section-title-large .gold {
    color: var(--gold-primary);
}

.section-title-large.centered {
    text-align: center;
}

.section-text {
    font-family: 'Inter', var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--gray-light);
    margin-bottom: 2rem;
}

.feature-tags {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: rgba(191, 139, 53, 0.05);
    border-left: 2px solid var(--gold-primary);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background-color: rgba(191, 139, 53, 0.1);
    transform: translateX(5px);
}

.tag-icon {
    color: var(--gold-primary);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.tag-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--white);
}

/* ========================================
   Section 3: Spec Homes
   ======================================== */
.section-spec {
    background-color: var(--black-primary);
    flex-direction: column;
    padding: 8rem 2rem;
}

.spec-header {
    text-align: center;
    margin-bottom: 4rem;
}

.spec-subtitle {
    font-family: 'Cormorant Garamond', var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gray-medium);
    margin-top: 1rem;
}

.spec-gallery {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--black-tertiary) 0%, var(--black-soft) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', var(--font-display);
    font-size: 1.25rem;
    color: var(--gold-muted);
    letter-spacing: 0.1em;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-placeholder,
.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-title {
    font-family: 'Playfair Display', var(--font-display);
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.gallery-action {
    font-size: 0.8rem;
    color: var(--gold-primary);
    letter-spacing: 0.1em;
}

.spec-description {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: center;
}

.spec-description p {
    font-family: 'Inter', var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    color: var(--gray-light);
}

/* ========================================
   Section 4: Major Renovations
   ======================================== */
.section-renovations {
    background-color: var(--black-secondary);
    padding: 4rem 2rem;
}

.renovations-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: start;
}

.timeline-nav {
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 6px;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-primary), var(--gold-muted));
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--black-secondary);
    border: 2px solid var(--gold-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.timeline-item.active .timeline-dot,
.timeline-item:hover .timeline-dot {
    background-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(191, 139, 53, 0.5);
}

.timeline-label {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-medium);
    transition: color 0.3s ease;
}

.timeline-item.active .timeline-label,
.timeline-item:hover .timeline-label {
    color: var(--gold-primary);
}

.renovations-content {
    padding: 2rem 0;
}

.section-subtitle-text {
    font-family: 'Cormorant Garamond', var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--champagne-gold);
    margin-top: 0.5rem;
}

/* Comparison Slider */
.comparison-container {
    margin: 3rem 0;
}

.comparison-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-medium);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16/10;
    overflow: hidden;
    border: 1px solid var(--gold-muted);
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-after {
    clip-path: inset(0 50% 0 0);
}

.comparison-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', var(--font-display);
    font-size: 2rem;
    color: var(--gray-medium);
    background: var(--black-tertiary);
}

.comparison-placeholder.gold-bg {
    background: linear-gradient(135deg, var(--black-tertiary) 0%, #1a1815 100%);
    color: var(--gold-primary);
}

.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--gold-primary);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    color: var(--black-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(191, 139, 53, 0.5);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section-homes {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--black-tertiary) 100%);
    text-align: center;
    position: relative;
}

.cta-section-homes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.cta-section-homes .cta-title {
    font-family: 'Playfair Display', var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section-homes .cta-subtitle {
    font-family: 'Cormorant Garamond', var(--font-display);
    font-size: 1.25rem;
    color: var(--gray-medium);
    margin-bottom: 3rem;
}

.cta-section-homes .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .renovations-wrapper {
        grid-template-columns: 150px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .content-block {
        grid-template-columns: 1fr;
    }
    
    .content-block.reverse {
        direction: ltr;
    }
    
    .content-text {
        padding: 4rem 2rem;
        order: 2;
    }
    
    .content-gallery {
        order: 1;
        min-height: 50vh;
    }
    
    .gallery-slider {
        min-height: 50vh;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 15vw, 5rem);
    }
    
    /* Content Sections Mobile */
    .content-text {
        padding: 3rem 1.5rem;
    }
    
    .content-title {
        font-size: 2rem;
    }
    
    .content-desc {
        font-size: 0.95rem;
    }
    
    .enquiry-btn {
        padding: 1rem 1.5rem;
        font-size: 0.7rem;
    }
    
    .gallery-slider {
        min-height: 40vh;
    }
    
    .gallery-nav {
        width: 36px;
        height: 36px;
    }
    
    .gallery-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .feature-tags {
        gap: 0.75rem;
    }
    
    .feature-tag {
        padding: 0.75rem 1rem;
    }
}

