/* ============================================================
   GREENFIELD SITE FOOTER — standalone copy for /comps
   ------------------------------------------------------------
   SOURCE OF TRUTH: styles.css lines 1651-2001 (plus .hp-field
   at ~2326). This is a verbatim extract with four deliberate
   changes, listed below. If the site footer changes in
   styles.css, RE-EXTRACT this file rather than hand-patching.

   Why a copy and not a shared import: the comps page is a
   self-contained dashboard with its own :root and body rules,
   so it cannot load styles.css. Extracting for real would mean
   either deleting this block from styles.css and adding a
   <link> to every page, or an @import that must sit at the top
   of styles.css and would reorder the cascade — both touch
   every page on the live site to serve one new page.

   Deliberate changes from the source:
     1. The four custom properties the block needs are scoped to
        .footer-c2 instead of :root, so they cannot collide with
        the dashboard's own token block.
     2. An explicit font-family on .footer-c2 — in the source
        every element except .fc-input inherits Manrope from
        body, and this page's body belongs to the dashboard.
     3. The background image path is root-relative.
     4. .hp-field is appended (it lives elsewhere in styles.css);
        without it the Mailchimp honeypot input is visible.
   ============================================================ */

.footer-c2 {
    /* scoped, not :root — see note 1 above */
    --white: #ffffff;
    --accent-blue: #4a90d9;
    --accent-green: #3dcf8e;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    /* see note 2 — the footer must not inherit the dashboard's face */
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

/* ── Element resets the source block assumes ─────────────────
   styles.css sets these globally (lines 65-68) and the footer
   silently depends on them. The host page here carries the `a`
   and `img` resets but NOT the `button` one, which left the
   newsletter submit rendering as a browser-default button —
   a solid blue box instead of a bare accent-blue arrow.

   Wrapped in :where() so each selector's specificity is exactly
   (0,0,1), identical to styles.css's bare element rules. That
   matters: a naive `.footer-c2 button` would be (0,1,1) and
   would outrank component classes like .fc-submit, replacing
   their own backgrounds. An earlier version of the link reset
   made precisely that mistake and washed out the legal links.

   text-decoration only on links — no `color: inherit`, for the
   same reason. */
: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, 0.18);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    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(--accent-blue);
    transition: color 0.3s, background 0.3s;
}

.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; }

.fc-nav a {
    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;
}

.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;
        background: rgba(3, 14, 38, 0.40);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        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; }
}

/* Honeypot field — extracted from styles.css (~line 2326).
   footer.js emits <input class="hp-field"> as a spam trap; without
   this rule it renders as a visible, fillable input. */
.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;
}
