/* ==========================================================================
   FIRM FITNESS FACTORY (FFF) — BLACK & SILVER THEME
   Design System & Editorial Styles (Pure Vanilla CSS)
   ========================================================================== */

:root {
  --bg-primary: #080808;
  --bg-secondary: #0D0D0E;
  --bg-card: #121214;
  --bg-card-hover: #18181B;
  --text-main: #F4F4F6;
  --text-muted: #94949E;
  --accent: #E2E8F0;
  --accent-silver: #CBD5E1;
  --accent-glow: rgba(226, 232, 240, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(226, 232, 240, 0.4);
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  width: 100vw;
}

/* Custom Scrollbar (Silver Thumb) */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #080808;
}
::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #A1A1AA;
}

/* Selection */
::selection {
  background-color: #E2E8F0;
  color: #080808;
}

/* Typography Classes */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.micro-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.micro-label-accent {
  color: #CBD5E1;
}

/* Metallic Silver Gradients */
.text-silver-metallic {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 45%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-silver-metallic {
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 50%, #94A3B8 100%);
}

.border-silver-glow {
  border-color: rgba(226, 232, 240, 0.35);
  box-shadow: 0 0 15px rgba(226, 232, 240, 0.15);
}

/* Hero Typography Responsive Fitting */
.hero-title-responsive {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
  font-size: clamp(2.2rem, 9vw, 7.5rem);
}

.hero-word-nowrap {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
}

@media (max-width: 480px) {
  .hero-title-responsive {
    font-size: clamp(1.75rem, 8.2vw, 2.75rem);
    letter-spacing: -0.02em;
    line-height: 1.0;
  }

  .micro-label {
    letter-spacing: 0.12em;
    font-size: 0.62rem;
  }
}

/* Editorial Button System (Silver & Black) */
.btn-editorial {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background-color: #F4F4F6;
  color: #080808;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-editorial:hover {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.25);
}

.btn-editorial-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 60%, #94A3B8 100%);
  color: #080808;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-editorial-accent:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.35);
}

.btn-editorial-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background-color: transparent;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-editorial-ghost:hover {
  border-color: #E2E8F0;
  background-color: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Editorial Cards */
.editorial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.editorial-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.8);
}

/* Image & Video Containers */
.img-zoom-container {
  overflow: hidden;
  position: relative;
}

.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.editorial-card:hover .img-zoom-container img {
  transform: scale(1.05);
}

/* Natural Original Aspect Ratio for all non-hero videos */
.video-natural {
  width: 100%;
  height: auto;
  object-fit: contain !important;
  max-height: 80vh;
  background-color: #040404;
}

/* Layout Container */
.site-container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .site-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Glassmorphism Video Player Styles (Silver/Steel Tint) */
.glass-panel {
  background: rgba(18, 18, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.glass-button {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.2);
  color: #F4F4F6;
  transition: all 0.3s ease;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  transform: scale(1.05);
}

.video-progress-bar {
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.video-progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #E2E8F0;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

/* AI Chatbot Widget Styles */
.ai-chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1rem;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 500px;
  z-index: 997;
  background: #121214;
  border: 1px solid rgba(226, 232, 240, 0.25);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-bubble-user {
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
  color: #080808;
  border-radius: 12px 12px 2px 12px;
  align-self: flex-end;
  font-weight: 700;
}

.chat-bubble-ai {
  background-color: rgba(255, 255, 255, 0.06);
  color: #F4F4F6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 12px 2px;
  align-self: flex-start;
}

/* Modal Overlay Base */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 998;
  background-color: #080808;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 2rem 2rem 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.active {
  transform: translateY(0);
}
