/* ===================================
   HOUZEZ CUSTOM FOOTER STYLES
   Modern & Luxury Footer Design
   =================================== */

/* Footer Main Container */
.houzez-custom-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Add subtle pattern overlay */
.houzez-custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px);
    pointer-events: none;
}

/* Container */
.houzez-custom-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===================================
   MAIN FOOTER SECTION
   =================================== */

.footer-main {
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* Footer Columns */
.footer-column {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Column 1: About */
.footer-about {
    grid-column: span 1;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    max-width: 160px;
    height: auto;
    filter: brightness(1.1);
}

.footer-brand {
    font-size: 24px;
    font-weight: 600;
    color: #c5a47e;
    margin: 0;
    letter-spacing: 1px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 25px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #e0e0e0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #c5a47e;
    border-color: #c5a47e;
    color: #1a1a1a;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(197, 164, 126, 0.3);
}

/* Footer Title */
.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #c5a47e;
    margin: 0 0 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #c5a47e;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu li a {
    color: #b0b0b0;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-menu li a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #c5a47e;
    transition: width 0.3s ease;
}

.footer-menu li a:hover {
    color: #c5a47e;
    padding-left: 20px;
}

.footer-menu li a:hover::before {
    width: 10px;
}

/* Contact List */
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

.contact-item i {
    color: #c5a47e;
    font-size: 18px;
    margin-right: 15px;
    margin-top: 2px;
    min-width: 20px;
}

.contact-item a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #c5a47e;
}

/* ===================================
   NEWSLETTER SECTION
   =================================== */

.footer-newsletter {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-content {
    flex: 1;
}

.newsletter-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
}

.newsletter-text {
    font-size: 14px;
    color: #b0b0b0;
    margin: 0;
}

.newsletter-form {
    flex: 1;
}

.form-group-newsletter {
    display: flex;
    gap: 0;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px 0 0 4px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #888;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #c5a47e;
}

.newsletter-btn {
    padding: 15px 30px;
    background: #c5a47e;
    border: 1px solid #c5a47e;
    border-radius: 0 4px 4px 0;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #d4b48e;
    border-color: #d4b48e;
    transform: translateX(3px);
}

.newsletter-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.newsletter-btn:hover i {
    transform: translateX(3px);
}

/* ===================================
   BOTTOM BAR
   =================================== */

.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-copyright {
    color: #888;
    font-size: 13px;
}

.footer-copyright p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: #b0b0b0;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #c5a47e;
}

.footer-bottom-links .separator {
    color: rgba(255, 255, 255, 0.2);
}

/* Back to Top Button */
.back-to-top {
    display: flex;
}

.back-top-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(197, 164, 126, 0.1);
    border: 1px solid rgba(197, 164, 126, 0.3);
    border-radius: 4px;
    color: #c5a47e;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-top-btn:hover {
    background: #c5a47e;
    border-color: #c5a47e;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 164, 126, 0.3);
}

.back-top-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.back-top-btn:hover i {
    transform: translateY(-3px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
    .footer-row {
        gap: 30px;
    }
    
    .newsletter-inner {
        gap: 30px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .footer-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
    }
    
    .footer-about {
        grid-column: span 2;
    }
    
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .newsletter-form {
        width: 100%;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-row {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-about {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-logo-img {
        margin: 0 auto;
        display: block;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-menu {
        text-align: center;
    }
    
    .footer-menu li a::before {
        display: none;
    }
    
    .footer-menu li a:hover {
        padding-left: 0;
    }
    
    .footer-contact-list {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .newsletter-inner {
        padding: 0 10px;
    }
    
    .newsletter-title {
        font-size: 20px;
    }
    
    .footer-newsletter {
        padding: 30px 0;
    }
    
    .form-group-newsletter {
        flex-direction: column;
    }
    
    .newsletter-input {
        border-radius: 4px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .newsletter-btn {
        border-radius: 4px;
        justify-content: center;
        border: 1px solid #c5a47e;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-links {
        order: -1;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-row {
        gap: 30px;
    }
    
    .footer-social {
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    .newsletter-title {
        font-size: 18px;
    }
    
    .newsletter-text {
        font-size: 13px;
    }
    
    .newsletter-input,
    .newsletter-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .back-top-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ===================================
   ANIMATION DELAYS
   =================================== */

.footer-column:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
    animation-delay: 0.4s;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.footer-menu li a:focus,
.social-link:focus,
.contact-item a:focus,
.newsletter-input:focus,
.newsletter-btn:focus,
.back-top-btn:focus {
    outline: 2px solid #c5a47e;
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .footer-column {
        animation: none;
    }
    
    .social-link:hover,
    .back-top-btn:hover,
    .newsletter-btn:hover {
        transform: none;
    }
}
