/* ==========================================================================
   REPTD — western.css
   Page theme for /western-concierge-sports-medicine/.
   Re-skins the shared tokens (navy, copper, sand) and adds the page's own
   sections. Loaded after the three shared stylesheets, on this page only.
   ========================================================================== */

.theme-western {
  --navy-900: #0c141c;
  --navy-800: #101a23;
  --navy-600: #2f3550;
  --navy-500: #454b63;
  --copper:   #c58a52;
  --copper-600:#a9703a;
  --saddle:   #714524;
  --gold:     #c9973f;
  --sand:     #e9e0d7;
  --parchment:#f8f4ef;

  --bg: var(--parchment);
  --bg-alt: var(--sand);
  --text: #26272b;
  --text-muted: #55565c;
  --heading: var(--navy-800);
  --brand: var(--saddle);
  --brand-strong: #5a3519;
  --brand-soft: #f1e6da;
  --accent: var(--copper);
  --accent-hover: #d79a61;
  --on-accent: #1a1108;
  --line: #e2d6c8;

  --font-western: "Playfair Display", "Abril Fatface", Georgia, serif;
}

.theme-western .topbar { background: var(--navy-800); }
.theme-western .site-nav__list > li > a::after { background: var(--copper); }

/* Section titles with the flyer's flanking copper rules */
.w-title {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
  font-family: var(--font-western);
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
}
.w-title::before, .w-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--copper));
}
.w-title::after { background: linear-gradient(to left, transparent, var(--copper)); }
.w-title--light {
  font-family: var(--font-label);
  font-weight: 400;
  letter-spacing: 0.22em;
  font-size: var(--step-3);
}

/* ---------- Hero ---------- */
.w-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: min(44rem, 84svh);
  padding-block: clamp(5rem, 14vw, 9rem) clamp(3rem, 7vw, 5rem);
  color: var(--white);
  text-align: center;
  overflow: clip;
  /* Dusk-over-the-arena sky. To use the flyer photo instead, set
     --w-hero-photo: url("../img/western/hero.webp") on .w-hero.          */
  --w-hero-photo: none;
  background:
    linear-gradient(to top, rgb(12 20 28 / 0.92) 0%, rgb(12 20 28 / 0.35) 45%, rgb(12 20 28 / 0) 70%),
    var(--w-hero-photo) center / cover no-repeat,
    radial-gradient(120% 70% at 50% 62%, rgb(214 170 120 / 0.55) 0%, rgb(214 170 120 / 0) 60%),
    linear-gradient(to bottom, #2f3550 0%, #454b63 28%, #7b7078 52%, #8a5f3c 74%, #2a1c14 100%);
}
/* Drifting arena dust */
.w-hero::before, .w-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -20% 0 -20%;
  height: 55%;
  background:
    radial-gradient(40% 60% at 20% 80%, rgb(233 224 215 / 0.28), transparent 70%),
    radial-gradient(35% 55% at 70% 90%, rgb(197 138 82 / 0.3), transparent 70%),
    radial-gradient(30% 50% at 45% 70%, rgb(233 224 215 / 0.16), transparent 70%);
  filter: blur(12px);
}
.w-hero::after { scale: -1 1; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .w-hero::before { animation: dust 22s ease-in-out infinite alternate; }
  .w-hero::after  { animation: dust 30s ease-in-out infinite alternate-reverse; }
}
@keyframes dust {
  from { translate: -4% 0; }
  to   { translate: 4% -6%; }
}

.w-hero .breadcrumb { justify-content: center; margin-bottom: clamp(1.5rem, 5vw, 3rem); }
.w-hero h1 {
  font-family: var(--font-western);
  font-weight: 900;
  font-size: clamp(2.5rem, 1rem + 8.4vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 30px rgb(12 20 28 / 0.45);
}
.w-hero h1 span { display: block; }
.w-hero h1 .copper { color: var(--copper); }
.w-hero__tag {
  margin-top: 1.5rem;
  font-family: var(--font-label);
  font-size: clamp(1rem, 0.7rem + 1.5vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.w-hero__rule {
  width: min(100%, 52rem);
  height: 2px;
  margin: 1.25rem auto;
  border: 0;
  background: linear-gradient(to right, transparent, var(--copper) 15%, var(--copper) 85%, transparent);
  transform-origin: center;
}
.w-hero__sub {
  font-family: var(--font-label);
  font-size: clamp(0.8rem, 0.65rem + 0.7vw, 1.05rem);
  letter-spacing: 0.2em;
  line-height: 1.9;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.9);
}
.w-hero__sub b { display: block; font-weight: 500; color: var(--white); }
.w-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 2.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .w-hero h1 span, .w-hero__tag, .w-hero__sub, .w-hero__actions { animation: rise 800ms var(--ease) both; }
  .w-hero h1 span:nth-child(2) { animation-delay: 120ms; }
  .w-hero__tag { animation-delay: 260ms; }
  .w-hero__rule { animation: rule-in 900ms var(--ease) 380ms both; }
  .w-hero__sub { animation-delay: 480ms; }
  .w-hero__actions { animation-delay: 600ms; }
}
@keyframes rule-in { from { scale: 0 1; } to { scale: 1 1; } }

/* ---------- Benefits ---------- */
.w-benefits {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
}
@media (max-width: 36em) {
  .w-benefits { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 75em) {
  .w-benefits { grid-template-columns: repeat(6, 1fr); }
}
.w-benefit { display: grid; justify-items: center; align-content: start; gap: 0.9rem; text-align: center; }
.w-benefit__icon {
  display: grid;
  place-items: center;
  width: clamp(4rem, 3rem + 4vw, 5.25rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  box-shadow: 0 0 0 0 rgb(197 138 82 / 0.5);
  transition: background var(--med) var(--ease), translate var(--med) var(--ease-spring), box-shadow var(--med) var(--ease);
}
.w-benefit__icon svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.w-benefit:hover .w-benefit__icon {
  background: var(--saddle);
  translate: 0 -5px;
  box-shadow: 0 0 0 6px rgb(197 138 82 / 0.22);
}
.w-benefit h3 {
  font-family: var(--font-label);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.w-benefit p { font-size: var(--step--1); line-height: 1.6; color: var(--text-muted); max-width: 19rem; }

/* ---------- Membership options ---------- */
.w-prices {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
}
.w-price {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--brand-soft);
  border: 1px solid #d8c4ae;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: translate var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.w-price:hover { translate: 0 -6px; box-shadow: 0 18px 40px rgb(113 69 36 / 0.22); }
.w-price__head {
  display: grid;
  align-content: center;
  gap: 0.15rem;
  min-height: 4.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg, #8a5630, var(--saddle));
  color: var(--white);
  font-family: var(--font-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.w-price__head h3 { color: inherit; font-family: inherit; font-size: 1.1rem; font-weight: 600; letter-spacing: inherit; }
.w-price__head span { font-size: 0.9rem; font-weight: 300; opacity: 0.92; }
.w-price__body { display: grid; align-content: center; gap: 0.35rem; padding: 1.5rem 1rem 1.6rem; }
.w-price__amount {
  font-family: var(--font-body);
  font-size: clamp(2.75rem, 2rem + 3vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy-800);
}
.w-price__amount small { font-size: 0.42em; font-weight: 400; letter-spacing: 0; }
.w-price__note { font-size: var(--step--1); color: var(--text-muted); }
.w-terms {
  margin-top: 1rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid #d8c4ae;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.6);
  font-family: var(--font-label);
  font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}
.w-fineprint { margin-top: 1.25rem; text-align: center; font-size: var(--step--1); color: var(--text-muted); }
.w-pricing__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem; margin-top: 2rem; }

/* ---------- Dark bands ---------- */
.w-band {
  color: rgb(255 255 255 / 0.88);
  --heading: var(--white);
}
.w-band--navy {
  background:
    radial-gradient(80% 120% at 50% 0%, rgb(255 255 255 / 0.06), transparent 60%),
    var(--navy-500);
}
.w-band--deep { background: var(--navy-800); }
.w-band--navy .w-title { color: var(--parchment); }

/* ---------- Athletes ---------- */
.w-athletes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
}
.w-athletes > li { width: clamp(7.25rem, 5rem + 9vw, 8.75rem); }
.w-athlete {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}
.w-athlete img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  padding: 3px;
  background: var(--navy-600);
  transition: scale var(--med) var(--ease-spring), border-color var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.w-athlete:hover img {
  scale: 1.07;
  border-color: #f0c877;
  box-shadow: 0 10px 28px rgb(12 20 28 / 0.4);
}
.w-athlete figcaption {
  font-family: var(--font-label);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------- Care team ---------- */
.w-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
@media (max-width: 30em) {
  .w-team { grid-template-columns: 1fr 1fr; }
  .w-team > :first-child { grid-column: 1 / -1; }
}
.w-member {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  text-align: center;
  border-left: 1px solid rgb(197 138 82 / 0.55);
}
.w-team > :first-child { border-left: 0; }
@media (max-width: 30em) {
  .w-member { border-left: 0; border-top: 1px solid rgb(197 138 82 / 0.35); }
  .w-team > :first-child, .w-team > :nth-child(2), .w-team > :nth-child(3) { border-top: 0; }
  .w-team > :nth-child(odd):not(:first-child) { border-left: 1px solid rgb(197 138 82 / 0.35); }
}
.w-member__photo {
  display: grid;
  place-items: center;
  width: 7.5rem;
  aspect-ratio: 1;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at 50% 35%, #1c2a38, #0c141c);
  font-family: var(--font-western);
  font-size: 2rem;
  font-weight: 800;
  color: var(--copper);
  object-fit: cover;
  transition: scale var(--med) var(--ease-spring), box-shadow var(--med) var(--ease);
}
.w-member:hover .w-member__photo { scale: 1.06; box-shadow: 0 0 0 6px rgb(201 151 63 / 0.18); }
.w-member h3 {
  font-family: var(--font-label);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.w-member p { font-size: var(--step--1); line-height: 1.5; margin: 0; }
.w-member__role { color: var(--copper); font-weight: 600; }

/* ---------- Sign up ---------- */
.w-signup {
  background:
    radial-gradient(60% 120% at 80% 50%, rgb(197 138 82 / 0.16), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: rgb(255 255 255 / 0.88);
  border-top: 1px solid rgb(197 138 82 / 0.35);
}
.w-signup__inner {
  display: grid;
  gap: 2rem clamp(2rem, 6vw, 5rem);
  align-items: center;
  justify-items: center;
  text-align: center;
}
@media (min-width: 52em) {
  .w-signup__inner { grid-template-columns: auto 1px 1fr; justify-items: start; text-align: left; }
  .w-signup__divider { width: 1px; height: 100%; min-height: 9rem; background: rgb(197 138 82 / 0.6); }
}
.w-signup img { width: min(17rem, 62vw); }
.w-signup h2 {
  font-family: var(--font-western);
  font-style: italic;
  font-weight: 800;
  font-size: var(--step-4);
  color: var(--copper);
}
.w-signup p { margin-top: 0.6rem; max-width: 30rem; }
.w-signup__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
@media (max-width: 51.99em) {
  .w-signup__actions { justify-content: center; }
}

/* ---------- Footer re-skin ---------- */
.theme-western .site-footer { background: var(--navy-900); color: rgb(255 255 255 / 0.8); }
.theme-western .site-footer h2 { color: var(--copper); }
.theme-western .site-footer__legal { border-top-color: rgb(255 255 255 / 0.15); }
.theme-western .socials a { background: rgb(255 255 255 / 0.1); }
.theme-western .socials a:hover { background: var(--copper); color: var(--navy-900); }
.theme-western .note { background: rgb(255 255 255 / 0.6); }
