/* ============================================================
   MATCH POINT – Global Styles
   Design System: "The Heritage Athlete"
   Primary: #00113a | Accent: #d4f000
   ============================================================ */

:root {
  --primary: #00113a;
  --primary-container: #002366;
  --secondary-container: #d4f000;
  --on-secondary-fixed: #191e00;
  --surface: #f9f9f9;
  --surface-low: #f3f3f3;
  --surface-lowest: #ffffff;
  --surface-high: #e8e8e8;
  --on-surface: #1a1c1c;
  --on-surface-variant: #444650;
  --tertiary-container: #0e2f18;
  --tertiary-fixed: #c6ecc9;
  --outline-variant: #c5c6d2;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-low); }
::-webkit-scrollbar-thumb { background: var(--primary-container); border-radius: 99px; }

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }

/* ── Material Symbols ── */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
.material-symbols-filled {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}

/* ── Navigation ── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0,17,58,0.06);
  transition: box-shadow 0.3s ease;
}
#main-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,17,58,0.10);
}
.nav-link {
  font-family: 'Lexend', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-link:hover { color: var(--primary-container); }
.nav-link.active {
  color: var(--primary-container);
  border-bottom-color: var(--secondary-container);
}

/* ── Dropdown Menu ── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-toggle {
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 1.25rem;
  cursor: pointer;
}
.nav-dropdown-toggle .material-symbols-outlined {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle .material-symbols-outlined {
  transform: translateY(-50%) rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0,17,58,0.12);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.675rem 1.25rem;
  font-family: 'Lexend', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown-menu a:hover {
  background: var(--surface-low);
  color: var(--primary-container);
}
.nav-dropdown-menu a.active {
  color: var(--primary-container);
}

/* ── Mobile Menu ── */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--primary);
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
}
#mobile-menu.open { display: flex; }
#mobile-menu .nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
#mobile-menu .nav-link:hover,
#mobile-menu .nav-link.active { color: var(--secondary-container); border-bottom-color: var(--secondary-container); }
#mobile-menu .mobile-submenu {
  display: none;
  padding-left: 1.25rem;
  flex-direction: column;
  gap: 1rem;
}
#mobile-menu .mobile-submenu.open { display: flex; }
#mobile-menu .mobile-submenu .nav-link {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.5);
}
#mobile-menu .mobile-submenu .nav-link:hover { color: var(--secondary-container); }
.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
}
.mobile-dropdown-toggle .material-symbols-outlined {
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  transition: transform 0.25s ease;
}
.mobile-dropdown-toggle.open .material-symbols-outlined {
  transform: rotate(180deg);
}
#hamburger { cursor: pointer; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-container);
  color: #fff;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.875rem 1.75rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-primary:hover { opacity: 0.9; transform: scale(1.02); }
.btn-primary:active { transform: scale(0.97); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--secondary-container);
  color: var(--on-secondary-fixed);
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.875rem 1.75rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-accent:hover { transform: scale(1.03); box-shadow: 0 8px 32px rgba(212,240,0,0.3); }
.btn-accent:active { transform: scale(0.97); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: #fff;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.875rem 1.75rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ── Hero ── */
.hero-gradient {
  background: linear-gradient(135deg, #00113a 0%, #002366 100%);
}

/* ── Section Label ── */
.section-label {
  font-family: 'Lexend', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary-container);
}

/* ── Chip/Badge ── */
.chip {
  display: inline-block;
  background: var(--tertiary-container);
  color: var(--tertiary-fixed);
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.625rem;
  border-radius: 0.125rem;
}

/* ── Product Cards ── */
.product-card {
  background: var(--surface-lowest);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,17,58,0.1);
}
.product-card img {
  transition: transform 0.6s ease;
}
.product-card:hover img { transform: scale(1.04); }

/* ── Bento Cards ── */
.bento-card {
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
}
.bento-card img {
  transition: transform 0.7s ease;
}
.bento-card:hover img { transform: scale(1.06); }

/* ── Stats ── */
.stat-number {
  font-family: 'Lexend', sans-serif;
  font-weight: 900;
  line-height: 1;
  color: var(--primary-container);
}

/* ── Testimonial ── */
.star { color: #f59e0b; }

/* ── WhatsApp Float ── */
#whatsapp-fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}
#whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37,211,102,0.5);
}
#whatsapp-fab svg { width: 1.75rem; height: 1.75rem; fill: #fff; }

/* ── Footer ── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
}
footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--secondary-container); }
.footer-heading {
  font-family: 'Lexend', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--secondary-container);
  margin-bottom: 1rem;
}

/* ── Form ── */
.form-field {
  width: 100%;
  background: var(--surface-high);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0.25rem 0.25rem 0 0;
  padding: 0.875rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-field:focus { border-bottom-color: var(--primary-container); }
.form-field::placeholder { color: var(--on-surface-variant); font-size: 0.85rem; }
.form-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
  margin-bottom: 0.375rem;
}

/* ── Shop Sidebar ── */
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--on-surface);
}
.filter-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-container);
}

/* ── Timeline ── */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.625rem;
  top: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--secondary-container);
}
.timeline-line {
  position: absolute;
  left: -1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--secondary-container), var(--primary-container));
}

/* ── Utility ── */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.overlay-dark { background: linear-gradient(to top, rgba(0,17,58,0.92) 0%, rgba(0,17,58,0.2) 60%, transparent 100%); }
.overlay-left { background: linear-gradient(to right, rgba(0,17,58,0.85) 0%, rgba(0,17,58,0.4) 50%, transparent 100%); }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Responsive helpers ── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .pt-nav { padding-top: 5rem; }
}
@media (min-width: 769px) {
  .show-mobile { display: none !important; }
  .pt-nav { padding-top: 6rem; }
}

/* ── Divider accent ── */
.accent-bar {
  width: 3rem;
  height: 4px;
  background: var(--secondary-container);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ── Image aspect helpers ── */
.aspect-hero { aspect-ratio: 16/7; object-fit: cover; }
.aspect-card { aspect-ratio: 4/3; object-fit: cover; }
.aspect-sq   { aspect-ratio: 1/1; object-fit: cover; }
