/* George Mathews Photography - Footer Styles */
/* Scoped with gm- prefix for WordPress compatibility */

/* CSS Custom Properties */
.gm-footer {
    --gm-footer-bg: #000000;
    --gm-text-color: #ffffff;
    --gm-text-muted: rgba(255, 255, 255, 0.6);
    --gm-border-color: rgba(255, 255, 255, 0.1);
    --gm-transition: 0.3s ease;
    --gm-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Footer Base */
.gm-footer {
    background-color: var(--gm-footer-bg);
    font-family: var(--gm-font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gm-footer *,
.gm-footer *::before,
.gm-footer *::after {
    box-sizing: border-box;
}

/* Footer Container */
.gm-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem 2rem;
}

/* Footer Main */
.gm-footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--gm-border-color);
}

/* Brand Section */
.gm-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gm-footer-logo {
    display: inline-block;
}

.gm-footer-logo img {
    height: 48px;
    width: auto;
    display: block;
    transition: opacity var(--gm-transition);
}

.gm-footer-logo:hover img {
    opacity: 0.8;
}

.gm-footer-tagline {
    font-size: 0.9375rem;
    font-weight: 300;
    color: var(--gm-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Navigation Section */
.gm-footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Footer Column */
.gm-footer-col {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.gm-footer-heading {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gm-text-color);
    margin: 0;
}

.gm-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gm-footer-links a {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--gm-text-muted);
    text-decoration: none;
    transition: color var(--gm-transition);
}

.gm-footer-links a:hover {
    color: var(--gm-text-color);
}

/* Footer Bottom */
.gm-footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.gm-footer-copyright {
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--gm-text-muted);
    margin: 0;
}

/* ==================== */
/* RESPONSIVE - TABLET  */
/* ==================== */
@media screen and (max-width: 1024px) {
    .gm-footer-container {
        padding: 4rem 1.5rem 1.5rem;
    }

    .gm-footer-main {
        grid-template-columns: 1fr 2fr;
        gap: 3rem;
    }
}

/* ==================== */
/* RESPONSIVE - MOBILE  */
/* ==================== */
@media screen and (max-width: 768px) {
    .gm-footer-container {
        padding: 3rem 1.5rem 1.5rem;
    }

    .gm-footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .gm-footer-brand {
        text-align: center;
        align-items: center;
    }

    .gm-footer-nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        text-align: center;
    }

    .gm-footer-col {
        align-items: center;
    }

    .gm-footer-links {
        align-items: center;
    }
}

/* ====================== */
/* RESPONSIVE - SM MOBILE */
/* ====================== */
@media screen and (max-width: 480px) {
    .gm-footer-container {
        padding: 2.5rem 1rem 1rem;
    }

    .gm-footer-main {
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .gm-footer-nav {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gm-footer-heading {
        font-size: 0.6875rem;
    }

    .gm-footer-links a {
        font-size: 0.8125rem;
    }

    .gm-footer-copyright {
        font-size: 0.75rem;
    }
}

/* Accessibility - Focus Styles */
.gm-footer-logo:focus-visible,
.gm-footer-links a:focus-visible {
    outline: none;
}

/* Remove tap highlight on mobile */
.gm-footer-logo,
.gm-footer-links a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.gm-footer-logo:focus,
.gm-footer-logo:active,
.gm-footer-links a:focus,
.gm-footer-links a:active {
    outline: none;
    box-shadow: none;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
    .gm-footer *,
    .gm-footer *::before,
    .gm-footer *::after {
        transition: none !important;
    }
}
