/*
Theme Name: GridGames
File: footer.css
Theme URI: https://gridgames.co.nz
Author: GridGames
Author URI: https://gridgames.co.nz
Description: Custom WordPress theme for GridGames
Version: 1.0.0
Text Domain: gridgames

Property of JWM Entertainment Limited. All rights reserved.
*/

:root {
  --gg-footer-glow-bg: rgba(255, 122, 24, 0.08);
  --gg-footer-glow-border: rgba(255, 122, 24, 0.28);
  --gg-footer-glow-shadow: 0 0 0 3px rgba(255, 122, 24, 0.12);
}

.gg-footer {
  position: relative;
  margin-top: 84px;
  color: rgba(255, 255, 255, 0.82);
}

.gg-footer__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      900px 260px at 50% 0,
      rgba(39, 244, 255, 0.12),
      transparent 55%
    ),
    radial-gradient(
      700px 240px at 90% 0,
      rgba(255, 122, 24, 0.1),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(7, 11, 31, 0.94), rgba(5, 8, 22, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gg-footer__container {
  position: relative;
  /* FULL-WIDTH FEEL */
  max-width: min(1800px, calc(100vw - 80px));
  margin: 0 auto;
  padding: 34px 0 24px;
}

/* =========================================================
   TOP layout: Brand (left) / Mid (center) / Map+Loc (right)
   ========================================================= */

.gg-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr 2fr;
  gap: 36px;
  align-items: start;
}

/* Brand */
.gg-footer__brand {
  min-width: 0;
}

.gg-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* WP logo link can be nested; normalize */
.gg-footer__brand .custom-logo-link {
  display: inline-flex;
  line-height: 0;
}

.gg-footer__brand .custom-logo {
  height: 70px;
  width: auto;
  display: block;
}

.gg-footer__slogan {
  margin: 16px 0 0;
  font-family: "Orbitron", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;

  font-size: clamp(10px, 0.75vw, 13px);

  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;

  white-space: nowrap;

  color: #ff9a3c;
  text-shadow: 0 0 4px rgba(255, 154, 60, 0.45),
    0 0 10px rgba(255, 122, 24, 0.35), 0 0 18px rgba(255, 60, 0, 0.18);
}

/* Middle wrapper */
.gg-footer__mid {
  display: flex;
  flex-direction: column;
  gap: 0px;
  min-width: 0;
}

/* Columns */
.gg-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: start;
  text-align: left;
}

.gg-footer__title {
  margin: 0 0 12px;
  font-family: var(--gg-font-ui, system-ui, sans-serif);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 10px rgba(255, 122, 24, 0.16);
}

.gg-footer__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.gg-footer__menu a {
  display: inline-flex;
  justify-content: flex-start;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease,
    box-shadow 160ms ease;
}

/* =========================================================
   Widgets (Appearance → Widgets) styling for footer columns
   - Allows each column to be edited independently (Menu widget, Custom HTML, etc.)
   ========================================================= */

.gg-footer__col .widget {
  margin: 0;
}

.gg-footer__col .widget + .widget {
  margin-top: 14px;
}

/* WP widget titles will already carry .gg-footer__title via before_title/after_title,
   but keep this here for safety. */
.gg-footer__col .widget-title {
  margin: 0 0 12px;
}

/* Navigation Menu widget outputs .menu */
.gg-footer__col .menu,
.gg-footer__col .menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
}

.gg-footer__col .menu a {
  display: inline-flex;
  justify-content: flex-start;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease,
    box-shadow 160ms ease;
}

/* Social */

.gg-footer__social {
  margin-top: 35px; /* pushes FOLLOW down */
}

.gg-footer__social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gg-footer__social-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}

.gg-footer__social-icon {
  width: 40px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  /* Neutral container */
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  color: inherit;
}

.gg-footer__social-icon:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

/* Right: Map + loc */
.gg-footer__right {
  min-width: 0;
}

.gg-footer__map-row {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

/* Map container */
.gg-footer__map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  min-height: 220px;
}

.gg-footer__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Location card (re-used style) */
.gg-footer__loc {
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(
      900px 240px at 50% 0,
      rgba(39, 244, 255, 0.1),
      transparent 55%
    ),
    rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.gg-footer__loc--primary {
  height: 100%;
}

.gg-footer__loc h4 {
  margin: 0 0 10px;
  font-family: var(--gg-font-ui, system-ui, sans-serif);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.gg-footer__loc-body {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.gg-footer__loc-body a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* Location title styling: "Find Us At" */
.gg-footer__loc-title {
  margin: 0 0 12px;
  font-family: var(--gg-font-ui, system-ui, sans-serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);

  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px; /* nicer spacing from text */
}

/* Body structure */
.gg-footer__loc-name {
  font-weight: 650;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.gg-footer__loc-address {
  margin-bottom: 12px;
}

.gg-footer__loc-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.gg-footer__loc-link:hover,
.gg-footer__loc-link:focus-visible {
  color: #ff9a3c;
  outline: none;
  text-shadow: 0 0 10px rgba(255, 122, 24, 0.18);
}

.gg-footer__loc-action:hover,
.gg-footer__loc-action:focus-visible {
  color: rgba(255, 255, 255, 0.98);
  outline: none;
}

.gg-footer__loc-email {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.gg-footer__loc-link--address {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.gg-footer__loc-pin {
  width: 25px;
  height: 25px;
  margin-top: 2px; /* aligns icon with first text line */
  flex-shrink: 0;
}

.gg-footer__loc-address-text {
  line-height: 1.4;
}

/* Rules */
.gg-footer__rule {
  height: 1px;
  margin: 22px 0;
  background: rgba(255, 255, 255, 0.1);
}

.gg-footer__rule--soft {
  margin: 18px 0 14px;
  opacity: 0.85;
}

/* Bottom bar */
.gg-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.gg-footer__made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.gg-footer__kiwi {
  width: 20px;
  height: 20px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(39, 244, 255, 0.25))
    drop-shadow(0 0 10px rgba(255, 122, 24, 0.15));
  opacity: 0.9;
}

/* Mobile View */
@media (max-width: 950px) {
  .gg-footer__top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Center overall footer content */
  .gg-footer__container {
    text-align: center;
  }

  /* Center brand block */
  .gg-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gg-footer__logo {
    justify-content: center;
  }

  .gg-footer__slogan {
    white-space: normal;
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  .gg-footer__cols {
    display: grid; /* ensure grid */
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* FORCE 3 columns */
    column-gap: 18px;
    row-gap: 0;

    max-width: 560px; /* must be wide enough for 3 cols */
    margin: 0 auto;

    justify-items: center;
    text-align: center;
  }

  .gg-footer__col {
    width: 100%;
  }

  /* Center menus */
  .gg-footer__menu {
    align-items: center;
  }

  .gg-footer__menu li {
    text-align: center;
  }

  /* Center social section */
  .gg-footer__social {
    align-items: center;
  }

  .gg-footer__social-row {
    justify-content: center;
  }

  .gg-footer__map-row {
    grid-template-columns: 1fr;
  }

  .gg-footer__map {
    min-height: 220px;
  }

  .gg-footer__bottom {
    flex-direction: column;
    align-items: center;
  }
}

/* Footer widgets: make WP nav menu widgets match footer styling */
.gg-footer .widget,
.gg-footer .widget_nav_menu {
  margin: 0;
}

.gg-footer .widget_nav_menu ul,
.gg-footer .widget_nav_menu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gg-footer .widget_nav_menu li {
  margin: 0;
  padding: 0;
  margin-bottom: 10px;
}

.gg-footer .widget_nav_menu li:last-child {
  margin-bottom: 0;
}

.gg-footer .widget_nav_menu a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  line-height: 1.5;
}

/* Footer link glow – consistent everywhere */
.gg-footer__menu a:hover,
.gg-footer__menu a:focus-visible,
.gg-footer .widget_nav_menu a:hover,
.gg-footer .widget_nav_menu a:focus-visible {
  color: rgba(255, 255, 255, 0.95);
  background: var(--gg-footer-glow-bg);
  border-color: var(--gg-footer-glow-border);
  box-shadow: var(--gg-footer-glow-shadow);
  border-radius: 10px;
  text-decoration: none;
  outline: none;
}
