/* ============================================
   COSTI MOBILE BARBER - HOME PAGE STYLES
   ============================================ */

/* ============================================
   HERO PARALLAX SECTION
   ============================================ */

.hero-parallax-wrapper {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 110%;
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}

.parallax-bg {
    background: url('https://images.unsplash.com/photo-1599351431202-1e0f0137899a?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    z-index: -3;
    top: -5%;
    filter: brightness(0.7);
}

.parallax-mid {
    background: 
        radial-gradient(circle at 30% 70%, rgba(201,160,83,0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(201,160,83,0.08) 0%, transparent 50%);
    z-index: -2;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

.parallax-overlay {
    background: linear-gradient(
        180deg,
        rgba(10,10,12,0.3) 0%,
        rgba(10,10,12,0.6) 40%,
        var(--bg-primary) 100%
    );
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 var(--spacing-md);
}

.hero-content .reveal {
    animation-delay: 0.2s;
}

.hero-content h1 {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-content p.lead {
    animation: slideUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-content .btn {
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-gold);
    font-size: 1.8rem;
    z-index: 11;
    animation: bounce 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--accent-gold-light);
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator i {
    display: block;
}

/* ============================================
   FEATURE CARDS SECTION
   ============================================ */

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(201,160,83,0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--accent-gold);
    color: #000;
    transform: scale(1.1);
}

.feature-card h4 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    flex-grow: 1;
}

/* ============================================
   ABOUT SECTION ENHANCEMENTS
   ============================================ */

.about-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201,160,83,0.2) 0%, transparent 50%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-normal);
}

.about-image-wrapper:hover::before {
    opacity: 1;
}

.about-image-wrapper img {
    transition: var(--transition-slow);
    width: 100%;
    height: auto;
    display: block;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.floating-card {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-md);
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    animation: slideUp 0.6s ease-out forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.floating-card .text-gold {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cta-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201,160,83,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

.cta-card h3 {
    position: relative;
    z-index: 1;
}

.cta-card p {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-card .btn {
    position: relative;
    z-index: 1;
}

/* ============================================
   TESTIMONIAL PREVIEW (Home)
   ============================================ */

.testimonial-preview {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition-normal);
}

.testimonial-preview:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
}

.testimonial-preview .rating {
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.testimonial-preview p {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.testimonial-preview .author {
    font-weight: 600;
    color: var(--text-light);
}

.testimonial-preview .location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   MAP PREVIEW STYLING
   ============================================ */

.map-preview {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.map-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,12,0.8) 0%, transparent 30%);
    pointer-events: none;
}

.map-preview iframe {
    width: 100%;
    height: 300px;
    border: none;
    filter: grayscale(30%) contrast(1.1);
    transition: var(--transition-normal);
}

.map-preview:hover iframe {
    filter: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991.98px) {
    .hero-parallax-wrapper {
        height: auto;
        min-height: 500px;
        padding: 8rem 0 4rem;
    }
    
    .hero-content h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .feature-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .cta-card {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-parallax-wrapper {
        padding: 7rem 0 3rem;
        min-height: 450px;
    }
    
    .hero-content .btn {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        display: flex;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
        font-size: 1.5rem;
    }
    
    .floating-card {
        bottom: 1rem;
        left: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .floating-card .text-gold {
        font-size: 1.25rem;
    }
    
    .cta-card {
        padding: 1.5rem;
    }
    
    .map-preview iframe {
        height: 250px;
    }
}

@media (max-width: 575.98px) {
    .hero-parallax-wrapper {
        padding: 6rem 0 2rem;
    }
    
    .hero-content h1 {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .hero-content p.lead {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   DARK MODE PARALLAX OPTIMIZATION
   ============================================ */

@media (prefers-color-scheme: dark) {
    .parallax-bg {
        filter: brightness(0.6) contrast(1.1);
    }
    
    .parallax-mid {
        background: 
            radial-gradient(circle at 30% 70%, rgba(201,160,83,0.2) 0%, transparent 60%),
            radial-gradient(circle at 80% 20%, rgba(201,160,83,0.1) 0%, transparent 50%);
    }
}

/* ============================================
   PRINT STYLES FOR HOME
   ============================================ */

@media print {
    .hero-parallax-wrapper,
    .scroll-indicator,
    .whatsapp-float,
    .back-to-top {
        display: none !important;
    }
    
    .about-image-wrapper img {
        filter: grayscale(100%);
    }
}