/* ============================================
   DECENT HOUSE PREMIUM STYLES
   Advanced CSS for luxury experience
   ============================================ */

/* ============================================
   1. LIGHTBOX
   ============================================ */
#dh-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#dh-lightbox.active {
    opacity: 1;
    visibility: visible;
}

#dh-lightbox .lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

#dh-lightbox .lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#dh-lightbox .lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#dh-lightbox.active .lightbox-image {
    transform: scale(1);
}

#dh-lightbox .lightbox-close {
    position: absolute;
    top: -50px;
    left: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dh-lightbox .lightbox-close:hover {
    background: #D4A857;
    border-color: #D4A857;
    color: #1A1A1A;
}

#dh-lightbox .lightbox-prev,
#dh-lightbox .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#dh-lightbox .lightbox-prev {
    right: -70px;
}

#dh-lightbox .lightbox-next {
    left: -70px;
}

#dh-lightbox .lightbox-prev:hover,
#dh-lightbox .lightbox-next:hover {
    background: #D4A857;
    border-color: #D4A857;
    color: #1A1A1A;
}

#dh-lightbox .lightbox-caption {
    color: #fff;
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0.8;
}

@media (max-width: 768px) {
    #dh-lightbox .lightbox-prev,
    #dh-lightbox .lightbox-next {
        top: auto;
        bottom: -60px;
        transform: none;
    }
    #dh-lightbox .lightbox-prev { right: 60px; left: auto; }
    #dh-lightbox .lightbox-next { left: 60px; right: auto; }
}

/* ============================================
   2. STICKY CTA BAR
   ============================================ */
#sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1A1A1A;
    border-top: 2px solid #D4A857;
    padding: 0.75rem 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

#sticky-cta.visible {
    transform: translateY(0);
}

#sticky-cta .sticky-cta-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

#sticky-cta .sticky-cta-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #D4A857;
    font-size: 0.95rem;
    font-weight: 600;
}

#sticky-cta .sticky-cta-icon {
    font-size: 1.5rem;
}

#sticky-cta .sticky-cta-buttons {
    display: flex;
    gap: 0.75rem;
}

#sticky-cta .sticky-cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

#sticky-cta .sticky-cta-btn.whatsapp {
    background: #1A1A1A;
    color: #D4A857;
    border: 1px solid #D4A857;
}

#sticky-cta .sticky-cta-btn.whatsapp:hover {
    background: #D4A857;
    color: #1A1A1A;
    transform: scale(1.05);
}

#sticky-cta .sticky-cta-btn.phone {
    background: #1A1A1A;
    color: #D4A857;
    border: 1px solid #D4A857;
}

#sticky-cta .sticky-cta-btn.phone:hover {
    background: #D4A857;
    color: #1A1A1A;
    transform: scale(1.05);
}

@media (max-width: 640px) {
    #sticky-cta .sticky-cta-text span:not(.sticky-cta-icon):not(img) {
        font-size: 0.75rem;
    }
    #sticky-cta .sticky-cta-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.8rem;
    }
    #sticky-cta .sticky-cta-content {
        justify-content: center;
    }
}

/* ============================================
   3. PROGRESS INDICATOR
   ============================================ */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    background: rgba(233, 220, 199, 0.2);
}

#reading-progress .progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #D4A857, #f0c975, #D4A857);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
    transition: width 0.1s ease;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   4. ANIMATED COUNTERS SECTION
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, #1A1A1A 0%, #2a2a2a 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4A857' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #D4A857;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #E9DCC7;
    font-size: 1rem;
    opacity: 0.9;
}

.stat-icon {
    font-size: 2rem;
    color: #D4A857;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* ============================================
   5. TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    background: linear-gradient(180deg, #fff 0%, #f9f7f4 100%);
    padding: 5rem 0;
}

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 2rem;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 5rem;
    color: #D4A857;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #D4A857, #E9DCC7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1A1A;
    font-weight: 700;
    font-size: 1.5rem;
}

.testimonial-info h4 {
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: #888;
    font-size: 0.9rem;
}

.testimonial-stars {
    color: #D4A857;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ============================================
   6. PRICE CALCULATOR
   ============================================ */
.calculator-section {
    background: #fff;
    padding: 4rem 0;
}

.calculator-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border: 1px solid #E9DCC7;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.calculator-header {
    text-align: center;
    margin-bottom: 2rem;
}

.calculator-header h3 {
    font-size: 1.75rem;
    color: #1A1A1A;
    font-family: 'Playfair Display', serif;
}

.calculator-header p {
    color: #888;
    margin-top: 0.5rem;
}

.calc-field {
    margin-bottom: 1.5rem;
}

.calc-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1A1A1A;
}

.calc-field input,
.calc-field select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #E9DCC7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-field input:focus,
.calc-field select:focus {
    outline: none;
    border-color: #D4A857;
    box-shadow: 0 0 0 3px rgba(212, 168, 87, 0.15);
}

.calc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calc-result {
    background: linear-gradient(135deg, #1A1A1A, #2d2d2d);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1.5rem;
}

.calc-result-label {
    color: #E9DCC7;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.calc-result-price {
    color: #D4A857;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.calc-result-note {
    color: #888;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* ============================================
   7. TEXT REVEAL ANIMATION
   ============================================ */
.reveal-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: revealChar 0.5s ease forwards;
}

@keyframes revealChar {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   8. PREMIUM FOOTER
   ============================================ */
.premium-footer {
    background: linear-gradient(180deg, #1A1A1A 0%, #0f0f0f 100%);
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4A857, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

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

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

.footer-brand {
    color: #fff;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #888;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #D4A857;
    border-color: #D4A857;
    color: #1A1A1A;
    transform: translateY(-3px);
}

.footer-column h4 {
    color: #D4A857;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: #D4A857;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #888;
}

.footer-contact-item i {
    color: #D4A857;
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #D4A857;
    text-decoration: none;
}

/* ============================================
   9. PARALLAX HERO ENHANCEMENT
   ============================================ */
.parallax-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-hero-bg {
    position: absolute;
    inset: -50px;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* ============================================
   10. SCROLL ANIMATIONS BASE
   ============================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ============================================
   11. MAGNETIC BUTTON EFFECT
   ============================================ */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   12. CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4A857, #a88a45);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e8bc6a, #D4A857);
}

/* ============================================
   13. SELECTION COLOR
   ============================================ */
::selection {
    background: #D4A857;
    color: #1A1A1A;
}

/* ============================================
   14. FOCUS STYLES FOR ACCESSIBILITY
   ============================================ */
:focus-visible {
    outline: 2px solid #D4A857;
    outline-offset: 2px;
}

/* ============================================
   15. SMOOTH ANIMATIONS FOR CARDS
   ============================================ */
.dh-card,
.gallery-slide,
.testimonial-item {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}
