/*
 * Footer — Editorial Wave & Shoreline
 * pomsy.space — Editorial Personal Portfolio (Matching updated_ui.jpeg & Prompt Section 10)
 */

/* ── Torn Paper Horizon Seam ── */
.torn-paper-seam {
    display: none;
}

/* ── Ocean Wave Footer ── */
.editorial-footer {
    position: relative;
    background-color: transparent;
    background-image: url('../../images/footer.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    color: var(--color-bone);
    padding-top: clamp(130px, 14vw, 190px);
    padding-bottom: 0;
    overflow: hidden;
    margin-top: -30px;
    z-index: 2;
}

.editorial-footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--page-padding);
    position: relative;
    z-index: 3;
}

/* ── 3-Column Layout ── */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    position: relative;
    padding-bottom: var(--space-64);
}

.footer-col {
    padding: 0 var(--space-32);
    position: relative;
}

.footer-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(229, 215, 196, 0.22);
}

.footer-col--left {
    padding-left: 0;
}

.footer-col--center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-col--right {
    padding-right: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ── Left Column Elements ── */
.footer-sparkle {
    display: inline-block;
    color: rgba(229, 215, 196, 0.65);
    font-size: 0.9rem;
    margin-bottom: var(--space-12);
}

.footer-quote {
    font-family: var(--font-serif-sub);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--color-bone);
    margin-bottom: var(--space-16);
    max-width: 240px;
}

.footer-signature-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.footer-signature-sparkle {
    font-size: 0.75rem;
    color: rgba(229, 215, 196, 0.65);
}

.footer-signature {
    font-family: var(--font-script);
    font-size: 2.25rem;
    line-height: 1;
    color: var(--color-bone);
    letter-spacing: 0.02em;
    user-select: none;
    transform: rotate(-2deg);
    display: inline-block;
}

/* ── Center Column Elements ── */
.footer-connect-title {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-bone);
    margin-bottom: var(--space-24);
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
}

.footer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-tan);
    color: var(--color-kombu-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.footer-social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
    .footer-social-btn:hover {
        transform: translateY(-2px);
        background-color: var(--color-bone);
        color: var(--color-moss-dark);
    }
}

.footer-social-btn:active {
    transform: scale(0.95);
}

/* ── Right Column Elements ── */
.footer-botanical-wrap {
    display: flex;
    align-items: flex-start;
    gap: var(--space-16);
    width: 100%;
}

.footer-botanical-icon,
.footer-wheat-icon {
    width: 32px;
    height: 48px;
    max-width: 32px;
    max-height: 48px;
    color: rgba(229, 215, 196, 0.75);
    flex-shrink: 0;
    display: block;
}

.footer-closing {
    font-family: var(--font-serif-sub);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--color-bone);
    max-width: 200px;
}

.footer-star-right {
    margin-left: auto;
    color: rgba(229, 215, 196, 0.65);
    font-size: 0.9rem;
}

.footer-tagline {
    font-family: var(--font-serif-sub);
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-bone);
    opacity: 0.85;
    margin-top: var(--space-8);
}

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--color-bone);
    opacity: 0.6;
    margin-top: var(--space-8);
}

/* ── Sea Foam Wave Base ── */
.footer-sea-foam {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-top: -10px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}

.footer-sea-foam__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    opacity: 0.95;
    mix-blend-mode: normal;
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .editorial-footer {
        padding-top: clamp(140px, 28vw, 180px);
        margin-top: 0;
        position: relative;
        z-index: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-28);
        text-align: center;
        padding-bottom: var(--space-40);
    }

    .footer-col {
        padding: 0;
    }

    .footer-col:not(:last-child)::after {
        display: none;
    }

    .footer-col--left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-quote {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 280px;
        font-size: 1.02rem;
        line-height: 1.5;
        margin-bottom: var(--space-12);
    }

    .footer-signature-lockup {
        align-items: center;
    }

    .footer-col--center {
        padding: var(--space-4) 0;
    }

    .footer-connect-title {
        margin-bottom: var(--space-16);
    }

    .footer-col--right {
        align-items: center;
        text-align: center;
    }

    .footer-botanical-wrap {
        justify-content: center;
    }

    .footer-botanical-icon,
    .footer-wheat-icon {
        margin: 0 auto;
    }

    .footer-closing {
        text-align: center;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-tagline {
        text-align: center;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        margin-top: var(--space-8);
    }

    .footer-copyright {
        text-align: center;
        margin-top: var(--space-4);
    }

    .footer-star-right {
        display: none;
    }

    .footer-sea-foam {
        height: 90px;
        margin-top: var(--space-8);
    }

    /* ── Subpages Simplified Footer Mobile Sizing Override ── */
    .editorial-footer--subpage {
        padding-top: clamp(28px, 6vw, 36px) !important;
        padding-bottom: clamp(28px, 6vw, 36px) !important;
    }

    /* ── Standard Site Footer Fallback on Mobile ── */
    .site-footer {
        background-image: none !important;
        background-color: var(--color-bg) !important;
        border-top: 1px dashed rgba(76, 61, 25, 0.22);
        padding-top: clamp(28px, 6vw, 36px) !important;
        padding-bottom: clamp(28px, 6vw, 36px) !important;
        margin-top: var(--space-48) !important;
        color: var(--color-text) !important;
    }

    .site-footer .site-footer__name,
    .site-footer .site-footer__title {
        display: none !important;
    }

    .site-footer .social-links__item {
        color: var(--color-kombu-green) !important;
        font-weight: 500;
    }

    .site-footer .social-links__separator {
        color: rgba(76, 61, 25, 0.3) !important;
    }

    .site-footer .site-footer__copyright {
        color: var(--color-text-muted) !important;
        opacity: 0.8;
    }
}

/* ────────────────────────────────────────────────
   SUBPAGE SIMPLIFIED EDITORIAL FOOTER (Warm Variant B)
   Applied on all viewports (Desktop & Mobile) for subpages
   Emil Kowalski Design Engineering Principles
   ──────────────────────────────────────────────── */
.editorial-footer--subpage {
    background-image: none !important;
    background-color: var(--color-bg) !important;
    border-top: 1px dashed rgba(76, 61, 25, 0.22);
    padding-top: clamp(36px, 5vw, 48px) !important;
    padding-bottom: clamp(36px, 5vw, 48px) !important;
    margin-top: var(--space-48) !important;
    color: var(--color-text) !important;
    box-shadow: none !important;
}

.editorial-footer--subpage .editorial-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

.editorial-footer--subpage .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    grid-template-columns: none !important;
    padding-bottom: 0 !important;
    gap: 0 !important;
}

.editorial-footer--subpage .footer-col--left,
.editorial-footer--subpage .footer-col--right,
.editorial-footer--subpage .footer-sea-foam {
    display: none !important;
}

.editorial-footer--subpage .footer-col--center {
    padding: 0 !important;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.editorial-footer--subpage .footer-connect-title {
    color: var(--color-kombu-green);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: var(--space-16);
    text-align: center;
}

.editorial-footer--subpage .footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-14);
    margin-bottom: var(--space-16);
}

.editorial-footer--subpage .footer-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-paper-card);
    color: var(--color-kombu-green);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 6px rgba(76, 61, 25, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.editorial-footer--subpage .footer-social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.editorial-footer--subpage .footer-social-btn:active {
    transform: scale(0.95);
    background-color: var(--color-bone);
}

@media (hover: hover) and (pointer: fine) {
    .editorial-footer--subpage .footer-social-btn:hover {
        transform: translateY(-2px);
        background-color: var(--color-kombu-green);
        color: var(--color-bone);
        border-color: var(--color-kombu-green);
        box-shadow: 0 4px 12px rgba(53, 64, 36, 0.18);
    }
}

.editorial-footer--subpage .footer-subpage-copyright {
    display: block !important;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    opacity: 0.8;
    margin: 0;
    text-align: center;
}

/* ── Quiet Subpage Mobile Copyright (fallback default) ── */
.footer-subpage-copyright {
    display: none;
}

/* ── Standard Site Footer (for subpages) ── */
.site-footer {
    position: relative;
    background-color: transparent;
    background-image: url('../../images/footer.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    color: var(--color-bone);
    padding-top: clamp(80px, 10vw, 140px);
    padding-bottom: var(--space-48);
    margin-top: var(--space-64);
    overflow: hidden;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-12);
}

.site-footer__name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-bone);
}

.site-footer__title {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--color-bone);
    opacity: 0.85;
}

.site-footer .social-links {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    margin: var(--space-8) 0;
}

.site-footer .social-links__item {
    color: var(--color-bone);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity var(--duration-fast) ease;
}

.site-footer .social-links__item:hover {
    opacity: 0.7;
}

.site-footer .social-links__separator {
    color: rgba(229, 215, 196, 0.4);
}

.site-footer__copyright {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: var(--color-bone);
    opacity: 0.65;
}
