/* Sunrise Manual Therapy — logo-matched theme (royal blue / cream / gold) */
:root {
  --royal: #0a3d7a;
  --royal-deep: #062850;
  --royal-mid: #0d4a94;
  --royal-soft: #e8eef6;
  --cream: #faf8f4;
  --cream-deep: #f0ebe3;
  --gold: #e8b84a;
  --gold-warm: #f0a030;
  --gold-light: #f5d78a;
  --orange-soft: #f4c78a;
  --ink: #1a2433;
  --ink-soft: #4a5568;
  --white: #ffffff;
  --border: #d4dde8;
  --shadow: 0 8px 28px rgba(10, 61, 122, 0.1);
  --radius: 14px;
  --max: 720px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--royal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--royal-deep);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--royal-deep);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ── Sunrise banner animation ─────────────────────────────────────── */
/* Pre-dawn navy → purple/pink → orange/gold → settle on logo.png */
.sunrise-banner {
  --banner-navy: #071428;
  --banner-royal: #0a3d7a;
  --dawn-purple: #4a2a6e;
  --dawn-pink: #c45a7a;
  --dawn-orange: #e87840;
  --dawn-gold: #f0c050;
  position: relative;
  width: 100%;
  height: clamp(160px, 22vw, 275px);
  overflow: hidden;
  background: var(--banner-navy);
  isolation: isolate;
}

.sunrise-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #040a18 0%,
    #0a1628 40%,
    #121e38 70%,
    #1a2848 100%
  );
  transition: background 1.1s ease-in-out, opacity 0.8s ease;
  z-index: 0;
}

/* Twilight: deep blue → purple / soft pink low sky */
.sunrise-banner.phase-twilight .sunrise-sky {
  background: linear-gradient(
    180deg,
    #0a1230 0%,
    #1a1848 28%,
    #4a2a6e 55%,
    #8a4a78 78%,
    #c4787a 100%
  );
}

/* Rising: warmer orange / gold sunrise */
.sunrise-banner.phase-rising .sunrise-sky,
.sunrise-banner.phase-rays .sunrise-sky {
  background: linear-gradient(
    180deg,
    #1a2a5c 0%,
    #3a4080 18%,
    #a85868 42%,
    #e87840 68%,
    #f5c878 88%,
    #ffe8b0 100%
  );
}

/* Settled: match logo outer navy so PNG edges blend */
.sunrise-banner.phase-logo .sunrise-sky,
.sunrise-banner.is-settled .sunrise-sky,
.sunrise-banner.no-motion .sunrise-sky {
  background: var(--banner-navy);
  opacity: 1;
}

/* Soft atmospheric glow near horizon */
.sunrise-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(90vw, 720px);
  height: 70%;
  margin-left: calc(min(90vw, 720px) / -2);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(196, 90, 122, 0) 0%,
    transparent 70%
  );
  opacity: 0;
  transform: scale(0.6);
  z-index: 1;
  pointer-events: none;
  transition: opacity 1s ease, transform 1.4s ease, background 1s ease;
}

.sunrise-banner.phase-twilight .sunrise-glow {
  opacity: 0.85;
  transform: scale(1);
  background: radial-gradient(
    ellipse at center,
    rgba(196, 90, 122, 0.55) 0%,
    rgba(74, 42, 110, 0.25) 45%,
    transparent 70%
  );
}

.sunrise-banner.phase-rising .sunrise-glow,
.sunrise-banner.phase-rays .sunrise-glow {
  opacity: 1;
  transform: scale(1.15);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 220, 140, 0.75) 0%,
    rgba(232, 120, 64, 0.45) 35%,
    rgba(196, 90, 122, 0.15) 60%,
    transparent 75%
  );
}

.sunrise-banner.phase-logo .sunrise-glow,
.sunrise-banner.is-settled .sunrise-glow,
.sunrise-banner.no-motion .sunrise-glow {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.sunrise-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  height: 3px;
  background: transparent;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease, background 0.8s ease;
}

.sunrise-banner.phase-rising .sunrise-horizon,
.sunrise-banner.phase-rays .sunrise-horizon {
  opacity: 0.9;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 5px,
    rgba(240, 192, 80, 0.95) 5px 11px
  );
  mask-image: linear-gradient(90deg, transparent 8%, #000 25%, #000 75%, transparent 92%);
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 25%, #000 75%, transparent 92%);
}

.sunrise-banner.phase-logo .sunrise-horizon,
.sunrise-banner.is-settled .sunrise-horizon,
.sunrise-banner.no-motion .sunrise-horizon {
  opacity: 0;
}

.sunrise-sun {
  position: absolute;
  left: 50%;
  width: clamp(44px, 9vw, 68px);
  height: clamp(44px, 9vw, 68px);
  margin-left: calc(clamp(44px, 9vw, 68px) / -2);
  bottom: 14%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 38% 38%,
    #fff8e0 0%,
    #ffe08a 28%,
    #f0c050 58%,
    #e89830 100%
  );
  box-shadow:
    0 0 28px 10px rgba(255, 220, 140, 0.65),
    0 0 60px 24px rgba(232, 120, 64, 0.4),
    0 0 100px 48px rgba(196, 90, 122, 0.2);
  transform: translateY(160%);
  opacity: 0;
  z-index: 2;
  transition:
    transform 1.8s cubic-bezier(0.22, 0.75, 0.25, 1),
    opacity 0.7s ease,
    box-shadow 1s ease;
}

.sunrise-banner.phase-twilight .sunrise-sun {
  transform: translateY(70%);
  opacity: 0.55;
  box-shadow:
    0 0 20px 8px rgba(196, 90, 122, 0.45),
    0 0 50px 20px rgba(74, 42, 110, 0.3);
  background: radial-gradient(
    circle at 38% 38%,
    #ffd0c8 0%,
    #e87890 40%,
    #c45a7a 75%,
    #8a4060 100%
  );
}

.sunrise-banner.phase-rising .sunrise-sun,
.sunrise-banner.phase-rays .sunrise-sun {
  transform: translateY(0);
  opacity: 1;
}

.sunrise-banner.phase-logo .sunrise-sun,
.sunrise-banner.is-settled .sunrise-sun,
.sunrise-banner.no-motion .sunrise-sun {
  opacity: 0;
  transform: translateY(-8%);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.sunrise-rays {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
}

.sunrise-ray {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5px;
  height: calc(clamp(70px, 16vw, 130px) * var(--ray-len, 1));
  margin-left: -1.25px;
  transform-origin: bottom center;
  background: repeating-linear-gradient(
    to top,
    transparent 0 5px,
    rgba(240, 192, 80, 0.95) 5px 10px
  );
  opacity: 0;
  transform: rotate(var(--ray-angle)) scaleY(0.12);
  filter: drop-shadow(0 0 2px rgba(240, 192, 80, 0.5));
}

.sunrise-banner.phase-rays .sunrise-ray {
  animation: ray-expand 1.15s ease-out forwards;
  animation-delay: var(--ray-delay, 0s);
}

.sunrise-banner.phase-logo .sunrise-ray,
.sunrise-banner.is-settled .sunrise-ray,
.sunrise-banner.no-motion .sunrise-ray {
  opacity: 0 !important;
  animation: none;
  transition: opacity 0.45s ease;
}

@keyframes ray-expand {
  0% {
    opacity: 0;
    transform: rotate(var(--ray-angle)) scaleY(0.12);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0.92;
    transform: rotate(var(--ray-angle)) scaleY(1);
  }
}

.sunrise-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.85s ease, transform 0.85s ease;
  padding: 0;
  background: transparent;
}

.sunrise-banner.phase-logo .sunrise-logo-wrap,
.sunrise-banner.is-settled .sunrise-logo-wrap,
.sunrise-banner.no-motion .sunrise-logo-wrap {
  opacity: 1;
  transform: scale(1);
}

.sunrise-logo-wrap img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

/* Gentle/faster transitions when OS prefers reduced motion (still plays once) */
.sunrise-banner.motion-gentle .sunrise-sky,
.sunrise-banner.motion-gentle .sunrise-glow,
.sunrise-banner.motion-gentle .sunrise-sun,
.sunrise-banner.motion-gentle .sunrise-horizon,
.sunrise-banner.motion-gentle .sunrise-logo-wrap {
  transition-duration: 0.35s !important;
}

.sunrise-banner.motion-gentle .sunrise-ray {
  animation-duration: 0.45s !important;
}

/* Replay control — visible after settle */
.sunrise-replay {
  position: absolute;
  right: 0.75rem;
  bottom: 0.65rem;
  z-index: 6;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(7, 20, 40, 0.72);
  color: #faf8f4;
  font: 600 0.78rem/1.2 var(--font);
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.92;
  transition: background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.sunrise-replay:hover {
  background: rgba(10, 61, 122, 0.92);
  border-color: rgba(232, 184, 74, 0.7);
  opacity: 1;
}

.sunrise-replay:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.sunrise-banner.is-playing .sunrise-replay,
.sunrise-replay[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  /* Do NOT zero banner transitions — one-shot sunrise still runs (shorter via .motion-gentle). */
  .sunrise-replay {
    transition: none;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--royal-deep);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: var(--royal);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
}

.nav a:hover {
  color: var(--royal-deep);
}

.nav .btn-nav {
  background: var(--royal);
  color: var(--white);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav .btn-nav:hover {
  background: var(--royal-deep);
  color: var(--white);
}

main {
  display: block;
}

.section {
  padding: 3.25rem 1.25rem;
}

.section-alt {
  background: var(--white);
}

.section-soft {
  background: var(--royal-soft);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.wrap-wide {
  max-width: 960px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--royal-mid);
  margin: 0 0 0.65rem;
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--royal-deep);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* Hero */
.hero {
  padding: 3.5rem 1.25rem 3.75rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(232, 184, 74, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(232, 238, 246, 0.95), transparent 50%),
    var(--cream);
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 780px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card .sun-art {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1915 / 275;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: #071428;
  object-fit: cover;
  object-position: center;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.hero-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1.02rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--royal);
  color: var(--white);
  border-color: var(--royal);
}

.btn-primary:hover {
  background: var(--royal-deep);
  border-color: var(--royal-deep);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--royal-deep);
  border-color: var(--royal);
}

.btn-secondary:hover {
  background: var(--royal-soft);
  color: var(--royal-deep);
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 10px rgba(10, 61, 122, 0.04);
}

.section-soft .card {
  background: var(--cream);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  font-size: 0.98rem;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.hours-table th {
  width: 32%;
  color: var(--royal-deep);
  font-weight: 650;
  background: var(--cream-deep);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table .closed {
  color: var(--ink-soft);
  font-style: italic;
}

.hours-note {
  font-size: 0.95rem;
  margin-top: 0.85rem;
}

.slot-list {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.contact-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}

.contact-list strong {
  display: block;
  color: var(--royal-deep);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-list a {
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cta-band {
  text-align: center;
  padding: 3rem 1.25rem;
  background: var(--royal-deep);
  color: var(--cream);
}

.cta-band h2 {
  color: var(--cream);
}

.cta-band p {
  color: rgba(250, 248, 244, 0.88);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .btn-primary {
  background: var(--gold);
  color: var(--royal-deep);
  border-color: var(--gold);
  margin-top: 0.5rem;
}

.cta-band .btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--royal-deep);
}

.site-footer {
  padding: 2rem 1.25rem;
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--royal-deep);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.page-header {
  padding: 2.5rem 1.25rem 1rem;
}

.prose {
  padding: 0 1.25rem 3rem;
}

.prose .wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.prose h2 {
  margin-top: 1.5rem;
  font-size: 1.2rem;
}

.prose ul {
  color: var(--ink-soft);
  padding-left: 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
