/* My Training Studio brand tokens.
 *
 * Single source of truth shared between this static marketing site and the
 * mts-app control plane (the login + platform-admin shell at
 * app.mytrainingstudio.com). Tenant pages override these via per-studio
 * BrandSettings; only the unbranded MTS surfaces should look like this.
 */

:root {
  /* Brand */
  --primary: #5B9BDE;        /* Studio Blue: primary action */
  --primary-dark: #3D7BBE;   /* Blue Dark: hover/active */
  --accent: #7BB4E8;         /* Blue Light: highlight, brand-text accent */
  --navy: #1B2540;           /* Brand Navy: nav background base */
  --deep-navy: #131C30;      /* Deep Navy: deeper variant for shadows/depth */
  --white: #FFFFFF;

  /* Neutrals */
  --black: #080C12;
  --gray-900: #1A1A1F;       /* near-black, dark UI surfaces */
  --gray-700: #3A3D47;       /* borders, dividers */
  --gray-500: #6B7280;       /* placeholder text, muted labels */
  --gray-300: #A8AEBB;       /* disabled states, subtle borders */
  --gray-100: #E8ECF4;       /* light backgrounds, input fills */

  /* Semantic aliases — keep working for existing styles. */
  --dark: var(--gray-900);
  --light: var(--gray-100);
  --neutral: var(--gray-500);
  --nav-bg: rgba(27, 37, 64, 0.95);  /* --navy at 95% */

  /* Fonts */
  --font-header: 'Montserrat', -apple-system, sans-serif;
  --font-subheader: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand-weight: 600;
}


/* =====================================================================
 * Reset / typography
 * ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}


/* =====================================================================
 * Top navigation (fixed dark navy bar with brand-accent border)
 * ===================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(8px);
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 2px solid var(--accent);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: var(--font-brand-weight);
  color: var(--white);
  letter-spacing: 1px;
}
.nav-brand img { display: block; height: 40px; width: auto; max-height: calc(100% - 12px); }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: filter 0.2s !important;
}
.nav-cta:hover { filter: brightness(0.92); color: var(--white) !important; }
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
}
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: color 0.2s;
}
.nav-dropdown-trigger:hover, .nav-dropdown:hover .nav-dropdown-trigger { color: var(--accent); }
.nav-dropdown-trigger i { font-size: 0.65rem; opacity: 0.7; }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--navy); border: 1px solid var(--accent); border-radius: 8px;
  min-width: 240px; padding: 0.5rem 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(2px);
}
.nav-dropdown.open .nav-dropdown-trigger i { transform: rotate(180deg); }
.nav-dropdown-trigger i { transition: transform 0.18s ease; }
.nav-dropdown-menu::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: var(--accent);
}
.nav-dropdown-menu a {
  display: block; padding: 0.55rem 1.2rem;
  color: rgba(255, 255, 255, 0.85); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--accent); }
.nav-dropdown-menu hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 0.4rem 0; }
.nav-dropdown-menu a.menu-all { color: var(--accent); font-weight: 600; }


/* =====================================================================
 * Buttons
 * ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 8px;
  font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { filter: brightness(0.92); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }


/* =====================================================================
 * Section primitives
 * ===================================================================== */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--font-subheader);
  font-size: 0.8rem; font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-header);
  font-size: 2.4rem; color: var(--navy);
  margin-bottom: 1rem; line-height: 1.2;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--neutral);
  max-width: 600px; line-height: 1.7;
}


/* =====================================================================
 * Footer
 * ===================================================================== */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 2rem;
  text-align: center;
  font-size: 0.85rem;
}
.footer-brand {
  font-family: var(--font-header);
  font-size: 1.3rem; color: var(--white);
  margin-bottom: 0.5rem;
  font-weight: var(--font-brand-weight);
}
.footer-brand img { display: inline-block; height: 32px; width: auto; }
.footer-brand span { color: var(--accent); }
.footer p { margin-top: 0.5rem; }


/* =====================================================================
 * Responsive: collapse nav at <=768px. Page-specific responsive rules
 * stay inline in their own pages.
 * ===================================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--navy);
    padding: 1.5rem 2rem; gap: 1rem;
    border-bottom: 2px solid var(--accent);
  }
  .nav-toggle { display: block; }
  .nav-brand img { height: 28px; }
  .footer-brand img { height: 26px; }
  section { padding: 3.5rem 1.5rem; }
  .section-title { font-size: 1.8rem; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger i { display: none; }
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: none; box-shadow: none;
    padding: 0.4rem 0 0 1rem; min-width: 0;
    transition: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu {
    transform: none;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu a { padding: 0.35rem 0; font-size: 0.85rem; }
  .nav-dropdown-menu hr { display: none; }
}

