/* ==========================================================================
   Bluegate Pilates Studio — styles
   Tone: quiet, premium, editorial
   ========================================================================== */

/* Self-hosted fonts (no third-party requests, no consent banner needed) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/inter-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-400i.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/cormorant-500.woff2') format('woff2');
}

:root {
  --bg: #faf7f2;
  --bg-deep: #f1ece2;
  --ink: #1b2a33;
  --ink-soft: #4b5b65;
  --muted: #94918b;
  --line: #e5e0d6;
  --accent: #3fb8e6;       /* Bluegate cyan */
  --accent-deep: #1f4e6b;  /* Bluegate navy */
  --terracotta: #c97b5a;
  --sage: #8fa890;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --max: 1280px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 10vw, 8rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .25s var(--ease), opacity .25s var(--ease); }
a:hover { color: var(--accent-deep); }

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

/* ---------- Typography primitives ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6.5vw, 5.5rem); }
h1 em { font-style: italic; color: var(--ink); position: relative; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.35rem, 1.6vw, 1.6rem); margin-bottom: .5rem; }
p { color: var(--ink-soft); max-width: 56ch; }
p + p { margin-top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.eyebrow.centered { text-align: center; }
.quiet { color: var(--muted); font-style: italic; }
.quiet.centered { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Layout primitives ---------- */
.section {
  padding: var(--section-y) var(--pad-x);
  max-width: var(--max);
  margin-inline: auto;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split.reverse .split-media { order: 1; }
.split.reverse .split-text { order: 2; }
.split-text p { margin-top: 1rem; }
.studio-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--ink);
  line-height: 1.3;
  margin-top: 1.75rem !important;
  letter-spacing: -0.005em;
  position: relative;
  padding-top: 1.5rem;
}
.studio-tagline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--terracotta);
}
.split-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(27, 42, 51, 0.25);
}

/* Cross-fade slideshow (Studio section) */
.crossfade {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(27, 42, 51, 0.25);
}
.crossfade-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: auto;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}
.crossfade-slide.is-current { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .crossfade-slide { transition: none; }
  .crossfade-slide:first-child { opacity: 1; }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
  transition: padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
  --header-fg: #ffffff;
  --header-fg-soft: rgba(255,255,255,0.8);
}
/* Backdrop sits on a pseudo-element so the header itself doesn't become
   a containing block for the fixed mobile nav (backdrop-filter on a
   parent traps position:fixed descendants inside that parent's box). */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), -webkit-backdrop-filter .4s var(--ease);
}
.site-header.scrolled::before {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  padding-top: .65rem;
  padding-bottom: .65rem;
  --header-fg: var(--ink);
  --header-fg-soft: var(--ink-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
}
.brand img {
  height: 34px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0,0,0,0.25));
  transition: filter .4s var(--ease);
}
.site-header.scrolled .brand img {
  filter: none;
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--header-fg-soft);
  opacity: 0.5;
  transition: background .4s var(--ease);
}
.brand-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--header-fg);
  letter-spacing: 0.02em;
  transition: color .4s var(--ease);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.site-header.scrolled .brand-sub { text-shadow: none; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: .92rem;
  font-weight: 400;
  color: var(--header-fg);
  position: relative;
  transition: color .4s var(--ease);
  text-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.site-header.scrolled .nav a { text-shadow: none; }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  padding: .55rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .4s var(--ease);
  text-shadow: none !important;
}
.site-header:not(.scrolled) .nav-cta {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header:not(.scrolled) .nav-cta:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.site-header.scrolled .nav-cta:hover {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--header-fg);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .4s var(--ease);
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    padding: 4rem 2rem 2rem;
  }
  .nav.open { transform: translateX(0); }
  .nav a {
    font-size: 1.5rem;
    font-family: var(--serif);
    color: var(--ink);
    text-shadow: none;
  }
  .nav a:not(.nav-cta)::after { background: var(--ink); }
  .nav-cta {
    color: var(--ink);
    border-color: var(--ink);
    background: transparent !important;
    backdrop-filter: none !important;
    margin-top: .5rem;
    padding: .8rem 1.6rem;
  }
  .nav-cta:hover { background: var(--ink) !important; color: #fff !important; }
  .nav-toggle { display: inline-flex; z-index: 110; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav-toggle.open span { background: var(--ink) !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .95rem 1.75rem;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-large { padding: 1.1rem 2rem; font-size: 1rem; margin-top: 1.5rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  margin-top: 1.25rem;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--accent-deep); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: -2%;             /* extra fill so translate never exposes the edge */
  background: linear-gradient(180deg, rgba(27,42,51,.02) 0%, rgba(27,42,51,.12) 70%, rgba(27,42,51,.20) 100%),
              url("images/philosophy.png") center/cover no-repeat;
  z-index: 0;
  transform: scale(1.32) translate3d(7%, 1%, 0);
  transform-origin: center;
  animation: heroPan 40s ease-in-out infinite alternate;
  will-change: transform;
  backface-visibility: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 78%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}
@keyframes heroPan {
  0%   { transform: scale(1.32) translate3d(7%, 1.2%, 0); }
  50%  { transform: scale(1.22) translate3d(0%, -0.4%, 0); }
  100% { transform: scale(1.32) translate3d(-7%, 1.2%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-image { animation: none; transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(15, 28, 38, 0.45);
}
.hero-content .eyebrow {
  color: #fff;
  text-shadow: 0 1px 8px rgba(15, 28, 38, 0.5);
}
.hero-content h1 {
  color: #fff;
  font-weight: 300;
  text-shadow: 0 2px 24px rgba(15, 28, 38, 0.55);
}
.hero-content h1 em { color: #fff; }
.hero-content .lede {
  color: #fff;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 400;
  margin-top: 1.5rem;
  max-width: 38ch;
  letter-spacing: 0.005em;
  text-shadow:
    0 1px 2px rgba(15, 28, 38, 0.55),
    0 2px 12px rgba(15, 28, 38, 0.45),
    0 0 32px rgba(15, 28, 38, 0.35);
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-content .btn-primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.hero-content .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.hero-content .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.hero-content .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.4);
  overflow: hidden;
}
.hero-scroll span {
  display: block;
  width: 100%;
  height: 50%;
  background: #fff;
  animation: scrollPulse 2.2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ---------- QUOTE ---------- */
.section-quote {
  text-align: center;
  padding-block: clamp(7rem, 16vw, 12rem);
  max-width: none;
  margin-inline: 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hero-lake.png") 18% 55%/cover no-repeat;
  z-index: -2;
  transform: scale(1.04);
}
.section-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 60% 50%,
      rgba(250, 247, 242, 0.78) 0%,
      rgba(250, 247, 242, 0.55) 35%,
      rgba(250, 247, 242, 0.18) 65%,
      transparent 85%),
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(250, 247, 242, 0.18) 14%,
      rgba(250, 247, 242, 0.06) 50%,
      rgba(250, 247, 242, 0.18) 86%,
      var(--bg) 100%);
  z-index: -1;
}
.quote-wrap { max-width: 820px; margin-inline: auto; position: relative; }
blockquote {
  margin: 1rem 0 2rem;
}
blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: none;
}
.section-quote blockquote p {
  text-shadow: 0 0 38px rgba(255, 255, 255, 0.95), 0 0 12px rgba(255, 255, 255, 0.8);
}
blockquote footer {
  margin-top: 1.5rem;
  font-size: .82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-quote blockquote footer {
  color: var(--ink);
  font-weight: 500;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.9);
}
.section-quote .eyebrow {
  color: var(--ink);
  font-weight: 600;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.9);
}
.section-quote .quote-body {
  color: var(--ink);
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.92);
}
.quote-body {
  margin-inline: auto;
  text-align: center;
  max-width: 56ch;
}

/* ---------- TRAINER DUO ---------- */
.trainers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2rem, 5vw, 4rem);
}
.trainer {
  display: flex;
  flex-direction: column;
}
.trainer-media {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.75rem;
  box-shadow: 0 30px 60px -30px rgba(27, 42, 51, 0.25);
}
.trainer-media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.trainer:hover .trainer-media img { transform: scale(1.03); }
.trainer-disc {
  font-size: .75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .5rem;
}
.trainer-text h3 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  margin-bottom: .9rem;
}
.credentials {
  list-style: none;
  margin-top: 1.25rem;
}
.credentials li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  margin-bottom: .5rem;
  font-size: .95rem;
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0; top: .8em;
  width: 14px; height: 1px;
  background: var(--terracotta);
}

@media (max-width: 760px) {
  .trainers { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------- OFFERS ---------- */
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-inline: auto; }

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.offer {
  padding: 2rem 1.75rem 2.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.offer:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -25px rgba(27,42,51,0.18);
  border-color: transparent;
}
.offer h3 { color: var(--ink); }
.offer-meta {
  font-size: .8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
}
.offer p { font-size: .95rem; flex: 1; }

@media (max-width: 980px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offers { grid-template-columns: 1fr; } }

/* ---------- ZERTIFIZIERUNG ---------- */
.section-cert {
  padding-block: clamp(3rem, 7vw, 6rem);
}
.cert-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cert-text h3 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  margin-top: .5rem;
  margin-bottom: 1rem;
}
.cert-text p {
  font-size: .98rem;
}
.cert-frame {
  margin: 0;
  position: relative;
  filter: drop-shadow(0 22px 40px rgba(27, 42, 51, 0.18))
          drop-shadow(0 4px 8px rgba(27, 42, 51, 0.08));
}
.cert-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%, #000 2%, #000 98%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 2%, #000 98%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right,  transparent 0%, #000 2%, #000 98%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 2%, #000 98%, transparent 100%);
          mask-composite: intersect;
  transition: transform .8s var(--ease);
}
.cert-frame:hover .cert-img {
  transform: scale(1.015);
}

@media (max-width: 820px) {
  .cert-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .cert-text { order: 2; }
  .cert-frame { order: 1; }
}

/* ---------- AUSSTATTUNG ---------- */
.section-equipment .section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.equipment {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.equip-item {
  margin: 0;
  text-align: center;
}
.equip-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-deep);
  border-radius: 2px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-bottom: .85rem;
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.equip-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .8s var(--ease);
}
.equip-item:hover .equip-img {
  border-color: var(--terracotta);
  box-shadow: 0 18px 40px -22px rgba(27, 42, 51, 0.2);
}
.equip-item:hover .equip-img img {
  transform: scale(1.04);
}
.equip-item figcaption {
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.equip-img-more {
  padding: 0.5rem;
}
.equip-img-more svg {
  width: 88%;
  height: auto;
  max-width: 180px;
  display: block;
  transition: transform .8s var(--ease);
}
.equip-item.equip-more:hover .equip-img-more svg {
  transform: scale(1.04);
}
.equip-more figcaption {
  color: var(--muted);
  font-style: italic;
  font-weight: 400;
}

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

/* ---------- EXPERIENCE GALLERY ---------- */
.section-experience { padding-inline: var(--pad-x); }
.experience-head { text-align: center; margin-bottom: 3rem; }
.experience-head h2 { margin-inline: auto; }

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

@media (max-width: 820px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-tall { grid-row: span 2; }
  .gallery-wide { grid-column: span 2; }
}

/* ---------- WORKSHOPS ---------- */
.section-workshops {
  padding-inline: 0;
  padding-block: 0;
  max-width: none;
  background: var(--ink);
  color: #fff;
}
.workshop-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  color: #fff;
  min-height: 520px;
  overflow: hidden;
}
.workshop-text {
  padding: clamp(2.5rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
}
.workshop-text .eyebrow { color: rgba(255,255,255,0.6); }
.workshop-text h2 { color: #fff; }
.workshop-text p { color: rgba(255,255,255,0.78); }
.workshop-meta {
  margin-top: 1.5rem;
  font-size: .85rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.workshop-meta strong {
  color: #fff;
  font-weight: 500;
}

/* Dates list */
.workshop-dates {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.workshop-dates-label {
  font-size: .75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: .85rem;
}
.workshop-dates ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.workshop-dates li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  font-family: var(--serif);
}
.workshop-dates li:last-child { border-bottom: 0; }
.workshop-dates li span {
  font-size: 1.15rem;
  color: #fff;
  font-style: italic;
}
.workshop-dates li em {
  font-style: normal;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.workshop-dates-note {
  margin-top: .85rem;
  font-size: .82rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}
.workshop-ctas {
  display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap;
}
.workshop-text .btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}
.workshop-text .btn-primary:hover {
  background: #fff; color: var(--ink); border-color: #fff;
}
.workshop-text .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.workshop-text .btn-ghost:hover {
  background: #fff; color: var(--ink); border-color: #fff;
}
.workshop-media {
  position: relative;
  background: #233038;
}
.workshop-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

@media (max-width: 880px) {
  .workshop-card { grid-template-columns: 1fr; min-height: 0; }
  .workshop-media { aspect-ratio: 4/3; }
}

/* Day cards (Tag 1 / Tag 2) — sit on the dark workshop bg */
.workshop-days {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x) 0;
  max-width: var(--max);
  margin-inline: auto;
}
.day-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #fff;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.day-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
}
.day-eyebrow {
  font-size: .72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .65rem;
  font-weight: 500;
}
.day-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  margin-bottom: .85rem;
  color: #fff;
}
.day-prereq {
  font-size: .82rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  margin-top: -.25rem !important;
}
.day-modules {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.day-modules li {
  position: relative;
  padding: .55rem 0 .55rem 1.5rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  max-width: none;
}
.day-modules li:last-child { border-bottom: 0; }
.day-modules li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: 14px; height: 1px;
  background: var(--accent);
}

@media (max-width: 760px) {
  .workshop-days { grid-template-columns: 1fr; gap: 1rem; }
}

/* Collapsible schedule — on dark workshop bg */
.workshop-schedule {
  max-width: var(--max);
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: 0 var(--pad-x) clamp(3rem, 7vw, 5rem);
}
.workshop-schedule summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.workshop-schedule summary::-webkit-details-marker { display: none; }
.workshop-schedule summary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
}
.schedule-summary-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}
.schedule-summary-icon::before,
.schedule-summary-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease);
  transform: translate(-50%, -50%);
}
.schedule-summary-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.workshop-schedule[open] .schedule-summary-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.schedule-day h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
}
.schedule-day table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.schedule-day th,
.schedule-day td {
  text-align: left;
  vertical-align: top;
  padding: .65rem .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.schedule-day th {
  font-size: .7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  padding-bottom: .85rem;
}
.schedule-day td:first-child {
  font-family: var(--serif);
  font-style: italic;
  white-space: nowrap;
  color: var(--accent);
  font-size: .92rem;
  width: 7em;
}
.schedule-day td:nth-child(2) {
  color: #fff;
  font-weight: 500;
}
.schedule-day td:last-child {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 880px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-day td:first-child { width: auto; }
  .schedule-day { overflow-x: auto; }
}
@media (max-width: 560px) {
  /* On tiny screens, stack table cells into cards */
  .schedule-day table,
  .schedule-day thead,
  .schedule-day tbody,
  .schedule-day tr,
  .schedule-day td {
    display: block;
    width: 100%;
  }
  .schedule-day thead { display: none; }
  .schedule-day tr {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    padding: .9rem 1rem;
    margin-bottom: .65rem;
    background: rgba(255, 255, 255, 0.04);
  }
  .schedule-day td { border: 0; padding: .25rem 0; }
  .schedule-day td:first-child {
    font-size: .72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-style: normal;
    color: var(--accent);
    margin-bottom: .25rem;
    width: auto;
  }
}

/* ---------- CONTACT ---------- */
.section-contact { padding-block: clamp(5rem, 11vw, 9rem); }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-details dl {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0;
}
.contact-details dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contact-details dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact-details dt {
  font-size: .75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 6px;
  margin: 0;
}
.contact-details dd {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}
.contact-details dd a { border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.contact-details dd a:hover { border-color: var(--ink); }

@media (max-width: 760px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-details dl > div { grid-template-columns: 100px 1fr; gap: 1rem; }
}
@media (max-width: 480px) {
  .contact-details dl > div { grid-template-columns: 1fr; gap: .25rem; }
  .contact-details dt { padding-top: 0; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 3rem var(--pad-x) 2rem;
  font-size: .9rem;
}
.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand img { height: 30px; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; color: var(--muted); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}
.footer-nav a { color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }
.footer-legal { text-align: right; color: var(--muted); }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav { justify-content: center; }
  .footer-legal { text-align: center; }
}

/* ---------- Split responsive ---------- */
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split.reverse .split-text { order: 1; }
  .split-media img { aspect-ratio: 4/3; }
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-image { animation: none; transform: none; }
  .hero-scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal / text pages ---------- */
.legal-page { background: var(--bg); }
.legal {
  padding: clamp(7rem, 12vw, 10rem) var(--pad-x) clamp(4rem, 8vw, 6rem);
  max-width: 760px;
  margin-inline: auto;
}
.legal-wrap > h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 3rem;
}
.legal section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.legal section:last-of-type {
  border-bottom: 0;
}
.legal h2 {
  font-size: 1.25rem;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: .75rem;
  text-transform: none;
}
.legal p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: none;
}
.legal a {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}
.legal a:hover { border-color: var(--ink); }
.legal .todo {
  color: var(--muted);
  font-style: italic;
}
.legal .back {
  margin-top: 3rem;
  font-size: .95rem;
}
.legal .back a {
  border: 0;
  color: var(--muted);
}
.legal .back a:hover { color: var(--ink); }

/* ==========================================================================
   Mobile tuning — applied across the whole page on smaller viewports
   ========================================================================== */

@media (max-width: 760px) {
  :root {
    --section-y: clamp(3rem, 9vw, 5rem);
    --pad-x: clamp(1.1rem, 5vw, 1.6rem);
  }
  body { font-size: 16px; }
  h1 { font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.1; }
  h2 { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  h3 { font-size: clamp(1.25rem, 4.5vw, 1.5rem); }
  p { font-size: 1rem; }
  .eyebrow { font-size: .7rem; letter-spacing: 0.18em; margin-bottom: 1rem; }

  /* Header */
  .site-header { padding: .75rem var(--pad-x); }
  .brand img { height: 28px; }
  .brand-sub { font-size: 1rem; }
  .brand-divider { height: 18px; }

  /* Hero */
  .hero { min-height: 560px; }
  .hero-content .lede { font-size: 1.05rem; line-height: 1.5; }
  .hero-ctas { gap: .75rem; margin-top: 2rem; }
  .hero-ctas .btn { width: 100%; }

  /* Hero image — keep focal subject (woman) centered on phone, gentle zoom only */
  .hero-image {
    background-position: 38% 55% !important;
    animation: heroPanMobile 28s ease-in-out infinite alternate !important;
  }

  /* CTAs anchored to the bottom of the hero on mobile via flex layout */
  .hero-content {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4rem;
    padding-bottom: 2rem;
    width: 100%;
  }
  .hero-ctas {
    margin-top: auto;
    padding-top: 2rem;
    width: 100%;
  }
  .hero-ctas .btn { width: 100%; }
  .hero-scroll { display: none; }
}
@keyframes heroPanMobile {
  0%   { transform: scale(1.30) translate3d(0%, 1%, 0); }
  100% { transform: scale(1.20) translate3d(0%, -1%, 0); }
}
@media (max-width: 760px) {

  /* Buttons — full width stacked CTAs feel cleaner on phones */
  .btn { padding: .9rem 1.5rem; font-size: .95rem; min-height: 48px; }
  .btn-large { padding: 1rem 1.75rem; }
  .workshop-ctas { flex-direction: column; }
  .workshop-ctas .btn { width: 100%; }

  /* Studio crossfade — shorter aspect on mobile */
  .crossfade { aspect-ratio: 4/3; }

  /* Trainer section */
  .section-trainer .split-media img { aspect-ratio: 4/5; }

  /* Quote / philosophy */
  .section-quote { padding-block: clamp(4.5rem, 14vw, 8rem); }
  blockquote p { font-size: clamp(1.4rem, 5.5vw, 2rem); line-height: 1.3; }
  blockquote footer { font-size: .72rem; }
  .quote-body { font-size: .98rem; }
  .section-quote::before { background-position: 30% 50%; }

  /* Certification */
  .section-cert { padding-block: clamp(2.5rem, 7vw, 4rem); }

  /* Equipment */
  .section-equipment .section-head { margin-bottom: 1.5rem; }
  .equip-img { padding: .65rem; }
  .equip-item figcaption { font-size: .82rem; }

  /* Workshop card */
  .workshop-text { padding: clamp(2rem, 6vw, 2.5rem); }
  .workshop-card h2 { font-size: clamp(1.7rem, 6.2vw, 2.2rem); }
  .workshop-dates li { padding: .65rem 0; flex-wrap: wrap; }
  .workshop-dates li span { font-size: 1.05rem; }
  .workshop-meta { font-size: .8rem; line-height: 1.7; }

  /* Day cards & schedule */
  .day-card { padding: 1.5rem 1.25rem; }
  .day-modules li { font-size: .92rem; padding: .5rem 0 .5rem 1.25rem; }
  .workshop-schedule summary { padding: 1rem 1.1rem; font-size: .9rem; }

  /* Contact */
  .section-contact { padding-block: clamp(3.5rem, 9vw, 6rem); }

  /* Legal pages */
  .legal-wrap > h1 { font-size: clamp(2rem, 7vw, 2.6rem); margin-bottom: 2rem; }
  .legal section { margin-bottom: 1.75rem; padding-bottom: 1.5rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 520px; }
  .hero-content { max-width: 100%; }
  .hero-content .lede { max-width: 100%; }
  .brand-divider { display: none; }
  .brand-sub { display: none; }

  /* Tighter equipment grid spacing */
  .equipment { gap: .65rem; }
  .equip-item figcaption { font-size: .75rem; letter-spacing: 0; }

  /* Workshop dates on tiny screens */
  .workshop-dates li em { font-size: .65rem; }
  .workshop-meta strong { display: inline-block; }
}

/* Touch device polish — disable hover-only transforms */
@media (hover: none) {
  .offer:hover { transform: none; box-shadow: none; }
  .equip-img:hover img,
  .equip-item:hover .equip-img { transform: none; }
  .gallery-item:hover img { transform: none; }
  .cert-frame:hover .cert-img { transform: none; }
}

/* iOS safe-area support */
@supports (padding: max(0px)) {
  .site-header { padding-left: max(var(--pad-x), env(safe-area-inset-left)); padding-right: max(var(--pad-x), env(safe-area-inset-right)); }
  .section { padding-left: max(var(--pad-x), env(safe-area-inset-left)); padding-right: max(var(--pad-x), env(safe-area-inset-right)); }
}

/* ---------- Image fallback (when an image is missing) ---------- */
img:not([src]),
img[src=""],
.split-media img,
.gallery-item img,
.workshop-media img {
  background: linear-gradient(135deg, var(--bg-deep), var(--line));
}
