/* =========================================================================
   Uprise Chiropractic — Global site styles
   ========================================================================= */

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  scroll-behavior: smooth;
}

a { background: none !important; cursor: pointer; }
button { font-family: inherit; }

/* Container helpers */
.upr-container       { max-width: var(--container);        margin: 0 auto; padding: 0 32px; }
.upr-container-wide  { max-width: var(--container-wide);   margin: 0 auto; padding: 0 32px; }
.upr-container-narrow{ max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

/* Pulse on accent CTAs */
@keyframes upr-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(224,185,104,0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(224,185,104,0); }
  100% { box-shadow: 0 0 0 0   rgba(224,185,104,0); }
}

@keyframes upr-shimmer {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes upr-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes upr-spin {
  to { transform: rotate(360deg); }
}

@keyframes upr-fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero spine animation keyframes */
@keyframes upr-vert-rise {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes upr-wordmark-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes upr-breathe {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(224,185,104,0.45)); }
  50%      { filter: drop-shadow(0 0 14px rgba(224,185,104,0.85)); }
}
@keyframes upr-halo-pulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 0.85; transform: translate(-50%,-50%) scale(1.08); }
}

/* Animated spine — sequenced vertebra rise + cervical breathe loop */
.upr-spine-animated .upr-v1 { animation: upr-vert-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both; }
.upr-spine-animated .upr-v2 { animation: upr-vert-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both; }
.upr-spine-animated .upr-v3 { animation: upr-vert-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.4s both; }
.upr-spine-animated .upr-v4 { animation: upr-vert-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 1.9s both, upr-breathe 3.6s ease-in-out 4.9s infinite; }
.upr-spine-animated .upr-v5 { animation: upr-vert-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 2.4s both, upr-breathe 3.6s ease-in-out 5.4s infinite; }
/* Non-animated cervical glow */
.upr-spine:not(.upr-spine-animated) .upr-glow { filter: drop-shadow(0 0 4px rgba(224,185,104,0.45)); }

/* Wordmark + tagline reveal */
.upr-wordmark.upr-anim { animation: upr-wordmark-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) 3s both; }
.upr-tagline.upr-anim  { animation: upr-fadein 0.6s cubic-bezier(0.22, 1, 0.36, 1) 3.8s both; }

/* Selection */
::selection { background: var(--gold); color: var(--teal-900); }

html { scrollbar-color: var(--teal-300) var(--cream); }

a, a:hover { background-image: none !important; text-decoration: none; }

.upr-lift { transition: all 220ms var(--ease-rise); }
.upr-lift:hover { transform: translateY(-2px); }

@media (max-width: 980px) {
  .upr-mobile-book { display: flex !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Accordion (FAQ) */
.upr-faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font); font-size: 21px; font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--bone);
  letter-spacing: -0.01em;
  transition: color 150ms var(--ease-rise);
}
.upr-faq summary:hover { color: var(--gold-deep); }
.upr-faq summary::-webkit-details-marker { display: none; }
.upr-faq summary::after {
  content: '';
  width: 14px; height: 14px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease-rise);
  margin-right: 6px;
}
.upr-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.upr-faq details[open] summary { border-bottom: 1px solid transparent; color: var(--gold-deep); }
.upr-faq .upr-faq-body {
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--bone);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 64ch;
}

/* Form fields */
.upr-input, .upr-textarea, .upr-select {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--bone);
  border-radius: var(--radius-md);
  outline: none;
  transition: border 200ms var(--ease-rise), box-shadow 200ms var(--ease-rise);
}
.upr-input:focus, .upr-textarea:focus, .upr-select:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px var(--teal-100);
}
.upr-label {
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.upr-rule-gold {
  width: 48px; height: 2px; background: var(--gold);
  display: block; margin-top: 18px;
}

.upr-numtile {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.upr-marquee {
  display: flex;
  width: max-content;
  animation: upr-marquee 60s linear infinite;
}
.upr-marquee:hover { animation-play-state: paused; }
