/* -------------------------------------------------------------
   Footer Styles - Modern Design with Sticky Bottom
------------------------------------------------------------- */

/* Make sure the body and HTML take at least full viewport height */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Page wrapper for sticky footer */
#page {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Make content area grow to push footer down */
#content {
    flex: 1 0 auto;
    /* Ensure minimum content height pushes footer below viewport */
    min-height: calc(10vh - 70px); /* Subtract header height */
    padding-bottom: 30px; /* Add some padding at the bottom */
	padding-top: 30px;
}

/* Basic footer styling */
.site-footer {
    flex-shrink: 0;
    background-color: #222;
    color: #f5f5f5;
    position: relative;
    width: 100%;
    /* Set minimum margin from the viewport top */
    margin-top: 30px;
}

/* Main footer section - REDUCED PADDING */
.footer-main {
    padding: 2.5rem 0 1.5rem;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* REDUCED GAP */
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

/* Footer headings - REDUCED MARGINS */
.footer-column h4 {
    color: #e1af1a;
    font-size: 1.1rem; /* REDUCED SIZE */
    margin: 0 0 1rem; /* REDUCED MARGIN */
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #e1af1a;
}

/* Footer logo - REDUCED MARGIN */
.footer-logo {
    margin-bottom: 0.75rem;
}

.footer-logo img {
    max-width: 120px; /* SMALLER LOGO */
    height: auto;
}

/* Footer description */
.footer-description {
    margin-bottom: 1rem; /* REDUCED MARGIN */
    line-height: 1.4; /* TIGHTER LINE HEIGHT */
    color: #ccc;
    font-size: 0.85rem; /* SMALLER FONT */
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 0.75rem; /* REDUCED GAP */
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* SMALLER ICONS */
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background-color: #e1af1a;
    color: #222;
    transform: translateY(-2px);
}

/* Footer links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem; /* REDUCED MARGIN */
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem; /* SMALLER FONT */
}

.footer-links a:hover {
    color: #e1af1a;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    transition: transform 0.2s ease;
}

.footer-links a:hover::before {
    transform: translateX(3px);
    color: #e1af1a;
}

/* Contact info */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 0.5rem; /* REDUCED MARGIN */
    color: #ccc;
    display: flex;
    align-items: flex-start;
    line-height: 1.4; /* TIGHTER LINE HEIGHT */
    font-size: 0.9rem; /* SMALLER FONT */
}

.footer-contact li i {
    margin-right: 8px; /* REDUCED SPACING */
    color: #e1af1a;
    min-width: 14px; /* SMALLER ICON AREA */
    margin-top: 3px;
}

.footer-contact a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #e1af1a;
}

/* Bottom footer - REDUCED PADDING */
.footer-bottom {
    padding: 1rem 0; /* REDUCED PADDING */
    font-size: 0.85rem; /* SMALLER FONT */
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem; /* REDUCED GAP */
}

.footer-copyright p {
    margin: 0;
    color: #aaa;
}

.footer-legal {
    display: flex;
    gap: 0.75rem; /* REDUCED GAP */
    align-items: center;
}

.footer-legal a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #e1af1a;
}

.footer-legal .separator {
    color: #444;
}

/* Responsive styles */
@media (max-width: 992px) {
    /* Ensure content area is high enough on mobile */
    #content {
        min-height: calc(100vh - 60px); /* Adjust for smaller header on mobile */
    }
    
    /* Restructured footer for mobile - ULTRA COMPACT */
    .footer-columns {
        flex-direction: column;
        gap: 0.75rem; /* MINIMAL GAP */
        align-items: center;
        text-align: center;
    }
    
    .footer-column {
        min-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 500px;
        margin: 0; /* REMOVE MARGIN */
        padding: 0.4rem 0; /* MINIMAL PADDING */
    }
    
    /* Hide ALL headings on mobile */
    .footer-column h4 {
        display: none;
    }
    
    /* Very compact logo */
    .footer-logo {
        margin: 0 0 0.5rem 0; /* MINIMAL MARGIN */
    }
    
    /* Minimal description */
    .footer-description {
        margin: 0 0 0.5rem 0; /* MINIMAL MARGIN */
        line-height: 1.3; /* TIGHT LINES */
        max-width: 80%; /* CONSTRAIN WIDTH */
    }
    
    /* Center logo */
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-logo img {
        max-width: 100px; /* SMALLER ON MOBILE */
    }
    
    /* Compact links */
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0.25rem 0; /* MINIMAL MARGIN */
    }
    
    /* Remove padding and arrow from links */
    .footer-links a {
        text-align: center;
        padding: 0;
        margin-bottom: 0.25rem; /* MINIMAL SPACING */
    }
    
    .footer-links a::before {
        display: none;
    }
    
    /* Compact social icons */
    .footer-social {
        justify-content: center;
        margin: 0.5rem 0; /* MINIMAL MARGIN */
    }
    
    .footer-social a {
        width: 30px; /* SMALLER ON MOBILE */
        height: 30px;
    }
    
    /* Ultra compact footer section */
    .footer-main {
        padding: 1.5rem 0 1rem; /* MINIMAL PADDING */
    }
    
    /* Layout order */
    .footer-column:nth-child(1) {
        order: 1;
    }
    
    .footer-column:nth-child(2) {
        order: 2;
    }
    
    .footer-column:nth-child(3) {
        order: 3;
    }
    
    /* Compact contact info */
    .footer-contact {
        align-items: center;
        margin: 0.25rem 0; /* MINIMAL MARGIN */
    }
    
    .footer-contact li {
        justify-content: center;
        margin-bottom: 0.25rem; /* MINIMAL MARGIN */
    }
    
    /* Compact footer bottom */
    .footer-bottom {
        background-color: transparent;
        padding: 0.5rem 0 1rem; /* REDUCED TOP PADDING */
        border-top: none;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem; /* MINIMAL GAP */
    }
    
    .footer-copyright p {
        margin-bottom: 0.25rem; /* MINIMAL MARGIN */
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.25rem; /* MINIMAL GAP */
    }
    
    .footer-legal .separator {
        display: none;
    }
    
    /* Center and compact contact items */
    .footer-contact li {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.85rem; /* SMALLER TEXT */
    }
    
    .footer-contact li i {
        font-size: 0.9rem; /* SMALLER ICONS */
    }
}

/* Dark mode styles */
body.dark-mode .site-footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

body.dark-mode .footer-bottom {
    border-top: 1px solid #333;
}

body.dark-mode .footer-column h4 {
    color: #e1af1a;
}

body.dark-mode .footer-column h4::after {
    background-color: #e1af1a;
}

body.dark-mode .footer-description,
body.dark-mode .footer-links a,
body.dark-mode .footer-contact li,
body.dark-mode .footer-copyright p,
body.dark-mode .footer-legal a {
    color: #aaa;
}

body.dark-mode .footer-links a:hover,
body.dark-mode .footer-contact a:hover,
body.dark-mode .footer-legal a:hover {
    color: #e1af1a;
}

/* Additional dark mode styles for mobile */
@media (max-width: 992px) {
    body.dark-mode .footer-bottom {
        background-color: transparent;
        border-top: none;
    }
}

/* Additional JavaScript to ensure footer is below viewport */
@media (max-height: 800px) {
    .site-footer {
        margin-top: 50px;
    }
}