/* ════════════════════════════════════════════════════════════════
   fmf-link-to-us.css  —  Link To Us page
   ════════════════════════════════════════════════════════════════ */

/* Variables defined in fmf-global.css (:root) — loaded on every page. */

/* ── Hero ─────────────────────────────────────────────────────── */
/* T1 fix 2026-05-01: was `height: 160px` (fixed). On phone the dripping
   Nosifer title + 2-line sub got crammed into a shallow strip with content
   centered tight against the red bottom border. The 2026-04-12 padding-bottom
   attempt failed because adding padding inside a fixed-height container with
   align-items:center just created dead space without growing the hero.
   Switched to min-height + symmetric vertical padding so the hero grows with
   its content and the title/sub breathe on both top and bottom. */
.fmf-ltu-hero {
    position: relative;
    min-height: 200px;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 2px solid var(--fm-red);
}

.fmf-ltu-hero-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    animation: fmf-ltu-kb 22s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes fmf-ltu-kb {
    0%   { transform: scale(1.0)  translateX(0);   }
    100% { transform: scale(1.12) translateX(-4%); }
}

.fmf-ltu-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.50) 0%,
        rgba(10,  8, 4, 0.80) 55%,
        rgba(10,  8, 4, 0.92) 100%
    );
    z-index: 1;
}

.fmf-ltu-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
}

.fmf-ltu-hero-eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    /* A2 funky-palette sample 2026-05-15: green-toxic accent. Was --fm-amber. */
    color: var(--fm-green-toxic);
    margin: 0 0 0.6rem;
}
.fmf-ltu-hero-title {
    font-family: 'Nosifer', cursive;
    font-size: clamp(2.2rem, 6vw, 4rem);
    color: #ffffff;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
    line-height: 1.1;
}
.fmf-ltu-hero-sub {
    color: var(--fm-bone);
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}

/* ── Intro ────────────────────────────────────────────────────── */
.fmf-ltu-intro {
    background: var(--fm-black);
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid var(--fm-border);
}
.fmf-ltu-intro-inner {
    max-width: 820px;
    margin: 0 auto;
}
.fmf-ltu-intro-heading {
    /* Desktop walk 2026-05-08: HP1 rubric — Nosifer "Why link to us?"
       was reading muddy at clamp floor 1rem. Bump floor + ceiling. */
    font-family: 'Nosifer', cursive;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--fm-bone);
    text-align: center;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}
.fmf-ltu-intro-sub {
    text-align: center;
    /* A2 funky-palette sample 2026-05-15: pink-vamp accent. Was --fm-amber. */
    color: var(--fm-pink-vamp);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
}
.fmf-ltu-intro-body p {
    color: var(--fm-bone);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}
.fmf-ltu-why-head {
    color: var(--fm-red);
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
    font-weight: 700;
}
.fmf-ltu-link {
    color: var(--fm-amber);
    text-decoration: none;
}
/* A2 funky-palette sample 2026-05-15: pink-vamp on body-copy link hover. */
.fmf-ltu-link:hover { color: var(--fm-pink-vamp); text-decoration: underline; }

/* ── Banner groups ────────────────────────────────────────────── */
.fmf-ltu-group {
    padding: 2.5rem 1.5rem;
    background: var(--fm-black);
    border-bottom: 1px solid var(--fm-border);
}
/* --alt modifier kept for HTML back-compat — same bg as base now. */
.fmf-ltu-group--alt {
    background: var(--fm-black);
}
.fmf-ltu-group-inner {
    max-width: 900px;
    margin: 0 auto;
}
.fmf-ltu-group-title {
    /* 2026-05-15: swapped from Nosifer → Pirata One per
       project-display-font-alternatives-spec. Gothic blackletter reads
       horror without Nosifer's dripping-blood literalism; Nosifer keeps
       hero brand mark + key CTAs. Bumped font-size slightly because
       blackletter renders less heavy than Nosifer at the same size. */
    font-family: 'Pirata One', 'Nosifer', cursive;
    font-size: clamp(1.15rem, 2.8vw, 1.5rem);
    color: var(--fm-bone);
    text-align: center;
    margin: 0 0 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--fm-border);
    letter-spacing: 0.02em;
}

/* ── Banner card ──────────────────────────────────────────────── */
.fmf-ltu-banner-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fmf-ltu-banner-card {
    /* Desktop walk 2026-05-08: card had room — padding 1.25 → 1.75rem,
       border-left 3 → 4px, gap 1 → 1.25rem. Reads as featured asset. */
    background: #111;
    border: 1px solid var(--fm-border);
    border-left: 4px solid var(--fm-amber);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.fmf-ltu-banner-card:hover {
    box-shadow: 0 8px 28px rgba(139, 0, 0, 0.35);
    transform: translateY(-2px);
}

.fmf-ltu-banner-preview {
    /* Desktop walk 2026-05-08: more vertical breathing around the
       banner image so the asset reads displayed-for-show. */
    text-align: center;
    background: #0a0a0a;
    padding: 1.75rem 1rem;
    border: 1px solid var(--fm-border);
    overflow: hidden;
}
.fmf-ltu-banner-preview img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    filter: sepia(0.45) brightness(0.85);
    transition: filter 0.4s ease;
}
.fmf-ltu-banner-card:hover .fmf-ltu-banner-preview img {
    filter: none;
}

.fmf-ltu-banner-info { display: flex; flex-direction: column; gap: 0.5rem; }

.fmf-ltu-banner-title {
    /* Desktop walk 2026-05-08: 0.95 → 1.15rem + weight 700 so banner
       label reads as a heading, not a sub-line. */
    color: var(--fm-bone);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
}
.fmf-ltu-banner-size {
    color: var(--fm-muted);
    /* R7-FIX-W: 0.85 → 1rem + weight 600. Banner dimensions
       (e.g. "120 × 60") are functional info — webmasters need to
       read them at a glance to pick the right banner. */
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

.fmf-ltu-copy-label {
    color: var(--fm-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ── Code block + copy button ─────────────────────────────────── */
.fmf-ltu-code-wrap {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}
.fmf-ltu-code-box {
    flex: 1;
    background: #110e09;
    border: 1px solid var(--fm-amber);
    color: #7ec8a0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0.6rem 0.75rem;
    resize: none;
    outline: none;
    cursor: text;
    min-height: 5.5rem;
}
.fmf-ltu-code-box:focus { border-color: #e0a820; }

.fmf-ltu-copy-btn {
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    background: #111;
    border: 1px solid var(--fm-amber);
    color: var(--fm-amber);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.04em;
}
.fmf-ltu-copy-btn:hover {
    background: var(--fm-amber);
    color: #111;
}
.fmf-ltu-copy-btn.is-copied {
    background: var(--fm-red);
    border-color: var(--fm-red);
    color: var(--fm-bone);
    font-family: 'Nosifer', cursive;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

/* ── Blood drip divider ───────────────────────────────────────── */
.fmf-ltu-drip-wrap {
    background: var(--fm-black);
    line-height: 0;
    margin: 0;
    padding: 0;
}
.fmf-ltu-drip-wrap svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ── Beast Fiends section ─────────────────────────────────────── */
.fmf-ltu-fiends {
    background: var(--fm-black);
    padding: 3rem 1.5rem 3.5rem;
    border-bottom: 1px solid var(--fm-border);
}
.fmf-ltu-fiends-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.fmf-ltu-fiends-title {
    font-family: 'Nosifer', cursive;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    color: var(--fm-red);
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.5);
    margin: 0 0 0.75rem;
    line-height: 1.15;
}
.fmf-ltu-fiends-sub {
    color: var(--fm-bone);
    font-size: 0.9rem;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.fmf-ltu-fiends-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}
@media (min-width: 640px) {
    .fmf-ltu-fiends-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Beast Fiend card */
.fmf-ltu-fiend-card {
    background: #111;
    border: 1px solid var(--fm-border);
    border-top: 3px solid var(--fm-red);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.fmf-ltu-fiend-card:hover {
    transform: rotate(-1deg) translateY(-5px);
    box-shadow: 0 14px 44px rgba(139, 0, 0, 0.5);
}

.fmf-ltu-fiend-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.fmf-ltu-fiend-logo-wrap {
    background: #0a0a0a;
    border-bottom: 1px solid var(--fm-border);
    padding: 1.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    position: relative;
}
.fmf-ltu-fiend-logo-wrap img {
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}
.fmf-ltu-fiend-card:hover .fmf-ltu-fiend-logo-wrap img {
    opacity: 0.85;
}

/* Text fallback when logo image is missing */
.fmf-ltu-fiend-logo-fallback {
    display: none;
    font-family: 'Nosifer', cursive;
    font-size: 1.1rem;
    color: var(--fm-red);
    text-align: center;
}
.fmf-ltu-fiend-logo-wrap.fmf-ltu-fiend-logo--missing .fmf-ltu-fiend-logo-fallback {
    display: block;
}

.fmf-ltu-fiend-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.fmf-ltu-fiend-name {
    font-family: 'Nosifer', cursive;
    font-size: 0.95rem;
    color: var(--fm-bone);
    margin: 0;
    line-height: 1.3;
}
.fmf-ltu-fiend-desc {
    color: var(--fm-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.fmf-ltu-fiend-btn {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.45rem 1.1rem;
    background: transparent;
    border: 1px solid var(--fm-amber);
    color: var(--fm-amber);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
    align-self: flex-start;
}
.fmf-ltu-fiend-card:hover .fmf-ltu-fiend-btn {
    background: var(--fm-amber);
    color: #111;
}

/* ── Footer CTA ───────────────────────────────────────────────── */
.fmf-ltu-footer-cta {
    padding: 3rem 1.5rem;
    text-align: center;
    background: var(--fm-dark);
    border-top: 1px solid var(--fm-border);
}
.fmf-ltu-footer-heading {
    font-family: 'Nosifer', cursive;
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: var(--fm-bone);
    margin: 0 0 0.6rem;
    text-shadow: 0 0 16px rgba(139, 0, 0, 0.4);
}
.fmf-ltu-footer-body {
    color: var(--fm-muted);
    font-size: 0.9rem;
    margin: 0 auto 1.5rem;
    max-width: 520px;
    line-height: 1.6;
}
.fmf-ltu-footer-btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    background: var(--fm-red);
    color: var(--fm-bone);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--fm-red-dark);
    transition: background 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1.5rem;
}
.fmf-ltu-footer-btn:hover {
    background: var(--fm-red-hover);
    box-shadow: 0 4px 18px rgba(139, 0, 0, 0.5);
}
.fmf-ltu-footer-email {
    color: var(--fm-muted);
    font-size: 0.875rem;
    margin: 0;
}
.fmf-ltu-footer-cta .fmf-ltu-link { color: var(--fm-amber); }

/* ── Beast Fiends jump link ───────────────────────────────────── */
.fmf-ltu-jump-beast {
    display: block;
    text-align: center;
    padding: 0.55rem 1.5rem;
    background: var(--fm-black);
    border-bottom: 1px solid var(--fm-border);
    color: var(--fm-amber);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.fmf-ltu-jump-beast:hover {
    color: var(--fm-bone);
    background: rgba(201, 134, 10, 0.08);
}

/* ── Responsive ───────────────────────────────────────────────── */
/* Banner cards stay column so preview renders at native banner dimensions */

/* Mobile overrides */
@media (max-width: 639px) {
    /* T1: keep hero growable on phone (min-height, not fixed height) so the
       Nosifer dripping title + 2-line sub get breathing room above and below. */
    .fmf-ltu-hero { min-height: 180px; padding: 1.25rem 0.75rem; }
    .fmf-ltu-code-box { min-height: 7rem; }
    .fmf-ltu-fiend-btn { align-self: center; }

    /* Desktop walk 2026-05-08: phone variant scaled with desktop bump. */
    .fmf-ltu-intro-heading { font-size: clamp(1.05rem, 3vw, 1.4rem); }
    /* Subtitle also wraps — tighten spacing */
    .fmf-ltu-intro-sub { font-size: 0.85rem; letter-spacing: 0.04em; }
}
