/* =========================================================
   DESIGN VARIABLES & SYSTEM DEFAULTS
   ========================================================= */
:root {
    --footer-bg: #ffffff;
    --footer-text: #555555;
    --footer-heading: #222222;
    --footer-accent: #D4AF37; /* Gold */
    --footer-border: #e2e8f0;
    --footer-max-width: 1200px;
    --footer-transition: all 0.25s ease-in-out;
}

/* Ensure sticky footer behavior without external dependency */
html, body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================================
   FOOTER CONTAINER & LAYOUT
   ========================================================= */
.site-footer {
    margin-top: auto;
    background-color: var(--footer-bg);
    border-top: 4px solid var(--footer-accent);
    color: var(--footer-text);
    font-family: inherit;
    line-height: 1.5;
}

.footer-top {
    max-width: var(--footer-max-width);
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2.5rem;
}

.footer-col {
    flex: 1 1 220px;
}

.footer-heading {
    margin: 0 0 1.25rem 0;
    color: var(--footer-heading);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* =========================================================
   LEFT COLUMN: BRANDING & SOCIALS
   ========================================================= */
.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center; /* Fix: Changed from flex-start to align the logo and links */
    gap: 1.25rem;
    flex: 1 1 250px; /* Slightly widened to accommodate the larger logo */
}

.footer-logo {
    max-height: 220px; /* MUCH BIGGER (was 140px) */
    width: auto;
    max-width: 100%; /* Prevents the logo from overflowing its container */
    object-fit: contain;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--footer-heading);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--footer-transition);
}

.social-links a:hover,
.social-links a:focus-visible {
    color: var(--footer-accent);
    transform: translateY(-3px);
    outline: none;
}

/* =========================================================
   NAV & CONTACT COLUMNS
   ========================================================= */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--footer-transition);
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: var(--footer-accent);
    padding-left: 4px;
    outline: none;
}

.contact-details {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-details p {
    margin: 0;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-details i {
    color: var(--footer-accent);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.contact-details a {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--footer-transition);
}

.contact-details a:hover,
.contact-details a:focus-visible {
    color: var(--footer-accent);
    outline: none;
}

/* =========================================================
   BOTTOM COPYRIGHT BAR
   ========================================================= */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 1.25rem 1.5rem;
    text-align: center; /* This explicitly centers the copyright text */
}

.footer-bottom p {
    margin: 0;
    color: #888888;
    font-size: 0.875rem;
}

/* =========================================================
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ========================================================= */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        padding: 2.5rem 1.25rem;
    }

    .footer-branding,
    .footer-col,
    .contact-details {
        align-items: center;
        width: 100%;
    }

    .footer-logo {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-left: -20px; /* Adjust this value until it visually aligns with the social icons */
}

    .contact-details p {
        justify-content: center;
    }

    .footer-menu a:hover,
    .footer-menu a:focus-visible {
        padding-left: 0;
    }
}