/* ─── RESET & VARIABLES ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:         #0A0A0A;
  --bg2:        #111111;
  --bg3:        #1C1C1C;
  --orange:     #FF5500;
  --orange-dim: rgba(255, 85, 0, 0.12);
  --white:      #F0F0F0;
  --muted:      #6B6B6B;
  --border:     rgba(255, 255, 255, 0.07);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius: 6px;
  --max:    1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, select { font-family: var(--font-body); font-size: 15px; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

/* ─── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 20px;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--white);
  flex-shrink: 0;
}

.logo span { color: var(--orange); }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover  { color: var(--white); }
.nav-links .nav-cta { color: var(--orange); font-weight: 600; }

.lang-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ─── HERO ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.25) 0%,
    rgba(10, 10, 10, 0.55) 45%,
    rgba(10, 10, 10, 0.97) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

/* Signature element: two-line condensed headline
   Line 1 = white solid, Line 2 = orange — creates athletic stamp effect */
.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(64px, 14vw, 152px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.hero-title .line1 { color: var(--white); }
.hero-title .line2 { color: var(--orange); }

.hero-sub {
  font-size: 15px;
  color: rgba(240, 240, 240, 0.65);
  max-width: 440px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── SECTIONS COMMON ───────────────────────────────────── */
section { padding: 80px 0; }

.section-header { margin-bottom: 48px; }

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.section-sub {
  color: var(--muted);
  margin-top: 12px;
  font-size: 15px;
}

/* ─── PROGRAMS ──────────────────────────────────────────── */
#programs { background: var(--bg2); }

.programs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.program-card {
  background: var(--bg);
  padding: 28px 22px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.program-card:hover { background: var(--bg3); }

.program-icon {
  font-size: 34px;
  margin-bottom: 14px;
  line-height: 1;
}

.program-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.program-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── PRICING ───────────────────────────────────────────── */
#pricing { background: var(--bg); }

.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pricing-card {
  background: var(--bg2);
  padding: 32px 28px;
  border-radius: var(--radius);
  position: relative;
}

.pricing-card.featured {
  border: 1px solid var(--orange);
  background: var(--bg3);
}

.plan-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-dim);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}

.plan-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 24px;
}

.plan-price span {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-features li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-plan {
  width: 100%;
  padding: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.btn-plan:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.featured-btn {
  background: var(--orange);
  border-color: var(--orange);
}

.featured-btn:hover {
  background: #e04a00;
  border-color: #e04a00;
}

/* ─── TRAINERS ──────────────────────────────────────────── */
#trainers { background: var(--bg2); }

.trainers-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trainer-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.trainer-card:hover { background: var(--bg3); }

.trainer-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--bg3);
}

.trainer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.trainer-spec {
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
}

/* ─── TRIAL FORM ────────────────────────────────────────── */
#trial { background: var(--bg); }

.form-wrap { max-width: 560px; }

.trial-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trial-form input,
.trial-form select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.trial-form input:focus,
.trial-form select:focus {
  border-color: var(--orange);
}

.trial-form input::placeholder { color: var(--muted); }
.trial-form select { color: var(--muted); }
.trial-form select option { background: var(--bg2); color: var(--white); }

.btn-submit {
  padding: 16px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: opacity 0.2s;
  width: 100%;
}

.btn-submit:hover { opacity: 0.9; }

.form-success {
  text-align: center;
  padding: 52px 32px;
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 85, 0, 0.25);
}

.success-icon {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 16px;
  line-height: 1;
}

.form-success p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--bg2);
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: 0.05em;
}

.footer-brand span { color: var(--orange); }

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-info p {
  font-size: 14px;
  color: var(--muted);
}

.footer-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.18);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ─── WIDGET ────────────────────────────────────────────── */
.widget-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
}

.widget-btn {
  width: 60px;
  height: 60px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(255, 85, 0, 0.55);
}

.widget-icon { font-size: 26px; line-height: 1; }

.widget-box {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  width: min(360px, calc(100vw - 32px));
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  flex-direction: column;
}

.widget-box.open { display: flex; }

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.widget-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2.2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.widget-close {
  color: var(--muted);
  font-size: 16px;
  transition: color 0.2s;
  padding: 4px;
}

.widget-close:hover { color: var(--white); }

.widget-messages {
  height: 290px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.widget-messages::-webkit-scrollbar { width: 4px; }
.widget-messages::-webkit-scrollbar-track { background: transparent; }
.widget-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.msg.bot {
  background: var(--bg3);
  color: var(--white);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.msg.user {
  background: var(--orange);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.widget-input-wrap {
  display: flex;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.widget-input-wrap input {
  flex: 1;
  padding: 12px 14px;
  background: var(--bg2);
  border: none;
  color: var(--white);
  outline: none;
  font-size: 14px;
}

.widget-input-wrap input::placeholder { color: var(--muted); }

#widgetSend {
  padding: 0 18px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 700;
  transition: opacity 0.2s;
  border-left: 1px solid var(--border);
}

#widgetSend:hover   { opacity: 0.7; }
#widgetSend:disabled { opacity: 0.3; cursor: default; }

/* ─── MODAL ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  max-width: 340px;
  width: 100%;
  position: relative;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--muted);
  font-size: 18px;
  transition: color 0.2s;
  padding: 4px;
}

.modal-close:hover { color: var(--white); }

.modal-icon {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.modal-text {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ─── DESKTOP ────────────────────────────────────────────── */
@media (min-width: 540px) {
  .form-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }

  .programs-grid { grid-template-columns: repeat(4, 1fr); }

  .pricing-grid {
    flex-direction: row;
    align-items: stretch;
  }
  .pricing-card { flex: 1; }

  .trainers-grid { flex-direction: row; }

  .trainer-card {
    flex-direction: column;
    text-align: center;
    flex: 1;
    padding: 28px 20px;
  }

  .trainer-img {
    width: 110px;
    height: 110px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-note {
    border-top: none;
    padding-top: 0;
    align-self: flex-end;
  }
}

@media (min-width: 1024px) {
  #hero { padding-bottom: 100px; }
  section { padding: 100px 0; }
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .widget-dot { animation: none; opacity: 1; }
  .btn-primary:hover, .widget-btn:hover { transform: none; }
}
