/* ===================================
   FOOTER - PREMIUM ELEGANT DESIGN
   =================================== */

.site-footer {
    background: linear-gradient(165deg, var(--primary-dark-grey) 0%, #1a1a1a 50%, #1f1f1f 100%);
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    overflow: hidden;
}

/* Elegant wave divider at top */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,64 C360,100 720,28 1080,64 C1260,80 1320,100 1440,100 L1440,0 L0,0 Z'/%3E%3C/svg%3E") no-repeat;
    background-size: cover;
    z-index: 1;
    opacity: 0.98;
}

/* Sophisticated gradient mesh background */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 20%, rgba(217, 180, 95, 0.09) 0%, transparent 45%),
        radial-gradient(ellipse at 90% 80%, rgba(217, 180, 95, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(217, 180, 95, 0.05) 0%, transparent 55%);
    z-index: 0;
    animation: footerGlow 12s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Sophisticated grid pattern */
.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(217, 180, 95, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 180, 95, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
    z-index: 0;
    animation: patternShift 20s linear infinite;
}

@keyframes patternShift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.site-footer .container {
    position: relative;
    z-index: 2;
}

/* ===================================
   NEWSLETTER SECTION - PREMIUM
   =================================== */

.footer-newsletter {
    padding: calc(var(--spacing-xxl) + 20px) 0 var(--spacing-xl);
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.newsletter-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.newsletter-tag::before,
.newsletter-tag::after {
    content: '';
    width: 35px;
    height: 1px;
    background: var(--gold-gradient);
    box-shadow: 0 0 8px rgba(217, 180, 95, 0.4);
}

.newsletter-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    position: relative;
}

.newsletter-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(217, 180, 95, 0.5);
}

.newsletter-description {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    margin-top: var(--spacing-md);
}

.newsletter-form {
    display: flex;
    gap: 14px;
    max-width: 580px;
    margin: 0 auto;
    position: relative;
}

.newsletter-input {
    flex: 1;
    padding: 20px 28px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(217, 180, 95, 0.25);
    border-radius: var(--radius-full);
    color: white;
    font-size: 1.05rem;
    transition: all var(--transition-normal);
    outline: none;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 4px rgba(217, 180, 95, 0.15), 0 8px 25px rgba(217, 180, 95, 0.2);
    transform: translateY(-2px);
}

.newsletter-button {
    padding: 20px 40px;
    background: var(--gold-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(217, 180, 95, 0.35);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.newsletter-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.newsletter-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 40px rgba(217, 180, 95, 0.45);
}

.newsletter-button:hover::before {
    left: 100%;
}

.newsletter-button:active {
    transform: translateY(-2px) scale(1.01);
}

/* ===================================
   FOOTER MAIN CONTENT
   =================================== */

.footer-main {
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(217, 180, 95, 0.18);
    border-bottom: 1px solid rgba(217, 180, 95, 0.18);
    position: relative;
}

.footer-content {
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
    gap: var(--spacing-xl);
}

/* ===================================
   FOOTER COLUMNS
   =================================== */

.footer-column {
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out backwards;
}

.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; }

/* Brand Column - Enhanced */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--spacing-md);
    transition: transform var(--transition-normal);
    text-decoration: none;
}

.footer-logo-wrapper:hover {
    transform: translateX(6px);
}

/* Logo Image Styling */
.footer-logo-icon-img {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    box-shadow: 0 8px 24px rgba(217, 180, 95, 0.35);
    transition: all var(--transition-normal);
    object-fit: contain;
    background: white;
    padding: 4px;
}

.footer-logo-wrapper:hover .footer-logo-icon-img {
    transform: rotate(-5deg) scale(1.08);
    box-shadow: 0 12px 32px rgba(217, 180, 95, 0.45);
}

/* Fallback for div-based logo icon */
.footer-logo-icon {
    width: 52px;
    height: 52px;
    background: var(--gold-gradient);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(217, 180, 95, 0.35);
    transition: all var(--transition-normal);
}

.footer-logo-wrapper:hover .footer-logo-icon {
    transform: rotate(-5deg) scale(1.08);
    box-shadow: 0 12px 32px rgba(217, 180, 95, 0.45);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -0.3px;
}

.footer-logo-name .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-tagline {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.footer-mission {
    font-size: 0.98rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: var(--spacing-md);
    padding-right: var(--spacing-sm);
}

/* Social Links - Premium Design */
.footer-social {
    display: flex;
    gap: 14px;
    margin-top: auto;
    flex-wrap: wrap;
}

.footer-social a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(217, 180, 95, 0.12);
    border: 1.5px solid rgba(217, 180, 95, 0.25);
    border-radius: 50%;
    color: var(--primary-gold);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 50%;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.footer-social a:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.footer-social a:hover {
    color: white;
    transform: translateY(-7px) rotate(8deg);
    box-shadow: 0 12px 30px rgba(217, 180, 95, 0.45);
    border-color: transparent;
}

/* ===================================
   FOOTER SECTION TITLES
   =================================== */

.footer-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
    display: inline-block;
    letter-spacing: -0.2px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold-gradient);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 0 10px rgba(217, 180, 95, 0.6);
}

.footer-column:hover .footer-title::after {
    width: 55px;
}

/* ===================================
   FOOTER LINKS - ELEGANT STYLE
   =================================== */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links li {
    position: relative;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.97rem;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    line-height: 1.5;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-12px);
    transition: all var(--transition-normal);
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--primary-gold);
    transform: translateX(10px);
    text-shadow: 0 0 20px rgba(217, 180, 95, 0.3);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* ===================================
   CONTACT INFO - SOPHISTICATED
   =================================== */

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--primary-gold);
    margin-top: 2px;
    filter: drop-shadow(0 0 8px rgba(217, 180, 95, 0.4));
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.97rem;
    transition: all var(--transition-normal);
    line-height: 1.6;
}

.footer-contact a:hover {
    color: var(--primary-gold);
    transform: translateX(4px);
    text-shadow: 0 0 15px rgba(217, 180, 95, 0.3);
}

/* Certifications/Trust Badges */
.footer-certifications {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(217, 180, 95, 0.18);
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(217, 180, 95, 0.1);
    border: 1.5px solid rgba(217, 180, 95, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.cert-badge:hover {
    background: rgba(217, 180, 95, 0.15);
    border-color: rgba(217, 180, 95, 0.4);
    transform: translateX(5px);
}

.cert-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-gold);
    filter: drop-shadow(0 0 6px rgba(217, 180, 95, 0.5));
}

/* ===================================
   DISCLAIMER - ELEGANT BOX
   =================================== */

.disclaimer {
    font-size: 0.87rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(217, 180, 95, 0.06);
    border-left: 3px solid var(--primary-gold);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ===================================
   FOOTER BOTTOM - POLISHED
   =================================== */

.footer-bottom {
    padding: var(--spacing-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-copyright svg {
    width: 17px;
    height: 17px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    padding-bottom: 2px;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary-gold);
    transition: width var(--transition-normal);
    box-shadow: 0 0 8px rgba(217, 180, 95, 0.6);
}

.footer-bottom-links a:hover {
    color: var(--primary-gold);
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

.footer-divider {
    color: rgba(255, 255, 255, 0.25);
    margin: 0 6px;
    font-weight: 300;
}

/* ===================================
   RESPONSIVE FOOTER
   =================================== */

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
        max-width: 550px;
    }
}

@media (max-width: 768px) {
    .site-footer::before {
        height: 60px;
    }
    
    .footer-newsletter {
        padding: var(--spacing-xl) 0 var(--spacing-lg);
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .newsletter-button {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-column:last-child {
        grid-column: auto;
        max-width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 0;
    }
}

@media (max-width: 480px) {
    .footer-newsletter {
        padding: var(--spacing-lg) 0;
    }
    
    .newsletter-title {
        font-size: 1.6rem;
    }
    
    .newsletter-description {
        font-size: 0.96rem;
    }
    
    .newsletter-input,
    .newsletter-button {
        padding: 18px 26px;
        font-size: 0.96rem;
    }
    
    .footer-logo-wrapper {
        flex-direction: row;
        align-items: center;
    }
    
    .footer-logo-icon-img,
    .footer-logo-icon {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
    }
    
    .footer-logo-name {
        font-size: 1.4rem;
    }
    
    .footer-mission {
        font-size: 0.92rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
    }
    
    .footer-social a {
        width: 42px;
        height: 42px;
    }
    
    .disclaimer {
        font-size: 0.82rem;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   ACCESSIBILITY & REDUCED MOTION
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .site-footer::after,
    .footer-pattern,
    .footer-column {
        animation: none !important;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
.newsletter-input:focus-visible,
.newsletter-button:focus-visible,
.footer-links a:focus-visible,
.footer-contact a:focus-visible,
.footer-social a:focus-visible,
.footer-bottom-links a:focus-visible {
    outline: 3px solid var(--primary-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===================================
   ADDITIONAL ELEGANT TOUCHES
   =================================== */

/* Subtle shimmer effect on hover for footer sections */
.footer-column:hover {
    position: relative;
}

.footer-column:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 3px;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 2px;
    opacity: 0.5;
    animation: shimmerGlow 2s ease-in-out infinite;
}

@keyframes shimmerGlow {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 5px rgba(217, 180, 95, 0.2);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 15px rgba(217, 180, 95, 0.5);
    }
}
