:root {
  --ice: #f8fbff;
  --frost: #d8ecf8;
  --rink: #102a43;
  --glacier: #5fb3c8;
  --silver: #bcccdc;
  --lavender: #c7d2fe;
  --charcoal: #1f2937;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--glacier);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(16, 42, 67, 0.88) 8%, rgba(16, 42, 67, 0.55) 52%, rgba(16, 42, 67, 0.22)),
    url("../public/images/hero-rink-coaching.png") center / cover no-repeat;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(16, 42, 67, 0.25), rgba(16, 42, 67, 0) 30%, rgba(16, 42, 67, 0) 72%, rgba(16, 42, 67, 0.45));
}

.hero-vertical-text {
  writing-mode: vertical-rl;
  letter-spacing: 0.42em;
}

.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 64px;
  overflow: hidden;
  background: rgba(248, 251, 255, 0.25);
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: #fff;
  animation: scrollLine 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollLine {
  0% {
    top: -40%;
  }
  100% {
    top: 110%;
  }
}

/* ---------- Real snowflakes ---------- */

.snowfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.flake {
  position: absolute;
  top: -8%;
  animation: flakeFall linear infinite;
  will-change: transform;
}

@keyframes flakeFall {
  from {
    transform: translateY(-12vh);
  }
  to {
    transform: translateY(118vh);
  }
}

.flake-sway {
  display: block;
  animation: flakeSway ease-in-out infinite alternate;
}

@keyframes flakeSway {
  from {
    transform: translateX(calc(var(--sway, 16px) * -1));
  }
  to {
    transform: translateX(var(--sway, 16px));
  }
}

.flake-spin {
  display: block;
  animation: flakeSpin linear infinite;
}

@keyframes flakeSpin {
  to {
    transform: rotate(360deg);
  }
}

.flake--soft {
  filter: blur(1.1px);
}

/* ---------- Marquee strip ---------- */

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-width: 100%;
  animation: marqueeScroll 36s linear infinite;
}

@keyframes marqueeScroll {
  to {
    transform: translateX(-100%);
  }
}

/* ---------- Editorial details ---------- */

.rule-grow {
  position: relative;
}

.rule-grow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rule-grow:hover::after,
.rule-grow:focus-visible::after {
  transform: scaleX(1);
}

.ghost-word {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  line-height: 0.8;
  color: var(--rink);
  opacity: 0.04;
  white-space: nowrap;
}

.frame-offset {
  position: relative;
}

.frame-offset::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(20px, 20px);
  border: 1px solid var(--glacier);
  pointer-events: none;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  animation: fadeUp 900ms ease both;
}

.fade-up-delay {
  animation: fadeUp 1000ms 150ms ease both;
}

.fade-up-delay-2 {
  animation: fadeUp 1100ms 300ms ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .flake,
  .flake-sway,
  .flake-spin,
  .marquee-track,
  .hero-scroll-line::after,
  .fade-up,
  .fade-up-delay,
  .fade-up-delay-2 {
    animation: none;
  }
}

/* ---------- Service menu rows ---------- */

.menu-row {
  position: relative;
  transition: background-color 260ms ease;
}

.menu-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--glacier);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.menu-row:hover::after,
.menu-row:focus-within::after {
  transform: scaleX(1);
}

.menu-row .row-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.menu-row:hover .row-arrow,
.menu-row:focus-within .row-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Forms: underline editorial fields ---------- */

.field-line {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid rgba(188, 204, 220, 0.9);
  background: transparent;
  border-radius: 0;
  padding: 0;
  color: var(--charcoal);
  outline: none;
  transition: border-color 200ms ease;
}

.field-line:focus {
  border-bottom-color: var(--rink);
}

select.field-line {
  cursor: pointer;
}

textarea.field-line {
  padding-top: 10px;
  resize: vertical;
}

/* ---------- Icons ---------- */

.icon-slot svg,
.icon-slot i {
  width: 18px;
  height: 18px;
}

.button-icon svg,
.button-icon i {
  width: 16px;
  height: 16px;
}

.icon-lg svg {
  width: 26px;
  height: 26px;
}

.star-row svg {
  width: 14px;
  height: 14px;
  fill: var(--glacier);
  stroke: var(--glacier);
}

/* ---------- Navigation ---------- */

.nav-blur {
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(18px);
  transition: box-shadow 280ms ease;
}

.nav-blur.scrolled {
  box-shadow: 0 1px 0 rgba(188, 204, 220, 0.6), 0 14px 40px rgba(16, 42, 67, 0.08);
}

/* ---------- Sticky mobile booking bar ---------- */

.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  transform: translateY(110%);
  transition: transform 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
  background: rgba(248, 251, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(188, 204, 220, 0.8);
  padding-bottom: env(safe-area-inset-bottom);
}

.sticky-cta.visible {
  transform: translateY(0);
}

@media (max-width: 767px) {
  .hero-shell {
    background-position: 60% center;
  }

  .frame-offset::before {
    transform: translate(12px, 12px);
  }
}
