/**
 * Footer Styles
 *
 * Full-width footer with charcoal background.
 *
 * @package GFX_Theme
 * @since 1.0.0
 */

/* ========================================
   FOOTER CONTAINER
   ======================================== */

.gfx-footer {
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #004f94 0%, #0a4581 50%, #153765 100%);
  color: var(--gfx-white);
}

/* ========================================
   FOOTER MAIN (COLUMNS)
   ======================================== */

.gfx-footer-main {
  padding: var(--gfx-space-16) 0 var(--gfx-space-10);
}

.gfx-footer-col {
  margin-bottom: var(--gfx-space-8);
}

/* ========================================
   FOOTER BRAND COLUMN
   ======================================== */

.gfx-footer-brand {
  max-width: 320px;
}

.gfx-footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: var(--gfx-space-4);
  text-decoration: none;
}

.gfx-footer-logo-img {
  height: 85px;
  width: auto;
}

.gfx-footer-tagline {
  font-size: var(--gfx-text-base);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--gfx-space-6);
  line-height: var(--gfx-leading-relaxed);
}

/* App Store Badge */
.gfx-footer-app-badge {
  display: inline-block;
  transition: transform var(--gfx-transition), opacity var(--gfx-transition);
}

.gfx-footer-app-badge:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.gfx-footer-app-badge img {
  height: 40px;
  width: auto;
}

/* ========================================
   FOOTER NAVIGATION
   ======================================== */

.gfx-footer-nav-title {
  font-family: var(--gfx-font-heading);
  font-size: var(--gfx-text-sm);
  font-weight: var(--gfx-font-bold);
  color: var(--gfx-white);
  margin-bottom: var(--gfx-space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gfx-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gfx-footer-nav li {
  margin-bottom: var(--gfx-space-3);
}

.gfx-footer-nav a {
  font-size: var(--gfx-text-base);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--gfx-transition);
}

.gfx-footer-nav a:hover,
.gfx-footer-nav a:focus {
  color: var(--gfx-white);
}

/* ========================================
   FOOTER CONTACT
   ======================================== */

.gfx-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gfx-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--gfx-space-3);
  margin-bottom: var(--gfx-space-4);
}

.gfx-footer-contact i {
  color: #ffd900;
  font-size: var(--gfx-text-lg);
  margin-top: 2px;
  flex-shrink: 0;
}

.gfx-footer-contact span {
  font-size: var(--gfx-text-base);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--gfx-leading-relaxed);
}

.gfx-footer-contact a {
  display: flex;
  align-items: center;
  gap: var(--gfx-space-3);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--gfx-transition);
}

.gfx-footer-contact a:hover,
.gfx-footer-contact a:focus {
  color: var(--gfx-white);
}

.gfx-footer-contact a:hover i {
  color: #ffd900;
}

/* ========================================
   FOOTER SOCIAL LINKS
   ======================================== */

.gfx-footer-social-row {
  padding: var(--gfx-space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.gfx-footer-social {
  display: inline-flex;
  justify-content: center;
  gap: var(--gfx-space-4);
}

.gfx-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.75rem;
  transition: all var(--gfx-transition);
}

.gfx-footer-social a:hover,
.gfx-footer-social a:focus {
  color: #ffd900;
  transform: translateY(-2px);
}

/* ========================================
   FOOTER BOTTOM (COPYRIGHT BAR)
   ======================================== */

.gfx-footer-bottom {
  background: #021a2f;
  padding: var(--gfx-space-5) 0;
}

.gfx-footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--gfx-space-4);
}

.gfx-footer-bottom-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gfx-space-4);
}

.gfx-footer-copyright {
  font-size: var(--gfx-text-sm);
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.gfx-footer-legal {
  display: flex;
  gap: var(--gfx-space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.gfx-footer-legal a {
  font-size: var(--gfx-text-sm);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--gfx-transition);
}

.gfx-footer-legal a:hover,
.gfx-footer-legal a:focus {
  color: var(--gfx-white);
}

/* ========================================
   POWERED BY SYNECTICLABS
   ======================================== */

.gfx-footer-powered {
  display: flex;
  align-items: center;
  gap: var(--gfx-space-2);
}

.gfx-footer-powered span {
  font-size: var(--gfx-text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.gfx-synecticlabs-link {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.gfx-synecticlabs-logo {
  height: 24px;
  width: auto;
  transition: opacity var(--gfx-transition);
}

.gfx-synecticlabs-logo--white {
  opacity: 0.5;
}

.gfx-synecticlabs-logo--hover {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}

.gfx-synecticlabs-link:hover .gfx-synecticlabs-logo--white {
  opacity: 0;
}

.gfx-synecticlabs-link:hover .gfx-synecticlabs-logo--hover {
  opacity: 1;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 991.98px) {
  .gfx-footer-main {
    padding: var(--gfx-space-8) 0 var(--gfx-space-6);
  }

  .gfx-footer-main .row {
    display: flex !important;
    flex-wrap: wrap !important;
  }

  /* Row 1: Brand section - full width, centered */
  .gfx-footer .gfx-footer-main .row > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: var(--gfx-space-6);
    padding-bottom: var(--gfx-space-6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .gfx-footer-brand {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .gfx-footer-tagline {
    max-width: 400px;
  }

  /* Row 2: Navigation columns - force 3 columns in same row */
  .gfx-footer .gfx-footer-main .row > div:nth-child(2),
  .gfx-footer .gfx-footer-main .row > div:nth-child(3),
  .gfx-footer .gfx-footer-main .row > div:nth-child(4) {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    width: 33.333% !important;
    margin-bottom: 0;
  }

  .gfx-footer-col {
    margin-bottom: 0;
  }

  /* Smaller font for nav items on tablet/mobile */
  .gfx-footer-nav-title {
    font-size: 0.7rem;
    margin-bottom: var(--gfx-space-2);
  }

  .gfx-footer-nav a,
  .gfx-footer-contact span,
  .gfx-footer-contact a span {
    font-size: 0.8rem;
  }

  .gfx-footer-nav li {
    margin-bottom: var(--gfx-space-1);
  }

  .gfx-footer-contact li {
    margin-bottom: var(--gfx-space-2);
  }

  .gfx-footer-contact i {
    font-size: 0.9rem;
  }
}

/* Footer bottom bar fix for tablet range (767px - 576px) */
@media (max-width: 767.98px) and (min-width: 576px) {
  .gfx-footer-bottom {
    padding: var(--gfx-space-4) 0;
  }

  .gfx-footer-bottom-content {
    flex-wrap: nowrap;
    gap: var(--gfx-space-2);
  }

  .gfx-footer-bottom-left {
    flex-wrap: nowrap;
    gap: var(--gfx-space-2);
  }

  .gfx-footer-copyright {
    font-size: 0.6rem;
    white-space: nowrap;
  }

  .gfx-footer-legal {
    gap: var(--gfx-space-2);
  }

  .gfx-footer-legal a {
    font-size: 0.6rem;
    white-space: nowrap;
  }

  .gfx-footer-powered {
    gap: var(--gfx-space-1);
  }

  .gfx-footer-powered span {
    font-size: 0.6rem;
  }

  .gfx-synecticlabs-logo {
    height: 18px;
  }
}

@media (max-width: 575.98px) {
  .gfx-footer-main {
    padding: var(--gfx-space-6) 0 var(--gfx-space-4);
  }

  .gfx-footer-logo-img {
    height: 55px;
  }

  .gfx-footer-tagline {
    font-size: 0.8rem;
    margin-bottom: var(--gfx-space-4);
  }

  .gfx-footer-app-badge img {
    height: 32px;
  }

  /* Force 3 columns on mobile too */
  .gfx-footer .gfx-footer-main .row > div:nth-child(2),
  .gfx-footer .gfx-footer-main .row > div:nth-child(3),
  .gfx-footer .gfx-footer-main .row > div:nth-child(4) {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    width: 33.333% !important;
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Even smaller font on mobile - keep 3 cols in row */
  .gfx-footer-nav-title {
    font-size: 0.6rem;
    letter-spacing: 0.03em;
  }

  .gfx-footer-nav a,
  .gfx-footer-contact span,
  .gfx-footer-contact a span {
    font-size: 0.65rem;
  }

  .gfx-footer-contact i {
    font-size: 0.75rem;
    margin-top: 1px;
  }

  .gfx-footer-contact li {
    gap: var(--gfx-space-1);
  }

  .gfx-footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--gfx-space-3);
  }

  .gfx-footer-bottom-left {
    flex-direction: column;
    gap: var(--gfx-space-2);
  }

  .gfx-footer-copyright,
  .gfx-footer-legal a {
    font-size: 0.7rem;
  }

  .gfx-footer-legal {
    justify-content: center;
  }

  .gfx-footer-powered {
    justify-content: center;
  }

  .gfx-footer-powered span {
    font-size: 0.7rem;
  }
}
