/* ==========================================================
   FOOTER STYLES — Aurora Electric Cooperative, Inc.
   Fully responsive: 320px → 1600px+
   ========================================================== */

/* ===== BASE ===== */
#footer {
    background: linear-gradient(135deg, #0a2e0d 0%, #1b5e20 60%, #2e7d32 100%);
    color: white;
    padding: 0;
    position: relative;
    overflow: hidden;
}

#footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ===== SHIMMER TOP BAR ===== */
.footer-top-bar {
    height: 4px;
    background: linear-gradient(90deg, #fbc02d, #66bb6a, #fbc02d);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ===== WRAPPER ===== */
.footer-content {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 769px) {
    .footer-content {
        max-width: 1400px;
    }
}

@media (min-width: 1200px) {
    .footer-content {
        max-width: 1400px;
    }
}

/* ===== MAIN GRID — Mobile-first: 1 column, then 2, then 4 ===== */
.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

/* ===== COLUMN 1 — BRAND ===== */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.25rem;
}

.footer-brand-logo img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(251,192,45,0.5);
    object-fit: cover;
    flex-shrink: 0;
}

.footer-brand-logo-text h3 {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin: 0;
}

.footer-brand-logo-text span {
    font-size: clamp(0.7rem, 2vw, 0.78rem);
    color: rgba(255,255,255,0.55);
}

.footer-brand-tagline {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: rgba(255,255,255,0.75);
    font-style: italic;
    line-height: 1.6;
    border-left: 3px solid #fbc02d;
    padding-left: clamp(0.6rem, 2vw, 0.85rem);
    margin: 0;
}

.footer-brand-address {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand-address p {
    font-size: clamp(0.8rem, 2vw, 0.88rem);
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    line-height: 1.5;
}

.footer-brand-address p i {
    color: #fbc02d;
    font-size: 0.90rem;
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.footer-brand-address a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-brand-address a:hover { color: #fbc02d; }

/* ===== COLUMNS 2-4 HEADING ===== */
.footer-col h4 {
    font-size: 0.80rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fbc02d;
    margin: 0 0 1.25rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #fbc02d;
    border-radius: 2px;
}

/* ===== QUICK LINKS ===== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-links li a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.footer-links li a i {
    font-size: 0.90rem;
    color: #66bb6a;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.footer-links li a:hover { color: white; padding-left: 4px; }
.footer-links li a:hover i { transform: translateX(3px); }

/* ===== OFFICE HOURS ===== */
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-hours-item {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.footer-hours-item .day {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-hours-item .time {
    font-size: 0.88rem;
    color: white;
    font-weight: 600;
}

.footer-hours-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 0.15rem 0;
}

.footer-closed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.3);
    color: #ff8a80;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

/* ===== SOCIAL / CONNECT ===== */
.footer-social-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.2);
    transform: translateX(4px);
}

.footer-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.00rem;
    flex-shrink: 0;
}

.footer-social-icon.facebook { background: #1877f2; }
.footer-social-icon.email    { background: #ea4335; }

/* ===== BOTTOM BAR ===== */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 0 1.5rem; /* Increased top padding for better visual balance */
    gap: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05); /* Added subtle border here instead */
}

.footer-copyright {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    text-align: center;
}

.footer-copyright li {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.footer-copyright li + li::before {
    display: none;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.32);
}

.footer-bottom-right i {
    color: #ef5350;
    font-size: 0.90rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.25); }
}


/* ==========================================================
   RESPONSIVE BREAKPOINTS - MOBILE-FIRST APPROACH
   ========================================================== */

/* Tablets and up (600px+) */
@media (min-width: 600px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1.5rem, 4vw, 2.5rem);
    }
    .footer-brand-logo img { width: clamp(42px, 8vw, 52px); height: clamp(42px, 8vw, 52px); }
    .footer-col h4 { font-size: 0.80rem; }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1.75rem, 4vw, 2.5rem);
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-brand-logo img { width: 46px; height: 46px; }
    .footer-brand-logo-text h3 { font-size: 0.90rem; }
    .footer-col h4 { font-size: 0.80rem; }
    .footer-links li a { font-size: 0.88rem; }
    .footer-outage-banner { flex-direction: column; align-items: flex-start; }
    .footer-outage-call { width: 100%; }
}

/* Small laptop (1024px+) */
@media (min-width: 1024px) {
    .footer-content { max-width: 1300px; }
    .footer-main {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 2rem;
        padding-bottom: 2.5rem;
    }
    .footer-brand {
        grid-column: auto;
    }
    .footer-brand-logo img { width: 46px; height: 46px; }
    .footer-brand-logo-text h3 { font-size: 0.90rem; }
    .footer-col h4 { font-size: 0.80rem; }
    .footer-links li a { font-size: 0.88rem; }
}

/* Desktop (1200px+) */
@media (min-width: 1200px) {
    .footer-content { max-width: 1400px; padding: 3rem 2rem 0; }
    .footer-main {
        grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
        gap: 3rem;
        padding-bottom: 3rem;
    }
    .footer-brand-logo img { width: 52px; height: 52px; }
    .footer-brand-logo-text h3 { font-size: 0.92rem; }
    .footer-col h4 { font-size: 0.80rem; }
    .footer-links li a { font-size: 0.88rem; }
}

/* Large desktop (1400px+) */
@media (min-width: 1400px) {
    .footer-main { gap: 3rem; }
    .footer-content { padding: 1.25rem 0.75rem 0; }
    .footer-brand-logo img { width: 52px; height: 52px; }
    .footer-brand-logo-text h3 { font-size: 0.92rem; }
    .footer-brand-tagline { font-size: 0.86rem; }
    .footer-brand-address p { font-size: 0.82rem; }
    .footer-col h4 { font-size: 0.80rem; }
    .footer-links li a { font-size: 0.88rem; }
    .footer-social-link { font-size: 0.86rem; }
    .footer-outage-banner .outage-text p { font-size: 0.82rem; }
    .footer-badge-item { font-size: 0.78rem; }
    .footer-copyright li { font-size: 0.78rem; }
    .footer-bottom-right { font-size: 0.78rem; }
}
