/* ==========================================================================
   Oulun Keilahalli – etusivuluonnos
   Brändivärit: yönvioletti, hohtosyaani, hohtopinkki ja lime
   ========================================================================== */

:root {
  --night: #231b3b;
  --night-deep: #1b1430;
  --night-raise: #2c2249;
  --night-line: rgba(244, 240, 255, 0.14);
  --night-line-strong: rgba(244, 240, 255, 0.32);
  --ink: #f4f0ff;
  --ink-muted: #bdb4da;
  --cyan: #72ffff;
  --pink: #ff7fe8;
  --lime: #deff00;
  --lavender: #efeaff;
  --plum-ink: #51477a;

  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.icon,
.social svg,
.calc-fab__icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Typography ---------- */

.display {
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.h2 {
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
}

.h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.25rem);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.05;
}

.lead {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 44ch;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--lime {
  background: var(--lime);
  color: var(--night);
}

.btn--lime:hover {
  background: #eaff5a;
}

.btn--ghost {
  border-color: var(--night-line-strong);
  color: var(--ink);
  background: rgba(35, 27, 59, 0.35);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--night {
  background: var(--night);
  color: var(--ink);
}

.btn--night:hover {
  background: #352a58;
}

.btn--outline-night {
  border-color: rgba(35, 27, 59, 0.35);
  color: var(--night);
}

.btn--outline-night:hover {
  border-color: var(--night);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--pink);
  color: var(--night);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  min-height: 42px;
  padding-block: 8px;
  text-align: center;
}

.topbar a {
  font-weight: 800;
  text-underline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.is-solid,
.site-header.is-scrolled,
.site-header.is-mega-open,
.site-header.is-drawer-open {
  background: rgba(35, 27, 59, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--night-line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.logo {
  display: block;
  flex: none;
}

.logo img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.nav__link:hover,
.nav__link[aria-expanded="true"] {
  background: rgba(244, 240, 255, 0.1);
}

.nav__link .chev {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease-out);
}

.nav__link[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-actions__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-muted);
}

.header-actions__phone:hover {
  color: var(--ink);
}

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--night-line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
}

.burger span {
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -6px;
}

.burger span::after {
  top: 6px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mega menu ---------- */

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--night);
  border-top: 1px solid var(--night-line);
  box-shadow: 0 30px 60px -20px rgba(10, 6, 24, 0.7);
  padding-block: 28px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s linear 0.22s;
}

.mega.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out), visibility 0s;
}

.mega__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: 28px;
}

.mega__heading {
  margin-bottom: 10px;
  padding-inline: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.mega__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 0.18s;
}

.mega__item img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow 0.18s;
}

.mega__item-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.mega__item-desc {
  display: block;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega__item .icon {
  color: var(--cyan);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s, transform 0.18s;
}

.mega__item.is-active {
  background: rgba(244, 240, 255, 0.07);
}

.mega__item.is-active img {
  box-shadow: 0 0 0 2px var(--cyan);
}

.mega__item.is-active .icon {
  opacity: 1;
  transform: none;
}

.mega__preview {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  padding: 28px;
}

.mega__preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: opacity 0.25s;
}

.mega__preview-img.is-fading {
  opacity: 0.2;
}

.mega__preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(27, 20, 48, 0.96) 0%, rgba(27, 20, 48, 0.55) 45%, rgba(27, 20, 48, 0) 75%);
}

.mega__preview-price {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(35, 27, 59, 0.8);
  color: var(--lime);
  font-size: 0.875rem;
  font-weight: 700;
}

.mega__preview-title {
  font-size: 2.5rem;
}

.mega__preview-text {
  margin-top: 10px;
  max-width: 46ch;
  color: var(--ink);
  opacity: 0.9;
}

.mega__preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.mega__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mega__calc {
  position: relative;
  display: block;
  padding: 20px 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--lime);
  color: var(--night);
  text-decoration: none;
  overflow: hidden;
}

.mega__calc img {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 104px;
  transform: rotate(-8deg);
  transition: transform 0.3s var(--ease-out);
}

.mega__calc:hover img {
  transform: rotate(-2deg) translateY(-4px);
}

.mega__calc strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.1;
}

.mega__calc span {
  display: block;
  max-width: 17ch;
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.mega__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega__links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--night-line);
  font-weight: 600;
  text-decoration: none;
}

.mega__links a:hover {
  color: var(--cyan);
}

.mega__links small {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.hours-mini {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 0;
  font-size: 0.9375rem;
}

.hours-mini dt {
  color: var(--ink-muted);
}

.hours-mini dd {
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.hours-mini .is-today {
  color: var(--lime);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(14, 9, 28, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0s linear 0.22s;
}

.scrim.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s, visibility 0s;
}

/* ---------- Mobile drawer ---------- */

.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--night);
  padding: 8px var(--gutter) 120px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}

.drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform 0.3s var(--ease-out), visibility 0s;
}

.drawer__group > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 85%;
  list-style: none;
  cursor: pointer;
}

.drawer__group > summary::-webkit-details-marker {
  display: none;
}

.drawer__group > summary .chev {
  width: 20px;
  height: 20px;
  transition: transform 0.25s;
}

.drawer__group[open] > summary .chev {
  transform: rotate(180deg);
}

.drawer__acts {
  list-style: none;
  margin: 0;
  padding: 8px 0 12px;
}

.drawer__acts a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.drawer__acts img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.drawer__link {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 85%;
  text-decoration: none;
}

.drawer__actions {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

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

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(640px, min(100svh, 920px));
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 35%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(35, 27, 59, 0.88) 0%, rgba(35, 27, 59, 0.55) 45%, rgba(35, 27, 59, 0) 75%),
    linear-gradient(180deg, rgba(35, 27, 59, 0.75) 0%, rgba(35, 27, 59, 0) 28%, rgba(35, 27, 59, 0) 55%, rgba(35, 27, 59, 1) 100%);
}

.hero__content {
  position: relative;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--night-line-strong);
  border-radius: 999px;
  background: rgba(35, 27, 59, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.9375rem;
  font-weight: 600;
}

.status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 127, 232, 0.2);
}

.status.is-open .status__dot {
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(222, 255, 0, 0.2);
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(5rem, 15.5vw, 13.5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.8;
  letter-spacing: -0.02em;
}

.hero__title .nowrap {
  white-space: nowrap;
}

/* Lauseen piste on keilapallo, joka vierii paikalleen sivun latautuessa */
.ball {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.04em;
  border-radius: 50%;
  vertical-align: baseline;
  background:
    radial-gradient(circle at 38% 34%, var(--night) 0 7%, transparent 8%),
    radial-gradient(circle at 60% 30%, var(--night) 0 7%, transparent 8%),
    radial-gradient(circle at 52% 52%, var(--night) 0 8%, transparent 9%),
    radial-gradient(circle at 32% 28%, #ffd2f6 0%, var(--pink) 45%, #c24fb1 100%);
  box-shadow: 0 0 0.12em rgba(255, 127, 232, 0.55);
  animation: ball-roll 1.15s var(--ease-out) 0.35s both;
}

@keyframes ball-roll {
  from {
    transform: translateX(70vw) rotate(720deg);
  }
  to {
    transform: none;
  }
}

.hero__lead {
  max-width: 36ch;
  margin-top: 28px;
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero__stamp {
  position: absolute;
  right: var(--gutter);
  top: -24px;
  width: clamp(120px, 12vw, 176px);
  transform: rotate(-9deg);
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.35));
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(72px, 10vw, 128px);
}

.hero + .section {
  padding-top: clamp(40px, 6vw, 72px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head .lead {
  max-width: 40ch;
}

/* ---------- Activities bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(210px, 21vw, 290px);
  gap: 16px;
}

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--night-raise);
}

.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(27, 20, 48, 0.94) 0%, rgba(27, 20, 48, 0.45) 42%, rgba(27, 20, 48, 0) 72%);
}

.tile:hover img {
  transform: scale(1.04);
}

.tile__price {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(35, 27, 59, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--lime);
  font-size: 0.875rem;
  font-weight: 700;
}

.tile__name {
  font-size: 1.875rem;
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1;
}

.tile__text {
  max-width: 38ch;
  margin-top: 8px;
  font-size: 0.96875rem;
  line-height: 1.4;
  color: var(--ink);
  opacity: 0.86;
}

.tile--keilaus {
  grid-column: span 2;
  grid-row: span 2;
  padding: 32px;
}

.tile--keilaus .tile__name {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
}

.tile--keilaus .tile__text {
  font-size: 1.125rem;
  max-width: 40ch;
}

.tile--pako {
  grid-row: span 2;
}

.tile--ravintola {
  grid-column: span 2;
}

.tile__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  color: var(--cyan);
}

/* ---------- Facts band ---------- */

.facts {
  background: var(--night-deep);
}

.facts__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(56px, 8vw, 96px);
}

.facts__mascot {
  width: clamp(130px, 16vw, 220px);
}

.facts__text {
  max-width: 30ch;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.1;
  text-wrap: balance;
}

.facts__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.facts__list li {
  padding: 8px 16px;
  border: 1px solid var(--night-line-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Groups (light section) ---------- */

.groups {
  background: var(--lavender);
  color: var(--night);
}

.groups__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.groups .lead {
  color: var(--plum-ink);
}

.groups__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.groups__photos {
  position: relative;
  margin-top: 48px;
  height: clamp(280px, 30vw, 400px);
}

.groups__photos img {
  position: absolute;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 24px 48px -24px rgba(35, 27, 59, 0.6);
}

.groups__photos img:first-child {
  left: 0;
  top: 0;
  width: 72%;
  height: 80%;
}

.groups__photos img:last-child {
  right: 0;
  bottom: 0;
  width: 46%;
  height: 58%;
  border: 6px solid var(--lavender);
}

.board__title {
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--plum-ink);
}

.board + .board {
  margin-top: 48px;
}

.board__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board__row {
  padding: 20px 0;
  border-bottom: 1px solid rgba(35, 27, 59, 0.16);
}

.board__line {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.board__name {
  font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.15;
}

.board__name a {
  text-decoration: none;
}

.board__name a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hinnaston pistejohde, kuten keilahallin ruokataululla */
.board__dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 2px dotted rgba(35, 27, 59, 0.35);
  transform: translateY(-6px);
}

.board__price {
  font-size: clamp(1.3125rem, 1.8vw, 1.625rem);
  font-weight: 800;
  font-stretch: 85%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.board__desc {
  max-width: 52ch;
  margin-top: 6px;
  color: var(--plum-ink);
  font-size: 1rem;
}

/* ---------- Visit ---------- */

.visit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.hours {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  max-width: 460px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--night-line);
  font-size: 1.3125rem;
}

.hours__day {
  font-weight: 600;
}

.hours__time {
  font-weight: 800;
  font-stretch: 85%;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
}

.hours li.is-today .hours__day::after {
  content: "Tänään";
  margin-left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  font-size: 0.8125rem;
  font-weight: 700;
  vertical-align: 3px;
}

.contact {
  display: grid;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.contact a,
.contact span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  text-decoration: none;
}

.contact a:hover {
  color: var(--cyan);
}

.contact .icon {
  color: var(--cyan);
}

.visit__photo {
  position: relative;
}

.visit__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.visit__badge {
  position: absolute;
  left: -28px;
  bottom: 40px;
  max-width: 260px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--cyan);
  color: var(--night);
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.visit__badge small {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 0.9375rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night-deep);
  padding-block: 72px 40px;
  font-size: 0.96875rem;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__brand img.footer__logo {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  max-width: 30ch;
  margin-top: 18px;
  color: var(--ink-muted);
}

.footer__stamp {
  width: 112px;
  margin-top: 24px;
  transform: rotate(-8deg);
}

.footer__col h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 700;
}

.footer__col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  color: var(--ink-muted);
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.footer__bottom a {
  color: inherit;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--night-line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.social a:hover {
  background: var(--ink);
  color: var(--night);
  border-color: var(--ink);
}

.social svg {
  width: 20px;
  height: 20px;
}

/* ---------- Floating quote calculator button ---------- */

.calc-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 22px 7px 7px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--night);
  text-decoration: none;
  box-shadow: 0 0 0 3px var(--night), 0 12px 40px -6px rgba(255, 127, 232, 0.8);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, opacity 0.25s, visibility 0s;
}

.calc-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px var(--night), 0 18px 48px -6px rgba(255, 127, 232, 0.95);
}

.calc-fab__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--night);
  color: var(--lime);
}

.calc-fab__icon svg {
  width: 22px;
  height: 22px;
}

.calc-fab__label {
  display: grid;
  line-height: 1.15;
}

.calc-fab__label strong {
  font-size: 1.0625rem;
  font-weight: 800;
}

.calc-fab__label small {
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.75;
}

/* ---------- Responsive ---------- */

@media (max-width: 1500px) {
  .header-actions__phone {
    display: none;
  }
}

@media (max-width: 1180px) {

  .mega__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

  .mega__side {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 1040px) {
  .nav,
  .header-actions .btn--ghost {
    display: none;
  }

  .burger {
    display: grid;
  }

  .mega,
  .scrim {
    display: none;
  }

  .groups__grid,
  .visit__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit__badge {
    left: 16px;
  }
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 230px;
  }

  .tile--keilaus {
    grid-column: span 2;
    grid-row: span 2;
  }

  .tile--pako {
    grid-row: span 2;
  }

  .tile--ravintola {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 68px;
  }

  .logo img {
    height: 36px;
  }

  .header-actions .btn--lime {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.9375rem;
  }

  .hero {
    min-height: max(600px, 92svh);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(35, 27, 59, 0.75) 0%, rgba(35, 27, 59, 0.2) 30%, rgba(35, 27, 59, 0.6) 58%, rgba(35, 27, 59, 1) 100%);
  }

  .hero__stamp {
    display: none;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 240px;
  }

  .tile--keilaus,
  .tile--pako,
  .tile--ravintola {
    grid-column: auto;
    grid-row: auto;
  }

  .tile--keilaus {
    min-height: 360px;
    padding: 24px;
  }

  .facts__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .board__line {
    justify-content: space-between;
  }

  .board__dots {
    display: none;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-fab {
    padding-right: 18px;
  }

  /* Mobiilissa nappi tulee esiin, kun heron painikkeet on ohitettu */
  .calc-fab.is-tucked {
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0s linear 0.25s;
  }

  .calc-fab__label small {
    display: none;
  }

  .calc-fab__icon {
    width: 40px;
    height: 40px;
  }
}

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