/*
 * components.css — Navbar, hamburger, mobile nav, ticker, WhatsApp FAB, reCAPTCHA
 * Stadias.in
 */

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 24px 60px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(26,31,46,0.95) 0%, transparent 100%);
  transition: background 0.3s;
}
nav.scrolled {
  background: rgba(26,31,46,0.98);
  border-bottom: 1px solid rgba(192,57,43,0.3);
  backdrop-filter: blur(10px);
}
.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: 4px;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: var(--rust); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--iron);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--rust);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  background: var(--rust); color: var(--white);
  border: none; padding: 12px 28px;
  cursor: none;
  transition: background 0.2s, transform 0.2s;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.nav-cta:hover { background: var(--amber); transform: translateY(-1px); }

/* ─── HAMBURGER MENU ─── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none; z-index: 600;
}
.hamburger span {
  display: block; width: 26px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s ease; 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 nav drawer */
.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(13,17,23,0.98);
  backdrop-filter: blur(12px);
  z-index: 490;
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(-20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-nav a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; letter-spacing: 4px;
  color: rgba(240,240,240,0.6); text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  width: 80%; text-align: center; transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--rust); }
.mobile-nav .mobile-cta {
  margin-top: 32px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  background: var(--rust); color: var(--white);
  border: none; padding: 16px 48px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  cursor: pointer;
}

/* ─── TICKER ─── */
.ticker {
  background: var(--rust);
  padding: 14px 0; overflow: hidden;
  white-space: nowrap; position: relative;
}
.ticker-track { display: inline-flex; animation: ticker 25s linear infinite; }
.ticker-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(240,240,240,0.9); padding: 0 40px;
}
.ticker-item::before { content: '◆'; margin-right: 40px; opacity: 0.5; }

/* ─── WHATSAPP FAB ─── */
.whatsapp-fab {
  position: fixed; bottom: 30px; right: 30px; z-index: 9999;
}
.whatsapp-fab a {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  background-color: #25D366; border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: all 0.3s ease; text-decoration: none; position: relative; cursor: pointer;
}
.whatsapp-fab a:hover { background-color: #128C7E; transform: scale(1.1); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.whatsapp-fab svg { width: 32px; height: 32px; fill: #ffffff; }
.whatsapp-fab a::before {
  content: ''; position: absolute;
  width: 60px; height: 60px; border-radius: 50%;
  background-color: #25D366;
  animation: waPulse 2s infinite; z-index: -1;
}
.whatsapp-fab a::after {
  content: 'Chat with us'; position: absolute; right: 70px;
  background-color: #333; color: #fff;
  padding: 8px 12px; border-radius: 5px;
  font-size: 14px; font-family: 'Barlow', sans-serif;
  white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.whatsapp-fab a:hover::after { opacity: 1; visibility: visible; }

/* ─── reCAPTCHA ─── */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-notice {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07); border-radius: 4px;
}
.recaptcha-notice .rc-logo { flex-shrink: 0; width: 38px; height: 38px; }
.recaptcha-notice .rc-text {
  font-family: 'Barlow', sans-serif; font-size: 10px; line-height: 1.5; color: var(--iron);
}
.recaptcha-notice .rc-text strong {
  display: block; font-size: 12px; font-weight: 600;
  color: rgba(240,240,240,0.7); letter-spacing: 0.3px;
}
.recaptcha-notice .rc-text a { color: #4a90d9; text-decoration: none; }
.recaptcha-notice .rc-text a:hover { text-decoration: underline; }

/* ─── NAV LOGO IMAGE ─── */
.logo-img-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  /* Remove red background — show on dark nav */
  filter: brightness(1.05) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.nav-logo-img:hover {
  transform: scale(1.04);
  filter: brightness(1.15) drop-shadow(0 2px 10px rgba(192,57,43,0.5));
}

/* Smaller on scroll */
nav.scrolled .nav-logo-img {
  height: 56px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-logo-img { height: 52px; }
}
@media (max-width: 480px) {
  .nav-logo-img { height: 42px; }
}
