/* ============================================
   ATCHISON AREA CHAMBER OF COMMERCE
   Footer Component Styles
   ============================================ */

/* ==========================================
   PREMIER MEMBERS SPONSOR RIBBON
   Sits just above the main footer; populated by main.js
   ========================================== */
.footer-sponsors {
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.5) 0%,
        var(--off-white) 100%);
    border-top: 1px solid rgba(51, 79, 93, 0.08);
    padding: var(--space-10) 0;
}

.footer-sponsors[hidden] { display: none; }

.footer-sponsors__inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
    text-align: center;
}

.footer-sponsors__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: var(--chamber-slate);
    margin-bottom: var(--space-6);
}

.footer-sponsors__star {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: var(--chamber-gold, #d1aa66);
}

.footer-sponsors__star svg { width: 100%; height: 100%; }

.footer-sponsors__rail {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
}

.footer-sponsor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 60px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(51, 79, 93, 0.08);
    box-shadow: 0 4px 12px rgba(51, 79, 93, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease;
    text-decoration: none;
    color: var(--chamber-slate);
    overflow: hidden;
}

.footer-sponsor:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(51, 79, 93, 0.12);
}

.footer-sponsor img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(0.2);
    transition: filter 220ms ease;
}

.footer-sponsor:hover img {
    filter: grayscale(0);
}

.footer-sponsor__fallback {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.05em;
    color: var(--chamber-slate);
    background: linear-gradient(135deg, rgba(39,175,165,0.15), rgba(51,79,93,0.15));
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.footer-sponsors__more {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--chamber-teal);
    text-decoration: none;
}

.footer-sponsors__more:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .footer-sponsor { width: 92px; height: 52px; }
}

/* ==========================================
   MAIN FOOTER
   ========================================== */
.site-footer {
    background: var(--chamber-slate);
    color: var(--white);
    padding-top: var(--space-16);
}

.footer-link-quiet {
    display: inline-block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 200ms ease;
}

.footer-link-quiet:hover {
    color: var(--white);
}

.footer-inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Top brand identity strip — sits above the nav grid for visual hierarchy. */
.footer-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--space-12);
    padding: 0 var(--space-2);
}

.footer-logo {
    display: inline-block;
    margin-bottom: var(--space-4);
}

.footer-logo img {
    height: 60px;
    width: auto;
}

.footer-tagline {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin: 0 0 var(--space-3);
    color: var(--white);
    letter-spacing: 0.01em;
}

.footer-description {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.78);
    line-height: var(--leading-relaxed);
    margin: 0;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--space-10);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1.4fr;
        align-items: start;
        gap: var(--space-12);
    }
}

/* Bottom row: Visit Us + Office Hours, offset-centered below the nav grid. */
.footer-meet {
    margin-top: var(--space-12);
    padding-top: var(--space-10);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 600px) {
    .footer-meet {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-10);
    }
}

.footer-meet__card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-6);
    transition: background 200ms ease, border-color 200ms ease;
}

.footer-meet__card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.footer-meet__title {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--chamber-teal-light);
    margin: 0 0 var(--space-4);
}

.footer-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.88);
}

.footer-hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-3);
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.footer-hours-list li:last-child { border-bottom: none; }

.footer-hours-day {
    font-weight: 600;
    color: var(--white);
}

.footer-hours-time {
    color: rgba(255, 255, 255, 0.78);
    font-variant-numeric: tabular-nums;
}

/* Footer Contact Info */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact__item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--chamber-teal-light);
}

.footer-contact__item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-contact__item a:hover {
    color: var(--chamber-teal-light);
}

/* Footer Navigation */
.footer-nav__title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-6);
    color: var(--white);
    position: relative;
}

.footer-nav__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--chamber-teal);
}

.footer-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav__item {
    margin-bottom: var(--space-3);
}

.footer-nav__link {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-nav__link:hover {
    color: var(--chamber-teal-light);
    transform: translateX(4px);
}

/* Footer Newsletter */
.footer-newsletter__title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-3);
    color: var(--white);
}

.footer-newsletter__text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-4);
}

.footer-newsletter__form {
    display: flex;
    gap: var(--space-2);
}

.footer-newsletter__input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all var(--transition-base);
}

.footer-newsletter__input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter__input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter__btn {
    padding: var(--space-3) var(--space-5);
    background: var(--chamber-teal);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all var(--transition-base);
}

.footer-newsletter__btn:hover {
    background: var(--chamber-teal-dark);
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer-social__link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: all var(--transition-base);
    text-decoration: none;
}

.footer-social__link:hover {
    background: var(--chamber-teal);
    transform: translateY(-3px);
}

.footer-social__link svg {
    width: 20px;
    height: 20px;
}

/* (Footer hours are now rendered inside .footer-meet__card; legacy .footer-hours
   styles removed — the new card layout uses .footer-hours-list above.) */

/* Footer Bottom */
.footer-bottom {
    margin-top: var(--space-12);
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal__link {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-legal__link:hover {
    color: var(--white);
}

/* "Website design by eg-id.com" credit line, sits below the legal row. */
.footer-credit {
    max-width: var(--container-xl);
    margin: var(--space-3) auto 0;
    padding: 0 var(--space-6);
    text-align: center;
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}

.footer-credit__link {
    color: var(--chamber-teal-light, #7fd3cb);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color var(--transition-base);
}

.footer-credit__link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Partner Logos */
.footer-partners {
    padding: var(--space-8) 0;
    background: var(--chamber-slate-dark);
}

.footer-partners__inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.footer-partner__logo {
    height: 40px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-base);
    filter: brightness(0) invert(1);
}

.footer-partner__logo:hover {
    opacity: 1;
}

/* ==========================================
   SOCIAL SIDEBAR (Fixed)
   ========================================== */
.social-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.social-sidebar__link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-base);
}

.social-sidebar__link--facebook {
    background: #1877f2;
}

.social-sidebar__link--instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-sidebar__link--youtube {
    background: #ff0000;
}

.social-sidebar__link--snapchat {
    background: #fffc00;
    color: #000;
}

.social-sidebar__link--tiktok {
    background: #000;
    position: relative;
}

.social-sidebar__link--tiktok::before,
.social-sidebar__link--tiktok::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.social-sidebar__link--tiktok::before {
    background:
        radial-gradient(circle at 35% 35%, rgba(37, 244, 238, 0.65) 0, transparent 38%),
        radial-gradient(circle at 65% 65%, rgba(254, 44, 85, 0.55) 0, transparent 40%);
    mix-blend-mode: screen;
}

.social-sidebar__link:hover {
    transform: translateX(4px);
}

.social-sidebar__link svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 767px) {
    .social-sidebar {
        display: none;
    }
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    right: var(--space-6);
    bottom: var(--space-6);
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--chamber-teal, #008a8a) 0%, #006a6a 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 138, 138, 0.32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: var(--z-fixed);
}

.back-to-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #007575 0%, #005555 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 138, 138, 0.42);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}
