/* gopher-footer.css — shared footer styles. Was inline on 124 pages. */
.gopher-footer {
    /* Scoped tokens so we don't collide with page-level vars */
    --gf-shamrock:    #33D975;
    --gf-shamrock-d:  #27b85e;
    --gf-midnight:    #002461;
    --gf-navy-lift:   #0a2f73;   /* one shade above midnight for social tiles */
    --gf-white:       #FFFFFF;
    --gf-on-navy:       rgba(255,255,255,0.92);
    --gf-on-navy-soft:  rgba(255,255,255,0.72);
    --gf-on-navy-faint: rgba(255,255,255,0.50);
    --gf-divider:       rgba(255,255,255,0.10);

    background: var(--gf-midnight);
    color: var(--gf-on-navy);
    font-family: 'DM Sans', sans-serif;
    padding: 64px 48px 0;
    position: relative;
    overflow: hidden;
  }

  /* subtle shamrock glow accent in lower-right — adds brand warmth
     without disturbing the solid-color treatment */
  .gopher-footer::after {
    content: '';
    position: absolute;
    right: -200px; bottom: -150px;
    width: 540px; height: 540px;
    background: radial-gradient(circle at center, rgba(51,217,117,0.10), transparent 65%);
    pointer-events: none;
    filter: blur(40px);
    z-index: 0;
  }

  /* ── TOP ROW: brand-left + three link columns ── */
  .gopher-footer .gf-inner {
    position: relative; z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    /* brand column wider; link columns share remaining space */
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 56px;
    align-items: start;
    padding-bottom: 36px;
  }

  /* ── BRAND BLOCK (left) ── */
  .gopher-footer .gf-brand { text-align: center; }
  .gopher-footer .gf-brand .gf-logo-wrap {
    /* white pill so the green/navy logo reads cleanly on navy footer */
    display: inline-block;
    background: var(--gf-white);
    padding: 10px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .gopher-footer .gf-brand .gf-logo-wrap:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  }
  .gopher-footer .gf-brand .gf-logo-wrap img {
    height: 36px; display: block;
  }
  .gopher-footer .gf-brand .gf-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--gf-on-navy-soft);
    max-width: 360px;
    margin: 0 auto 24px;
  }

  /* Social row, centered under tagline */
  .gopher-footer .gf-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .gopher-footer .gf-social a {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: var(--gf-navy-lift);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gf-white);
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
  }
  .gopher-footer .gf-social a:hover {
    background: var(--gf-shamrock);
    transform: translateY(-2px);
  }
  .gopher-footer .gf-social a svg { width: 16px; height: 16px; }

  /* ── LINK COLUMNS ── */
  .gopher-footer .gf-col { text-align: center; }
  .gopher-footer .gf-col h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gf-white);
    margin: 0 0 22px 0;
  }
  .gopher-footer .gf-col ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .gopher-footer .gf-col ul li { margin: 0; padding: 0; }
  .gopher-footer .gf-col ul a {
    color: var(--gf-on-navy-soft);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
  }
  .gopher-footer .gf-col ul a:hover { color: var(--gf-shamrock); }

  /* ── Expandable Tutorials submenu ──
     Uses native <details>/<summary> for JS-free, screen-reader-friendly
     expand/collapse. We strip the default disclosure triangle and use
     our own chevron that rotates when [open]. */
  .gopher-footer .gf-expandable details { display: block; }
  .gopher-footer .gf-expandable summary {
    list-style: none;           /* Firefox: remove default triangle */
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gf-on-navy-soft);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
  }
  .gopher-footer .gf-expandable summary::-webkit-details-marker {
    display: none;              /* Chrome/Safari: remove default triangle */
  }
  .gopher-footer .gf-expandable summary:hover { color: var(--gf-shamrock); }
  /* The chevron icon — points down by default, rotates 180° on open */
  .gopher-footer .gf-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .gopher-footer .gf-expandable details[open] .gf-chevron {
    transform: rotate(180deg);
  }
  /* Submenu — visually nested as a subtle "card" so users read it as
     children of Tutorials, not peers of Our Story/Blog/Contact Us.
     The 101 suffix in the link text adds further distinction from the
     same-named items in the Marketplace column. */
  .gopher-footer .gf-submenu {
    list-style: none;
    /* Generous top margin separates the submenu from the "Tutorials"
       summary; 0 bottom margin lets the parent ul's 14px gap handle
       spacing to the next regular link (Contact Us). */
    margin: 14px 0 0 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Subtle lighter rectangle on the navy surface — just enough to
       group the items without competing with the surrounding links. */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    animation: gfFadeIn 0.2s ease;
  }
  .gopher-footer .gf-submenu li { margin: 0; padding: 0; }
  .gopher-footer .gf-submenu a {
    color: var(--gf-on-navy-soft);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 13px;
    opacity: 0.9;
    transition: color 0.2s, opacity 0.2s;
  }
  .gopher-footer .gf-submenu a:hover {
    color: var(--gf-shamrock);
    opacity: 1;
  }
  @keyframes gfFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── BOTTOM STRIP — copyright (left) + tagline (right) ── */
  .gopher-footer .gf-bottom {
    position: relative; z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 20px 0 28px;
    border-top: 1px solid var(--gf-divider);
  }
  .gopher-footer .gf-copyright {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: var(--gf-on-navy-faint);
  }
  /* "Need it now? Gopher it!" — shamrock green Nunito CTA per §3.1.
     Brand-legal alternative for future: terracotta Caveat (§4.4). */
  .gopher-footer .gf-signoff {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: var(--gf-shamrock);
    letter-spacing: 0.005em;
    text-decoration: none;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 980px) {
    .gopher-footer { padding: 48px 24px 0; }
    .gopher-footer .gf-inner {
      grid-template-columns: 1fr 1fr 1fr;
      gap: 36px;
    }
    .gopher-footer .gf-brand {
      grid-column: 1 / -1;
      text-align: center;
      padding-bottom: 8px;
    }
  }
  @media (max-width: 640px) {
    .gopher-footer .gf-inner {
      grid-template-columns: 1fr;
      gap: 36px;
      text-align: center;
    }
    .gopher-footer .gf-bottom {
      grid-template-columns: 1fr;
      gap: 14px;
      text-align: center;
    }
  }
