/* ==========================================================================
   GLOBAL ARCHITECTURAL FOOTER DESIGN SYSTEM
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary); /* Deep Premium Theme Indigo */
    color: var(--color-white);
    padding: var(--space-3xl) var(--space-lg) var(--space-xl) var(--space-lg);
    border-top: 4px solid var(--color-secondary); /* Gold Trim Top Boundary */
}

.footer-container {
    max-width: var(--max-width-content);
    margin: 0 auto;
}

/* Core Structural 4-Column Responsive Grid Layout Grid */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Individual Column Settings */
.footer-column h3 {
    color: var(--color-secondary); /* Premium Gold Accent Titles */
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-lg);
}

/* Column 1: Brand Styles */
.brand-column {
    display: flex;
    flex-direction: column;
 /*   align-items: flex-start;  */
    text-align: center; /* Centered for smaller screens */
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-md);
}

.footer-brand-mission {
    font-size: var(--fs-xs);
    line-height: 1.6;
    opacity: 0.75;
    margin-bottom: var(--space-lg);
}

.footer-legal-copy {
    font-size: var(--fs-xs);
    opacity: 0.5;
    text-align: center; /* Centered for smaller screens */
}

/* Column 2: Quick Links Lists */
.footer-links-list {
    list-style: none;
    padding-top: 1px;
    padding-bottom: 1px;
    margin-top: 1px;
    margin-bottom: 1px;
    text-align: center;
}

.footer-links-list li {
    margin-bottom: var(--space-sm);
}

.footer-links-list a {
    color: var(--color-white);
    text-decoration: none;
    font-size: var(--fs-xs);
    opacity: 0.8;
    transition: opacity var(--duration-fast) var(--transition-smooth),
                padding-left var(--duration-fast) var(--transition-smooth);
}

.footer-links-list a:hover {
    opacity: 1;
    color: var(--color-secondary);
    padding-left: 4px; /* Tiny active offset nudge */
}

/* Column 3: Contact Details Lists Elements */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: var(--space-lg);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--fs-xs);
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: var(--space-md);
}

.footer-contact-list svg {
    width: 16px;
    height: 16px;
    fill: var(--color-secondary); /* Gold Tint Contacts Icons */
    flex-shrink: 0;
    margin-top: 2px;
}

/* Social Media Channels Flex Matrix Grid */
.footer-social-matrix {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color var(--duration-fast) var(--transition-smooth),
                border-color var(--duration-fast) var(--transition-smooth),
                transform var(--duration-fast) var(--transition-smooth);
}

.social-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    transition: filter var(--duration-fast) var(--transition-smooth);
}

.social-icon-wrapper:hover {
    background-color: var(--color-secondary); /* Changes seamlessly to gold on hover state */
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

.social-icon-wrapper:hover .social-icon-img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(34%) topic(121deg) target(darker); /* Automatically contrasts icon vectors dynamically on bright gold background states */
}

/* Column 4: Tap-to-Map Google Maps Embed Component */
.footer-map-card {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.map-fallback-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--transition-smooth);
}

/* Dark Map Overlay Hover State Layout Triggers */
.map-overlay-prompt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 76, 92, 0.85); /* Smooth theme veil backdrop */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    opacity: 0;
    z-index: 2;
    transition: opacity var(--duration-fast) var(--transition-smooth);
}

.map-overlay-prompt svg {
    width: 24px;
    height: 24px;
    fill: var(--color-secondary);
}

.map-overlay-prompt span {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--color-white);
}

.footer-map-card:hover .map-overlay-prompt {
    opacity: 1; /* Reveals active action tap layers instantly on mouse focus */
}

.footer-map-card:hover .map-fallback-img {
    transform: scale(1.05);
}

/* ==========================================================================
   DEVELOPER ATTRIBUTION BASE ROW & DOUBLE UNDERLINE HOVER TRANSITIONS
   ========================================================================== */
.footer-base-row {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-base-row p {
    font-size: var(--fs-xs);
    opacity: 0.6;
    margin: 0;
}

/* Custom CSS Artistry Double Underline Framework */
.dev-attribution-link {
    color: goldenrod;
    text-decoration: none;
    font-weight: 900;
    position: relative;
    display: inline-block;
    transition: color var(--duration-fast) var(--transition-smooth);
    
    /* First Default Baseline Underline Link Indicator */
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
}

/* Secondary Absolute Underline Pseudo-element Element Layer Setup */
.dev-attribution-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px; /* Positioned directly beneath the first default border line boundary */
    width: 100%;
    height: 100%;
    border-bottom: 1px solid var(--color-secondary); /* Secondary Gold Line Accent */
    opacity: 0;
    transform: scaleX(0); /* Hidden resting expansion state metrics bounds */
    transform-origin: center;
    transition: transform var(--duration-fast) var(--transition-smooth),
                opacity var(--duration-fast) var(--transition-smooth);
}

/* Hover State Interactions Execution Loops */
.dev-attribution-link:hover {
    color: var(--color-secondary); /* Swaps text cleanly to gold theme accents */
    border-color: var(--color-secondary); /* Shift primary underline to gold matching */
}

.dev-attribution-link:hover::after {
    opacity: 1;
    transform: scaleX(1); /* Expands out secondary line elements from center coordinate bounds */
}

/* ==========================================================================
   Responsive Scaling Footers Columns Media Query Grid Layout Breakpoints
   ========================================================================= */
@media (min-width: 576px) {
    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 layout matrix panel displays on small table configurations */
    }
}

@media (min-width: 992px) {
    .footer-main-grid {
        grid-template-columns: repeat(4, 1fr); /* Unified 4-Column Widescreen Inline Spreads Rows Row Layout */
        gap: var(--space-xl);
    }
}


/* ==========================================================================
   FLOATING FIXED ARCHITECTURAL WHATSAPP BUTTON SYSTEM
   ========================================================================== */
.floating-whatsapp-anchor {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999; /* Keeps it layered completely on top of all page elements */
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-badge-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgb(4, 44, 100, 0.5); /* Official WhatsApp Green Matrix */
    padding: 0;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-anchor-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.whatsapp-anchor-text {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    font-family: system-ui, -apple-system, sans-serif;
    padding-right: 4px;
    white-space: nowrap;
    display: inline-block;
}

/* Fluid Hover Motions */
.floating-whatsapp-anchor:hover {
    transform: translateY(-4px) scale(1.03);
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS (MOBILE VIEW OPTIMIZATIONS)
   ========================================================================== */
@media (max-width: 768px) {
    .floating-whatsapp-anchor {
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-badge-wrapper {
        padding: 0; /* Uniform circle padding wrapper round the icon */
        border-radius: 50%;
    }

    /* Completely hides the note text box on compact screens */
    .whatsapp-anchor-text {
        display: none;
    }
}