/*
Theme Name: BLAK Fitness
Author: Keith
Description: Custom single-page landing theme for BLAK Fitness, founded by Maple. Beyond Limits and Kinetics.
Requires at least: 6.7
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blak-fitness
*/

  :root {
    --bg: #EDE6DE;
    --surface: #F7F2EC;
    --surface-2: #E3D9CD;
    --text: #241C18;
    --text-muted: #5B4C42;
    --accent: #6E1E33;
    --accent-ink: #FFFFFF;
    --olive: #6E6845;
    --border: rgba(36,28,24,0.14);
    --focus: #6E1E33;

    --ink-bg: #1C1714;
    --ink-surface: #241C18;
    --ink-text: #F2E9E1;
    --ink-muted: #C9B9AC;
    --ink-accent: #DE7B8A;
    --ink-border: rgba(242,233,225,0.16);

    --cta-bg: #6E1E33;
    --cta-bg-hover: #82233C;
    --cta-text: #FFFFFF;
    --gold: #B8934A;
    --wine-band: #4A1524;
    --wine-band-2: #35101A;
    --wine-band-text: #F2E9E1;
    --wine-band-muted: #D8C2C7;

    --bright-bg: #FDF9F4;
    --bright-accent: #E2536B;
    --bright-accent-text: #C1354F;
    --bright-accent-2: #E8935A;
    --hero-photo: url("assets/img/hero-photo.jpg");
    --before-photo: url("assets/img/before-photo.jpg");
    --founder-photo: url("assets/img/founder-photo.jpg");
    --after-photo: url("assets/img/after-photo.jpg");

    --font-display: "Arial Narrow", "Helvetica Neue Condensed", "Roboto Condensed", Arial, sans-serif;
    --font-body: Georgia, "Iowan Old Style", "Times New Roman", serif;
    --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #1C1714;
      --surface: #241C18;
      --surface-2: #2C2320;
      --text: #F2E9E1;
      --text-muted: #B8A99C;
      --accent: #C97C8E;
      --accent-ink: #1C1714;
      --olive: #ABA477;
      --border: rgba(242,233,225,0.14);
      --focus: #C97C8E;
    }
  }
  :root[data-theme="dark"] {
    --bg: #1C1714;
    --surface: #241C18;
    --surface-2: #2C2320;
    --text: #F2E9E1;
    --text-muted: #B8A99C;
    --accent: #C97C8E;
    --accent-ink: #1C1714;
    --olive: #ABA477;
    --border: rgba(242,233,225,0.14);
    --focus: #C97C8E;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    margin: 0;
  }

  a { color: var(--accent); }
  a:focus-visible, summary:focus-visible, .btn:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-stretch: condensed;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-wrap: balance;
    margin: 0;
  }

  .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.7rem;
  }
  .ink .eyebrow { color: var(--gold); }

  .wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  .wrap-narrow {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--cta-bg);
    color: var(--cta-text);
    padding: 0.9rem 1.8rem;
    border-radius: 3px;
    border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  }
  .btn:hover { background: var(--cta-bg-hover); border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }

  /* ---------- NAV ---------- */
  nav.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--ink-bg) 92%, transparent);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--ink-border);
  }
  .nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .brand {
    font-family: var(--font-display);
    font-stretch: condensed;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--ink-text);
    text-decoration: none;
    font-size: 1.15rem;
  }
  .brand img { display: block; height: 34px; width: auto; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-links a {
    color: var(--ink-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .nav-links a:hover { color: var(--ink-text); }
  .nav-links .btn { font-size: 0.72rem; padding: 0.6rem 1.1rem; }
  @media (max-width: 720px) {
    .nav-links a:not(.btn) { display: none; }
  }

  /* ---------- INK BAND (hero / final cta) ---------- */
  .ink {
    background: var(--ink-bg);
    color: var(--ink-text);
    position: relative;
    overflow: hidden;
  }
  .ink .muted, .ink p { color: var(--ink-muted); }

  .arcs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
  }

  section.hero {
    padding: clamp(4rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
  }
  section.hero {
    background-image:
      linear-gradient(95deg, rgba(20,14,12,0.82) 0%, rgba(20,14,12,0.55) 40%, rgba(20,14,12,0.22) 75%),
      var(--hero-photo);
    background-size: cover;
    background-position: center 32%;
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
  }
  .hero h1 {
    font-size: clamp(2.6rem, 6.4vw, 4.6rem);
    line-height: 0.98;
    margin-bottom: 1.3rem;
  }
  .hero .lede {
    font-size: 1.2rem;
    max-width: 52ch;
    margin: 0 0 2rem;
  }

  /* stat strip */
  .stat-strip {
    background: var(--ink-surface);
    border-top: 1px solid var(--ink-border);
    border-bottom: 1px solid var(--ink-border);
    padding: 2.4rem 0;
  }
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: center;
  }
  .stat-num {
    font-family: var(--font-display);
    font-stretch: condensed;
    font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 2.6rem);
    color: var(--gold);
    line-height: 1;
    margin: 0 0 0.4rem;
  }
  .stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0;
  }
  @media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

  /* ---------- STANDARD SECTIONS ---------- */
  section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
  section.alt { background: var(--surface); }
  .section-head { max-width: 640px; margin-bottom: 2.2rem; }
  .section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

  .hook-copy p {
    font-size: 1.08rem;
    max-width: 62ch;
    margin: 0 0 1.3rem;
  }
  .hook-copy p:last-child {
    font-family: var(--font-display);
    font-stretch: condensed;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.25;
    color: var(--accent);
    max-width: 40ch;
    margin-top: 2rem;
  }

  /* founder */
  .founder-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: center;
  }
  .portrait-frame {
    aspect-ratio: 3/4;
    border-radius: 6px;
    background-image:
      linear-gradient(190deg, rgba(28,23,20,0) 55%, rgba(28,23,20,0.92) 100%),
      var(--founder-photo);
    background-size: cover;
    background-position: center 12%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
  }
  .slot-tag {
    position: absolute;
    top: 0.9rem; left: 0.9rem;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border: 1px solid var(--ink-border);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
  }
  .portrait-caption {
    position: relative;
    z-index: 1;
    padding: 1rem 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
  .founder-copy p { font-size: 1.02rem; max-width: 56ch; margin: 0 0 1.1rem; }
  .founder-copy .btn { margin-top: 0.6rem; }

  @media (max-width: 780px) {
    .founder-grid { grid-template-columns: 1fr; }
    .portrait-frame { max-width: 280px; }
  }

  /* trust strip */
  .strip {
    background: var(--surface-2);
    padding: 3rem 0;
    text-align: center;
  }
  .strip blockquote {
    margin: 0 auto;
    max-width: 46ch;
    font-family: var(--font-display);
    font-stretch: condensed;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    line-height: 1.2;
  }
  .strip cite {
    display: block;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.9rem;
  }

  /* offer */
  .offer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: clamp(1.8rem, 4vw, 3rem);
  }
  section.alt .offer-card { background: var(--bg); }
  .offer-card h3 {
    font-size: clamp(1.6rem, 3.4vw, 2.1rem);
    margin-bottom: 0.8rem;
  }
  .offer-card .promise {
    max-width: 58ch;
    color: var(--text-muted);
    margin: 0 0 1.8rem;
  }
  .offer-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
  }
  .offer-list li {
    padding-left: 1.6rem;
    position: relative;
    font-size: 0.98rem;
  }
  .offer-list li::before {
    content: "";
    position: absolute; left: 0; top: 0.45em;
    width: 0.6rem; height: 0.6rem;
    border-radius: 50%;
    background: var(--accent);
  }
  .price-note {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 46ch;
    margin: 0 0 1.4rem;
  }

  /* gallery — proof in motion (wine band) */
  section.wine {
    background: var(--wine-band);
    color: var(--wine-band-text);
  }
  section.wine .eyebrow { color: var(--gold); }
  section.wine p { color: var(--wine-band-muted); }
  .gallery-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }
  .media-frame {
    border-radius: 6px;
    background: linear-gradient(155deg, #4A1728, #341019);
    border: 1px solid rgba(242,233,225,0.14);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .media-frame .tag {
    position: absolute; top: 0.8rem; left: 0.9rem;
    font-family: var(--font-mono); font-size: 0.65rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--wine-band-text);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  }
  .media-frame .duration {
    position: absolute; bottom: 0.8rem; right: 0.9rem;
    font-family: var(--font-mono); font-size: 0.62rem;
    letter-spacing: 0.05em; color: var(--wine-band-text);
    background: rgba(0,0,0,0.4);
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
  }
  .play-dot {
    width: 3.6rem; height: 3.6rem; border-radius: 50%;
    background: var(--gold);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px rgba(198,150,60,0.16);
    transition: transform 0.15s ease;
  }
  .media-frame:hover .play-dot { transform: scale(1.06); }
  .play-dot::after {
    content: "";
    border-left: 0.95rem solid var(--ink-bg);
    border-top: 0.6rem solid transparent;
    border-bottom: 0.6rem solid transparent;
    margin-left: 0.28rem;
  }
  .ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; height: 100%; }
  .ba-pair .media-frame { aspect-ratio: auto; height: 100%; }
  .ba-pair .media-frame:first-child {
    background-image:
      linear-gradient(180deg, rgba(20,10,15,0.15) 0%, rgba(20,10,15,0.55) 100%),
      var(--before-photo);
    background-size: cover;
    background-position: 25% 20%;
    filter: saturate(0.82);
  }
  .ba-pair .media-frame:last-child {
    background-image:
      linear-gradient(180deg, rgba(20,10,15,0.1) 0%, rgba(20,10,15,0.5) 100%),
      var(--after-photo);
    background-size: cover;
    background-position: center 15%;
    border: 1px solid var(--gold);
  }
  .gallery-quote {
    margin: 2.2rem auto 0;
    max-width: 56ch;
    text-align: center;
    font-size: 1.08rem;
    font-style: italic;
    color: var(--wine-band-text);
  }
  .gallery-quote cite {
    display: block; font-family: var(--font-mono); font-style: normal;
    font-size: 0.75rem; color: var(--gold); margin-top: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em;
  }
  @media (max-width: 780px) { .gallery-grid { grid-template-columns: 1fr; } }

  /* testimonials */
  /* testimonials — the bright lift */
  section.bright {
    background: var(--bright-bg);
    padding: clamp(4.5rem, 11vw, 7.5rem) 0;
    position: relative;
    overflow: hidden;
  }
  .burst {
    position: absolute;
    top: -8%; left: 50%;
    width: 140%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0.55;
  }
  section.bright .section-head {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  section.bright .eyebrow { color: var(--bright-accent-text); }
  section.bright h2 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
  .t-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
    position: relative;
    z-index: 1;
  }
  .t-card {
    background: transparent;
    padding: 0.5rem 0.5rem 0;
    text-align: center;
  }
  .t-card p { margin: 0 0 1.3rem; font-style: italic; font-size: 1.04rem; line-height: 1.55; }
  .t-name-row { display: flex; align-items: center; justify-content: center; gap: 0.65rem; }
  .t-avatar {
    flex: none;
    width: 2.6rem; height: 2.6rem;
    border-radius: 50%;
    background: var(--bright-accent);
    color: var(--ink-bg);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-stretch: condensed; font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(226,83,107,0.25);
  }
  .t-card:nth-child(2) .t-avatar { background: var(--gold); color: var(--ink-bg); box-shadow: 0 4px 14px rgba(184,147,74,0.25); }
  .t-card:nth-child(3) .t-avatar { background: var(--bright-accent-2); color: var(--ink-bg); box-shadow: 0 4px 14px rgba(232,147,90,0.25); }
  .t-card cite {
    font-style: normal; font-family: var(--font-mono);
    font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted);
  }
  @media (max-width: 860px) { .t-grid { grid-template-columns: 1fr; gap: 2.6rem; } }

  /* faq */
  .faq-list { max-width: 700px; }
  details {
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
  }
  summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-display);
    font-stretch: condensed;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.05rem;
  }
  summary::-webkit-details-marker { display: none; }
  .chev {
    flex: none;
    width: 0.7rem; height: 0.7rem;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -0.2rem;
  }
  details[open] .chev { transform: rotate(-135deg); margin-top: 0.2rem; }
  details p { margin: 0.9rem 0 0; max-width: 60ch; color: var(--text-muted); }

  /* final cta */
  section.final {
    padding: clamp(4rem, 9vw, 6.5rem) 0;
    text-align: center;
  }
  section.final {
    background: radial-gradient(120% 140% at 50% 15%, #2C2320 0%, var(--ink-bg) 62%);
  }
  section.final .wrap-narrow { position: relative; z-index: 1; }
  section.final h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
  section.final p { max-width: 48ch; margin: 0 auto 2rem; }

  /* reclaim calendar (Calendly embed) */
  .calendar-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .calendar-head p {
    max-width: 52ch;
    margin: 0.6rem auto 0;
    color: var(--text-muted);
  }
  .calendar-head p + p {
    margin-top: 0.35rem;
  }

  /* Assessment section: keep the embedded card distinct from the section behind it. */
  #assessment .blak-ra {
    --blak-ra-bg: var(--surface-2);
  }

  /*
   * The site is locked to its light palette (data-theme="light" on <html>), but
   * the assessment plugin ships its own prefers-color-scheme handling. Pin it to
   * the light values so it matches the rest of the page on dark-mode devices.
   */
  @media (prefers-color-scheme: dark) {
    #assessment .blak-ra {
      --blak-ra-bg: var(--surface-2);
      --blak-ra-surface: #FFFFFF;
      --blak-ra-surface-2: #EFE7DC;
      --blak-ra-text: #241C18;
      --blak-ra-text-muted: #5B4C42;
      --blak-ra-accent: #6E1E33;
      --blak-ra-accent-hover: #82233C;
      --blak-ra-accent-ink: #FFFFFF;
      --blak-ra-gold: #B8934A;
      --blak-ra-border: rgba(36, 28, 24, 0.16);
      --blak-ra-border-strong: rgba(36, 28, 24, 0.34);
    }
    #assessment .blak-ra__option.is-selected {
      background: #FBEFF1;
    }
    #assessment .blak-ra__error {
      background: #FBEAEA;
      border-color: #E3B7B7;
      color: #8A2E2E;
    }
  }
  .calendly-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: clamp(0.75rem, 2vw, 1.25rem);
    overflow: hidden;
  }
  .calendly-inline-widget {
    width: 100%;
  }
  @media (max-width: 640px) {
    .calendly-inline-widget { height: 1050px !important; }
  }

  /* footer */
  footer.site-footer {
    background: var(--ink-bg);
    color: var(--ink-muted);
    padding: 2.5rem 0;
  }
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }
  .footer-inner a { color: var(--ink-muted); text-decoration: none; }
  .footer-inner a:hover { color: var(--ink-text); }
