/* GameRigCi footer (inc/footer.php), after the reference stores: newsletter, service strip, brand + support,
   three quiet link columns, bottom bar with legal links and cards. Small, muted type; white on hover. */

#footer { margin-top: 96px; }
.grc-foot { background: var(--grc-ink); color: #A9AFBC; font-size: 14px; line-height: 1.5; }
.grc-foot__inner { box-sizing: border-box; max-width: 1440px; margin: 0 auto; padding: 64px var(--grc-gutter) 28px; }
.grc-foot a { color: #A9AFBC; text-decoration: none; transition: color .15s ease; }
.grc-foot a:hover { color: #FFFFFF; }
.grc-foot a:focus-visible { outline: 2px solid var(--grc-volt); outline-offset: 3px; border-radius: 4px; }
.grc-foot__title { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: #FFFFFF; }

/* service strip: what every order gets */
.grc-foot__service { list-style: none; margin: 0 0 48px; padding: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; border-top: 1px solid #262A33; border-bottom: 1px solid #262A33; }
.grc-foot__service li { display: flex; align-items: center; gap: 12px; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.grc-foot__service svg { flex: 0 0 auto; color: var(--grc-volt); }

.grc-foot__main { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; padding-bottom: 48px; }
.grc-foot__brand { display: flex; flex-direction: column; gap: 18px; max-width: 380px; }
.grc-foot__logo img { display: block; height: 33px; width: auto; }
.grc-foot__tag { margin: 0; color: #A9AFBC; }
.grc-foot__support .grc-foot__title { margin-bottom: 6px; }
.grc-foot__support p { margin: 0 0 4px; }
.grc-foot__support a { color: #FFFFFF; }
.grc-foot__support a:hover { color: var(--grc-volt); }
.grc-foot address { margin: 0; font-style: normal; font-size: 13px; color: #8A91A0; }

.grc-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grc-foot__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.grc-foot__col a { font-size: 14px; }

.grc-foot__bar { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 24px 88px 0 0; border-top: 1px solid #262A33; font-size: 13px; } /* right gutter: the help bubble sits there */
.grc-foot__copy { margin: 0; color: #8A91A0; }
.grc-foot__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-right: auto; }
.grc-foot__legal a { color: #8A91A0; font-size: 13px; }
.grc-foot__cards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.grc-foot__cards li { padding: 4px 8px; border-radius: 6px; border: 1px solid #2E333D; font-size: 11px; font-weight: 600; color: #C3C8D2; }

@media (max-width: 999px) {
  .grc-foot__service { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grc-foot__main { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .grc-foot__brand { max-width: none; }
}
@media (max-width: 689px) {
  #footer { margin-top: 56px; }
  .grc-foot__inner { padding-top: 44px; }
  .grc-foot__service { margin-bottom: 36px; padding: 18px 0; }
  .grc-foot__service li { font-size: 13px; gap: 10px; }
  .grc-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .grc-foot__col:first-child { grid-column: 1 / -1; }
  .grc-foot__col:first-child ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .grc-foot__col a { display: inline-block; padding: 2px 0; }
  .grc-foot__bar { flex-direction: column; align-items: flex-start; padding: 24px 0 72px; } /* clear of the help bubble */
  .grc-foot__legal { margin-right: 0; }
}
/* the product page's phone buy bar must not cover the last footer row */
@media (max-width: 999px) { .single-product .grc-foot__inner { padding-bottom: 96px; } }

/* newsletter band (inc/newsletter.php): first row of the footer */
.grc-news { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding-bottom: 40px; }
.grc-news__text { display: flex; flex-direction: column; }
.grc-news__text .grc-foot__title { margin-bottom: 6px; font-size: 13px; color: var(--grc-volt); }
.grc-news__title { font-family: var(--grc-head); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; color: #FFFFFF; }
.grc-news__form { display: flex; flex-direction: column; gap: 12px; }
.grc-news__row { display: flex; gap: 10px; }
.grc-news__row[hidden] { display: none; }
.grc-news__row input {
  flex: 1 1 auto; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid #343944; background: #15181F;
  font: 400 16px/1 var(--wp--preset--font-family--body); color: #FFFFFF;
}
.grc-news__row input::placeholder { color: #8A91A0; }
.grc-news__row input:focus { outline: none; border-color: var(--grc-volt); box-shadow: 0 0 0 3px rgba(200, 240, 49, .18); }
.grc-news__row input[aria-invalid="true"] { border-color: #F97066; }
.grc-news__row .grc-btn { min-height: 52px; background: var(--grc-volt); color: var(--grc-ink); }
.grc-news__row .grc-btn:hover { background: #D6F56A; color: var(--grc-ink); }
.grc-news__row .grc-btn[disabled] { opacity: .6; cursor: wait; }
.grc-news__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.grc-news__fine { margin: 0; font-size: 13px; color: #A9AFBC; }
.grc-news__fine a { color: #FFFFFF; text-decoration: underline; }
.grc-news__fine.is-done { color: #FFFFFF; font-size: 15px; }
.grc-news__fine.is-error { color: #F97066; }
@media (max-width: 999px) { .grc-news { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
@media (max-width: 689px) {
  .grc-news { padding-bottom: 32px; }
  .grc-news__row { flex-direction: column; }
  .grc-news__row .grc-btn { width: 100%; }
}

/* confirmation landing (/?subscribed=1) */
.grc-toast {
  position: fixed; z-index: 200; left: 50%; top: 16px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box;
  padding: 12px 52px 12px 18px; border-radius: 16px; background: var(--grc-ink); color: #FFFFFF; font-size: 14px; line-height: 1.45; box-shadow: 0 16px 40px rgba(11, 13, 18, .25);
  animation: grc-toast-in .3s ease both;
}
@keyframes grc-toast-in { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.grc-toast b { color: var(--grc-volt); margin-right: 4px; white-space: nowrap; }
.grc-toast button { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: none; color: #FFFFFF; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.grc-toast button:hover { background: #262A33; }
.grc-toast[hidden] { display: none; }
.grc-news-optin { margin: 0 0 16px; }
/* homepage: the last section (Controllers) is an ink band like the footer, so they meet with a hairline, no white gap */
.home #footer { margin-top: 0; }
.home .grc-foot { border-top: 1px solid #262A33; }
