/* ========================================
   Baller2Baller (B2B) Soccer Training
   Modern & Minimal Design System
   ======================================== */

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

:root {
  --bg: #0a0e13;
  --surface: #111820;
  --card: #151c27;
  --card-hover: #1a2233;
  --text: #f0f1f3;
  --text-secondary: #94a3b8;
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --accent-border: rgba(34, 197, 94, 0.4);
  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
img.brand-logo-img { width: 44px !important; height: 44px !important; max-width: 44px !important; object-fit: contain !important; flex-shrink: 0; border-radius: 10px; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding-left: 20px;
  padding-right: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 16px;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #16a34a);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  max-width: 44px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-text p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}

.nav-cta {
  color: var(--accent) !important;
  border-color: var(--accent-border) !important;
  background: var(--accent-glow) !important;
}

.nav-cta:hover {
  background: rgba(34, 197, 94, 0.22) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--accent-border);
  background: var(--accent-glow);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: rgba(34, 197, 94, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* ---- Sections ---- */
.section {
  padding: 64px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  max-width: 600px;
}

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

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Hero (Home Page) ---- */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 24px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

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

.badge {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---- Image Containers ---- */
.image-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame.tall { aspect-ratio: 3 / 4; }
.image-frame.square { aspect-ratio: 1; }
.image-frame.wide { aspect-ratio: 16 / 9; }

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-align: center;
  padding: 24px;
  gap: 8px;
}

.image-placeholder .icon {
  font-size: 32px;
  opacity: 0.4;
}

.image-placeholder p {
  font-size: 13px;
  opacity: 0.7;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 16px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
}

.card-icon.purple {
  background: var(--purple-glow);
  border-color: rgba(139, 92, 246, 0.3);
}

.card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Split Layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

/* ---- Coach Bio Cards (About Page) ---- */
.coach-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.coach-image {
  aspect-ratio: 1 / 1.04;
  background: rgba(255, 255, 255, 0.02);
  position: relative;
  overflow: hidden;
}

.coach-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coach-info {
  padding: 24px;
}

.coach-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.coach-role {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.coach-bio {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

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

/* ---- Info Page ---- */
.info-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}

.info-block:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.info-block.reverse {
  direction: rtl;
}

.info-block.reverse > * {
  direction: ltr;
}

.info-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.info-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.info-list {
  list-style: none;
  margin-top: 16px;
}

.info-list li {
  color: var(--text-secondary);
  font-size: 14px;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ---- Signup / Embed Page ---- */
.embed-section {
  margin-bottom: 48px;
}

.embed-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.embed-container {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  min-height: 500px;
  position: relative;
}

.embed-container iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: none;
  display: block;
}

.embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: var(--text-secondary);
  text-align: center;
  padding: 40px;
  gap: 12px;
}

.embed-placeholder .embed-icon {
  font-size: 48px;
  opacity: 0.3;
}

.embed-placeholder h4 {
  font-size: 18px;
  color: var(--text);
}

.embed-placeholder p {
  font-size: 14px;
  max-width: 400px;
}

.embed-placeholder code {
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--accent);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: 60px 0 32px;
  text-align: center;
}

.page-hero h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

/* ---- CTA Block ---- */
.cta-block {
  text-align: center;
  padding: 64px 24px;
}

.cta-block h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-block p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.cta-block .btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.3);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-sm { gap: 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row-center { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 36px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse { direction: ltr; }
  .card-grid { grid-template-columns: 1fr; }
  .coaches-grid { grid-template-columns: 1fr; }
  .info-block { grid-template-columns: 1fr; gap: 24px; }
  .info-block.reverse { direction: ltr; }
  .page-hero h2 { font-size: 30px; }
  .section { padding: 40px 0; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 8px;
  }
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .hero-title { font-size: 30px; }
  .hero-text { font-size: 15px; }
}
