/* ============================================
   FRESHTEK — Nav & Footer (site-wide)
   Matches the freshtek.pro landing page exactly
   ============================================ */

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-right: 40px;
}

.nav-logo-img {
  height: 80px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  white-space: nowrap;
}

nav a:hover { color: var(--white); }

.nav-cta {
  background: var(--citron);
  color: #000000 !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: #b0bb00 !important; }

/* Push page content below the fixed nav on WordPress-rendered pages */
body.woocommerce-page,
body.woocommerce-cart,
body.woocommerce-checkout,
body.page {
  padding-top: 132px;
}

/* ── RESPONSIVE NAV ── */
@media (max-width: 1100px) {
  nav { padding: 14px 28px; }
  .nav-logo-img { height: 54px !important; }
  nav ul { gap: 22px; }
  nav a { font-size: 0.72rem; }
  .nav-cta { padding: 8px 18px; }
}

@media (max-width: 860px) {
  nav { padding: 12px 20px; }
  .nav-logo-img { height: 46px !important; }
  nav ul { gap: 14px; }
  nav a { font-size: 0.65rem; letter-spacing: 0.03em; }
  .nav-cta { padding: 7px 12px; }
}

@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .nav-logo-img { height: 48px !important; }
  body.woocommerce-page,
  body.woocommerce-cart,
  body.woocommerce-checkout,
  body.page {
    padding-top: 92px;
  }
}

@media (max-width: 640px) {
  nav { padding: 10px 16px; }
  .nav-logo-img { height: 32px !important; }
}

@media (max-width: 480px) {
  .nav-logo-img { height: 32px !important; }
  nav ul { gap: 8px; }
  nav a { font-size: 0.58rem; }
  .nav-cta { padding: 6px 8px; font-size: 0.58rem; }
}

/* ── MOBILE NAV / HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 300;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.97);
  z-index: 250;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--white) !important;
  text-decoration: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-menu a:hover { color: var(--accent-light); }

.mobile-menu .mobile-cta {
  background: var(--citron);
  color: #000000 !important;
  padding: 16px 40px;
  border-radius: 4px;
  font-size: 1.2rem;
  margin-top: 8px;
}

/* ── MOBILE MENU LINK VISIBILITY BY PAGE ── */

/* Homepage: show all links */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-page) .mobile-menu a {
  display: block !important;
}

/* WooCommerce pages: hide homepage-only anchor links */
body.woocommerce-cart .mobile-menu .mobile-homepage-link,
body.woocommerce-checkout .mobile-menu .mobile-homepage-link,
body.woocommerce-page .mobile-menu .mobile-homepage-link {
  display: none !important;
}

/* Always show these on all pages including WooCommerce */
body.woocommerce-cart .mobile-menu a[href*="/shop/"],
body.woocommerce-cart .mobile-menu a[href*="/cart/"],
body.woocommerce-cart .mobile-menu a[href*="SDS"],
body.woocommerce-checkout .mobile-menu a[href*="/shop/"],
body.woocommerce-checkout .mobile-menu a[href*="/cart/"],
body.woocommerce-checkout .mobile-menu a[href*="SDS"],
body.woocommerce-page .mobile-menu a[href*="/shop/"],
body.woocommerce-page .mobile-menu a[href*="/cart/"],
body.woocommerce-page .mobile-menu a[href*="SDS"] {
  display: block !important;
}

@media (max-width: 1400px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex; }
}

/* ── FOOTER ── */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--white); }

@media (max-width: 600px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
  }
  footer div {
    justify-content: center;
  }
}
