/**
 * 06 - Footer
 * Site footer layout and typography.
 *
 * Note: Responsive overrides remain in `assets/css/main.css` until Phase 5.
 */

/* ==========================================================================
   Footer - Lantern Medical Brand
   ========================================================================== */

.site-footer {
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-white);
    padding: var(--spacing-xxl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
    border-top: 3px solid var(--color-accent);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-accent) 50%,
        transparent 100%
    );
}

.site-footer a {
    color: var(--color-accent-light);
    transition: color var(--transition-base);
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--color-accent);
}

/* Footer Content Layout */
.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Footer Branding */
.footer-branding {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    grid-column: 1 / -1; /* span full width so logo can be 90vw centered */
}

.footer-logo {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 100%;
}

.footer-logo-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.33;
    transition: all var(--transition-base);
}

.footer-logo:hover .footer-logo-image,
.footer-logo-image:hover {
    opacity: 1;
    transform: scale(1.02);
}

.footer-logo-tagline {
    width: 100%;
    margin: 1.75rem 0 0;
    text-align: center;
    font-family: var(--font-family-body);
    font-size: clamp(1.15rem, 2.2vw, 1.85rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--color-accent-light) 72%, #ffffff 28%); /* Fallback */
    opacity: 0.33;
    transition: opacity 0.45s ease, filter 0.45s ease;
}

/* Light-sweep text effect */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .footer-logo-tagline {
        color: transparent;
        background-image: linear-gradient(
            100deg,
            rgba(244, 197, 66, 0.38) 30%,
            rgba(255, 248, 214, 0.42) 50%,
            rgba(244, 197, 66, 0.38) 70%
        );
        background-size: 240% 100%;
        background-position: 130% 0;
        -webkit-background-clip: text;
        background-clip: text;
        transition: opacity 0.55s ease, filter 0.55s ease, background-position 4.2s cubic-bezier(0.16, 0.78, 0.24, 1);
    }
}

.footer-logo:hover .footer-logo-tagline {
    opacity: 1;
    filter: drop-shadow(0 0 0.42rem rgba(244, 197, 66, 0.42));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .footer-logo:hover .footer-logo-tagline {
        background-image: linear-gradient(
            100deg,
            rgba(244, 197, 66, 0.86) 28%,
            rgba(255, 255, 255, 1) 50%,
            rgba(244, 197, 66, 0.86) 72%
        );
        background-position: -20% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-logo-tagline,
    .footer-logo:hover .footer-logo-tagline {
        transition: opacity 0.2s ease;
        filter: none;
        background-position: 50% 0;
    }
}

.footer-about {
    flex: 1;
}

.footer-title {
    margin: 0 0 var(--spacing-xs) 0;
    font-size: 1.25rem;
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.3;
}

.footer-tagline {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-accent-light);
    line-height: 1.5;
}

/* Footer Navigation */
.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-nav-title {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 1rem;
    font-family: var(--font-family-headings);
    font-weight: 700;
    color: var(--color-text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

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

.footer-navigation li {
    position: relative;
    padding-left: 1rem;
}

.footer-navigation li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.footer-navigation a {
    font-weight: 500;
    font-size: var(--font-size-sm);
    display: inline-block;
    transition: all var(--transition-base);
}

.footer-navigation a:hover {
    transform: translateX(4px);
}

/* Site Info */
.site-info {
    text-align: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.site-info p {
    margin: 0;
    line-height: 1.6;
}

.site-info strong {
    color: var(--color-accent-light);
    font-weight: 600;
}

.powered-by {
    font-size: 0.8125rem;
    opacity: 0.8;
}

.powered-by a {
    font-weight: 600;
    text-decoration: underline;
}


