/* Phase C: Footer Aesthetic Layer
 * PURPOSE: Encapsulate footer visual theming separate from layout.
 * Decorative only: colors, backgrounds, shadows, interactive emphasis.
 */
.footer {
  
    border-top: 1px solid rgba(var(--brand-primary-rgb, 102, 153, 153), 0.18);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.08);
    font-size: 1em;
    line-height: 1.6;
}

.footer .sitename,
.footer h2,
.footer h3,
.footer h4 {
    color: var(--brand-primary, #669999);
}

.footer .footer-welcome,
.footer p,
.footer .footer-section-text {
    color: var(--brand-text-light, #666666);
}

.footer a:not(.footer-special-btn):not(.social-link) {
    color: var(--brand-text, #333333);
    opacity: 0.92;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.footer a:not(.footer-special-btn):not(.social-link):hover,
.footer a:not(.footer-special-btn):not(.social-link):focus {
    opacity: 1;
    text-decoration: none;
    color: var(--brand-primary, #669999);
    box-shadow: inset 0 -2px 0 rgba(var(--brand-primary-rgb, 102, 153, 153), 0.35);
}

.footer .footer-card-section {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(var(--brand-secondary-rgb, 179, 206, 209), 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.footer .card-header {
    background: rgba(var(--brand-primary-rgb, 102, 153, 153), 0.08);
    border-bottom: 1px solid rgba(var(--brand-primary-rgb, 102, 153, 153), 0.2);
}

.footer .link-list-item,
.footer .service-list-item,
.footer .contact-item {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(var(--brand-secondary-rgb, 179, 206, 209), 0.35);
    color: var(--brand-text, #333333);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.footer .link-list-item:hover,
.footer .service-list-item:hover,
.footer .contact-item:hover {
    background: rgba(var(--brand-secondary-rgb, 179, 206, 209), 0.25);
    transform: translateX(4px);
}

.footer .link-list-item i,
.footer .service-list-item i,
.footer .contact-item i {
    color: var(--brand-primary, #669999);
}

.footer .social-link {
    background: rgba(var(--brand-primary-rgb, 102, 153, 153), 0.12);
    border: 1px solid rgba(var(--brand-primary-rgb, 102, 153, 153), 0.2);
    color: var(--brand-primary, #669999);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer .social-link:hover,
.footer .social-link:focus {
    background: var(--brand-primary, #669999);
    border-color: var(--brand-primary, #669999);
    color: var(--text-on-primary, #ffffff);
    transform: translateY(-2px);
}

.footer .social-link:focus-visible {
    outline: 2px solid rgba(var(--brand-primary-rgb, 102, 153, 153), 0.35);
    outline-offset: 2px;
}

.footer-special-buttons {
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-special-btn {
    border-radius: 999px;
    border-color: rgba(var(--brand-primary-rgb, 102, 153, 153), 0.45);
    color: var(--brand-primary, #669999);
    background: rgba(var(--brand-secondary-rgb, 179, 206, 209), 0.25);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-special-btn i,
.footer .social-link .bi {
    color: currentColor;
    transition: transform 0.2s ease;
}

.footer-special-btn span {
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer .footer-card-section a:not(.social-link) {
    font-weight: 600;
}

.footer .footer-special-btn,
.footer .footer-design-link,
.footer .footer-contact-link {
    transition: color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-special-btn:hover,
.footer-special-btn:focus {
    background: var(--brand-primary, #669999);
    border-color: var(--brand-primary, #669999);
    color: var(--text-on-primary, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(var(--brand-primary-rgb, 102, 153, 153), 0.3);
}

.footer-special-btn:hover span,
.footer-special-btn:focus span {
    color: var(--text-on-primary, #ffffff);
}

.footer-special-btn:hover i,
.footer-special-btn:focus i {
    transform: translateY(-2px);
}

.footer .footer-logo img {
    filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.12));
    transition: transform 0.2s ease;
}

.footer .footer-logo img:hover {
    transform: scale(1.02);
}

.footer .footer-design-link {
    color: var(--brand-text, #333333);
    opacity: 0.92;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.footer .footer-design-link:hover,
.footer .footer-design-link:focus {
    opacity: 1;
    color: var(--brand-primary, #669999);
    border-bottom: 2px solid currentColor;
}

.footer .footer-copy-text {
    font-size: 1em;
    color: var(--brand-text, #333333);
}

.footer .footer-special-btn:focus-visible,
.footer .footer-design-link:focus-visible {
    outline: 2px solid rgba(var(--brand-primary-rgb, 102, 153, 153), 0.45);
    outline-offset: 2px;
}

.footer .footer-contact-link:focus-visible {
    outline: 2px solid rgba(var(--brand-primary-rgb, 102, 153, 153), 0.3);
    outline-offset: 2px;
}

.footer .footer-welcome {
    opacity: 0.9;
}

.footer .footer-special-btn,
.footer .footer-design-link,
.footer .footer-contact-link {
    opacity: 0.92;
}

.footer .footer-special-btn,
.footer .footer-contact-link {
    text-decoration: none;
}

.footer .footer-special-btn:hover,
.footer .footer-special-btn:focus,
.footer .footer-contact-link:hover,
.footer .footer-contact-link:focus,
.footer .footer-design-link:hover,
.footer .footer-design-link:focus {
    opacity: 1;
}

.footer .footer-contact-link {
    color: var(--brand-primary, #669999);
}

#scroll-top {
    background: var(--brand-accent, var(--brand-primary, #669999));
    color: var(--text-on-primary, #ffffff);
    border: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#scroll-top:hover,
#scroll-top:focus {
    background: color-mix(in srgb, var(--brand-accent, var(--brand-primary, #669999)) 82%, black 18%);
    color: var(--text-on-primary, #ffffff);
}
