/* ==========================================================================
   Men Fitness (demo): main.css
   Plan: clients/men-fitness/design.md

   Palette from the brand itself (logo + Instagram posters: black and lime, white tape):
     ink      #0F110D  page background (dark-first, like the brand)
     ink-2    #191C16  raised dark sections
     lime     #9BD23C  accent on dark (the green of the "M" and "FITNESS")
     lime-dk  #3D6A0C  accent on light (links, small text)
     paper    #F2F3EE  light sections
     steel    #4A5244  secondary text on light
     fog      #B8BFB0  secondary text on dark
   Type: Karantina 700 (condensed Hebrew, the poster look) for headlines,
   Bebas Neue for the wordmark and numbers, Assistant for text.

   CONTRAST (WCAG AA): paper/ink 17.4:1, fog/ink 10.2:1, lime/ink 11.2:1, ink/lime 11.2:1,
   ink/paper 17.4:1, steel/paper 7.8:1, lime-dk/paper 6.3:1, ink/white-tape 18:1.
   ========================================================================== */

:root {
  --ink: #0F110D;
  --ink-2: #191C16;
  --line-dark: #2E3428;
  --lime: #9BD23C;
  --lime-hi: #B4E65E;
  --lime-dk: #3D6A0C;
  --paper: #F2F3EE;
  --white: #FAFBF7;
  --steel: #4A5244;
  --fog: #B8BFB0;
  --line: #C9CDC2;
  --focus: var(--lime);

  --font-display: "Karantina", "Assistant", "Arial Narrow", Arial, sans-serif;
  --font-num: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  --font-text: "Assistant", Arial, sans-serif;

  --step--1: clamp(0.9rem, 0.87rem + 0.1vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.55rem);
  --step-2: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  --step-3: clamp(2.9rem, 2rem + 4vw, 5.6rem);
  --step-4: clamp(3.6rem, 2rem + 8vw, 9.5rem);
  --step-5: clamp(5rem, 2rem + 14vw, 14rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --header-h: 4rem;
  --radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }

a {
  color: var(--lime);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { text-wrap: balance; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.container { width: min(100% - 2 * var(--gutter), 78rem); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.ic--lime { color: var(--lime); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -10rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  --focus: var(--white);
}
.skip-link:focus { top: 1rem; }

.demo-bar {
  margin: 0;
  padding: 0.45rem var(--gutter);
  background: var(--lime);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: 800 var(--step-0) / 1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: var(--lime-hi); color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: currentColor; }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: var(--step--1); }
.btn--big { min-height: 3.75rem; padding: 0.9rem 2rem; font-size: var(--step-1); }

.link-button {
  padding: 0; border: 0; background: none;
  color: inherit; font: inherit;
  text-decoration: underline; text-underline-offset: 0.22em;
  cursor: pointer;
}

/* ---------- Wordmark (the logo, set in type: lime M, white EN, lime FITNESS) ---------- */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  font-family: var(--font-num);
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  direction: ltr;
}
.wordmark__m { color: var(--lime); }
.logo-img { display: block; height: 2.9rem; width: auto; }
.wordmark--footer .logo-img { height: 5rem; }
.wordmark__f { margin-inline-start: 0.3em; color: var(--lime); font-size: 0.62em; letter-spacing: 0.12em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 13, 0.94);
  border-bottom: 1px solid var(--line-dark);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(15, 17, 13, 0.82); backdrop-filter: blur(8px); }
}
.site-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: var(--header-h);
}
.site-nav { margin-inline-start: auto; }
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav__list a:not(.btn) { color: var(--paper); text-decoration: none; padding-block: 0.5rem; font-weight: 600; }
.site-nav__list a:not(.btn):hover { color: var(--lime); }

.nav-toggle,
.motion-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--fog);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font: 600 var(--step--1) / 1.2 var(--font-text);
  cursor: pointer;
}
.nav-toggle__icon { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.motion-toggle__icon { width: 1rem; height: 1rem; fill: currentColor; }
.js .motion-toggle { display: inline-flex; }
.motion-toggle[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.motion-toggle[aria-disabled="true"] { cursor: not-allowed; }

@media (max-width: 959.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav__list {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
  }
  .js .site-nav__list.is-open { display: flex; }
  .js .site-nav__list a:not(.btn) { display: block; padding-block: 0.85rem; border-bottom: 1px solid var(--line-dark); font-size: var(--step-1); }
  .js .site-nav__cta { padding-top: 1rem; }
  .js .site-nav__cta .btn { width: 100%; min-height: 3rem; font-size: var(--step-0); }
}
@media (max-width: 419.98px) {
  .motion-toggle span,
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .wordmark { font-size: 1.7rem; }
}

/* ---------- Hero ---------- */
.hero {
  --focus: var(--lime);
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--header-h) - 2rem);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  background: var(--ink);
}
.hero__photo { position: absolute; inset: 0; z-index: -1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; filter: grayscale(0.1) contrast(1.06) brightness(0.72); }
/* Legibility scrim (functional): dark from the text side, keeps a strip of the green turf alive. */
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 17, 13, 0.97) 0%, rgba(15, 17, 13, 0.78) 38%, rgba(15, 17, 13, 0.35) 70%, rgba(15, 17, 13, 0.55) 100%),
    linear-gradient(to left, rgba(15, 17, 13, 0.75) 0%, rgba(15, 17, 13, 0) 65%);
}
.hero__inner { padding-block: clamp(4rem, 14vh, 9rem) clamp(1.5rem, 4vw, 2.5rem); }
.hero__eyebrow {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--lime);
}
.hero__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12em;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-4);
  line-height: 0.95;
}
/* The tape strips: the brand's own poster device. */
.tape {
  display: inline-block;
  padding: 0.04em 0.22em 0.08em;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform-origin: right center;
}
.tape--white { background: var(--white); transform: rotate(-2.2deg); }
.tape--lime { background: var(--lime); transform: rotate(1.4deg); margin-inline-start: 0.35em; }
.hero__lead { max-width: 40ch; margin-bottom: 1.75rem; font-size: var(--step-1); line-height: 1.5; color: var(--paper); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: var(--step--1);
  color: var(--fog);
}
.hero__chips li { display: inline-flex; align-items: center; gap: 0.4rem; }
.open-now::before {
  content: "";
  width: 0.6rem; height: 0.6rem;
  border-radius: 50%;
  background: var(--fog);
}
.open-now.is-open { color: var(--paper); }
.open-now.is-open::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(155, 210, 60, 0.22); }

/* The loaded bar */
.bar { width: min(100%, 40rem); height: auto; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.bar__shaft, .bar__sleeve { fill: #8A9183; }
.bar__collar { fill: var(--fog); }
.plate { fill: var(--ink-2); stroke: var(--lime); stroke-width: 2; }
.plate--big { fill: var(--lime); stroke: none; }

.intro-pending [data-intro], .intro-pending [data-tape] { visibility: hidden; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 0.95;
}
.kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.15rem 0.6rem;
  background: var(--ink);
  color: var(--lime);
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  transform: rotate(-1.5deg);
}
.kicker--lime { background: var(--lime); color: var(--ink); }

/* What you get (light section) */
.what { background: var(--paper); color: var(--ink); --focus: var(--lime-dk); }
.what a { color: var(--lime-dk); }
.what__intro { max-width: 52ch; font-size: var(--step-1); line-height: 1.5; color: var(--steel); margin-bottom: 3rem; }
.cards { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.card { padding: 1.75rem 1.5rem; background: var(--white); }
.card h3 { margin: 0.9rem 0 0.4rem; font-size: var(--step-1); line-height: 1.25; }
.card p { margin: 0; color: var(--steel); }
.ic--card { width: 2.4rem; height: 2.4rem; padding: 0.45rem; border-radius: var(--radius); background: var(--ink); color: var(--lime); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Results */
.results__grid { display: grid; gap: 3rem; align-items: center; }
.results__num { font-family: var(--font-num); font-size: 1.15em; color: var(--lime); font-variant-numeric: tabular-nums; }
.results__in { display: block; }
.results__text > p { max-width: 44ch; font-size: var(--step-1); line-height: 1.5; }
.results__note { font-size: var(--step--1) !important; color: var(--fog); }
.results__img { margin: 0; max-width: 32rem; }
.results__img img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line-dark), 0 30px 80px rgba(0, 0, 0, 0.5); transform: rotate(-1.5deg); }
@media (min-width: 900px) { .results__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 7vw, 7rem); } }

/* Coach */
.coach { background: var(--ink-2); }
.coach__grid { display: grid; gap: 2rem; align-items: start; }
.coach__photo { width: 9.5rem; height: 9.5rem; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--ink-2), 0 0 0 7px var(--lime); }
.coach__role { font-size: var(--step-1); font-weight: 700; color: var(--lime); }
.coach__text > p { max-width: 46ch; }
.coach__quote { margin: 2rem 0 0; padding-inline-start: 1.25rem; border-inline-start: 4px solid var(--lime); }
.coach__quote p { margin: 0 0 0.5rem; font-size: var(--step-1); line-height: 1.5; max-width: 42ch; }
.coach__quote footer { color: var(--fog); font-size: var(--step--1); font-weight: 600; }
@media (min-width: 760px) { .coach__grid { grid-template-columns: auto minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); } }

/* Reviews (light) */
.reviews { background: var(--paper); color: var(--ink); --focus: var(--lime-dk); }
.reviews__score { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 2.5rem; }
.reviews__score .ic--lime { color: var(--lime-dk); }
.reviews__list { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.reviews__list blockquote { margin: 0; }
.reviews__list p { margin: 0 0 0.6rem; font-size: var(--step-1); line-height: 1.5; }
.reviews__list footer { font-weight: 700; color: var(--steel); }
.reviews__list li:first-child p { font-size: var(--step-2); line-height: 1.35; font-weight: 600; }
@media (min-width: 900px) {
  .reviews__list { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); grid-template-rows: auto auto; column-gap: clamp(3rem, 7vw, 7rem); }
  .reviews__list li:first-child { grid-row: span 2; }
}

/* Instagram */
.gram__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.gram__head .section__title { margin: 0; }
.gram__link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.gram__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.gram__grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .gram__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

/* First session */
.start { background: var(--lime); color: var(--ink); --focus: var(--ink); }
.start a { color: var(--ink); }
.start .btn--primary { background: var(--ink); color: var(--lime); }
.start .btn--primary:hover { background: #262A21; color: var(--lime-hi); }
.start__grid { display: grid; gap: 2rem; }
.steps { display: grid; gap: 2rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--ink); }
.steps li::before {
  content: counter(step);
  content: counter(step) / "";
  display: block;
  font-family: var(--font-num);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.steps h3 { margin: 0 0 0.35rem; font-size: var(--step-1); line-height: 1.3; }
.steps p { margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* Visit */
.visit__grid { display: grid; gap: 2rem 3rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 26rem; }
.hours caption { text-align: start; font-size: var(--step-1); font-weight: 700; padding-bottom: 0.5rem; }
.hours th, .hours td { padding-block: 0.7rem; border-bottom: 1px solid var(--line-dark); text-align: start; font-variant-numeric: tabular-nums; }
.hours th { font-weight: 600; padding-inline-end: 1.5rem; }
.visit__block h3 { margin: 0 0 0.5rem; font-size: var(--step-1); line-height: 1.3; }
.visit__block p { margin: 0; }
@media (min-width: 700px) { .visit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .visit__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: #090A08;
  color: var(--paper);
  padding-block: 3.5rem 2.5rem;
  border-top: 4px solid var(--lime);
}
.site-footer a, .site-footer .link-button { color: var(--paper); }
.site-footer__grid { display: grid; gap: 2rem; }
.wordmark--footer { margin: 0 0 0.75rem; font-size: 3rem; }
.site-footer__links { display: flex; flex-direction: column; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.site-footer__demo {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: var(--step--1);
  color: var(--fog);
}
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Legal pages ---------- */
.page-header .site-header__bar { justify-content: space-between; }
.legal { padding-block: clamp(3rem, 6vw, 5rem) clamp(4rem, 8vw, 6rem); }
.legal__body { max-width: 68ch; }
.legal h1 { margin: 0 0 1rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1; }
.legal h2 { margin: 2.5rem 0 0.75rem; font-size: var(--step-2); line-height: 1.25; }
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: var(--step-1); line-height: 1.3; }
.legal ul { padding-inline-start: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal .updated { color: var(--fog); }
.ph { padding: 0 0.2em; border-radius: 3px; background: #F1E3B3; color: var(--ink); }

/* ---------- Cookie consent theme (only when enabled) ---------- */
#cc-main {
  --cc-font-family: var(--font-text);
  --cc-bg: var(--white);
  --cc-primary-color: var(--ink);
  --cc-secondary-color: var(--steel);
  --cc-btn-primary-bg: var(--ink);
  --cc-btn-primary-color: var(--lime);
  --cc-btn-primary-border-color: var(--ink);
  --cc-btn-primary-hover-bg: #262A21;
  --cc-btn-primary-hover-color: var(--lime-hi);
  --cc-btn-primary-hover-border-color: #262A21;
  --cc-btn-secondary-bg: var(--paper);
  --cc-btn-secondary-color: var(--ink);
  --cc-btn-border-radius: var(--radius);
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}
.motion-off *, .motion-off *::before, .motion-off *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
.motion-off .btn:hover { transform: none; }

@media (forced-colors: active) {
  .btn, .motion-toggle, .nav-toggle { border: 2px solid ButtonText; }
  .tape { border: 2px solid CanvasText; }
  .motion-toggle[aria-pressed="true"] { outline: 2px solid Highlight; }
}
