/* ═══════════════════════════════════════════
   LAUNCHOUSE GYM — style.css
   Theme: Dark Navy · Raleway · Orange Accent
═══════════════════════════════════════════ */

/* ── Google Font already loaded via HTML ── */

/* ─────────────────────────────────────────
   CSS VARIABLES
───────────────────────────────────────── */
:root {
  --navy-deep:   #2d3250;
  --navy-mid:    #424769;
  --navy-light:  #676f9d;
  --white:       #ffffff;
  --white-soft:  rgba(255,255,255,0.08);
  --accent:      #f9b17a;
  --accent-dark: #e8934a;
  --accent-glow: rgba(249,177,122,0.25);
  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,0.60);
  --text-muted:     rgba(255,255,255,0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --nav-h: 76px;
  --bn-h:  76px;               /* bottom nav height */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--navy-deep);
  color: var(--text-primary);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─────────────────────────────────────────
   ███  DESKTOP NAVBAR
───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

/* Scrolled state — added via JS */
.navbar.scrolled {
  background: rgba(45, 50, 80, 0.85);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 8px 32px rgba(0,0,0,0.35);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: auto;

}

.logo-icon {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-deep);
  font-size: 16px;
  font-weight: 900;
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav-logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 0 20px var(--accent-glow);
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
}
.logo-accent { color: var(--accent); }

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;          /* center between logo and cta */
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: left var(--transition), right var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--white-soft);
}
.nav-link:hover::after,
.nav-link.active::after {
  left: 16px; right: 16px;
}

/* ── CTA Button ── */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(249,177,122,0.4);
}
.cta-arrow {
  font-size: 12px;
  transition: transform var(--transition);
}
.nav-cta:hover .cta-arrow { transform: translateX(4px); }

/* ── Hamburger (shows on tablet ≤ 900px) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: 12px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Dropdown ── */
.mobile-dropdown {
  max-height: 0;
  overflow: hidden;
  background: rgba(45, 50, 80, 0.97);
  backdrop-filter: blur(20px);
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mobile-dropdown.open { max-height: 420px; }

.dd-link {
  display: block;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--transition), padding-left var(--transition);
}
.dd-link:hover { color: var(--white); padding-left: 40px; }
.dd-cta {
  color: var(--accent);
  border-bottom: none;
  margin: 12px 32px;
  padding: 12px 20px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  text-align: center;
}
.dd-cta:hover { background: var(--accent); color: var(--navy-deep); padding-left: 20px; }

/* ─────────────────────────────────────────
   ███  FOOTER
───────────────────────────────────────── */
.footer {
  position: relative;
  background: #1e2240;
  border-top: 1px solid rgba(255,255,255,0.07);
  overflow: hidden;
  /* extra bottom padding on mobile for bottom nav */
  padding-bottom: 20px;
}

.footer-glow {
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse at top, rgba(249,177,122,0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Footer Top Grid ── */
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 56px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
  gap: 40px;
}

/* ── Brand Column ── */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-tagline {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 280px;
  margin-bottom: 28px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white-soft);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), transform var(--transition), border-color var(--transition);
}
.social-btn:hover {
  background: var(--accent);
  color: var(--navy-deep);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ── Regular Columns ── */
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 12px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 6px; }

/* ── Contact Column ── */
.footer-contact ul { gap: 14px; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-contact li i {
  color: var(--accent);
  font-size: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
}
.footer-contact li span {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Footer Bottom Bar ── */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* Orange accent strip on top of bottom bar */
.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0; left: 32px;
  width: 80px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--accent); }
.footer-bottom-links span { color: var(--text-muted); }

/* ─────────────────────────────────────────
   ███  MOBILE BOTTOM NAV
───────────────────────────────────────── */
.bottom-nav {
  display: none;       /* shown only on ≤ 640px via media query */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1001;
  height: var(--bn-h);
  background: rgba(30, 34, 64, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.40);
}

/* ── DESKTOP pe FORCE HIDE ── */
.bottom-nav { display: none !important; }

@media (max-width: 640px) {
  .bottom-nav { display: flex !important; }
  .hamburger   { display: none !important; }
  .mobile-dropdown { display: none !important; }

  .logo-text { font-size: 16px; }
  .logo-icon { width: 28px; height: 28px; font-size: 12px; }
  .nav-cta {
    padding: 7px 12px;
    font-size: 12px;
    border-radius: 10px;
    gap: 6px;
  }
}

.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 0;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.bn-icon-wrap {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-size: 18px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.bn-item span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

/* Active state — plain highlight */
.bn-item.active .bn-icon-wrap {
  background: rgba(249,177,122,0.15);
  color: var(--accent);
}
.bn-item.active span { color: var(--accent); }

/* Active underline indicator */
.bn-item.active::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
}

/* Center FAB button (Services) */
.bn-fab {
  width: 54px; height: 54px;
  background: var(--navy-mid);
  border-radius: 18px;
  font-size: 20px;
  color: var(--text-secondary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  bottom: 10px;
}
.bn-item.active .bn-fab,
.bn-item.bn-center:hover .bn-fab {
  background: var(--accent);
  color: var(--navy-deep);
  box-shadow: 0 8px 28px var(--accent-glow);
  transform: translateY(-2px);
}

/* Hover (non-active) */
.bn-item:not(.active):hover .bn-icon-wrap {
  background: var(--white-soft);
  color: var(--white);
  transform: translateY(-2px);
}
.bn-item:not(.active):hover span { color: var(--white); }

/* ─────────────────────────────────────────
   SCROLL REVEAL ANIMATION
───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   ███  RESPONSIVE BREAKPOINTS
───────────────────────────────────────── */
.nav-container {
  display: flex;
  align-items: center;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta {
    display: flex;
    margin-left: auto;
    padding: 8px 14px;
    font-size: 13px;
  }
  .logo-text { font-size: 18px; }
  .logo-icon { width: 32px; height: 32px; font-size: 13px; }
  .hamburger { display: flex; }
}

/* ── Footer: 3 columns on medium ── */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Mobile (≤ 640px) ── */
@media (max-width: 640px) {

  /* Show bottom nav, hide hamburger menu */
  .bottom-nav  { display: flex; }
  .hamburger   { display: none; }
  .mobile-dropdown { display: none; }

  /* Add bottom padding so content isn't hidden under bottom nav */
  body { padding-bottom: var(--bn-h); }
  .footer { padding-bottom: calc(var(--bn-h) + 20px); }

  /* Footer: 2 columns */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding: 52px 24px 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px;
  }

  .hero-title { letter-spacing: -1px; }
}

/* ── Very small phones (≤ 380px) ── */
@media (max-width: 380px) {
  .footer-top { grid-template-columns: 1fr; }

  .bn-icon-wrap { width: 36px; height: 36px; font-size: 16px; }
  .bn-fab       { width: 46px; height: 46px; font-size: 17px; }
  .bn-item span { font-size: 9px; }
}


/* Wave animation */
@keyframes waveHand {
  0%,100% { transform: rotate(0deg); }
  20%     { transform: rotate(-20deg); }
  40%     { transform: rotate(14deg); }
  60%     { transform: rotate(-10deg); }
  80%     { transform: rotate(8deg); }
}

.nav-cta-wave {
  font-size: 14px;
  display: inline-block;
  animation: waveHand 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

/* 640px pe icon hide karo space ke liye */
@media (max-width: 640px) {
  .nav-cta-wave { display: none; }
  .cta-arrow    { display: none; }
}