@font-face {
  font-family: Shabnam;
  src: url("fonts/Shabnam-FD.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Shabnam;
  src: url("fonts/Shabnam-Medium-FD.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Shabnam;
  src: url("fonts/Shabnam-Bold-FD.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Estedad;
  src: url("fonts/Estedad-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #142033;
  --muted: #4d5c68;
  --gold: #d89a14;
  --gold-deep: #8a5600;
  --on-gold: #1a1408;
  --paper: #ffffff;
  --panel: #f7f5f1;
  --line: #e4ddd2;
  --veil: #085860;
  --surface: #f4f7f6;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Shabnam, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 400;
}

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

a { color: inherit; cursor: pointer; }

.skip {
  position: absolute;
  right: 16px;
  top: 8px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
}

.skip:focus { transform: none; }

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

.top {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 10px 48px 14px 28px;
  background: #fff;
  border-bottom-right-radius: 72px;
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}

.brand img {
  width: 128px;
  height: 84px;
  object-fit: contain;
}

.brand .word {
  font-family: Estedad, Shabnam, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.brand .fit { color: #d08900; }
.brand .club { color: #0097ad; }

h1, h2, h3 {
  font-family: Estedad, Shabnam, sans-serif;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  cursor: pointer;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.menu-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

.top nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: color 180ms var(--ease);
}

.top nav a:hover { color: var(--gold-deep); }

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: var(--gold-deep);
  text-decoration: none;
}

.icon-btn:hover { background: #f6efe0; }

.icon-btn svg,
.glyph svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--gold);
  color: var(--on-gold);
  background: var(--gold);
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms var(--ease), transform 140ms var(--ease);
}

.pill:hover { background: #f3d27a; }

.pill:active { transform: scale(0.98); }

.hero {
  position: relative;
  height: 72svh;
  min-height: 520px;
  background: #e7e1d6;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
}

.veil {
  position: absolute;
  inset: 0;
  background: var(--veil);
  opacity: 0.92;
  clip-path: polygon(64% 0, 100% 0, 100% 100%, 36% 100%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 18vh;
  right: 7vw;
  width: min(520px, 46vw);
  color: #fff;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 2.7vw, 44px);
  font-weight: 700;
  line-height: 1.55;
}

.hero-copy p { margin: 16px 0 0; }

.now { font-variant-numeric: tabular-nums; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: #fff;
  font-weight: 700;
  text-underline-offset: 6px;
}

.text-link:hover { color: #f4d03f; }

.sheet {
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0;
}

h2 {
  margin: 0 0 22px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  max-width: 820px;
}

h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}

.names p,
.visit p { margin: 6px 0 0; }

.coaches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.coach {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.coach img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 18%;
}

.coach div { padding: 16px 18px 20px; }

.coach p { margin: 4px 0 0; color: var(--muted); }

.subjects {
  width: 100%;
  max-width: none;
  padding-inline: max(32px, calc((100% - 1040px) / 2));
  background: var(--surface);
}

.subjects ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 22px;
  font-weight: 600;
}

.visit .pill { margin-top: 22px; }

button.pill {
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

.bmi-band {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 32px));
  margin: -64px auto 12px;
}

.bmi-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(20, 32, 51, 0.1);
}

.bmi-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.bmi-intro h2 { margin: 0; }

.bmi-intro p {
  margin: 0;
  max-width: 28em;
  color: var(--muted);
}

#bmi-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 22px;
}

#bmi-form label {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #faf8f4;
}

#bmi-form .k {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

#bmi-form .u {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--muted);
  font-weight: 500;
}

#bmi-form input {
  width: 100%;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 26px;
  font-weight: 700;
}

#bmi-form input:focus { outline: none; }

#bmi-form label:focus-within {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(208, 137, 0, 0.18);
}

#bmi-form .pill { height: 76px; min-width: 128px; padding: 0 28px; }

.bmi-error {
  margin: 12px 0 0;
  color: #9a3412;
  font-weight: 700;
}

.bmi-error[hidden],
.bmi-out[hidden] { display: none; }

.bmi-out {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.bmi-num {
  margin: 0;
  font-family: Estedad, Shabnam, sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.bmi-cat {
  margin: 8px 0 0;
  font-family: Estedad, Shabnam, sans-serif;
  font-size: 26px;
  font-weight: 700;
}

.bmi-cat.low { color: #0a6f86; }
.bmi-cat.ok { color: #0c7a4b; }
.bmi-cat.high { color: #8a5600; }
.bmi-cat.obese { color: #9a3412; }

.bmi-meter {
  position: relative;
  height: 12px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(to left, #7ec8d4 0 14%, #8fbf7a 14% 40%, #e3b341 40% 60%, #c46a4a 60% 100%);
}

.bmi-meter span {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.bmi-scale {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards li,
.names > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.cards h3 { margin-top: 12px; }

.cards p,
.names p,
.stories p,
.visit p,
.note { color: var(--muted); }

.cards p {
  margin: 6px 0 0;
  max-width: 28em;
}

.glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: var(--gold);
  background: #f6efe0;
}

.stories {
  display: grid;
  gap: 48px;
  width: min(1040px, calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.stories article {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
}

.stories article:nth-child(even) img,
.stories article:nth-child(even) .cafe-photos { order: 2; }

.stories img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
}

.stories p { margin: 10px 0 0; }

.cafe { align-items: start; }

.cafe-photos {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 168px 168px;
  gap: 10px;
}

.cafe-photos img {
  height: 100%;
  border-radius: 16px;
}

.cafe-photos img:first-child { grid-row: 1 / span 2; }

footer {
  padding: 8px 8vw 40px;
}

footer p { margin: 0; }

.note {
  margin-top: 8px;
  max-width: 40em;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .pill:active { transform: none; }
}

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }

  .top {
    right: 12px;
    gap: 8px;
    padding: 10px 14px 12px 10px;
    border-bottom-right-radius: 28px;
  }

  .top nav {
    display: none;
    position: absolute;
    z-index: 4;
    top: calc(100% - 10px);
    right: 64px;
    left: auto;
    width: max-content;
    min-width: 196px;
    margin: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: #fff;
    border-bottom-right-radius: 22px;
    border-bottom-left-radius: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .top:has(.nav-toggle:checked) nav { display: flex; }

  .tools .pill { display: none; }

  .brand img { width: 108px; height: 72px; }
}

@media (max-width: 860px) {
  .top { right: 10px; }

  .brand .word { font-size: 22px; }

  .hero { height: 70svh; min-height: 480px; }

  .bmi-band { margin-top: -36px; }

  .bmi-intro { display: block; }

  .bmi-intro p { margin-top: 8px; }

  #bmi-form { grid-template-columns: 1fr; }

  #bmi-form .pill { height: 52px; }

  .bmi-out { grid-template-columns: 1fr; gap: 12px; }

  .veil { clip-path: polygon(0 42%, 100% 28%, 100% 100%, 0 100%); }

  .hero-copy {
    top: auto;
    bottom: 36px;
    right: 20px;
    left: 20px;
    width: auto;
  }

  h1 { font-size: 28px; }

  .sheet { width: calc(100% - 40px); padding: 48px 0; }

  .subjects { padding-inline: 20px; }

  .cards,
  .coaches { grid-template-columns: 1fr; }

  .coach img { height: 360px; }

  .stories { width: calc(100% - 40px); gap: 32px; }

  .stories article,
  .stories article:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .stories article:nth-child(even) img,
  .stories article:nth-child(even) .cafe-photos { order: 0; }

  .stories img { height: 240px; }

  .cafe-photos { grid-template-rows: 220px 140px; }

  #bmi-form { grid-template-columns: 1fr; }

  .bmi-num { font-size: 48px; }

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

  footer { padding-inline: 20px; }
}
