/**
 * America's State Parks - Premium Footer
 * 
 * Multi-section footer with brand, navigation columns,
 * social icons, gradient accents, and micro-animations.
 * 
 * @version 3.0.0
 */

/* ==========================================================================
   Hide Default Astra Footer
   ========================================================================== */

footer.site-footer,
#colophon {
    display: none !important;
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */

.asp-premium-footer {
    --f-bg: #1a2e23;
    --f-bg-deep: #142019;
    --f-text: rgba(255, 255, 255, 0.7);
    --f-text-dim: rgba(255, 255, 255, 0.45);
    --f-heading: rgba(255, 255, 255, 0.95);
    --f-accent: #4a9d6e;
    --f-accent-light: #6bc48f;
    --f-link-hover: #ffffff;
    --f-border: rgba(255, 255, 255, 0.08);
    --f-max-width: 1240px;
    --f-glow: radial-gradient(ellipse 600px 400px at 20% 50%, rgba(74, 157, 110, 0.06) 0%, transparent 70%);
}

/* ==========================================================================
   Footer Container
   ========================================================================== */

.asp-premium-footer {
    position: relative;
    background-color: var(--f-bg);
    color: var(--f-text);
    font-family: 'Inter',"Inter Fallback", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 0;
    width: 100%;
    overflow: hidden;
}

/* Subtle background glow */
.asp-premium-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--f-glow);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Gradient Accent Line (Top)
   ========================================================================== */

.asp-footer-accent {
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--f-accent) 20%,
            var(--f-accent-light) 50%,
            var(--f-accent) 80%,
            transparent 100%);
    opacity: 0.8;
}

/* ==========================================================================
   Inner Container
   ========================================================================== */

.asp-footer-inner {
    max-width: var(--f-max-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Main Footer (4 Columns)
   ========================================================================== */

.asp-footer-main {
    padding: 56px 0 48px;
}

.asp-footer-main .asp-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
}

/* ==========================================================================
   Brand Column
   ========================================================================== */

.asp-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.asp-footer-logo-icon {
    color: var(--f-accent-light);
    flex-shrink: 0;
}

.asp-footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--f-heading);
    letter-spacing: -0.01em;
}

.asp-footer-tagline {
    color: var(--f-text);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 300px;
}

/* ==========================================================================
   Social Icons
   ========================================================================== */

.asp-footer-social {
    display: flex;
    gap: 12px;
}

.asp-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--f-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.asp-social-link:hover {
    background: rgba(74, 157, 110, 0.15);
    border-color: var(--f-accent);
    color: var(--f-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 157, 110, 0.15);
}

.asp-social-link svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Link Columns
   ========================================================================== */

.asp-footer-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--f-heading);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--f-accent);
    display: inline-block;
}

.asp-footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.asp-footer-links li {
    margin-bottom: 10px;
}

.asp-footer-links a {
    color: var(--f-text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
    position: relative;
    padding-left: 0;
}

.asp-footer-links a::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid var(--f-accent-light);
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    opacity: 0;
    transition: all 0.25s ease;
}

.asp-footer-links a:hover {
    color: var(--f-link-hover);
    padding-left: 18px;
}

.asp-footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* ==========================================================================
   Divider
   ========================================================================== */

.asp-footer-divider {
    max-width: var(--f-max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--f-border) 15%,
            rgba(255, 255, 255, 0.12) 50%,
            var(--f-border) 85%,
            transparent 100%);
}

/* ==========================================================================
   Bottom Bar
   ========================================================================== */

.asp-footer-bottom {
    padding: 24px 0;
    background: var(--f-bg-deep);
}

.asp-footer-bottom .asp-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.asp-footer-copyright {
    font-size: 14px;
    color: var(--f-text);
    margin: 0;
}

.asp-footer-copyright a {
    color: var(--f-accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.asp-footer-copyright a:hover {
    color: var(--f-link-hover);
}

.asp-footer-affiliate {
    font-size: 11px;
    color: var(--f-text-dim);
    margin: 0;
    max-width: 700px;
    line-height: 1.5;
}

/* ==========================================================================
   Responsive: Tablet
   ========================================================================== */

@media (max-width: 992px) {
    .asp-footer-main .asp-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }

    .asp-footer-brand {
        grid-column: 1 / -1;
    }

    .asp-footer-tagline {
        max-width: 100%;
    }

    .asp-footer-social {
        margin-bottom: 8px;
    }
}

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */

@media (max-width: 600px) {
    .asp-footer-main {
        padding: 40px 0 32px;
    }

    .asp-footer-main .asp-footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .asp-footer-heading {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .asp-footer-bottom .asp-footer-inner {
        padding: 0 16px;
    }

    .asp-footer-affiliate {
        font-size: 10px;
    }
}

/* ==========================================================================
   Newsletter Section (Get Insider Tips)
   Styles the existing widget-based newsletter in Astra
   ========================================================================== */

.ast-builder-layout-element[data-section="section-hb-below-header-1"],
.entry-content>.wp-block-group:has(h3:is(.has-text-align-center)),
.site-below-footer-wrap .ast-builder-layout-element {
    /* Keep existing newsletter styling */
}