/* ==========================================================================
   MachineLab Fitness — custom.css
   Style: dark-bold. Colors from site.branding.colors (site.json).
   Heading font (Oswald) is loaded from Google Fonts in base.njk.
   ========================================================================== */

:root {
  /* Brand colors (site.branding.colors) */
  --wh-primary: #2a2f30;      /* charcoal: nav, footer, cards, modal */
  --wh-secondary: #0b3a85;    /* MachineLab blue: buttons, accents, bands */
  --wh-accent: #ffffff;
  --wh-bg: #1a1d1e;           /* page background */
  --wh-text: #f3f4f6;

  /* Derived tokens */
  --wh-text-muted: #a7adb3;
  --wh-secondary-hover: #0a3175;
  --wh-link: #8fb4f2;         /* readable blue on dark backgrounds */
  --wh-link-hover: #b9d0f7;
  --wh-surface: #22272a;      /* alternate section background */
  --wh-border: rgba(255, 255, 255, 0.12);
  --wh-overlay: rgba(0, 0, 0, 0.6);
  --wh-cta: #F87030;          /* call-to-action orange (client request, matches Lanier) */
  --wh-cta-hover: #d95e20;
  --wh-cta-text: #1a1d1e;     /* near-black on orange for contrast */

  --wh-font-heading: "Oswald", "Arial Narrow", sans-serif;
  --wh-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Bootstrap overrides */
  --bs-body-bg: var(--wh-bg);
  --bs-body-color: var(--wh-text);
  --bs-body-font-family: var(--wh-font-body);
  --bs-link-color: var(--wh-link);
  --bs-link-color-rgb: 143, 180, 242;
  --bs-link-hover-color: var(--wh-link-hover);
  --bs-link-hover-color-rgb: 185, 208, 247;
  --bs-border-color: var(--wh-border);
  --bs-primary: var(--wh-secondary);
  --bs-primary-rgb: 11, 58, 133;
}

[data-bs-theme="dark"] {
  --bs-body-bg: var(--wh-bg);
  --bs-body-color: var(--wh-text);
  --bs-secondary-color: var(--wh-text-muted);
  --bs-link-color: var(--wh-link);
  --bs-link-hover-color: var(--wh-link-hover);
}

body {
  background-color: var(--wh-bg);
  color: var(--wh-text);
  font-family: var(--wh-font-body);
}

/* Headings ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.wh-heading {
  font-family: var(--wh-font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--wh-accent);
}

.wh-text-muted { color: var(--wh-text-muted); }
.wh-eyebrow {
  font-family: var(--wh-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--wh-link);
}

/* Buttons ----------------------------------------------------------------- */
.btn-primary {
  --bs-btn-bg: var(--wh-secondary);
  --bs-btn-border-color: var(--wh-secondary);
  --bs-btn-color: var(--wh-accent);
  --bs-btn-hover-bg: var(--wh-secondary-hover);
  --bs-btn-hover-border-color: var(--wh-secondary-hover);
  --bs-btn-hover-color: var(--wh-accent);
  --bs-btn-active-bg: var(--wh-secondary-hover);
  --bs-btn-active-border-color: var(--wh-secondary-hover);
  --bs-btn-focus-shadow-rgb: 11, 58, 133;
  font-family: var(--wh-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.btn-outline-light {
  font-family: var(--wh-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navbar ------------------------------------------------------------------ */
.wh-navbar {
  background-color: var(--wh-primary);
  border-bottom: 3px solid var(--wh-secondary);
}
.wh-navbar .nav-link {
  font-family: var(--wh-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wh-text);
}
.wh-navbar .nav-link:hover,
.wh-navbar .nav-link:focus,
.wh-navbar .nav-link.active {
  color: var(--wh-link);
}
.wh-navbar .dropdown-item { color: var(--wh-text); }
.wh-navbar .dropdown-item.active,
.wh-navbar .dropdown-item:hover { background-color: var(--wh-secondary); color: var(--wh-accent); }

/* Hero -------------------------------------------------------------------- */
.wh-hero { color: var(--wh-accent); }
.wh-hero h1 { color: var(--wh-accent); }
.wh-hero .lead { color: var(--wh-text); }

/* Sections ---------------------------------------------------------------- */
.wh-section { padding: 4rem 0; }
.wh-section-alt { background-color: var(--wh-surface); }
.wh-band {
  background-color: var(--wh-secondary);
  color: var(--wh-accent);
}
.wh-band h2, .wh-band h3 { color: var(--wh-accent); }

/* Cards ------------------------------------------------------------------- */
.wh-card {
  background-color: var(--wh-primary);
  color: var(--wh-text);
  border: 1px solid var(--wh-border);
  border-radius: 0.5rem;
  height: 100%;
}
.wh-card-featured { border: 2px solid var(--wh-secondary); }
.wh-price {
  font-family: var(--wh-font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--wh-accent);
}

/* Tables ------------------------------------------------------------------ */
.wh-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--wh-text);
  --bs-table-border-color: var(--wh-border);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  color: var(--wh-text);
}
.wh-table th {
  font-family: var(--wh-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wh-text-muted);
  font-weight: 500;
}
.wh-table td.wh-table-price {
  font-family: var(--wh-font-heading);
  font-size: 1.25rem;
  white-space: nowrap;
  text-align: right;
  color: var(--wh-accent);
}

/* Forms ------------------------------------------------------------------- */
.form-control,
.form-select {
  background-color: var(--wh-bg);
  color: var(--wh-text);
  border-color: var(--wh-border);
}
.form-control:focus,
.form-select:focus {
  background-color: var(--wh-bg);
  color: var(--wh-text);
  border-color: var(--wh-link);
  box-shadow: 0 0 0 0.2rem rgba(11, 58, 133, 0.45);
}
.form-control::placeholder { color: var(--wh-text-muted); opacity: 1; }

/* Embeds ------------------------------------------------------------------ */
.wh-embed {
  width: 100%;
  border: 0;
  border-radius: 0.5rem;
  background-color: var(--wh-accent);
}

/* Footer ------------------------------------------------------------------ */
.wh-footer {
  background-color: var(--wh-primary);
  color: var(--wh-text);
  border-top: 3px solid var(--wh-secondary);
}
.wh-footer a { color: var(--wh-text); text-decoration: none; }
.wh-footer a:hover { color: var(--wh-link); }
.wh-social a { font-size: 1.35rem; margin-right: 0.85rem; }

/* Home page components ---------------------------------------------------- */
.wh-band .lead { color: var(--wh-accent); }
.wh-icon { font-size: 2rem; color: var(--wh-link); }
.wh-btn-on-band {
  --bs-btn-color: var(--wh-secondary);
  --bs-btn-hover-color: var(--wh-secondary);
  font-family: var(--wh-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wh-gallery-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* Schedule embed ---------------------------------------------------------- */
.wh-embed-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wh-embed-schedule {
  display: block;
  min-width: 600px;
  height: 920px;
}

/* Contact page ------------------------------------------------------------ */
.wh-contact-list li {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.wh-contact-list .bi {
  font-size: 1.2rem;
  color: var(--wh-link);
  line-height: 1.5;
}
.wh-map {
  display: block;
  height: 420px;
  background-color: var(--wh-surface);
}
@media (max-width: 575.98px) {
  .wh-price { font-size: 1.85rem; }
  .wh-card.p-4 { padding: 1rem !important; }
}

/* Call-to-action buttons (Get Started, form submits) ----------------------- */
.btn-wh-cta {
  --bs-btn-bg: var(--wh-cta);
  --bs-btn-border-color: var(--wh-cta);
  --bs-btn-color: var(--wh-cta-text);
  --bs-btn-hover-bg: var(--wh-cta-hover);
  --bs-btn-hover-border-color: var(--wh-cta-hover);
  --bs-btn-hover-color: var(--wh-cta-text);
  --bs-btn-active-bg: var(--wh-cta-hover);
  --bs-btn-active-border-color: var(--wh-cta-hover);
  --bs-btn-active-color: var(--wh-cta-text);
  --bs-btn-disabled-bg: var(--wh-cta);
  --bs-btn-disabled-border-color: var(--wh-cta);
  --bs-btn-disabled-color: var(--wh-cta-text);
  --bs-btn-focus-shadow-rgb: 248, 112, 48;
  font-family: var(--wh-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wh-hero-cta {
  font-size: 1.35rem;
  padding: 0.85rem 2.25rem;
}
