/* pryde athletics — shared design system */

:root {
  --pryde-red: #d92027;
  --pryde-red-soft: rgba(217, 32, 39, 0.16);
}

html { scroll-behavior: smooth; }
html, body, #root { height: 100%; }
body { overflow-x: clip; }

/* Hide iOS Safari's play-button glyph if hero autoplay is blocked (e.g. Low Power Mode) */
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls {
  display: none !important;
  -webkit-appearance: none;
}

/* Shared form input styling (used by referral form; older forms still use inline Tailwind) */
.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}
.form-input:focus { border-color: rgba(255, 255, 255, 0.4); }
.form-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-input:disabled { opacity: 0.5; cursor: not-allowed; }
.form-label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Typed e-signature reads as a signature, not another text field */
.signature-input {
  font-family: 'Snell Roundhand', 'Apple Chancery', 'Segoe Script', cursive;
  font-size: 1.35rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.signature-input::placeholder {
  font-family: 'Readex Pro', system-ui, sans-serif;
  font-size: 0.875rem;
}

/* Nudge the WellnessLiving / CAASI chatbot bubble down so it doesn't cover hero stats */
iframe[src*="wellnessliving.com"][src*="chatbot"],
iframe[src*="isaac"],
div[id^="chat-bot"]:not(script),
div[class*="chat-bot"],
div[class*="wl-chatbot"],
div[class*="wl-chat"] {
  bottom: 8px !important;
  right: 12px !important;
}

/* Mobile refinements */
@media (max-width: 767px) {
  /* Keep display headlines from stretching viewport */
  .hero-title { letter-spacing: -0.03em; }
  .display-tight { letter-spacing: -0.025em; }
  /* Tighter mobile menu nav link sizing */
  .brand-mark-lg { height: 42px; }
  /* Prevent image overflow */
  img, video { max-width: 100%; }
  /* Trim vignette bleeds that add horizontal scroll */
  .vignette-pulse { max-width: 100%; }

  /* iOS Safari zooms the page in whenever a focused field is under 16px.
     Beats Tailwind's text-sm on the careers form, hence !important. */
  input, select, textarea { font-size: 16px !important; }
  .signature-input { font-size: 1.35rem !important; }

  /* Thumb-friendly checkboxes — the referral form has 17 of them */
  input[type="checkbox"] { width: 20px; height: 20px; }
  label:has(input[type="checkbox"]) { min-height: 44px; }

  /* Inline text links are ~20px tall; pad them out without moving the underline */
  .link-underline { padding-top: 10px; padding-bottom: 10px; }
  .link-underline::after { bottom: 7px; }
}

body {
  font-family: 'Readex Pro', system-ui, -apple-system, sans-serif;
  background: #000;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display typography */
.hero-title {
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.display-tight {
  letter-spacing: -0.035em;
  line-height: 1;
}
.eyebrow {
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 500;
  color: var(--pryde-red);
}

/* Brand color helpers */
.text-pryde-red    { color: var(--pryde-red); }
.bg-pryde-red      { background-color: var(--pryde-red); }
.border-pryde-red  { border-color: var(--pryde-red); }

/* Accent panel — red-tinted callout inside a card (pryde-red isn't a Tailwind
   color, so opacity modifiers like bg-pryde-red/10 don't generate) */
.panel-accent {
  background-color: rgba(217, 32, 39, 0.08);
  border: 1px solid rgba(217, 32, 39, 0.3);
}
.btn-outline-red {
  border: 1px solid rgba(217, 32, 39, 0.7);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.btn-outline-red:hover {
  background-color: var(--pryde-red);
  border-color: var(--pryde-red);
}

/* Tiny red index marker used on cards (replaces dim white index) */
.num-accent {
  color: var(--pryde-red);
  letter-spacing: 0.25em;
}

/* Red bullet dash used in feature lists */
.bullet-dash {
  display: inline-block;
  height: 1px;
  width: 14px;
  background: var(--pryde-red);
  margin-top: 9px;
  flex-shrink: 0;
}

/* Load-in animations */
@keyframes pryde-rise {
  0%   { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
@keyframes pryde-fade {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.anim-rise { opacity: 0; animation: pryde-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.anim-fade { opacity: 0; animation: pryde-fade 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Film grain texture */
.grain {
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.12;
  mix-blend-mode: overlay;
}

/* Corner vignettes — subtle red wash version */
@keyframes pryde-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.65; }
}
.vignette-pulse      { animation: pryde-pulse 6s ease-in-out infinite; }
.vignette-pulse-red  { animation: pryde-pulse 6s ease-in-out infinite; }

/* Hairlines between sections */
.hairline { border-color: rgba(255, 255, 255, 0.08); }

/* Service / location card hover — red edge glow on hover */
.service-card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 32, 39, 0.5);
  box-shadow: 0 0 0 1px rgba(217, 32, 39, 0.18), 0 30px 60px -20px rgba(217, 32, 39, 0.12);
}

/* Red underline animation on inline links */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--pryde-red);
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.link-underline:hover::after {
  transform: scaleX(1);
}

/* Nav active state — red text + thin red dot */
.nav-active {
  color: #fff !important;
  position: relative;
}
.nav-active::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: var(--pryde-red);
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(217, 32, 39, 0.7);
}
.nav-active {
  padding-left: 22px !important;
}

/* Brand mark (lion logo) sizing */
.brand-mark      { height: 26px; width: auto; display: block; }
.brand-mark-lg   { height: 56px; width: auto; display: block; }

/* Scroll cue — animated vertical line that pulses downward */
@keyframes scroll-cue {
  0%   { transform: translateY(-4px); opacity: 0.3; }
  50%  { transform: translateY(4px);  opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}
.scroll-cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 16px;
  background: linear-gradient(to bottom, transparent, var(--pryde-red));
  animation: scroll-cue 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .anim-rise, .anim-fade, .reveal { animation: none; opacity: 1; transform: none; }
  .vignette-pulse, .vignette-pulse-red { animation: none; }
}
