/*
 * Aquatic Therapy: a world of its own. Loaded only by layouts/aquatic and
 * stubbed out of application.css, so nothing here touches the main site.
 */

:root {
  --aq-abyss: #021820;
  --aq-deep: #063a4a;
  --aq-teal: #0b6e78;
  --aq-aqua: #48c9c3;
  --aq-green: #6fd3a0;
  --aq-foam: #d9fbf4;
  --aq-pearl: #f6f1dc;
  --aq-gold: #e6c27a;
  --aq-ink: #032a33;
  --aq-serif: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", "Times New Roman", serif;
  --aq-sans: "Jost", "Avenir Next", "Avenir", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: dark;
}

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

[hidden] { display: none !important; }

html { background: var(--aq-abyss); }

.aq-body {
  margin: 0;
  min-height: 100dvh;
  color: var(--aq-foam);
  font-family: var(--aq-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  background: radial-gradient(120% 90% at 50% 40%, #0b6e78 0%, #063a4a 45%, #021820 100%);
  -webkit-font-smoothing: antialiased;
}

.aq-body a { color: inherit; }

/* ── living water + film grain ───────────────────────────────────────── */

.aq-water {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.aq-water.is-fallback { display: none; }

.aq-grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(/%23n)'/></svg>");
}

.aq-main { position: relative; z-index: 2; }

/* ── top bar ─────────────────────────────────────────────────────────── */

.aq-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) clamp(1rem, 4vw, 2.5rem) 1.5rem;
  background: linear-gradient(to bottom, rgba(2, 24, 32, 0.55), rgba(2, 24, 32, 0));
  pointer-events: none;
}

.aq-bar > * { pointer-events: auto; }

.aq-mark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.aq-mark__name {
  font-family: var(--aq-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--aq-pearl);
}

.aq-mark__sub {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--aq-aqua);
}

.aq-bar__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
}

.aq-bar__link {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.85;
}

.aq-bar__link:hover { opacity: 1; color: var(--aq-pearl); }

/* ── buttons ─────────────────────────────────────────────────────────── */

.aq-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-family: var(--aq-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--aq-ink) !important;
  background: linear-gradient(115deg, var(--aq-foam), var(--aq-aqua) 45%, var(--aq-green) 75%, var(--aq-foam));
  background-size: 220% 100%;
  box-shadow: 0 8px 30px -8px rgba(72, 201, 195, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: background-position 0.8s ease, transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.aq-pill:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px -8px rgba(111, 211, 160, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.aq-pill--lg { padding: 0.9rem 1.8rem; font-size: 0.95rem; }

.aq-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.4rem;
  border: 1px solid rgba(217, 251, 244, 0.35);
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--aq-foam);
  text-decoration: none;
  background: rgba(2, 24, 32, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.aq-ghost:hover { border-color: var(--aq-foam); background: rgba(2, 24, 32, 0.45); }

.aq-ghost--sm { padding: 0.45rem 1rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; }

.aq-pill:focus-visible, .aq-ghost:focus-visible, .aq-bar a:focus-visible {
  outline: 2px solid var(--aq-gold);
  outline-offset: 3px;
}

/* ── type ────────────────────────────────────────────────────────────── */

.aq-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--aq-aqua);
}

.aq-h2 {
  margin: 0 0 1.25rem;
  font-family: var(--aq-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--aq-pearl);
}

.aq-h3 {
  margin: 0 0 0.6rem;
  font-family: var(--aq-serif);
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--aq-pearl);
}

.aq-body strong { font-weight: 500; color: var(--aq-pearl); }

/* ══ The ocean: endless floating gallery ══════════════════════════════ */

.aq-body--ocean { height: 100dvh; overflow: hidden; overscroll-behavior: none; }

.aq-ocean { position: fixed; inset: 0; z-index: 2; }

.aq-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
}

.aq-viewport.is-dragging { cursor: grabbing; }

.aq-world {
  position: absolute;
  left: 50%;
  top: 50%;
  will-change: transform;
}

/* Once the script runs it owns the world's position. */
.aq-ocean[data-controller] .aq-world { left: 0; top: 0; }

.aq-intro {
  position: absolute;
  left: 0;
  top: 0;
  width: min(760px, 88vw);
  transform: translate(-50%, -50%);
  text-align: center;
  text-shadow: 0 2px 30px rgba(2, 24, 32, 0.6);
  transition: opacity 0.8s ease;
}

.aq-intro__title {
  margin: 0;
  font-family: var(--aq-serif);
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--aq-pearl);
}

.aq-intro__title em {
  display: block;
  font-style: italic;
  background: linear-gradient(100deg, var(--aq-foam), var(--aq-aqua) 40%, var(--aq-green) 70%, var(--aq-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 4px 30px rgba(2, 24, 32, 0.5));
}

.aq-intro__lead {
  margin: 1.25rem 0 0;
  font-family: var(--aq-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--aq-foam);
}

.aq-intro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* tiles */

.aq-tile { position: absolute; }

.aq-tile__float {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 40px 70px -30px rgba(0, 8, 14, 0.85),
    0 0 0 1px rgba(217, 251, 244, 0.1);
  animation: aq-float var(--dur, 12s) ease-in-out var(--delay, 0s) infinite;
  transition: box-shadow 0.4s ease, scale 0.4s ease;
}

.aq-tile--arch .aq-tile__float { border-radius: 999px 999px 16px 16px; }
.aq-tile--circle .aq-tile__float { border-radius: 50%; }

.aq-tile__float::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(246, 241, 220, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.aq-tile--art, .aq-tile--photo { cursor: zoom-in; }

.aq-tile--art:hover .aq-tile__float, .aq-tile--photo:hover .aq-tile__float {
  scale: 1.03;
  box-shadow:
    0 50px 90px -30px rgba(0, 8, 14, 0.9),
    0 0 0 1px rgba(217, 251, 244, 0.35),
    0 0 50px rgba(72, 201, 195, 0.35);
}

.aq-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.aq-tile img.is-loaded { opacity: 1; }

.aq-tile--text .aq-tile__float {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  box-shadow: none;
  text-align: center;
}

.aq-tile--text .aq-tile__float::after { display: none; }

.aq-words {
  margin: 0;
  font-family: var(--aq-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  line-height: 1.2;
  color: var(--aq-pearl);
  text-shadow: 0 0 24px rgba(72, 201, 195, 0.55), 0 2px 18px rgba(2, 24, 32, 0.8);
}

.aq-words__by {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aq-gold);
}

@keyframes aq-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(calc(var(--tilt) * -1)); }
  50% { transform: translate3d(0, -12px, 0) rotate(var(--tilt)); }
}

/* "Just water": the gallery sinks away, leaving the surface to play in. */
.aq-ocean .aq-world { transition: opacity 0.9s ease, filter 0.9s ease; }
.aq-ocean.is-still .aq-world { opacity: 0; filter: blur(12px); pointer-events: none; }
.aq-ocean.is-still .aq-viewport { cursor: crosshair; }

.aq-hud {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.25rem);
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  transform: translateX(-50%);
}

.aq-hint {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(217, 251, 244, 0.8);
  text-shadow: 0 1px 10px rgba(2, 24, 32, 0.9);
  text-align: center;
}

.aq-home {
  position: fixed;
  left: clamp(1rem, 4vw, 2.5rem);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.4rem);
  z-index: 15;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.55;
}

.aq-home:hover { opacity: 1; }

@media (max-width: 720px) {
  .aq-home { display: none; }
  .aq-bar__link { display: none; }
}

/* lightbox */

.aq-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem 2rem;
  background: rgba(2, 18, 26, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: zoom-out;
}

.aq-lightbox.is-open { opacity: 1; }

.aq-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transform: scale(0.96);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.aq-lightbox.is-open .aq-lightbox__figure { transform: scale(1); }

.aq-lightbox img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: 74dvh;
  border-radius: 14px;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(217, 251, 244, 0.15);
}

.aq-lightbox figcaption { display: flex; flex-direction: column; align-items: center; text-align: center; }

.aq-lightbox__title {
  font-family: var(--aq-serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--aq-pearl);
}

.aq-lightbox__meta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aq-aqua);
}

.aq-lightbox__close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 1rem);
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(217, 251, 244, 0.35);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--aq-foam);
  background: transparent;
  cursor: pointer;
}

/* ══ Register + about page ════════════════════════════════════════════ */

.aq-body--page { cursor: crosshair; }
.aq-body--page .aq-glass, .aq-body--page .aq-prose { cursor: auto; }

.aq-section {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 2rem) 2rem;
}

.aq-glass {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(6, 58, 74, 0.55), rgba(2, 24, 32, 0.45));
  border: 1px solid rgba(217, 251, 244, 0.14);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.aq-glass p { margin: 0 0 1rem; }
.aq-glass p:last-child { margin-bottom: 0; }

.aq-register {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100dvh;
  padding-top: clamp(6rem, 12vw, 8rem);
}

.aq-register__card {
  width: min(620px, 100%);
  text-align: center;
}

.aq-register__title {
  margin: 0;
  font-family: var(--aq-serif);
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.02;
  color: var(--aq-pearl);
}

.aq-register__by {
  margin: 0.6rem 0 0 !important;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aq-aqua);
}

.aq-register__photo {
  margin: 1.5rem 0 0;
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.aq-register__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 68%;
}

.aq-register__intro {
  margin: 1.5rem 0 1rem !important;
  font-family: var(--aq-serif);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--aq-foam);
}

.aq-register__qr {
  display: block;
  width: min(300px, 100%);
  margin: 0 auto;
  padding: 0.9rem;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(217, 251, 244, 0.12), 0 0 60px rgba(72, 201, 195, 0.35);
}

.aq-register__qr img { display: block; width: 100%; height: auto; }

.aq-register__note {
  margin: 0.9rem 0 1.1rem !important;
  font-size: 0.9rem;
  color: rgba(217, 251, 244, 0.75);
}

.aq-register__button { width: 100%; }

.aq-hint--page { margin-top: 1.5rem; opacity: 0.75; }

.aq-prose { max-width: 760px; margin: 0 auto; }
.aq-prose--center { text-align: center; }
.aq-prose--plain { margin-top: 2.5rem; }

.aq-quote {
  margin: clamp(3rem, 8vw, 5rem) auto;
  text-align: center;
}

.aq-quote blockquote { margin: 0; }

.aq-quote p {
  margin: 0;
  font-family: var(--aq-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 1.05;
  background: linear-gradient(100deg, var(--aq-foam), var(--aq-aqua) 45%, var(--aq-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(2, 24, 32, 0.7));
}

.aq-quote figcaption {
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--aq-gold);
}

.aq-flow, .aq-pair {
  display: grid;
  gap: 1.25rem;
}

.aq-flow { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.aq-pair { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }

.aq-flow__num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--aq-serif);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--aq-gold);
}

.aq-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 3rem clamp(1rem, 4vw, 2.5rem) calc(env(safe-area-inset-bottom, 0px) + 2rem);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(217, 251, 244, 0.6);
}

.aq-footer a { text-decoration: none; text-transform: uppercase; letter-spacing: 0.14em; }

@media (prefers-reduced-motion: reduce) {
  .aq-tile__float { animation: none; }
  .aq-pill, .aq-lightbox, .aq-lightbox__figure, .aq-tile img { transition: none; }
}

/* ── tour dates (Book page) ──────────────────────────────────────────── */

.aq-tour__list {
  list-style: none;
  margin: 1.75rem 0 1.5rem;
  padding: 0;
  text-align: left;
  border-top: 1px solid rgba(217, 251, 244, 0.14);
}

.aq-tour__stop {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid rgba(217, 251, 244, 0.14);
  transition: opacity 0.3s ease;
}

.aq-tour__dates {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aq-aqua);
  white-space: nowrap;
}

.aq-tour__where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; }

.aq-tour__place {
  font-family: var(--aq-serif);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--aq-pearl);
}

.aq-tour__region { font-size: 0.9rem; opacity: 0.75; }

.aq-tour__note {
  flex-basis: 100%;
  font-size: 0.85rem;
  color: var(--aq-green);
}

.aq-tour__side { display: flex; align-items: center; gap: 0.5rem; }

.aq-tour__badge:empty { display: none; }

.aq-tour__book {
  padding: 0.3rem 0.85rem;
  border: 1px solid rgba(217, 251, 244, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--aq-foam);
  transition: background 0.2s ease, color 0.2s ease;
}

.aq-tour__book:hover,
.aq-tour__book:focus-visible { background: var(--aq-foam); color: var(--aq-ink); }

.aq-tour__stop.is-past .aq-tour__book { display: none; }

.aq-tour__via { margin-top: 0.6rem !important; font-size: 0.75rem; opacity: 0.6; }

.aq-tour__badge {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aq-ink);
  background: var(--aq-aqua);
  box-shadow: 0 0 16px rgba(72, 201, 195, 0.55);
}

.aq-tour__stop.is-now {
  background: rgba(72, 201, 195, 0.08);
  border-radius: 12px;
}

.aq-tour__stop.is-past { opacity: 0.4; }

.aq-tour__contact { margin-bottom: 1.5rem; }
.aq-tour__contact .aq-pill { margin-top: 0.5rem; }

@media (max-width: 560px) {
  .aq-tour__stop { grid-template-columns: 1fr auto; }
  .aq-tour__dates { grid-column: 1 / -1; }
}

.aq-tour__season { margin-top: -0.4rem !important; opacity: 0.8; }
