/* ==========================================================================
   FitnessHarmonie — Stylesheet
   Design idea: "Kraft ↔ Ruhe" — the whole studio lives on the spectrum
   between power (Kraft) and calm (Ruhe). A gradient spectrum bar is the
   signature device: it appears as section dividers, and as a small dot
   on every course/offer card to show where that course sits on the
   spectrum. Everything else stays quiet so that device can carry the idea.
   ========================================================================== */

:root {
  /* Color */
  --bg: #F1ECE3;          /* warm sand */
  --bg-alt: #E7E0D0;      /* deeper sand, for alternating sections/cards */
  --card: #FBF8F2;        /* lifted card surface */
  --ink: #2A2420;         /* warm espresso-black, primary text */
  --ink-soft: #635A4E;    /* muted brown-grey, secondary text */
  --line: #DCD1B8;        /* hairline border */
  --kraft: #96394A;       /* berry/wine — the "Kraft" pole */
  --kraft-ink: #7A2E3C;   /* darker berry, for text-on-light use */
  --ruhe: #58694F;        /* moss/sage — the "Ruhe" pole */
  --gold: #C1893D;        /* honey accent, used sparingly */
  --spectrum: linear-gradient(90deg, var(--kraft) 0%, var(--gold) 50%, var(--ruhe) 100%);

  /* Type */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container: 72rem;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }

em, .em { font-style: italic; color: var(--kraft-ink); }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
p.lead { font-size: 1.2rem; color: var(--ink); }

a { color: var(--kraft-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kraft-ink);
  margin-bottom: 0.9em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Spectrum bar — the signature element ---------- */
.spectrum-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--spectrum);
  width: 100%;
}

.spectrum-divider {
  height: 4px;
  background: var(--spectrum);
  border: none;
  border-radius: 999px;
  margin: 0;
  opacity: 0.9;
}

.spectrum-scale {
  position: relative;
  margin-top: 1.1em;
}
.spectrum-scale .track {
  height: 5px;
  border-radius: 999px;
  background: var(--spectrum);
}
.spectrum-scale .labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.5em;
}
.spectrum-scale .dot {
  position: absolute;
  top: -4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--ink);
  transform: translateX(-50%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn-primary { background: var(--kraft); color: #FBF8F2; }
.btn-primary:hover { background: var(--kraft-ink); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--kraft-ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--kraft-ink); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 236, 227, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo em { font-style: italic; }
.logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.25em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.7em;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  border-bottom-color: var(--kraft);
  color: var(--kraft-ink);
}
.nav-cta { display: flex; align-items: center; gap: 1rem; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.9rem; padding: 1.2rem 0; }
  .nav-row { flex-wrap: wrap; }
  .nav-cta .btn-secondary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 4.5rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.hero-panel .spectrum-bar { margin-bottom: 1.3rem; }
.hero-panel .poles {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.hero-panel .poles strong { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; }

/* ---------- Sections ---------- */
section { padding: 3.2rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 0.25em 0.8em;
  margin-bottom: 0.8em;
}

.location-card { border-left: 4px solid var(--gold); }
.person-card { text-align: left; }
.person-card .role { color: var(--kraft-ink); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4em; }

/* ---------- Widget embed slot (Eversports etc.) ---------- */
.widget-slot {
  background: var(--card);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 1.6rem;
  text-align: center;
  color: var(--ink-soft);
}
.widget-slot strong { color: var(--ink); display: block; margin-bottom: 0.3em; font-family: var(--font-display); font-size: 1.2rem; }
.widget-slot code {
  background: var(--bg-alt);
  padding: 0.15em 0.5em;
  border-radius: 5px;
  font-size: 0.85em;
}

/* ---------- Callout / banner ---------- */
.callout {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 2.4rem;
}
.callout p { color: #D8D0C2; }
.callout h2, .callout h3 { color: var(--bg); }

/* ---------- Forms ---------- */
form .field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.4em; }
label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.9em;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55em; }
.footer-grid a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--kraft-ink); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.footer-legal a { color: var(--ink-soft); }
.footer-legal nav a { margin-left: 1.1em; }
.footer-legal nav a:first-child { margin-left: 0; }

/* ---------- Breadcrumb / page hero (inner pages) ---------- */
.page-hero { padding: 3rem 0 2.4rem; }
.page-hero .eyebrow { margin-bottom: 0.6em; }
.page-hero p.lead { margin-top: 0.6em; }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); max-width: 68ch; }
.legal address { font-style: normal; color: var(--ink-soft); }
.legal .note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  font-size: 0.92rem;
  margin: 1.6rem 0;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.85rem; color: var(--ink-soft); }
