/* Martin "Semi" Seman — personal trainer site */

:root {
  --bg: #0b0b0e;
  --bg-alt: #101015;
  --surface: #16161c;
  --line: #26262f;
  --txt: #f2f2f4;
  --muted: #9a9aa6;
  --accent: #ff4d2d;
  --accent-2: #ffb020;
  --max: 1160px;
  --pad: clamp(20px, 5vw, 48px);
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 0; }

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

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 14, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.stuck { border-bottom-color: var(--line); background: rgba(11, 11, 14, .92); }

.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: auto; height: 42px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-txt b { font-family: var(--display); font-size: 21px; letter-spacing: .12em; }
.brand-txt i { font-style: normal; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.menu { display: flex; align-items: center; gap: 28px; }
.menu a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .18s; }
.menu a:hover { color: var(--txt); }
.menu a.btn { color: #fff; }

.burger { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .16s, box-shadow .16s, background .16s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 77, 45, .3); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--txt); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 9vw, 110px); }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(255, 77, 45, .22), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(255, 176, 32, .12), transparent 70%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}

.eyebrow {
  margin: 0 0 18px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}

.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(56px, 11vw, 118px); line-height: .88; letter-spacing: -.01em;
  margin: 0 0 20px; text-transform: uppercase;
}
.hero h1 .hl {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.role {
  margin: 0 0 22px; font-family: var(--display); font-size: clamp(17px, 2.4vw, 22px);
  letter-spacing: .1em; text-transform: uppercase; color: var(--txt);
}
.lead { margin: 0 0 32px; max-width: 54ch; color: var(--muted); font-size: clamp(15px, 1.6vw, 17px); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }

.stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); list-style: none; margin: 0; padding: 0; }
.stats li { display: grid; grid-template-rows: 40px auto; }
.stats b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--accent); align-self: end; }
.stats b.txt { font-size: 30px; letter-spacing: .01em; }
.stats span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.hero-photo { margin: 0; position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--line); border-radius: 18px;
}
.hero-photo img {
  position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 8%;
  border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.hero-photo figcaption {
  position: relative; margin-top: 16px; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); text-align: center;
}

/* ---------- sections ---------- */

.sec { padding: clamp(56px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.sec-alt { background: var(--bg-alt); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }

.kicker {
  margin: 0 0 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.sec-head h2 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 5.2vw, 52px); line-height: 1; letter-spacing: .01em; margin: 0;
}
.sec-head.center { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); }
.sec-note { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

.prose p { margin: 0 0 20px; font-size: clamp(16px, 1.7vw, 18px); color: #d3d3da; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--txt); }

/* ---------- cards ---------- */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  grid-auto-rows: 1fr;
}
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 24px 24px;
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover { border-color: rgba(255, 77, 45, .55); transform: translateY(-3px); background: #1a1a21; }
.card .num {
  font-family: var(--display); font-size: 13px; letter-spacing: .18em;
  color: var(--accent); display: block; margin-bottom: 12px;
}
.card h3 {
  font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em;
  margin: 0 0 10px; line-height: 1.15;
}
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.card p + p { margin-top: 14px; }

.card-lead { grid-row: span 2; padding: 30px 28px 28px; }
.card-lead h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.card-lead p { font-size: 15.5px; color: #c3c3cc; }

/* ---------- credentials ---------- */

.creds { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.creds li {
  counter-increment: c;
  position: relative; padding: 20px 0 20px 56px; border-bottom: 1px solid var(--line);
}
.creds li:first-child { padding-top: 0; }
.creds li:last-child { border-bottom: none; padding-bottom: 0; }
.creds li::before {
  content: counter(c, decimal-leading-zero);
  position: absolute; left: 0; top: 20px;
  font-family: var(--display); font-size: 15px; letter-spacing: .1em; color: var(--accent);
}
.creds li:first-child::before { top: 0; }
.creds h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.creds p { margin: 0; font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ---------- contact ---------- */

.sec-cta { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }

.cta-logo {
  width: auto; height: clamp(96px, 13vw, 140px);
  margin: 0 auto clamp(22px, 3vw, 32px);
}

.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px;
  margin-bottom: 42px;
}
.ct {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 24px; transition: border-color .2s, transform .2s;
}
.ct:hover { border-color: var(--accent); transform: translateY(-3px); }
.ct-l { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.ct-v { font-size: 16px; font-weight: 600; word-break: break-word; }

.gym {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  border: 1px solid var(--line); border-radius: 16px; padding: 28px;
  background: rgba(22, 22, 28, .6);
}
.gym h3 {
  font-family: var(--display); font-size: 20px; text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 10px; color: var(--accent-2);
}
.gym address { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.8; }
.gym address strong { color: var(--txt); }
.gym address a { color: var(--muted); }
.gym address a:hover { color: var(--accent); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: 28px 0; }
.foot-in {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.foot p { margin: 0; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* ---------- 404 ---------- */

.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.nf h1 { font-family: var(--display); font-size: clamp(80px, 20vw, 180px); line-height: .9; margin: 0; color: var(--accent); }
.nf h2 {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(24px, 5vw, 38px); margin: 12px 0 16px;
}
.nf p { color: var(--muted); max-width: 44ch; margin: 0 auto 32px; }

/* ---------- reveal ---------- */
/* Delays live here as classes so the CSP can stay free of inline styles. */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 45ms; }
.d2 { transition-delay: 90ms; }
.d3 { transition-delay: 135ms; }
.d4 { transition-delay: 180ms; }
.d5 { transition-delay: 225ms; }
.d6 { transition-delay: 270ms; }
.d7 { transition-delay: 315ms; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-photo { max-width: 320px; order: -1; }
  .brand-logo { height: 38px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .card-lead { grid-row: auto; }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 9px;
    background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .burger span { display: block; height: 2px; background: var(--txt); border-radius: 2px; transition: transform .22s, opacity .22s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .menu {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    transform: translateY(-140%); transition: transform .28s ease; visibility: hidden;
  }
  .menu.open { transform: none; visibility: visible; }
  .menu a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu a.btn { margin-top: 18px; text-align: center; border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
