/* ==========================================================================
   Boyes Lifting Club — site styles
   Brand tokens live in :root. Swap the accent and background values here
   to match the brand palette; everything else follows.
   ========================================================================== */

/* ---- Self-hosted fonts (SIL Open Font License — see /assets/fonts/LICENSE.txt) ---- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/fraunces-latin-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin-italic.woff2") format("woff2-variations"),
       url("/assets/fonts/fraunces-latin-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* ---- Brand palette (edit these) ---- */
  --bg:         #0c0c0d;   /* page background */
  --bg-elev:    #141416;   /* cards, header on scroll */
  --bg-soft:    #1b1b1e;   /* hover surfaces */
  --line:       rgba(255, 255, 255, 0.09);
  --text:       #edeae4;   /* primary text (warm off-white) */
  --muted:      #9a978f;   /* secondary text */
  --accent:     #ffd700;   /* Boyes Lifting Club yellow (sampled from the logo) */
  --accent-2:   #e9c400;   /* accent on hover */
  --on-accent:  #0c0c0d;   /* text on accent */

  /* ---- Type ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- Layout ---- */
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.narrow { max-width: 720px; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }
em { font-style: italic; font-family: var(--font-display); font-weight: 400; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand img { height: 50px; width: auto; }
.site-footer .brand img { height: 64px; }
.access-logo { height: 52px; width: auto; margin-bottom: 30px; }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1px; background: currentColor; margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a.btn { border: 1px solid var(--accent); margin: 18px 0 0; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  font-family: var(--font-body);
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }

.btn-link {
  padding: 0; border: 0; background: none; color: var(--accent);
  font-size: 0.95rem; font-weight: 500;
}
.btn-link::after { content: "→"; transition: transform 0.2s ease; }
.btn-link:hover::after { transform: translateX(4px); }

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section { padding-block: clamp(72px, 10vw, 140px); }
section + section { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
@media (min-width: 860px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; }
  .section-head .lede { justify-self: end; }
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-block: clamp(64px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* soft light on the left — subtle depth without an image */
  content: "";
  position: absolute; inset: -20% auto auto -10%;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { max-width: 15ch; margin-bottom: 28px; }
.hero .lede { margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: clamp(56px, 8vw, 96px);
  display: flex; flex-wrap: wrap; gap: 32px 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-meta strong { display: block; color: var(--text); font-weight: 500; font-size: 1rem; }

/* Grids of items */
.grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid > * { background: var(--bg); padding: clamp(28px, 3vw, 40px); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

.item .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 26px;
  display: block;
}
.item h3 { margin-bottom: 14px; }
.item p { color: var(--muted); font-size: 0.98rem; }

/* Two-column feature */
.split {
  display: grid;
  gap: 48px;
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 80px; }
  .split.sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 40px); }
}

/* Definition list rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .row { grid-template-columns: 220px 1fr; } }
.row dt { font-weight: 500; }
.row dd { margin: 0; color: var(--muted); }

/* Check lists */
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.list li:first-child { border-top: 1px solid var(--line); }
.list li::before {
  content: "";
  position: absolute; left: 4px; top: 25px;
  width: 14px; height: 1px; background: var(--accent);
}
.list.x li::before { background: var(--muted); width: 10px; }

/* Price card */
.price {
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 22px;
}
.price .amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  line-height: 1;
}
.price .amount small { display: block; font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); margin-top: 12px; line-height: 1.4; }
.price .list li { font-size: 0.95rem; }
.price.featured { border-color: var(--accent); }

/* Placeholder image block */
.photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, var(--bg-soft), var(--bg) 60%),
    var(--bg-elev);
  display: grid; place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* CTA band */
.cta {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}
.cta .container {
  display: grid; gap: 28px;
}
@media (min-width: 860px) {
  .cta .container { grid-template-columns: 1fr auto; align-items: center; gap: 64px; }
}
.cta h2 { max-width: 20ch; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 22px; }
.form-row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; }

input, select, textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,0.2); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 140px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239a978f' stroke-width='1.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
select option { background: var(--bg-elev); color: var(--text); }
input::placeholder, textarea::placeholder { color: rgba(154,151,143,0.6); }

.help { font-size: 0.9rem; color: var(--muted); }

.notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  padding: 16px 18px;
  font-size: 0.95rem;
  color: var(--muted);
  background: var(--bg-elev);
}
.notice.error { border-left-color: #c46a6a; }
.notice.success { border-left-color: #7fae7f; }
.notice[hidden] { display: none; }

/* Client access card */
.access {
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid var(--line);
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-elev);
}
.access h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.access .lede { font-size: 1.02rem; margin-bottom: 32px; }
.access .form { margin-bottom: 20px; }
.access-page { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .container {
  display: grid;
  gap: 32px;
}
@media (min-width: 860px) {
  .site-footer .container { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer .brand { color: var(--text); margin-bottom: 18px; }
.site-footer h4 {
  margin: 0 0 14px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--text); }
.site-footer .container.legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Tracker preview card (typographic — no images needed)
   -------------------------------------------------------------------------- */

.tracker-card {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: clamp(22px, 3vw, 32px);
}
.tracker-card .tc-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.tc-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.tc-row .k { color: var(--muted); font-size: 0.95rem; }
.tc-row .v { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.tc-row .d { font-size: 0.85rem; color: var(--accent); min-width: 72px; text-align: right; }
.tc-row .d.flat { color: var(--muted); }
.tc-foot { padding-top: 16px; font-size: 0.9rem; color: var(--muted); }
.tc-foot strong { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   Page headers (inner pages)
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(64px, 9vw, 120px) clamp(40px, 6vw, 72px);
}
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 16ch; margin-bottom: 24px; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* Utilities */
.stack > * + * { margin-top: 1.2em; }
.mt-l { margin-top: clamp(40px, 5vw, 64px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
