/* ========================================
   SHAFX HEADER & FOOTER — 2026 REDESIGN
   Aesthetic: Premium Dark Finance
   ======================================== */

/* === HEADER === */
.shafx-header {
  background: rgba(12, 14, 30, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 200, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.4s ease;
}
.shafx-header.scrolled {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 200, 0, 0.15);
}
.shafx-header .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.shafx-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* Brand */
.shafx-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.shafx-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 200, 0, 0.15);
  transition: transform 0.3s ease;
}
.shafx-brand:hover img { transform: scale(1.08); }
.shafx-brand .name {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #FFD700 10%, #FFC107 50%, #FF9800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.shafx-brand .tag {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* Navigation */
.shafx-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.shafx-nav a {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
}
.shafx-nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 12px;
  left: 12px;
  height: 2px;
  background: #FFD700;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.shafx-nav a:hover {
  color: #fff;
  background: rgba(255, 200, 0, 0.06);
}
.shafx-nav a:hover::after { transform: scaleX(1); }
.shafx-nav a.active {
  color: #FFD700;
  background: rgba(255, 200, 0, 0.08);
}
.shafx-nav a.active::after { transform: scaleX(1); }

/* Header Actions */
.shafx-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.shafx-btn-cta {
  padding: 9px 22px;
  background: linear-gradient(135deg, #FFD700, #F59E0B);
  color: #0c0e1e;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(255, 200, 0, 0.25);
  white-space: nowrap;
}
.shafx-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 200, 0, 0.4);
}

/* Burger */
.shafx-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.shafx-burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}
body.nav-open .shafx-burger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
body.nav-open .shafx-burger span:nth-child(2) { opacity: 0; }
body.nav-open .shafx-burger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.shafx-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 200, 0, 0.1);
}
.shafx-mobile a {
  padding: 12px 16px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.shafx-mobile a:hover,
.shafx-mobile a.active {
  background: rgba(255, 200, 0, 0.08);
  color: #FFD700;
}
.mobile-cta {
  margin-top: 8px;
  padding: 14px 20px !important;
  background: linear-gradient(135deg, #FFD700, #F59E0B) !important;
  color: #0c0e1e !important;
  font-weight: 800 !important;
  text-align: center;
  border-radius: 12px !important;
}

/* === FOOTER === */
.shafx-footer {
  background: linear-gradient(180deg, #0a0c1a 0%, #060812 100%);
  border-top: 1px solid rgba(255, 200, 0, 0.08);
  padding: 0 0 24px;
  margin-top: 60px;
  position: relative;
}

/* Warning Banner */
.footer-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 24px;
  background: rgba(255, 165, 0, 0.05);
  border: 1px solid rgba(255, 165, 0, 0.12);
  border-radius: 14px;
  margin-bottom: 48px;
  margin-top: -1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.warning-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.footer-warning p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin: 0;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}

/* Brand Column */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: #FFD700;
}
.footer-brand-tag {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}
.footer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Social Icons */
.footer-social {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.social-icon:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 200, 0, 0.3);
  background: rgba(255, 200, 0, 0.1);
}

/* Footer Columns */
.footer-heading {
  font-size: 0.9rem;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  padding: 3px 0;
}
.footer-links a:hover {
  color: #FFD700;
  padding-right: 6px;
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 200, 0, 0.06);
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}
.footer-motto {
  font-size: 0.75rem;
  color: rgba(255, 200, 0, 0.35);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.shafx-footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
  .shafx-nav a { padding: 8px 8px; font-size: 0.8rem; }
}

@media (max-width: 1024px) {
  .shafx-nav { display: none; }
  .shafx-burger { display: flex; }
  .shafx-btn-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  body.nav-open #shafxNav { display: flex; }
  .shafx-header .bar { height: 58px; }
  .shafx-brand img { width: 36px; height: 36px; }
  .shafx-brand .name { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
