/* ==========================================================================
   HansFit Coach: design tokens, base elements, buttons, navigation
   Structure after the reference style (charcoal stage bands + light gallery
   canvas, 24px cards, 28px buttons, hairlines instead of shadows), recoloured
   with the flyer lime and set in the flyer typefaces.
   ========================================================================== */

:root {
  --lime: #94e838;
  --lime-hi: #a8f252;
  --lime-600: #7fd11f;
  --lime-soft: rgba(148, 232, 56, 0.14);
  --ink: #0e1003;
  --carbon: #101213;

  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #f0f2f1;
  --line: #e4e6e7;
  --line-strong: #cdd0d3;
  --text: #181a1d;
  --text-2: #56585d;
  --text-3: #85888f;
  --accent-text: #3b7a0b;
  --danger: #d93036;

  --stage-bg: #0e1011;
  --stage-surface: #17191b;

  --f-display: 'Montserrat', system-ui, sans-serif;
  --f-cond: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-brush: 'Knewave', 'Montserrat', sans-serif;
  --f-script: 'Kaushan Script', 'Brush Script MT', cursive;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-btn: 28px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --nav-h: 76px;

  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0a0b0c;
  --surface: #131517;
  --surface-2: #1a1d1f;
  --line: #24272a;
  --line-strong: #353a3e;
  --text: #f2f3f4;
  --text-2: #a8abb0;
  --text-3: #7b7f85;
  --accent-text: #94e838;
  --danger: #ff6b6b;
  --stage-bg: #050606;
  --stage-surface: #111314;
  color-scheme: dark;
}

/* Always-dark bands (hero, benefits, contact, footer, nav) re-map the tokens. */
.stage,
.nav,
.mobile-menu {
  --surface: var(--stage-surface);
  --surface-2: #1c1f21;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.7);
  --text-3: rgba(255, 255, 255, 0.5);
  --accent-text: var(--lime);
  color: var(--text);
}
.stage {
  background: var(--stage-bg);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
html.is-loading,
html.menu-open,
html.lightbox-open {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--lime);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  transform: translateY(-200%);
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  background: var(--lime);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--r-btn);
  font-weight: 600;
}
.skip-link:focus {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* ---------- layout + type ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: clamp(72px, 8.5vw, 112px) 0;
  position: relative;
}
.lime {
  color: var(--lime);
}
.muted {
  color: var(--text-2);
}
.script {
  font-family: var(--f-script);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px var(--lime-soft);
  flex: none;
}
.h2 {
  font-family: var(--f-cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(42px, 6.2vw, 80px);
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin-top: 14px;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-sub {
  margin-top: 18px;
  font-size: 18px;
  color: var(--text-2);
  max-width: 580px;
}
.section-head--center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 204px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip--lime {
  background: var(--lime);
  color: var(--ink);
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg {
  flex: none;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg:last-child:not(:first-child) {
  transform: translateX(3px);
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
  --btn-bd: var(--lime);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover {
  --btn-bg: var(--lime-hi);
  --btn-bd: var(--lime-hi);
}
.btn-primary:hover::after {
  transform: translateX(120%);
}
.btn-ghost {
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
}
.btn-ghost:hover {
  --btn-bd: var(--text);
  --btn-bg: rgba(255, 255, 255, 0.06);
}
.btn-outline {
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
}
.btn-outline:hover {
  --btn-bd: var(--lime-600);
  --btn-bg: var(--lime-soft);
}
.btn-dark {
  --btn-bg: var(--carbon);
  --btn-fg: #fff;
  --btn-bd: var(--carbon);
}
.btn-dark:hover {
  --btn-bg: #000;
  --btn-bd: #000;
}
.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}
.btn-lg {
  padding: 17px 30px;
  font-size: 16px;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
  flex: none;
}
.icon-btn:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--accent-text);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.spin {
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- brush swash ---------- */
.brush {
  position: relative;
  display: inline-block;
  padding: 0.42em 0.95em 0.5em;
  font-family: var(--f-brush);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brush-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--lime);
  stroke: var(--lime);
  overflow: visible;
}
.brush-bg path + path {
  fill: none;
  stroke: var(--ink);
}
.brush-text {
  position: relative;
}
.brush--dark {
  color: #fff;
}
.brush--dark .brush-bg {
  fill: var(--carbon);
  stroke: var(--carbon);
}
.brush--dark .brush-bg path + path {
  stroke: var(--lime);
}

/* ---------- logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.logo .logo-mark {
  width: 48px;
  height: auto;
  flex: none;
}
.logo-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.logo-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.logo-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.48em;
  margin-right: -0.48em;
}
.logo-sub::before,
.logo-sub::after {
  content: '';
  width: 12px;
  height: 1.5px;
  background: var(--lime);
}
.logo-sub::after {
  margin-left: -0.48em;
}

/* ---------- reveal ---------- */
/* Animation (not transition) so hover transitions on revealed cards stay instant. */
[data-reveal] {
  opacity: 0;
}
[data-reveal].is-in {
  opacity: 1;
  animation: revealIn 0.95s var(--ease) calc(var(--d, 0) * 90ms) backwards;
}
@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
}

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), height 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(10, 11, 12, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  --nav-h: 66px;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  flex: none;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav-links a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}
.nav-links a.is-active::after {
  transform: translateX(-50%) scale(1);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-links + .nav-actions {
  margin-left: 0;
}
.nav-burger {
  display: none;
}

.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 204px;
  border: 1px solid var(--line-strong);
  flex: none;
}
.lang-switch button {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 32px;
  border-radius: 204px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-2);
  transition: color 0.3s;
}
.lang-switch button.is-active {
  color: var(--ink);
}
.lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 38px;
  height: 32px;
  border-radius: 204px;
  background: var(--lime);
  transition: transform 0.4s var(--ease);
}
.theme-toggle {
  position: relative;
  overflow: hidden;
}
.tt-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.tt-icon.is-on {
  opacity: 1;
  transform: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: #0a0b0c;
  padding: calc(var(--nav-h) + 24px) 0 32px;
  overflow-y: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-cond);
  font-weight: 800;
  font-size: clamp(34px, 9vw, 52px);
  text-transform: uppercase;
  line-height: 1;
  opacity: 0;
  transform: translateY(24px);
  animation: menuIn 0.55s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms + 80ms);
}
.mobile-menu a svg {
  margin-left: auto;
  color: var(--lime);
}
.mm-num {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.1em;
  align-self: flex-start;
  margin-top: 6px;
}
.mobile-menu .btn {
  margin-top: 28px;
}
@keyframes menuIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: inline-grid;
  }
  .nav-actions {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .nav-cta {
    display: none;
  }
  .nav-inner {
    gap: 12px;
  }
  .nav-actions {
    gap: 8px;
  }
  .logo .logo-mark {
    width: 40px;
  }
  .logo-name {
    font-size: 19px;
  }
  .brush {
    font-size: 18px;
  }
}
@media (max-width: 360px) {
  .logo-word {
    display: none;
  }
}

/* ---------- floating WhatsApp ---------- */
.wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 204px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  transform: translateY(140%);
  transition: transform 0.5s var(--ease), background-color 0.2s;
}
.wa-fab.is-visible {
  transform: none;
}
.wa-fab:hover {
  background: var(--lime-hi);
}
.wa-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--lime);
  animation: ping 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
@media (max-width: 600px) {
  .wa-fab {
    padding: 14px;
    right: 16px;
    bottom: 16px;
  }
  .wa-fab span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
