/*
 * Spineboshara.com - Footer Component
 * Professional footer with contact info, links, credentials, and E-E-A-T signals
 * Version: 1.0.0
 */

/* ========================================
   FOOTER SECTION
   ======================================== */

.footer,
.site-footer {
    background: linear-gradient(135deg, #0d2438 0%, #1a3a52 100%);
    color: #ffffff;
    padding: 2rem 0 1rem;
    margin-top: 0;
}

.footer-content {
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   FOOTER TOP - Main Content Grid
   ======================================== */

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-column h3,
.footer-column h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.95);
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.footer-credentials {
    margin-top: 1rem;
}

.footer-credentials img {
    max-width: 80px;
    height: auto;
    opacity: 0.9;
}

/* ========================================
   FOOTER ABOUT COLUMN
   ======================================== */

.footer-about {
    max-width: 400px;
}

/* E-E-A-T Trust Signals */
.footer-trust-signals {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.trust-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--background-primary);
    text-decoration: none;
    font-size: var(--font-size-small);
    transition: all var(--transition-base);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
}

.trust-link:hover,
.trust-link:focus {
    color: var(--secondary-light);
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.trust-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ========================================
   FOOTER SERVICES COLUMN
   ======================================== */

.footer-services ul,
.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all var(--transition-base);
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--secondary-color);
    text-decoration: none;
    transform: translateX(4px);
}

/* ========================================
   FOOTER CONTACT COLUMN
   ======================================== */

.footer-address {
    font-style: normal;
    font-size: var(--font-size-small);
    line-height: 1.8;
    color: #ffffff;
}

.footer-address p {
    margin-bottom: var(--spacing-sm);
}

.footer-address a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-address a:hover,
.footer-address a:focus {
    color: var(--secondary-light);
    text-decoration: underline;
}

/* ========================================
   FOOTER BOTTOM - Copyright & Disclaimer
   ======================================== */

.footer-bottom {
    text-align: center;
    color: #ffffff;
    padding-top: 1rem;
}

.medical-disclaimer {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1rem 0;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
}

.medical-disclaimer strong {
    color: #ffffff;
    font-weight: var(--font-weight-semibold);
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-tagline {
    font-size: 0.8125rem; /* 13px */
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-column h3 {
        font-size: 1.125rem;
    }

    .footer-column p {
        font-size: 0.9375rem;
    }

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

    .medical-disclaimer {
        font-size: 0.8125rem;
    }

    .copyright {
        font-size: 0.8125rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .site-footer,
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-column h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .footer-credentials img {
        max-width: 100px;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus visible for keyboard navigation */
.footer a:focus-visible {
    outline: 2px solid var(--secondary-light);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .footer-links a,
    .trust-link {
        transition: none;
    }
    
    .footer-links a:hover,
    .footer-links a:focus {
        transform: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .footer {
        background-color: transparent;
        color: #000;
        border-top: 2px solid #000;
    }
    
    .footer-trust-signals,
    .footer-links {
        display: none;
    }
    
    .footer-address a[href]::after {
        content: " (" attr(href) ")";
    }
}

