/* Jubal Studios — site styles (theme: graphite + teal glow + warm amber CTAs) */
:root {
  --bg-deep: #04080d;
  --bg: #0c141c;
  --bg-elevated: #121c28;
  --bg-card: #162230;
  --border: rgba(186, 210, 225, 0.1);
  --text: #f0f5f9;
  --text-muted: #8fa3b4;
  --accent: #f0b429;
  --accent-mid: #c9861f;
  --accent-soft: rgba(240, 180, 41, 0.16);
  --accent-2: #22d3ee;
  --accent-2-soft: rgba(34, 211, 238, 0.14);
  --danger: #f87171;
  --success: #34d399;
  --text-dim: #6b7c8a;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 22px 64px rgba(0, 10, 24, 0.52);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-weight-normal: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --max: 1120px;
  --max-wide: 1320px;
  --header-h: 60px;
  /* Motion — smooth deceleration, slightly longer defaults */
  --ease-out: cubic-bezier(0.22, 1, 0.45, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.55, 1);
  --ease-reveal: cubic-bezier(0.33, 1, 0.65, 1);
  --ease-ken: cubic-bezier(0.42, 0, 0.58, 1);
  --t-fast: 0.22s;
  --t-med: 0.42s;
  --t-slow: 0.72s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Keeps in-page anchors and scrollIntoView() clear of the sticky header */
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  overflow-x: clip;
  color-scheme: dark;
}

/* In-page booking anchors clear sticky header */
#booking,
#pricing,
#hub-book-lesson,
#hub-book-rec,
#hub-book-reh {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-weight: var(--font-weight-normal);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 70% at 12% 0%, var(--accent-2-soft), transparent 52%),
    radial-gradient(ellipse 90% 55% at 88% 15%, rgba(240, 180, 41, 0.08), transparent 48%),
    radial-gradient(ellipse 85% 45% at 50% 100%, rgba(12, 80, 110, 0.18), transparent 50%);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

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

a {
  color: rgba(244, 242, 248, 0.82);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-soft), text-decoration-color var(--t-fast) var(--ease-soft);
}

a:hover {
  color: rgba(244, 242, 248, 0.92);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
}

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

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  outline-offset: 0;
}

.card.form .btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-family: var(--font-sans);
  font-weight: 500;
}

.skip-link:focus {
  left: 0.75rem;
}

/* Header — bar + nav (compact uppercase links, centered inner) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  border-bottom: 1px solid var(--border);
  /* Frosted bar: translucent fill + backdrop blur */
  background: rgba(12, 20, 28, 0.82);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  /* Logo at viewport left; keep a bit of room for safe area / tap targets */
  padding-left: max(0.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: opacity var(--t-med) var(--ease-soft), transform var(--t-med) var(--ease-soft);
}

.logo span {
  color: var(--accent);
}

.logo-img {
  display: block;
  height: clamp(40px, 6vw, 56px);
  width: auto;
  max-width: min(72px, 20vw);
  object-fit: contain;
  object-position: left center;
}

.logo:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.logo:active {
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font: inherit;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease-soft), border-color var(--t-fast) var(--ease-soft),
    transform var(--t-fast) var(--ease-soft);
}

.nav-toggle:hover {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle:active {
  transform: scale(0.98);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.35rem;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: currentColor;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--t-fast) var(--ease-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.55rem 0.62rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(12, 20, 28, 0.92);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
    transform: translate3d(0, -120%, 0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.42s var(--ease-out), opacity 0.35s var(--ease-soft);
  }

  .site-nav.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease-soft), box-shadow var(--t-med) var(--ease-soft),
    background var(--t-med) var(--ease-soft), border-color var(--t-med) var(--ease-soft),
    filter var(--t-fast) var(--ease-soft), opacity var(--t-fast) var(--ease-soft);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
  opacity: 0.95;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 100%);
  color: #0c0a06;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(240, 180, 41, 0.14);
}

.btn-primary:hover {
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(240, 180, 41, 0.22);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary:active {
  transform: scale(0.98) translateY(0);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.025);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-ghost:active {
  transform: scale(0.98);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.28);
  text-decoration: none;
}

.btn-whatsapp:active {
  transform: scale(0.98);
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap--wide {
  max-width: var(--max-wide);
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-kicker {
  display: none !important;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 52ch;
}

/* Main content blocks: subtle top → bottom stagger (first section is hero) */
@media (prefers-reduced-motion: no-preference) {
  main#main > section:not(:first-of-type) {
    animation: studio-reveal 1.05s var(--ease-reveal) both;
  }

  main#main > section:nth-of-type(2) {
    animation-delay: 0.06s;
  }

  main#main > section:nth-of-type(3) {
    animation-delay: 0.108s;
  }

  main#main > section:nth-of-type(4) {
    animation-delay: 0.156s;
  }

  main#main > section:nth-of-type(5) {
    animation-delay: 0.204s;
  }

  main#main > section:nth-of-type(6) {
    animation-delay: 0.252s;
  }

  main#main > section:nth-of-type(7) {
    animation-delay: 0.3s;
  }

  main#main > section:nth-of-type(8) {
    animation-delay: 0.348s;
  }

  main#main > section:nth-of-type(9) {
    animation-delay: 0.396s;
  }

  main#main > section:nth-of-type(10) {
    animation-delay: 0.444s;
  }

  main#main > section:nth-of-type(11) {
    animation-delay: 0.492s;
  }

  main#main > section:nth-of-type(12) {
    animation-delay: 0.54s;
  }

  main#main > section:nth-of-type(13) {
    animation-delay: 0.588s;
  }

  main#main > section:nth-of-type(14) {
    animation-delay: 0.636s;
  }

  main#main > section:nth-of-type(15) {
    animation-delay: 0.684s;
  }

  main#main > section:nth-of-type(16) {
    animation-delay: 0.732s;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Obvious slow zoom + pan on all hero photos (seamless loop) */
@keyframes hero-bg-live {
  0%,
  100% {
    transform: scale(1.07) translate(0%, 0%);
  }
  50% {
    transform: scale(1.2) translate(-4.5%, 3%);
  }
}

.hero-bg img {
  max-width: none;
  transform-origin: 44% 38%;
  will-change: transform;
  animation: hero-bg-live 24s ease-in-out infinite;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 8, 13, 0.38) 0%,
    rgba(4, 8, 13, 0.76) 55%,
    var(--bg-deep) 100%
  );
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero:not(.hero-compact) .wrap > * {
  animation: studio-reveal 1.05s var(--ease-reveal) backwards;
}

.hero:not(.hero-compact) .wrap > *:nth-child(1) {
  animation-delay: 0.12s;
}

.hero:not(.hero-compact) .wrap > *:nth-child(2) {
  animation-delay: 0.28s;
}

.hero:not(.hero-compact) .wrap > *:nth-child(3) {
  animation-delay: 0.44s;
}

.hero-compact .wrap > * {
  animation: studio-reveal 0.92s var(--ease-reveal) backwards;
}

.hero-compact .wrap > *:nth-child(1) {
  animation-delay: 0.08s;
}

.hero-compact .wrap > *:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-compact .wrap > *:nth-child(3) {
  animation-delay: 0.32s;
}

.hero-compact .wrap > *:nth-child(4) {
  animation-delay: 0.44s;
}

@keyframes studio-reveal {
  0% {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wire tiles / programme thumbs — short entrance */
@keyframes wire-thumb-enter {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(0.6rem);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Home hero: clearer top → bottom cascade on load (refresh) */
@keyframes hero-enter-down {
  0% {
    opacity: 0;
    transform: translate3d(0, -1.5rem, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

body[data-page="home"] .hero:not(.hero-compact) .wrap > * {
  animation-name: hero-enter-down;
  animation-duration: 1.18s;
  animation-timing-function: var(--ease-reveal);
  animation-fill-mode: backwards;
}

body[data-page="home"] .hero:not(.hero-compact) .wrap > *:nth-child(1) {
  animation-delay: 0.06s;
}

body[data-page="home"] .hero:not(.hero-compact) .wrap > *:nth-child(2) {
  animation-delay: 0.24s;
}

body[data-page="home"] .hero:not(.hero-compact) .wrap > *:nth-child(3) {
  animation-delay: 0.42s;
}

.hero-compact {
  min-height: auto;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  align-items: center;
}

.hero-compact .hero-bg {
  opacity: 0.52;
}

.hero-compact .hero-overlay {
  background: linear-gradient(120deg, rgba(4, 8, 13, 0.92), rgba(4, 8, 13, 0.62));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 1rem;
  max-width: 14ch;
}

body[data-page="home"] .hero-title {
  max-width: min(34rem, 100%);
  line-height: 1.1;
}

body[data-page="home"] .hero-title .hero-title__brand {
  font-size: 1.42em;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (max-width: 700px) {
  body[data-page="home"] .hero-title .hero-title__rest {
    display: block;
    margin-top: 0.2em;
    font-weight: 600;
    line-height: 1.2;
  }
}

.hero-text {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 40ch;
  margin: 0 0 1.75rem;
}

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

/* Grids */
.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-soft),
    box-shadow var(--t-slow) var(--ease-soft);
}

.card:hover {
  border-color: rgba(34, 211, 238, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 28px 72px rgba(0, 12, 28, 0.58);
}

/* Form panels — no lift / shadow change on hover */
.card.form:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.card.form .btn-primary:hover {
  transform: none;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  filter: none;
}

.card.form .btn-ghost:hover {
  transform: none;
  border-color: var(--border);
  background: transparent;
}

.card.form .btn-whatsapp:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

a.card:hover {
  text-decoration: none;
}

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.card:hover .card-media img {
  transform: scale(1.045);
}

/* Lessons — wireframe programme grid (black field, white rules, square thumbs) */
body[data-page="lessons"] .lessons-wire-section {
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  width: 100%;
  box-sizing: border-box;
  background: #000;
  color: #fff;
}

body[data-page="lessons"] .lessons-wire-section__header .section-kicker {
  display: block !important;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}

body[data-page="lessons"] .lessons-wire-section__header .section-title {
  color: #fff;
}

body[data-page="lessons"] .lessons-wire-section__header .section-lead {
  color: rgba(255, 255, 255, 0.72);
  max-width: 52ch;
}

body[data-page="lessons"] .lessons-wire-grid {
  --wire-line: rgba(255, 255, 255, 0.92);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  margin-top: 2rem;
  margin-inline: 0;
  box-sizing: border-box;
  border-top: 1px solid var(--wire-line);
  border-left: 1px solid var(--wire-line);
  background: #000;
}

body[data-page="lessons"] .lessons-wire-cell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--wire-line);
  border-bottom: 1px solid var(--wire-line);
}

body[data-page="lessons"] .lessons-wire-cell__top {
  padding: 15px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

body[data-page="lessons"] .lessons-wire-cell__top img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.55s var(--ease-out), filter 0.45s var(--ease-soft);
}

body[data-page="lessons"] .lessons-wire-cell:hover .lessons-wire-cell__top img {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.05);
}

@media (prefers-reduced-motion: no-preference) {
  body[data-page="lessons"] .lessons-wire-cell {
    animation: wire-thumb-enter 0.72s var(--ease-reveal) backwards;
  }

  body[data-page="lessons"] .lessons-wire-cell:nth-child(1) {
    animation-delay: 0.05s;
  }

  body[data-page="lessons"] .lessons-wire-cell:nth-child(2) {
    animation-delay: 0.1s;
  }

  body[data-page="lessons"] .lessons-wire-cell:nth-child(3) {
    animation-delay: 0.15s;
  }

  body[data-page="lessons"] .lessons-wire-cell:nth-child(4) {
    animation-delay: 0.2s;
  }

  body[data-page="lessons"] .lessons-wire-cell:nth-child(5) {
    animation-delay: 0.25s;
  }

  body[data-page="lessons"] .lessons-wire-cell:nth-child(6) {
    animation-delay: 0.3s;
  }

  body[data-page="lessons"] .lessons-wire-cell:nth-child(7) {
    animation-delay: 0.35s;
  }

  body[data-page="lessons"] .lessons-wire-cell:nth-child(8) {
    animation-delay: 0.4s;
  }
}

body[data-page="lessons"] .lessons-wire-cell__text {
  flex: 1 1 auto;
  border-top: 1px solid var(--wire-line);
  padding: 15px;
  min-height: 5.75rem;
}

body[data-page="lessons"] .lessons-wire-cell__text p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.45;
  color: #fff;
}

body[data-page="lessons"] .lessons-wire-cell__text strong {
  font-weight: 500;
}

@media (max-width: 1100px) {
  body[data-page="lessons"] .lessons-wire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body[data-page="lessons"] .lessons-wire-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="lessons"] .lessons-wire-cell__text {
    min-height: 0;
  }
}

.card-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

.icon-card {
  text-align: left;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Home — Explore the studio: wire strip + image-cover tiles (same language as about wire) */
body[data-page="home"] .quick-actions--wire .quick-actions__wire {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-block: 0 clamp(2.25rem, 5vw, 3.75rem);
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  overflow-x: clip;
}

body[data-page="home"] .quick-actions--wire .quick-actions__wire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #000;
  min-height: clamp(300px, 48vh, 580px);
}

body[data-page="home"] .quick-actions__wire-cell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  text-decoration: none;
  color: inherit;
  outline-offset: 2px;
  transition: background 0.2s var(--ease-soft);
}

body[data-page="home"] .quick-actions__wire-cell:hover {
  background: rgba(255, 255, 255, 0.03);
}

body[data-page="home"] .quick-actions__wire-media {
  position: relative;
  flex: 1 1 auto;
  min-height: clamp(200px, 36vh, 420px);
  overflow: hidden;
}

body[data-page="home"] .quick-actions__wire-image-well {
  position: absolute;
  inset: 0;
}

body[data-page="home"] .quick-actions__wire-image-well img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.55s var(--ease-out), filter 0.45s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .quick-actions__wire-cell:hover .quick-actions__wire-image-well img,
  body[data-page="home"] .quick-actions__wire-cell:focus-visible .quick-actions__wire-image-well img {
    transform: scale(1.06);
    filter: brightness(1.04) saturate(1.04);
  }
}

body[data-page="home"] .quick-actions__wire-text {
  flex: 0 0 auto;
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.5vw, 1.5rem);
  font-family: var(--font-sans);
}

body[data-page="home"] .quick-actions__wire-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

body[data-page="home"] .quick-actions__wire-desc {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(245, 250, 255, 0.78);
}

body[data-page="home"] .quick-actions__wire-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-sizing: border-box;
  transition: background var(--t-fast) var(--ease-soft), color var(--t-fast) var(--ease-soft),
    border-color var(--t-fast) var(--ease-soft);
}

body[data-page="home"] .quick-actions__wire-cell:hover .quick-actions__wire-cta,
body[data-page="home"] .quick-actions__wire-cell:focus-visible .quick-actions__wire-cta {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 800px) {
  body[data-page="home"] .quick-actions--wire .quick-actions__wire-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-page="home"] .quick-actions__wire-media {
    min-height: clamp(200px, 42vw, 320px);
    aspect-ratio: 16 / 10;
  }
}

/* Home image bands — wider frame than default cards */
.instruments-showcase .card-media {
  aspect-ratio: 2 / 1;
}

/* Home — about: lessons-style wire grid, two cells only (photo | copy) */
body[data-page="home"] .about-story {
  overflow-x: clip;
}

body[data-page="home"] .about-story__wire {
  padding-block: clamp(2.25rem, 5vw, 3.75rem);
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  overflow-x: clip;
}

body[data-page="home"] .about-story__wire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: 0;
  box-sizing: border-box;
  background: #000;
  min-height: clamp(380px, 55vh, 720px);
}

body[data-page="home"] .about-story__wire-cell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

/* Photo tile: image covers the entire cell (person fills the grid) */
body[data-page="home"] .about-story__wire-cell--media {
  position: relative;
  padding: 0;
  overflow: hidden;
}

body[data-page="home"] .about-story__wire-cell--media .about-story__wire-image-well {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  display: block;
  min-height: 0;
}

body[data-page="home"] .about-story__wire-cell--media .about-story__wire-figure {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: 100%;
  overflow: hidden;
}

body[data-page="home"] .about-story__wire-cell--media .about-story__wire-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: 28% center;
  border-radius: 0;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.55s var(--ease-out), filter 0.45s var(--ease-soft);
}

@media (hover: hover) and (pointer: fine) {
  body[data-page="home"] .about-story__wire-cell--media:hover .about-story__wire-img {
    transform: scale(1.05);
    filter: brightness(1.05) saturate(1.05);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body[data-page="home"] .about-story__wire-cell--media .about-story__wire-img {
    animation: wire-thumb-enter 0.85s var(--ease-reveal) 0.08s backwards;
  }
}

body[data-page="home"] .about-story__wire-cell--copy {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body[data-page="home"] .about-story__wire-copy {
  padding: clamp(1.25rem, 3.5vw, 2rem) clamp(1.1rem, 3vw, 1.75rem);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 0;
  box-sizing: border-box;
  width: 100%;
}

body[data-page="home"] .about-story .about-story__kicker {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

body[data-page="home"] .about-story .about-story__heading {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 1.1rem;
  max-width: none;
}

body[data-page="home"] .about-story .about-story__body {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.75;
  color: rgba(245, 250, 255, 0.78);
  max-width: 48ch;
  margin: 0;
}

@media (max-width: 900px) {
  body[data-page="home"] .about-story__wire-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-page="home"] .about-story__wire-cell--media {
    width: 100%;
    max-width: 100%;
    min-height: clamp(220px, 48vw, 360px);
    aspect-ratio: 4 / 3;
    max-height: min(52vh, 380px);
  }

  body[data-page="home"] .about-story__wire-copy {
    padding-top: clamp(1.25rem, 4vw, 1.75rem);
  }
}

@media (max-width: 520px) {
  body[data-page="home"] .about-story__wire-cell--media .about-story__wire-img {
    object-position: 22% center;
  }

  body[data-page="home"] .about-story__wire-cell--media {
    aspect-ratio: 1 / 1;
    min-height: 0;
    max-height: min(68vw, 320px);
  }
}

/* Equipment strip */
.equipment-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

/* Home “professional gear” row — taller cells, larger photos */
.equipment-row--large {
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.equipment-row--large .equipment-item {
  min-height: clamp(220px, 32vw, 420px);
  aspect-ratio: auto;
}

@media (max-width: 900px) {
  .equipment-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .equipment-row--large .equipment-item {
    min-height: clamp(200px, 42vw, 320px);
  }
}

.equipment-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  min-height: 0;
  transition: border-color var(--t-med) var(--ease-soft), transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-soft);
}

.equipment-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.equipment-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.equipment-item:hover img {
  transform: scale(1.06);
}

/* Packages */
.package-list {
  display: grid;
  gap: 1rem;
}

.package {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t-med) var(--ease-soft), background var(--t-med) var(--ease-soft),
    transform var(--t-fast) var(--ease-soft);
}

.package:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.012);
  transform: translateX(4px);
}

.package h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.package p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

.package-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.25rem;
}

/* Calendar mock */
.calendar-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--t-med) var(--ease-soft), box-shadow var(--t-med) var(--ease-soft);
}

.calendar-mock:hover {
  border-color: rgba(255, 255, 255, 0.095);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.calendar-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  text-align: center;
  font-size: 1rem;
}

.calendar-grid .dow {
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.calendar-grid .day {
  padding: 0.5rem 0;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid transparent;
}

.calendar-grid .day.available {
  border-color: rgba(92, 225, 168, 0.35);
  color: var(--success);
}

.calendar-grid .day.booked {
  opacity: 0.45;
  text-decoration: line-through;
}

.calendar-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.legend-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.legend-dot.open {
  background: var(--success);
}

.legend-dot.busy {
  background: var(--text-muted);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.quote {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text);
}

.quote-author {
  font-size: 1rem;
  color: var(--text-muted);
}

.quote-author strong {
  color: var(--text);
}

/* Gallery — uniform responsive grid */
.gallery-grid {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  aspect-ratio: 3 / 2;
  position: relative;
  transition: border-color var(--t-med) var(--ease-soft), box-shadow var(--t-med) var(--ease-soft),
    transform var(--t-fast) var(--ease-soft);
}

.gallery-item:hover {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: 0 12px 40px rgba(0, 10, 24, 0.45);
}

.gallery-item:focus-within {
  outline: none;
  border-color: rgba(240, 180, 41, 0.45);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Gallery page only: use wider max-width + less side padding so 3-col grid fills the view */
body[data-page="gallery"] main#main > section.section .wrap {
  max-width: min(var(--max-wide), calc(100vw - clamp(0.75rem, 4vw, 2rem)));
  padding-left: clamp(0.5rem, 2.5vw, 1rem);
  padding-right: clamp(0.5rem, 2.5vw, 1rem);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form-row-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

label {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--t-fast) var(--ease-soft), box-shadow var(--t-fast) var(--ease-soft),
    background var(--t-fast) var(--ease-soft);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0;
}

.field-error {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--danger);
  font-size: 1rem;
  margin-top: 0.25rem;
  display: none;
}

.field-error.is-visible {
  display: block;
}

/* Inline thank-you after submit (no redirect) */
.form-success {
  display: none;
  text-align: center;
  padding: 1rem 0.25rem;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.form-success:not([hidden]) {
  display: grid;
}

.form-success[hidden] {
  display: none !important;
}

.form-success-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.02em;
}

.form-success-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.form-success-note {
  margin: 0;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  max-width: 420px;
  margin-left: auto;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-soft);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Back to top — injected by js/main.js on all pages that load it */
.scroll-top {
  position: fixed;
  z-index: 210;
  right: max(1rem, env(safe-area-inset-right, 0px) + 0.5rem);
  bottom: max(1.15rem, env(safe-area-inset-bottom, 0px) + 0.75rem);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(12, 20, 28, 0.88);
  color: var(--text);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem) scale(0.96);
  pointer-events: none;
  transition: opacity 0.28s var(--ease-soft), transform 0.32s var(--ease-out), visibility 0.28s,
    border-color 0.2s var(--ease-soft), background 0.2s var(--ease-soft);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  border-color: rgba(240, 180, 41, 0.35);
  background: rgba(18, 28, 40, 0.95);
}

.scroll-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.scroll-top svg {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition-duration: 0.01ms;
  }

  .scroll-top.is-visible {
    transform: none;
  }
}

/* Contact strip */
.contact-strip {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1.2fr;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-strip {
    grid-template-columns: 1fr;
  }
}

.contact-cards {
  display: grid;
  gap: 0.75rem;
}

.contact-card {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--t-med) var(--ease-soft), background var(--t-med) var(--ease-soft),
    transform var(--t-fast) var(--ease-soft);
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.018);
  transform: translateY(-2px);
}

.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.contact-card p,
.contact-card a {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Buttons inside contact cards must keep CTA colours (card link rule above wins on specificity/order) */
.contact-card a.btn,
.contact-card a.btn-whatsapp {
  color: #fff;
  text-decoration: none;
}

.contact-card a.btn-whatsapp:hover,
.contact-card a.btn-whatsapp:focus-visible {
  color: #fff;
  text-decoration: none;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 280px;
  background: var(--bg-elevated);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 2rem;
  background: rgba(4, 8, 13, 0.94);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.footer-brand span {
  color: var(--accent);
}

.footer-tag {
  color: var(--text-muted);
  margin: 0;
  max-width: 36ch;
  font-size: 1rem;
  font-weight: 300;
}

.footer-col h4 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-soft), text-decoration-color var(--t-fast) var(--ease-soft);
}

.footer-col a:hover {
  color: rgba(244, 242, 248, 0.88);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.14);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--text-muted);
}

.socials {
  display: flex;
  gap: 0.75rem;
}

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

.socials a:hover {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.12);
}

/* Icon-only social row (footer + legal pages) */
.socials.socials--icons {
  gap: 0.5rem;
  align-items: center;
}

.socials--icons .social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  transition:
    color var(--t-fast) var(--ease-soft),
    background var(--t-fast) var(--ease-soft),
    border-color var(--t-fast) var(--ease-soft),
    transform var(--t-fast) var(--ease-soft);
}

.socials--icons .social-icon-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transform: translateY(-1px);
}

.socials--icons .social-icon-link svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.socials--icons .social-icon-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

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

.price-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-table tr:last-child td {
  border-bottom: none;
}

/* Utilities */
.mt-0 {
  margin-top: 0;
}

.text-center {
  text-align: center;
}

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

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

  .hero .hero-bg img,
  .hero:not(.hero-compact) .wrap > *,
  .hero-compact .wrap > *,
  main#main > section:not(:first-of-type) {
    animation: none !important;
  }

  body[data-page="lessons"] .lessons-wire-cell,
  body[data-page="home"] .about-story__wire-cell--media .about-story__wire-img {
    animation: none !important;
  }

  .card,
  .card-media img,
  body[data-page="home"] .quick-actions__wire-image-well img,
  body[data-page="home"] .about-story__wire-cell--media .about-story__wire-img,
  body[data-page="lessons"] .lessons-wire-cell__top img,
  .equipment-item,
  .equipment-item img,
  .gallery-item,
  .gallery-item img,
  .package,
  .btn,
  .logo,
  .contact-card,
  .calendar-mock,
  .site-nav,
  .socials--icons .social-icon-link {
    transition-duration: 0.01ms !important;
  }

  .card:hover,
  .equipment-item:hover,
  .gallery-item:hover,
  .package:hover {
    transform: none !important;
  }

  .card:hover .card-media img,
  body[data-page="home"] .quick-actions__wire-cell:hover .quick-actions__wire-image-well img,
  body[data-page="home"] .quick-actions__wire-cell:focus-visible .quick-actions__wire-image-well img,
  body[data-page="home"] .about-story__wire-cell--media:hover .about-story__wire-img,
  body[data-page="lessons"] .lessons-wire-cell:hover .lessons-wire-cell__top img,
  .equipment-item:hover img,
  .gallery-item:hover img {
    transform: none !important;
    filter: none !important;
  }

  body[data-page="lessons"] .lessons-wire-cell__top img {
    filter: none !important;
  }

  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-whatsapp:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }

  .socials--icons .social-icon-link:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* =============================================================================
   Studio hub — studio-services.html (scoped so .contact-strip / .section etc.
   do not override the contact page or rest of the site)
   ============================================================================= */

body[data-page="services"] main#main .wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

body[data-page="services"] main#main > section.hero .wrap {
  max-width: var(--max);
  padding: 0 1.25rem;
}

body[data-page="services"] .site-footer .wrap {
  max-width: 860px;
  padding: 0 2rem;
}

body[data-page="services"] main#main .form-submit {
  width: 100%;
}

body[data-page="services"] .section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

body[data-page="services"] .section:last-child {
  border-bottom: none;
}

body[data-page="services"] .section-header {
  margin-bottom: 2rem;
}

body[data-page="services"] .eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

body[data-page="services"] .section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.1vw, 1.95rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

body[data-page="services"] .services-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

body[data-page="services"] .svc {
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg-card);
}

body[data-page="services"] .svc:last-child {
  border-right: none;
}

body[data-page="services"] .svc-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

body[data-page="services"] .svc-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

body[data-page="services"] .svc-link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

body[data-page="services"] .svc-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page="services"] .rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

body[data-page="services"] .rates-table th {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

body[data-page="services"] .rates-table td {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-muted);
}

body[data-page="services"] .rates-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

body[data-page="services"] .rates-table td:last-child {
  text-align: right;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

body[data-page="services"] .rates-table tr:last-child td {
  border-bottom: none;
}

body[data-page="services"] .rates-table th:last-child {
  text-align: right;
}

body[data-page="services"] .rate-note {
  font-size: 1rem;
  color: var(--text-dim);
  margin-top: 1rem;
  font-style: italic;
}

body[data-page="services"] .rate-section-label {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

body[data-page="services"] .rate-section-label--spaced {
  margin: 2rem 0 0.75rem;
}

/* Pricing “need a quote” strip — not the same layout as contact.html .contact-strip */
body[data-page="services"] .contact-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

body[data-page="services"] .contact-strip p {
  font-size: 1rem;
  color: var(--text-muted);
}

body[data-page="services"] .contact-strip strong {
  color: var(--text);
  font-weight: 600;
}

body[data-page="services"] .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

body[data-page="services"] .form-intro p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

body[data-page="services"] .form-intro .detail {
  font-size: 1rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 1rem;
  line-height: 1.8;
}

body[data-page="services"] .form-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

body[data-page="services"] .form-block h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text);
}

body[data-page="services"] .field {
  margin-bottom: 1rem;
}

body[data-page="services"] .field label {
  display: block;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

body[data-page="services"] .field input,
body[data-page="services"] .field select,
body[data-page="services"] .field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

body[data-page="services"] .field input:focus,
body[data-page="services"] .field select:focus,
body[data-page="services"] .field textarea:focus {
  border-color: rgba(240, 180, 41, 0.55);
}

body[data-page="services"] .field textarea {
  resize: vertical;
  min-height: 80px;
}

body[data-page="services"] .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

body[data-page="services"] .field-error {
  font-size: 1rem;
  color: var(--danger);
  margin-top: 0.3rem;
  min-height: 1em;
}

body[data-page="services"] #booking .form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.8rem;
}

body[data-page="services"] .form-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

body[data-page="services"] .form-tab {
  flex: 1;
  padding: 0.55rem 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: none;
  border-right: 1px solid var(--border);
  font-family: var(--font-sans);
  transition: background 0.15s, color 0.15s;
}

body[data-page="services"] .form-tab:last-child {
  border-right: none;
}

body[data-page="services"] .form-tab.active {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
}

body[data-page="services"] .form-panel {
  display: none;
}

body[data-page="services"] .form-panel.active {
  display: block;
}

/* Booking section: wider layout */
body[data-page="services"] main#main > section#booking .wrap {
  max-width: min(1120px, 100%);
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* White booking card (studio hub #booking only) — larger, more rectangular */
body[data-page="services"] #booking .form-block {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  color-scheme: light;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.75rem, 3.5vw, 2.75rem);
  min-height: min(520px, 72vh);
}

body[data-page="services"] #booking .form-tabs {
  border-color: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

body[data-page="services"] #booking .form-tab {
  background: #f1f5f9;
  color: #475569;
  border-right-color: #e2e8f0;
}

body[data-page="services"] #booking .form-tab:hover:not(.active) {
  background: #e2e8f0;
  color: #334155;
}

body[data-page="services"] #booking .form-tab.active {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 600;
}

body[data-page="services"] #booking .field label {
  color: #64748b;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
}

body[data-page="services"] #booking .field input,
body[data-page="services"] #booking .field select,
body[data-page="services"] #booking .field textarea {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 6px;
  font-size: 0.875rem;
}

body[data-page="services"] #booking .field textarea {
  min-height: 140px;
}

body[data-page="services"] #booking .field input::placeholder,
body[data-page="services"] #booking .field textarea::placeholder {
  color: #94a3b8;
}

body[data-page="services"] #booking .field input:focus,
body[data-page="services"] #booking .field select:focus,
body[data-page="services"] #booking .field textarea:focus {
  border-color: #94a3b8;
  box-shadow: none;
}

body[data-page="services"] #booking .form-success-title {
  color: #0f172a;
}

body[data-page="services"] #booking .form-success h3 {
  color: #0f172a;
}

body[data-page="services"] #booking .form-success-text {
  color: #475569;
}

body[data-page="services"] #booking .form-success p {
  color: #475569;
}

body[data-page="services"] .location-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

body[data-page="services"] .loc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

body[data-page="services"] .loc-card h4 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

body[data-page="services"] .loc-card p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

body[data-page="services"] .loc-card a {
  color: var(--accent);
}

body[data-page="services"] .loc-card a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  body[data-page="services"] .services-row {
    grid-template-columns: 1fr;
  }

  body[data-page="services"] .svc {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  body[data-page="services"] .svc:last-child {
    border-bottom: none;
  }

  body[data-page="services"] .form-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="services"] .location-row {
    grid-template-columns: 1fr;
  }

  body[data-page="services"] .field-row {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   Contact page — contact.html (visible kickers + hero height; same dark tokens)
   ============================================================================= */

body[data-page="contact"] .section-kicker {
  display: inline-block !important;
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

body[data-page="contact"] .hero .section-kicker {
  color: rgba(240, 180, 41, 0.95);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

body[data-page="contact"] .hero.hero-compact {
  min-height: min(58vh, 520px);
}

/* WhatsApp form — same light rectangular card as studio #booking */
body[data-page="contact"] .contact-form-panel.card.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  max-width: min(640px, 100%);
  min-height: min(360px, 52vh);
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.75rem, 3.5vw, 2.75rem);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  color-scheme: light;
}

body[data-page="contact"] .contact-form-panel.card.form:hover {
  transform: none;
  border-color: rgba(15, 23, 42, 0.16);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
}

body[data-page="contact"] .contact-form-panel label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.4rem;
}

body[data-page="contact"] .contact-form-panel input,
body[data-page="contact"] .contact-form-panel textarea {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  color: #0f172a;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}

body[data-page="contact"] .contact-form-panel textarea {
  min-height: 140px;
  resize: vertical;
}

body[data-page="contact"] .contact-form-panel input::placeholder,
body[data-page="contact"] .contact-form-panel textarea::placeholder {
  color: #94a3b8;
}

body[data-page="contact"] .contact-form-panel input:focus,
body[data-page="contact"] .contact-form-panel textarea:focus {
  border-color: #94a3b8;
  box-shadow: none;
}

body[data-page="contact"] .contact-form-panel .field-error {
  color: #dc2626;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}
