/* --- Footer --- */
.footer {
    padding: 7.5rem 0 2.5rem;
}

.footer-line-col {
    border-top: var(--line-thickness) solid var(--color-text-main);
    padding-top: 1.875rem;
}

.footer-icon {
    font-size: var(--text-size-lg);
    display: block;
    margin-bottom: 1.25rem;
}

.footer-text {
    /* font-size: 0.9rem */
    line-height: 1.4;

    /* opacity: 0.8 */
}

.footer-social-wrapper {
    grid-column: 9 / span 4;
    display: flex;
    flex-direction: column;
}

.footer-social-section {
    margin-top: auto;
}

.footer-bottom {
    margin-top: 6.25rem;
    grid-column: 1 / -1;
    border-top: var(--line-thickness) solid var(--color-text-main);
    padding-top: 1.25rem;
}

/* ==========================================
   SHARED FOOTER STYLES (All Variations)
   ========================================== */
/* Top Line */
.fp3-top-line {
    height: 3px;
    background-color: var(--color-bg-dark);
}

/* Footer Main Grid */
.fp3-footer-grid {
    padding: 4rem 0 2rem;
    align-items: start;
}

/* Logo - Grid Position: col 1-2 */
.fp3-logo {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

.fp3-logo svg {
    width: 2.5rem;
    opacity: 0.9;
}

/* Section Labels - Same style as Figma */
.fp3-section-label {
    font-size: var(--text-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.5;
    margin-bottom: 1.25rem;
}

/* Main Navigation Links - Like mobile menu .menu-link */
.fp3-nav-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.fp3-nav-main a {
    font-size: var(--text-size-lg);
    font-weight: 550;
    line-height: 1.3;
    color: inherit;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 0.15rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fp3-nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.fp3-nav-main a:hover::after,
.fp3-nav-main a.active::after,
.fp3-nav-main li.current-menu-item>a::after,
.fp3-nav-main li.current_page_item>a::after {
    width: 100%;
}

.fp3-nav-main a:hover {
    opacity: 0.7;
}

.fp3-nav-main a.active,
.fp3-nav-main li.current-menu-item>a,
.fp3-nav-main li.current_page_item>a {
    opacity: 1 !important;
}

/* Small Navigation Links - Like mobile menu .menu-tag */
.fp3-nav-small {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.fp3-nav-small a {
    /* font-size: var(--text-size-sm) */
    /* font-weight: 500 */
    color: inherit;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding-bottom: 0.1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.fp3-nav-small a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.fp3-nav-small a:hover::after,
.fp3-nav-small a.active::after,
.fp3-nav-small li.current-menu-item>a::after,
.fp3-nav-small li.current_page_item>a::after {
    width: 100%;
}

.fp3-nav-small a:hover {
    opacity: 0.7;
}

.fp3-nav-small a.active,
.fp3-nav-small li.current-menu-item>a,
.fp3-nav-small li.current_page_item>a {
    opacity: 1 !important;
}

/* EXPLORE - Grid Position: col 5-7 (center) */
.fp3-explore {
    grid-column: 5 / 8;
}

/* LEGAL - Grid Position: col 9-10 */
.fp3-legal {
    grid-column: 9 / 11;
}

/* FOLLOW US - Grid Position: col 11-12 */
.fp3-follow {
    grid-column: 11 / 13;
}

/* Bottom Bar */
.fp3-bottom-bar {
    border-top: 3px solid var(--color-text-main);
    padding: 1.25rem 0;
}

.fp3-time,
.fp3-status {
    font-size: var(--text-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fp3-bottom-bar .grid-12 {
    font-size: var(--text-size-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.5;
}

.fp3-bottom-left {
    grid-column: 1 / 6;
}

.fp3-bottom-center {
    grid-column: 7 / 9;
}

.fp3-bottom-right {
    grid-column: 7 / 13;
    text-align: right;
}

.fp3-bottom-right br {
    display: none;
}

/* Newsletter Success/Error States */
.fp3-newsletter-success,
.fp3-newsletter-error {
    display: none;
    padding: 0.75rem 0;
    font-size: var(--text-size-sm);
}

.fp3-newsletter-success {
    color: var(--color-success);
}

.fp3-newsletter-error {
    color: var(--color-error);
}

/* ==========================================
   VARIATION B: Newsletter Column
   ========================================== */
.footer-fp3-vb {
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    font-family: var(--font-primary);
}

/* Newsletter Column - col 3-6 */
.fp3-newsletter-col {
    grid-column: 1 / 4;
}

/* EXPLORE in Variation B - col 7-8 */
.fp3-explore-b {
    grid-column: 7 / 9;
}

/* LEGAL + FOLLOW - col 10-12 */
.fp3-legal-follow {
    grid-column: 10 / 13;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fp3-newsletter-heading {
    font-size: var(--text-size-lg);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.fp3-newsletter-subtitle {
    /* font-size: var(--text-size-sm) */
    /* line-height: 1.6 */
    /* opacity: 0.8 */
    margin-bottom: 1.5rem;
    max-width: 45ch;

    /* color: var(--color-text-main) */
}

.fp3-newsletter-minimal-group {
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-bg-dark);
    padding-bottom: 0.5rem;
    width: 100%;
}

.fp3-newsletter-input-minimal {
    flex: 1;
    background: transparent;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: var(--text-size-base);
    font-family: var(--font-primary);
    color: var(--color-text-main);
    padding: 0.75rem 0;
}

.fp3-newsletter-input-minimal:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.fp3-newsletter-input-minimal::placeholder {
    color: var(--color-text-main);
    opacity: 0.4;
}

.fp3-newsletter-submit-arrow {
    background: transparent;
    border: none;
    color: var(--color-bg-dark);
    font-size: var(--text-size-base);
    font-family: var(--font-primary);
    padding: 0 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fp3-newsletter-submit-inline {
    background: var(--color-bg-dark);
    color: var(--color-text-inverted);
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: var(--text-size-sm);
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
    align-self: flex-start;
}

.fp3-newsletter-submit-inline:hover {
    opacity: 0.8;
}

.fp3-time {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";

    /* min-width: 11ch; */
    display: inline-block;
    text-align: center;
}

/* Responsive Styles for Footer */
@media (max-width: 1024px) {
    .fp3-footer-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2.5rem;
    }

    .fp3-logo {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }

    .fp3-explore,
    .fp3-explore-b {
        grid-column: 1 / 3;
    }

    .fp3-legal {
        grid-column: 3 / 5;
    }

    .fp3-follow {
        grid-column: 5 / 7;
    }

    .fp3-newsletter-col {
        grid-column: 1 / 4;
    }

    .fp3-legal-follow {
        grid-column: 4 / 7;
    }

    .fp3-bottom-bar .grid-12 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: left;
    }

    .fp3-bottom-left,
    .fp3-bottom-center,
    .fp3-bottom-right {
        grid-column: 1 / -1;
        text-align: left;
    }

    .fp3-bottom-right br {
        display: block;
    }

    .fp3-newsletter-row-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .fp3-newsletter-row-form {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .fp3-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }

    .fp3-logo,
    .fp3-explore,
    .fp3-explore-b,
    .fp3-legal,
    .fp3-follow,
    .fp3-newsletter-col,
    .fp3-legal-follow {
        grid-column: 1 / -1;
    }

    .fp3-logo {
        margin-top: 1.5rem;
    }

    .fp3-newsletter-banner {
        padding: 2.5rem 0;
    }

    .fp3-newsletter-form-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .fp3-newsletter-input {
        width: 100%;
        font-size: 1.25rem;
    }

    .fp3-newsletter-submit {
        align-self: flex-start;
    }

    .fp3-nav-main a {
        font-size: var(--text-size-lg);
    }

    .fp3-newsletter-row {
        padding: 2rem 0;
    }

    .fp3-newsletter-row-form {
        flex-direction: column;
        align-items: stretch;
    }

    .fp3-newsletter-row-submit {
        width: 100%;
        height: auto;
        padding: 0.75rem;
    }

    .footer-line-col {
        grid-column: 1 / -1;
    }

    .legal-flex {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }
}

/* ==========================================
   NEWSLETTER POPUP MODAL & CTA
   ========================================== */
.fp3-newsletter-cta {
    /* margin-top: 1rem */
}

.fp3-newsletter-btn {
    background: transparent;
    border: 1px solid var(--color-bg-dark);
    color: var(--color-bg-dark);
    padding: 0.875rem 1.25rem;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    min-width: 180px;

    /* margin-top: 1rem */
}

.fp3-newsletter-btn .cta-button-text {
    font-size: var(--text-size-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.fp3-newsletter-btn .cta-button-arrow {
    font-size: var(--text-size-base);
    margin-left: 2rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.fp3-newsletter-btn:hover {
    background: var(--color-bg-dark);
    color: var(--color-text-inverted);
}

.fp3-newsletter-btn.is-hovered .cta-button-text,
.fp3-newsletter-btn.is-hovered .cta-button-arrow {
    color: var(--color-text-inverted);
}

/* Modal Container */
.newsletter-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
    visibility: hidden;
    pointer-events: none;
}

.newsletter-modal-container.active {
    visibility: visible;
    pointer-events: all;
}

/* Backdrop - Matching Sidebar */
.newsletter-modal-container .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    cursor: pointer;
}

/* Modal Content Box */
.newsletter-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background-color: var(--color-bg-light);
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(30px);
    opacity: 0;
    z-index: 2;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-family: var(--font-primary);
    font-size: var(--text-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

/* Form Styling - Matching Sidebar */
.newsletter-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.newsletter-form label {
    font-size: var(--text-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.newsletter-form input:not([type="checkbox"]) {
    padding: 0.875rem 1rem;
    font-size: var(--text-size-sm);
    border: none;
    background: var(--color-surface);
    font-family: var(--font-primary);
    color: var(--color-text-main);
    outline: none;
    transition: background-color 0.3s ease;
    width: 100%;
}

.newsletter-form input:not([type="checkbox"]):focus {
    background: #efefef;
}

.ns-submit-btn {
    margin-top: 1rem;
}

/* Success State */
.modal-success-state {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.modal-success-state .success-icon-wrap {
    width: 64px;
    height: 64px;
    background: var(--color-bg-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

@media (max-width: 767px) {
    .newsletter-modal-content {
        max-width: 90vw;
        padding: 2rem;
    }

    .newsletter-form .form-row {
        grid-template-columns: 1fr;
    }
}