/* ============================================================
   5G Store - Layout CSS
   Header, top bar, navigation, footer, page shell
   ============================================================ */


/* ---- TOP BAR ---------------------------------------------- */
.fgs-topbar {
  background: var(--fgs-navy);
  border-bottom: 1px solid var(--fgs-navy-light);
}

.fgs-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--fgs-space-2);
  font-size: var(--fgs-text-sm);
  color: rgba(248, 250, 255, 0.65);
  gap: var(--fgs-space-4);
  flex-wrap: wrap;
}

.fgs-topbar a {
  color: rgba(248, 250, 255, 0.65);
  text-decoration: none;
  transition: color var(--fgs-transition);
}
.fgs-topbar a:hover {
  color: var(--fgs-signal);
}

.fgs-topbar__trust {
  display: flex;
  align-items: center;
  gap: var(--fgs-space-4);
}

.fgs-topbar__trust-item {
  display: flex;
  align-items: center;
  gap: var(--fgs-space-2);
}

.fgs-topbar__trust-item svg {
  color: var(--fgs-signal);
  flex-shrink: 0;
}

.fgs-topbar__contact {
  display: flex;
  align-items: center;
  gap: var(--fgs-space-4);
}

.fgs-topbar__phone {
  font-family: var(--fgs-font-head);
  font-weight: 600;
  color: var(--fgs-white) !important;
  letter-spacing: -0.01em;
}


/* ---- HEADER ----------------------------------------------- */
.fgs-header {
  position: sticky;
  top: 0;
  z-index: var(--fgs-z-sticky);
  background: #fff;
  border-bottom: 1px solid var(--fgs-border);
  box-shadow: var(--fgs-shadow-sm);
  transition: box-shadow var(--fgs-transition);
}

.fgs-header.is-scrolled {
  box-shadow: var(--fgs-shadow-md);
}

/* Signal line accent under header */
.fgs-header::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--fgs-signal) 0%, var(--fgs-blue) 60%, transparent 100%);
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
}

.fgs-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--fgs-space-8);
  padding-block: var(--fgs-space-4);
}

/* Logo */
.fgs-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.fgs-logo img {
  height: 48px;
  width: auto;
}

.fgs-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.fgs-logo__name {
  font-family: var(--fgs-font-head);
  font-size: var(--fgs-text-xl);
  font-weight: 800;
  color: var(--fgs-navy);
  letter-spacing: -0.03em;
}

.fgs-logo__name span {
  color: var(--fgs-signal);
}

.fgs-logo__tagline {
  font-size: var(--fgs-text-xs);
  color: var(--fgs-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}


/* ---- PRIMARY NAV ------------------------------------------ */
.fgs-primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fgs-primary-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--fgs-space-1);
}

.fgs-primary-nav ul li {
  position: relative;
}

.fgs-primary-nav ul li a {
  display: flex;
  align-items: center;
  gap: var(--fgs-space-1);
  padding: var(--fgs-space-2) var(--fgs-space-4);
  font-family: var(--fgs-font-head);
  font-size: var(--fgs-text-sm);
  font-weight: 600;
  color: var(--fgs-body);
  text-decoration: none;
  border-radius: var(--fgs-radius);
  transition: background var(--fgs-transition), color var(--fgs-transition);
  white-space: nowrap;
}

.fgs-primary-nav ul li a:hover,
.fgs-primary-nav ul li.current-menu-item > a,
.fgs-primary-nav ul li.current-menu-ancestor > a {
  background: var(--fgs-off-white);
  color: var(--fgs-navy);
}

/* Dropdown */
.fgs-primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--fgs-border);
  border-radius: var(--fgs-radius-md);
  box-shadow: var(--fgs-shadow-lg);
  padding: var(--fgs-space-2);
  flex-direction: column;
  gap: 2px;
  display: none;
  z-index: var(--fgs-z-dropdown);
}

.fgs-primary-nav li:hover > .sub-menu,
.fgs-primary-nav li:focus-within > .sub-menu {
  display: flex;
}

.fgs-primary-nav .sub-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid var(--fgs-border);
  border-top: 1px solid var(--fgs-border);
  rotate: 45deg;
}

.fgs-primary-nav .sub-menu li a {
  font-size: var(--fgs-text-sm);
  font-weight: 500;
  padding: var(--fgs-space-2) var(--fgs-space-3);
  border-radius: var(--fgs-radius);
  width: 100%;
}

.fgs-primary-nav .sub-menu li a:hover {
  background: var(--fgs-off-white);
  color: var(--fgs-blue);
}


/* ---- HEADER CTA ------------------------------------------- */
.fgs-header__cta {
  display: flex;
  align-items: center;
  gap: var(--fgs-space-3);
  flex-shrink: 0;
}

/* WooCommerce cart icon in header */
.fgs-header__cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--fgs-radius);
  background: var(--fgs-off-white);
  color: var(--fgs-body);
  text-decoration: none;
  transition: background var(--fgs-transition);
}
.fgs-header__cart:hover {
  background: var(--fgs-border);
}

.fgs-header__cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--fgs-signal);
  color: var(--fgs-navy);
  font-family: var(--fgs-font-head);
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--fgs-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 3px;
}


/* ---- HAMBURGER (mobile) ----------------------------------- */
.fgs-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--fgs-radius);
  transition: background var(--fgs-transition);
}
.fgs-hamburger:hover { background: var(--fgs-off-white); }

.fgs-hamburger span {
  display: block;
  height: 2px;
  background: var(--fgs-navy);
  border-radius: 2px;
  transition: transform var(--fgs-transition), opacity var(--fgs-transition);
}

.fgs-hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.fgs-hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.fgs-hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ---- MOBILE NAV PANEL ------------------------------------- */
.fgs-mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: calc(var(--fgs-z-modal) - 1);
  display: flex;
  flex-direction: column;
  padding: var(--fgs-space-20) var(--fgs-gutter) var(--fgs-gutter);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 300ms var(--fgs-ease);
}

.fgs-mobile-nav.is-open {
  transform: translateX(0);
}

.fgs-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fgs-mobile-nav ul li a {
  display: block;
  padding: var(--fgs-space-4) 0;
  border-bottom: 1px solid var(--fgs-border);
  font-family: var(--fgs-font-head);
  font-size: var(--fgs-text-lg);
  font-weight: 600;
  color: var(--fgs-navy);
  text-decoration: none;
}

.fgs-mobile-nav .sub-menu {
  padding-left: var(--fgs-space-4);
}

.fgs-mobile-nav .sub-menu li a {
  font-size: var(--fgs-text-md);
  font-weight: 500;
  color: var(--fgs-mid);
}


/* ---- BREADCRUMB ------------------------------------------- */
.fgs-breadcrumb-bar {
  background: var(--fgs-off-white);
  border-bottom: 1px solid var(--fgs-border);
  padding-block: var(--fgs-space-3);
  font-size: var(--fgs-text-sm);
  color: var(--fgs-muted);
}

.fgs-breadcrumb-bar a {
  color: var(--fgs-mid);
  text-decoration: none;
}
.fgs-breadcrumb-bar a:hover { color: var(--fgs-blue); }

.fgs-breadcrumb-bar .sep {
  margin-inline: var(--fgs-space-2);
  color: var(--fgs-border-dark);
}

.fgs-breadcrumb-bar .current {
  color: var(--fgs-body);
  font-weight: 600;
}


/* ---- PAGE HERO -------------------------------------------- */
.fgs-hero {
  background: var(--fgs-navy);
  color: var(--fgs-white);
  padding-block: var(--fgs-space-20) var(--fgs-space-16);
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.fgs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 180, 216, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Signal gradient bottom fade */
.fgs-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--fgs-navy));
  pointer-events: none;
}

.fgs-hero__inner {
  position: relative;
  z-index: 1;
}

.fgs-hero h1 {
  color: var(--fgs-white);
  margin-bottom: var(--fgs-space-4);
}

.fgs-hero h1 em {
  font-style: normal;
  color: var(--fgs-signal);
}

.fgs-hero__sub {
  font-size: var(--fgs-text-lg);
  color: rgba(248, 250, 255, 0.72);
  max-width: 640px;
  margin-bottom: var(--fgs-space-8);
  line-height: 1.6;
}

.fgs-hero__actions {
  display: flex;
  gap: var(--fgs-space-4);
  flex-wrap: wrap;
}


/* ---- MAIN CONTENT AREA ------------------------------------ */
.fgs-main {
  min-height: 60vh;
}

.fgs-main--narrow {
  max-width: var(--fgs-content-width);
  margin-inline: auto;
  padding: var(--fgs-space-12) var(--fgs-gutter);
}


/* ---- FOOTER ----------------------------------------------- */
.fgs-footer {
  background: var(--fgs-navy);
  color: rgba(248, 250, 255, 0.65);
  margin-top: var(--fgs-space-20);
  border-top: 2px solid var(--fgs-signal);
}

.fgs-footer__main {
  padding-block: var(--fgs-space-16);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--fgs-space-12);
}

.fgs-footer__brand .fgs-logo__name {
  color: var(--fgs-white);
}

.fgs-footer__brand p {
  margin-top: var(--fgs-space-4);
  font-size: var(--fgs-text-sm);
  line-height: 1.7;
  color: rgba(248, 250, 255, 0.55);
}

.fgs-footer__col h4 {
  font-family: var(--fgs-font-head);
  font-size: var(--fgs-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fgs-white);
  margin-bottom: var(--fgs-space-4);
}

.fgs-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--fgs-space-2);
}

.fgs-footer__col ul li a {
  color: rgba(248, 250, 255, 0.55);
  text-decoration: none;
  font-size: var(--fgs-text-sm);
  transition: color var(--fgs-transition);
}
.fgs-footer__col ul li a:hover {
  color: var(--fgs-signal);
}

.fgs-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--fgs-space-3);
  margin-bottom: var(--fgs-space-3);
  font-size: var(--fgs-text-sm);
  color: rgba(248, 250, 255, 0.55);
}

.fgs-footer__contact-item svg {
  color: var(--fgs-signal);
  flex-shrink: 0;
  margin-top: 2px;
}

.fgs-footer__contact-item a {
  color: rgba(248, 250, 255, 0.65);
  text-decoration: none;
  transition: color var(--fgs-transition);
}
.fgs-footer__contact-item a:hover { color: var(--fgs-signal); }

/* Trust badges strip */
.fgs-footer__trust {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--fgs-space-6);
  display: flex;
  align-items: center;
  gap: var(--fgs-space-8);
  flex-wrap: wrap;
}

.fgs-footer__trust-badge {
  display: flex;
  align-items: center;
  gap: var(--fgs-space-2);
  font-size: var(--fgs-text-sm);
  color: rgba(248, 250, 255, 0.55);
}

.fgs-footer__trust-badge svg {
  color: var(--fgs-signal);
}

/* Footer base */
.fgs-footer__base {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--fgs-space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fgs-space-4);
  flex-wrap: wrap;
}

.fgs-footer__base p {
  font-size: var(--fgs-text-xs);
  color: rgba(248, 250, 255, 0.35);
  margin: 0;
}

.fgs-footer__base-links {
  display: flex;
  gap: var(--fgs-space-6);
}

.fgs-footer__base-links a {
  font-size: var(--fgs-text-xs);
  color: rgba(248, 250, 255, 0.35);
  text-decoration: none;
  transition: color var(--fgs-transition);
}
.fgs-footer__base-links a:hover { color: var(--fgs-signal); }


/* ---- RESPONSIVE ------------------------------------------- */
@media (max-width: 1024px) {
  .fgs-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--fgs-space-8);
  }
}

@media (max-width: 768px) {
  .fgs-header__inner {
    grid-template-columns: auto auto;
    gap: var(--fgs-space-4);
  }

  .fgs-primary-nav {
    display: none;
  }

  .fgs-hamburger {
    display: flex;
  }

  .fgs-topbar__trust {
    display: none;
  }

  .fgs-footer__main {
    grid-template-columns: 1fr;
    gap: var(--fgs-space-6);
  }

  .fgs-footer__trust {
    gap: var(--fgs-space-4);
  }

  .fgs-hero {
    padding-block: var(--fgs-space-12) var(--fgs-space-10);
  }
}
