/* ============================================================
   GREENFIELD SITE FOOTER — global component
   ------------------------------------------------------------
   Markup: components/footer.js (one source for every page).
   Styles: this file, loaded by every page that has a footer and
   by /comps/, straight after styles.css.

   The card's tint and blur are NOT here: footer.js injects them
   (CARD_TINT / CARD_BLUR) so they can be tuned in one place.

   Uses the site tokens from styles.css :root. A page that cannot
   load styles.css — /comps/ — puts class="gf-standalone" on
   <body> and gets the token block below instead.
   ============================================================ */

/* ── Standalone hosts (/comps/) ──────────────────────────────
   Tokens pinned on the footer root so they cannot collide with
   the host's own; the footer must also not inherit the host
   page's typeface. No effect on main-site pages. */
.gf-standalone .footer-c2 {
    --white: #ffffff;
    --accent-blue: #4a90d9;
    --accent-green: #3dcf8e;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

/* ── Card legibility: TUNE HERE ──────────────────────────────
   The frosted card over the mountain photo. Tint = opacity of the
   navy panel (higher = more solid); blur softens the photo behind
   the text. 29 Oct 2026: raised from 0.18 / 3px (desktop) and
   0.40 / 5px (phone) because text over the photo was hard to read. */
.footer-c2 {
    --fc-card-tint: 0.34;          /* desktop */
    --fc-card-blur: 8px;           /* desktop */
}
@media (max-width: 600px) {
    .footer-c2 {
        --fc-card-tint: 0.48;      /* phone */
        --fc-card-blur: 10px;      /* phone */
    }
}

/* ── Element resets these rules assume ───────────────────────
   :where() keeps them at (0,0,1), the specificity of styles.css's
   own element rules, so .fc-submit and friends still win and
   main pages are unchanged. No `color: inherit` on links: an
   earlier version washed out the legal links that way. */
:where(.footer-c2) a { text-decoration: none; }
:where(.footer-c2) button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
}



/* ---------- FOOTER (C2 — Minimal Cinematic) ---------- */

.footer-c2 {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fc2-bg,
.fc2-overlay,
.fc2-grain {
    position: absolute;
    inset: 0;
}

.fc2-bg {
    background: url('/assets/images/footer.png') center 30% / cover;
    z-index: 0;
}

.fc2-overlay {
    z-index: 1;
    /* V2.5: lightened so the mountain scene shows through — the card carries legibility */
    background: linear-gradient(
        180deg,
        rgba(0, 10, 31, 0.32) 0%,
        rgba(0, 10, 31, 0.12) 45%,
        rgba(0, 10, 31, 0.22) 75%,
        rgba(0, 10, 31, 0.45) 100%
    );
}

.fc2-grain {
    z-index: 2;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.fc2-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px clamp(24px, 4vw, 80px);
}

/* V2.5 — frosted radius card holding all footer content, floating over the scene */
.fc-card {
    border-radius: 20px;
    background: rgba(3, 14, 38, var(--fc-card-tint));        /* tune at the top of this file */
    -webkit-backdrop-filter: blur(var(--fc-card-blur));
    backdrop-filter: blur(var(--fc-card-blur));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    padding: 8px clamp(24px, 4vw, 56px) 16px;
}

/* Legibility over the near-clear card */
.fc-cta-title,
.fc-addr { text-shadow: 0 1px 16px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.55); }
.fc-nav a,
.fc-legal-link,
.fc-copyright,
.fc-bottom-linkedin { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 0.5); }
.fc-logo img { filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.55)); }

/* CTA — full-width band */
.fc-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fc-cta-title {
    font-size: clamp(1.05rem, 1.4vw, 1.35rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--white);
}

.fc-cta-form { flex-shrink: 0; }

.fc-input-group {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.fc-input-group:focus-within { border-color: rgba(74,144,217,0.4); }

.fc-input {
    width: 160px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.06);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 400;
    font-family: var(--font);
    outline: none;
}

.fc-input::placeholder { color: rgba(255, 255, 255, 0.7); }
.fc-input:last-of-type { border-right: none; }

.fc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    color: var(--white);
    transition: color 0.3s, background 0.3s;
}

/* Arrow stays white; the tinted background carries the hover affordance. */
.fc-submit:hover { color: var(--white); background: rgba(74,144,217,0.15); }

/* Newsletter form — wrapper, feedback & states */
.fc-cta-form-wrap { flex-shrink: 0; }

.fc-form-feedback {
    display: none;
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;
}

.fc-feedback-success {
    color: var(--accent-green);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 12px 0;
}

.fc-feedback-error {
    color: #e8735a;
}

/* Loading state */
.fc-cta-form.is-loading .fc-input-group {
    opacity: 0.5;
    pointer-events: none;
}

.fc-cta-form.is-loading .fc-submit {
    position: relative;
    color: transparent;
}

.fc-cta-form.is-loading .fc-submit::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(74,144,217,0.3);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: mc-spin 0.6s linear infinite;
}
@keyframes mc-spin { to { transform: rotate(360deg); } }


.fc-input:disabled,
.fc-submit:disabled { cursor: not-allowed; }

/* Body */
.fc-body { padding: 40px 0 0; }

.fc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
}

.fc-logo img { opacity: 0.85; transition: opacity 0.3s; }
.fc-logo:hover img { opacity: 1; }

.fc-nav { display: flex; gap: 28px; }

/* Eight links run out of room between the 900px tablet breakpoint and
   ~1200px; without this the labels split mid-name ("Market / Insights",
   "Disruptors / 60"). The row may wrap, right-aligned; at 900px and below
   the tablet and phone layouts take over. */
@media (min-width: 901px) {
    .fc-nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 12px; }
}

.fc-nav a {
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.01em;
    transition: color 0.3s;
}
.fc-nav a:hover { color: var(--accent-blue); }

.fc-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.fc-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.fc-address-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fc-addr {
    font-size: 0.72rem;
    font-weight: 300;
    color: var(--white);
}

.fc-addr strong {
    font-weight: 600;
    color: var(--white);
    margin-right: 4px;
}

.fc-addr-sep {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.1);
}

.fc-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LinkedIn + X side by side. */
.fc-socials {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.fc-bottom-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--white);
    transition: color 0.3s;
}
.fc-bottom-linkedin:hover { color: var(--accent-blue); }

.fc-legal-link {
    font-size: 0.7rem;
    color: var(--white);
    transition: color 0.3s;
}
.fc-legal-link:hover { color: var(--accent-blue); }

.fc-copyright {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    font-weight: 400;
}
/* --- Footer: Tablet (≤900px) --- */
@media (max-width: 900px) {
    .fc2-content { padding: 40px clamp(20px, 3vw, 48px); }
    .fc-card { padding: 4px clamp(20px, 3vw, 40px) 14px; }
    .fc-cta { flex-direction: column; align-items: flex-start; gap: 24px; }
    .fc-cta-form-wrap { width: 100%; }
    .fc-cta-form { width: 100%; }
    .fc-input-group { width: 100%; }
    .fc-input { flex: 1; width: auto; min-width: 0; }
    .fc-top { flex-direction: column; align-items: flex-start; gap: 24px; }
    .fc-nav { flex-wrap: wrap; gap: 16px 24px; }
    .fc-bottom { flex-direction: column; align-items: flex-start; }
    .fc-address-row { flex-direction: column; align-items: flex-start; gap: 6px; }
    .fc-addr-sep { display: none; }
    .fc-bottom-right { flex-wrap: wrap; gap: 12px; }
}

/* --- Footer: Mobile (≤600px) --- */
@media (max-width: 600px) {
    /* Keep the mountain on mobile; card carries legibility with a touch more frost */
    .fc2-content { padding: 24px 14px; }
    .fc-card {
        border-radius: 16px;
        padding: 4px 18px 14px;
    }
    .fc2-overlay {
        background: linear-gradient(180deg, rgba(0,10,31,0.35) 0%, rgba(0,10,31,0.22) 50%, rgba(0,10,31,0.45) 100%);
    }

    .fc-cta { padding: 32px 0; gap: 20px; }
    .fc-cta-title { font-size: 1.05rem; }

    /* Form — grid layout: name full-width, email+button inline */
    .fc-input-group {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        border-radius: 10px;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.1);
    }
    .fc-input {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 16px;               /* prevents iOS auto-zoom */
        border-right: none;
    }
    .fc-input:first-child {
        grid-column: 1 / -1;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .fc-input:last-of-type {
        grid-column: 1;
        grid-row: 2;
    }
    .fc-submit {
        grid-column: 2;
        grid-row: 2;
        min-height: 48px;
        min-width: 48px;
        border-left: 1px solid rgba(255,255,255,0.06);
    }

    .fc-form-feedback { font-size: 0.76rem; margin-top: 8px; }

    .fc-logo img { width: 180px; height: auto; }
    .fc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
    .fc-nav a { font-size: 0.82rem; }
    .fc-body { padding: 28px 0 0; }
    .fc-top { padding-bottom: 24px; gap: 20px; }
    .fc-bottom { padding: 20px 0 8px; gap: 24px; }
    .fc-address-row { gap: 8px; }
    .fc-addr { font-size: 0.74rem; line-height: 1.5; }
    .fc-bottom-linkedin { margin-top: 6px; }
    .fc-bottom-right { flex-direction: column; align-items: flex-start; gap: 10px; }
    .fc-legal-link { font-size: 0.74rem; }
    .fc-copyright { font-size: 0.72rem; margin-top: 4px; }
}


/* ========== ANTI-SPAM HONEYPOT ========== */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
