/* ============================================================================
   WEST COAST ATHLETICS — component.css
   Reusable UI components: buttons, links, badges/pills, cards, forms,
   media wells, and the marked placeholder system. Loaded on every page.
   ============================================================================ */

/* ---------------------------------------------------------------------------
   BUTTONS — Oswald 600, 14px, White on Crimson
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    transform var(--ease);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--c-crimson);
  color: var(--c-on-accent);
  border-color: var(--c-crimson);
}
.btn--primary:hover,
.btn--primary:focus {
  background: var(--c-crimson-lt);
  border-color: var(--c-crimson-lt);
  color: var(--c-on-accent);
}

.btn--outline {
  background: transparent;
  color: var(--c-white);
  border-color: var(--c-crimson);
}
.btn--outline:hover,
.btn--outline:focus {
  background: var(--c-crimson);
  color: var(--c-on-accent);
}

/* Full-width buttons (inside cards/tiers) wrap instead of clipping long labels */
.btn--block {
  width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
}
.btn--sm {
  padding: 9px 18px;
  font-size: 12px;
}

/* Header CTA */
.nav-cta {
  padding: 10px 20px;
  font-size: 12px;
}

/* ---------------------------------------------------------------------------
   ARROW LINK
   --------------------------------------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-crimson);
}
.link-arrow::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f061"; /* fa-arrow-right */
  font-size: 12px;
  transition: transform var(--ease);
}
.link-arrow:hover {
  color: var(--c-crimson-lt);
}
.link-arrow:hover::after {
  transform: translateX(4px);
}
/* Downward variant (e.g. hero "See All Programs") */
.link-arrow--down::after {
  content: "\f063";
} /* fa-arrow-down */
.link-arrow--down:hover::after {
  transform: translateY(3px);
}

/* ---------------------------------------------------------------------------
   BADGES / PILLS — Space Mono, Gold
   --------------------------------------------------------------------------- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}
.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--c-crimson);
  background: var(--c-crimson-dim);
  border: 1px solid rgba(242, 217, 82, 0.3);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  white-space: nowrap;
}

/* Inline credential strip (· separated, Space Mono Gold) */
.credential-strip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-crimson);
  line-height: 1.9;
}

/* ---------------------------------------------------------------------------
   CARD
   --------------------------------------------------------------------------- */
.card {
  background: var(--c-charcoal);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition:
    border-color var(--ease),
    transform var(--ease),
    box-shadow var(--ease);
}
.card:hover {
  border-color: var(--c-crimson);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

/* ---------------------------------------------------------------------------
   FORMS
   --------------------------------------------------------------------------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-silver-lt);
}
.form-field input,
.form-field select {
  background: var(--c-black);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--c-white);
  transition: border-color var(--ease);
}
.form-field input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}
.form-field input:focus,
.form-field select:focus {
  border-color: var(--c-crimson);
  outline: none;
}

.form-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: var(--space-sm);
  align-items: end;
}

.form-trust {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-silver);
  margin-top: var(--space-md);
}

@media (max-width: 768px) {
  .form-inline {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------------------
   MEDIA WELL — image dependency marker (design dependency, not final art)
   Distinct from content placeholders; flags where approved imagery goes.
   --------------------------------------------------------------------------- */
.media-well {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background: repeating-linear-gradient(
    45deg,
    var(--c-steel) 0 12px,
    var(--c-charcoal) 12px 24px
  );
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.media-well__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-silver-lt);
  background: rgba(27, 27, 27, 0.75);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ---------------------------------------------------------------------------
   PLACEHOLDER SYSTEM (per project rule)
   Format: [<strong>Placeholder: </strong> dummy content here]
   Holds realistic dummy content in the final voice — distinguished from real
   content by the brackets + bold "Placeholder:" prefix + a muted tone.
   Not a box; reads inline like the copy it stands in for.
   --------------------------------------------------------------------------- */
.placeholder {
  font-family: inherit;
  color: var(--c-crimson); /* brand yellow marker — clearly non-final (auto-darkens on light sections) */
}
.placeholder::before {
  content: "[";
}
.placeholder::after {
  content: "]";
}
.placeholder strong {
  color: var(--c-crimson-lt);
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   GHL EMBED SLOT — GoHighLevel form embed placeholder (reusable across pages)
   --------------------------------------------------------------------------- */
.ghl-embed {
  max-width: 640px;
  margin: var(--space-lg) auto 0;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: var(--space-lg);
  background: var(--c-charcoal);
  border: 1px dashed var(--c-crimson);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------------------
   TESTIMONIAL CARD — reusable (Home Member Results + discipline pages)
   Use as: <article class="card testimonial"> stars · quote · author
   --------------------------------------------------------------------------- */
.testimonial {
  position: relative;
  padding-top: var(--space-lg);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1;
  color: var(--c-crimson);
  opacity: 0.28;
}
.testimonial__stars {
  color: var(--c-crimson);
  font-size: 13px;
  letter-spacing: 2px;
}
.testimonial__quote {
  font-size: 15px;
  line-height: 1.7;
}
.testimonial__author {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--c-silver-lt);
  margin-top: auto;
}

/* ---------------------------------------------------------------------------
   REVIEWS EMBED — wrapper for the Trustindex Google Reviews shortcode
   [trustindex no-registration=google]
   --------------------------------------------------------------------------- */
.reviews-embed {
  margin-block: var(--space-lg);
}

/* ---------------------------------------------------------------------------
   MODERN UPLIFT — component micro-interactions
   --------------------------------------------------------------------------- */

/* Buttons: clipped sweep fill + crimson glow on hover */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-crimson-lt);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(242, 217, 82, 0.35);
  transform: translateY(-2px);
}
.btn--primary:hover::before,
.btn--outline:hover::before {
  transform: translateX(0);
}
.btn--outline:hover {
  color: var(--c-on-accent);
  transform: translateY(-2px);
}

/* Cards: animated crimson top accent + deeper lift */
.card {
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-crimson), var(--c-crimson-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover::after {
  transform: scaleX(1);
}
.card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* Pills: lift + crimson edge on hover */
.pill {
  transition:
    color var(--ease),
    border-color var(--ease),
    background var(--ease),
    transform var(--ease);
}
.pill:hover {
  color: var(--c-crimson-lt);
  border-color: var(--c-crimson);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------------------------
   IMAGE CAROUSEL (shared — Home "A Look Inside"/Transformations, Programs,
   Kids & Youth, About). CSS scroll-snap; JS in assets/js/carousel.js.
   --------------------------------------------------------------------------- */
.carousel {
  position: relative;
  margin-top: var(--space-lg);
}
.carousel__track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar {
  display: none;
} /* WebKit */
.carousel__slide {
  flex: 0 0 auto;
  width: min(420px, 78%);
  margin: 0;
  scroll-snap-align: start;
}
.carousel__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
.carousel__slide figcaption {
  margin-top: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--c-silver);
}
/* Prev/next arrows — literal yellow so they read on both light and dark bands */
.carousel__nav {
  position: absolute;
  top: calc(50% - 14px); /* center on the image, not the caption */
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f2d952;
  color: #1b1b1b;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: opacity var(--ease), transform var(--ease), background var(--ease);
  z-index: 2;
}
/* Font Awesome chevron icons (buttons carry no text) */
.carousel__nav::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 16px;
}
.carousel__nav:hover,
.carousel__nav:focus {
  background: #f6e27e;
}
.carousel__nav--prev {
  left: -10px;
}
.carousel__nav--prev::before {
  content: "\f053"; /* fa-chevron-left */
}
.carousel__nav--next {
  right: -10px;
}
.carousel__nav--next::before {
  content: "\f054"; /* fa-chevron-right */
}
.carousel__nav:disabled {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 640px) {
  .carousel__slide {
    width: 84%;
  }
}

/* ---------------------------------------------------------------------------
   404 — NOT FOUND (template: 404.php). Unique classes so nothing collides.
   --------------------------------------------------------------------------- */
.wca-404 {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-2xl);
  background:
    radial-gradient(
      90% 90% at 50% 0%,
      rgba(242, 217, 82, 0.12) 0%,
      transparent 55%
    ),
    var(--c-black);
  border-bottom: 1px solid var(--c-crimson-dim);
}
.wca-404__inner {
  max-width: 680px;
}
.wca-404__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 22vw, 200px);
  line-height: 0.9;
  letter-spacing: 2px;
  color: var(--c-crimson);
  margin-bottom: var(--space-xs);
}
.wca-404__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-silver-lt);
  margin-bottom: var(--space-sm);
}
.wca-404__title {
  font-size: clamp(28px, 5vw, 44px);
  margin-bottom: var(--space-md);
}
.wca-404__body {
  color: var(--c-silver);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto var(--space-lg);
}
.wca-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-xl);
}
.wca-404__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wca-404__links a {
  color: var(--c-silver-lt);
  transition: color var(--ease);
}
.wca-404__links a:hover,
.wca-404__links a:focus {
  color: var(--c-crimson);
}
