/* ============================================
   SFGym24h Partners — B2B Landing Page
   Mobile-first, SFGym24h branding
   ============================================ */

/* --- Roboto Variable Font (self-hosted, GDPR) --- */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/roboto-variable-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/roboto-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Variables --- */
:root {
  --sfgym-dark: #0f2027;
  --sfgym-dark-lighter: #1a2f38;
  --sfgym-teal: #1783A6;
  --sfgym-teal-light: #1e9dc4;
  --sfgym-red: #e53935;
  --sfgym-red-light: #ef5350;
  --sfgym-white: #ffffff;
  --sfgym-gray-50: #f8f9fa;
  --sfgym-gray-100: #f1f3f5;
  --sfgym-gray-200: #e9ecef;
  --sfgym-gray-400: #ced4da;
  --sfgym-gray-600: #868e96;
  --sfgym-gray-700: #495057;
  --sfgym-gray-800: #343a40;
  --sfgym-gray-900: #212529;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--sfgym-gray-800);
  background: var(--sfgym-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-chip {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: rgba(23, 131, 166, 0.1);
  color: var(--sfgym-teal);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sfgym-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--sfgym-gray-600);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--transition), transform 0.6s var(--transition);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   1. NAVBAR
   ============================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 32, 39, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 36px;
  width: auto;
}

.navbar-brand span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sfgym-white);
  letter-spacing: 1px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover {
  color: var(--sfgym-white);
}

/* Language selector */
.lang-selector {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.lang-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

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

.lang-btn.active {
  background: var(--sfgym-teal);
  border-color: var(--sfgym-teal);
  color: var(--sfgym-white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sfgym-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   2. HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15,32,39,0.95), rgba(23,131,166,0.85));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(23,131,166,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(229,57,53,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
}

.hero-chip {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 24px;
  background: rgba(23, 131, 166, 0.2);
  border: 1px solid rgba(23, 131, 166, 0.4);
  color: var(--sfgym-teal-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--sfgym-white);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 720px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--sfgym-teal-light), var(--sfgym-red-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--sfgym-teal);
  color: var(--sfgym-white);
}

.btn-primary:hover {
  background: var(--sfgym-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23,131,166,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--sfgym-white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--sfgym-white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 640px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sfgym-white);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* ============================
   3. PROBLEM / OPPORTUNITY (3 cards)
   ============================ */
.problem {
  background: var(--sfgym-gray-50);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--sfgym-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--sfgym-red);
  transition: transform var(--transition), box-shadow var(--transition);
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.problem-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  background: rgba(229, 57, 53, 0.1);
  color: var(--sfgym-red);
}

.problem-card:nth-child(2) .problem-icon { background: rgba(230,81,0,0.1); color: #e65100; }
.problem-card:nth-child(2) { border-top-color: #e65100; }
.problem-card:nth-child(3) .problem-icon { background: rgba(123,31,162,0.1); color: #7b1fa2; }
.problem-card:nth-child(3) { border-top-color: #7b1fa2; }

.problem-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sfgym-dark);
  margin-bottom: 10px;
}

.problem-desc {
  font-size: 0.93rem;
  color: var(--sfgym-gray-600);
  line-height: 1.6;
}

/* ============================
   4. HOW IT WORKS (4 steps)
   ============================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line behind steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 3px;
  background: var(--sfgym-gray-200);
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sfgym-teal);
  color: var(--sfgym-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(23, 131, 166, 0.3);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(23, 131, 166, 0.2);
}

.step-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sfgym-dark);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.88rem;
  color: var(--sfgym-gray-600);
  line-height: 1.5;
  max-width: 240px;
}

/* ============================
   5. BUSINESS METRICS (6 cards)
   ============================ */
.metrics {
  background: var(--sfgym-gray-50);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metric-card {
  background: var(--sfgym-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--sfgym-teal);
  transition: transform var(--transition), box-shadow var(--transition);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.metric-card:nth-child(2) { border-left-color: var(--sfgym-red); }
.metric-card:nth-child(3) { border-left-color: #2e7d32; }
.metric-card:nth-child(4) { border-left-color: #7b1fa2; }
.metric-card:nth-child(5) { border-left-color: #e65100; }
.metric-card:nth-child(6) { border-left-color: #01579b; }

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--sfgym-teal);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-card:nth-child(2) .metric-value { color: var(--sfgym-red); }
.metric-card:nth-child(3) .metric-value { color: #2e7d32; }
.metric-card:nth-child(4) .metric-value { color: #7b1fa2; }
.metric-card:nth-child(5) .metric-value { color: #e65100; }
.metric-card:nth-child(6) .metric-value { color: #01579b; }

.metric-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sfgym-dark);
  margin-bottom: 8px;
}

.metric-desc {
  font-size: 0.88rem;
  color: var(--sfgym-gray-600);
  line-height: 1.5;
}

.metric-source {
  font-size: 0.75rem;
  color: var(--sfgym-gray-400);
  margin-top: 10px;
  font-style: italic;
}

/* ============================
   6. BUSINESS MODEL (3 cards)
   ============================ */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.model-card {
  background: var(--sfgym-white);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sfgym-gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sfgym-teal);
}

.model-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.model-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--sfgym-dark);
  margin-bottom: 12px;
}

.model-card p {
  font-size: 0.93rem;
  color: var(--sfgym-gray-600);
  line-height: 1.6;
}

/* ============================
   7. CONTACT CTA
   ============================ */
.contact-cta {
  background: linear-gradient(135deg, var(--sfgym-dark) 0%, var(--sfgym-dark-lighter) 50%, var(--sfgym-teal) 100%);
  padding: 80px 0;
  text-align: center;
}

.contact-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sfgym-white);
  margin-bottom: 16px;
}

.contact-cta p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-email {
  background: var(--sfgym-white);
  color: var(--sfgym-dark);
}

.btn-email:hover {
  background: var(--sfgym-gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--sfgym-white);
}

.btn-whatsapp:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

/* ============================
   8. FOOTER
   ============================ */
.footer {
  background: var(--sfgym-dark);
  padding: 48px 0 24px;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sfgym-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--sfgym-teal-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--sfgym-teal-light);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

/* ============================
   RESPONSIVE
   ============================ */

/* Tablet */
@media (max-width: 992px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 1.75rem; }
  .hero-title { font-size: 2.2rem; }

  .problem-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 0;
  }

  .steps-grid::before { display: none; }

  .model-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--sfgym-dark);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    font-size: 1.05rem;
  }

  .lang-selector {
    margin-left: 0;
    margin-top: 16px;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hero-content { padding: 100px 0 60px; }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1.05rem; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { justify-content: center; }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .hero-stat-value { font-size: 1.5rem; }

  .problem-grid,
  .metrics-grid,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-grid::before { display: none; }

  .contact-cta h2 { font-size: 1.6rem; }
  .contact-buttons { flex-direction: column; align-items: stretch; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand { grid-column: auto; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
  .hero-stat-value { font-size: 1.3rem; }
}
