/* =============================================================================
   Cameron Winston — Digital Business Card
   Editorial-premium, athletic-performance aesthetic. Mobile-first.
   ============================================================================= */

/* ---- Design tokens -------------------------------------------------------- */
:root {
  --green:  #083D35;   /* MEA brand deep green — primary anchor */
  --ink:    #14201c;   /* near-black green — body text / deep headings */
  --cream:  #f4f1ea;   /* MEA warm cream — page background */
  --paper:  #FFFFFF;   /* surfaces */
  --yellow: #dfba2c;   /* MEA brand gold/yellow — fills & accents on dark only */
  --yellow-2: #ecd161; /* lighter yellow — hover on dark */
  --muted:  #51635c;   /* green-gray secondary text (AA on cream) */
  --line:   #e3ddcd;   /* hairline rules on cream */

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* fluid type scale */
  --step--1: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --step-0:  clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3:  clamp(2.4rem, 1.8rem + 3vw, 4.5rem);

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 14px;
}

/* ---- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.05; }
p { margin: 0; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Focus ring: green on light areas (overridden to yellow inside the dark Connect section) */
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* eyebrow — now sits BELOW the name as a subtitle, so larger and muted */
.eyebrow {
  font: 500 clamp(1rem, 0.9rem + 0.5vw, 1.2rem)/1.3 var(--sans);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.4rem;
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section__label { display: flex; align-items: baseline; gap: 0.9rem; margin-bottom: 1.8rem; }
.section__label .num {
  font: 600 var(--step--1)/1 var(--sans); letter-spacing: 0.1em;
  color: var(--green); padding-top: 0.3rem;
}
.section__label h2 { font-size: var(--step-2); color: var(--green); }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.85rem 1.6rem;
  font: 600 var(--step-0)/1 var(--sans);
  text-decoration: none; border-radius: 999px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn--primary {
  background: var(--green); color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.btn--primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn--ghost {
  background: transparent; color: var(--green);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--yellow); color: var(--green); }
.btn--lg { min-height: 54px; padding: 1rem 2rem; }

/* =============================================================================
   1 · HERO
   ============================================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(8,61,53,.07), transparent 60%),
    var(--cream);
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}
.hero__inner { display: flex; flex-direction: column; }

/* MEA brand label above the name */
.hero__mea {
  font: 600 var(--step-0)/1 var(--sans);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); margin: 0 0 1rem;
}

.hero__name {
  font-size: var(--step-3);
  letter-spacing: -0.01em; color: var(--green);
  margin: 0 0 0.6rem;
}
/* Name stays green for contrast; brand yellow comes in as an underline accent */
.hero__last {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
}
.hero__lede {
  font-size: var(--step-1); line-height: 1.45; color: var(--ink);
  max-width: 34ch; margin: 0 0 1.4rem;
}
.hero__assoc {
  font: 500 var(--step--1)/1.5 var(--sans);
  letter-spacing: 0.04em; color: var(--muted);
  text-transform: uppercase; margin: 0 0 2rem;
}
.hero__assoc strong { color: var(--green); font-weight: 600; }
.hero__assoc .dot { margin-inline: 0.5rem; color: var(--yellow); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.5rem; }

.hero__photo {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(8,61,53,.45);
  aspect-ratio: 4 / 5; background: #d7d8cf;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* desktop hero: two columns */
@media (min-width: 56rem) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
      "mea     photo"
      "name    photo"
      "eyebrow photo"
      "lede    photo"
      "cta     photo";
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
  }
  .hero__mea  { grid-area: mea; }
  .hero .eyebrow { grid-area: eyebrow; }
  .hero__name { grid-area: name; }
  .hero__lede { grid-area: lede; }
  .hero__cta { grid-area: cta; margin-bottom: 0; }
  .hero__photo { grid-area: photo; max-width: 30rem; justify-self: end; }
}

/* =============================================================================
   2 · BIO
   ============================================================================= */
.bio { background: var(--paper); border-bottom: 1px solid var(--line); }
.bio__grid { display: grid; gap: 1.5rem; }
@media (min-width: 50rem) {
  .bio__grid { grid-template-columns: 16rem 1fr; gap: clamp(2rem, 5vw, 5rem); }
  .bio .section__label { margin-bottom: 0; }
}

/* =============================================================================
   3 · WHAT IS CHARACTER DEVELOPMENT
   ============================================================================= */
.what__intro {
  font-size: var(--step-1); line-height: 1.5;
  max-width: 60ch; color: var(--ink); margin-bottom: 2.8rem;
}
.what__intro em { font-style: italic; color: var(--green); }

.pillars {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
}
@media (min-width: 48rem) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar {
  padding: 1.8rem 1.6rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--yellow);
}
.pillar__k {
  display: block; font: 500 var(--step-1)/1.1 var(--serif);
  color: var(--green); margin-bottom: 0.6rem;
}
.pillar p { color: var(--muted); font-size: var(--step-0); }

/* =============================================================================
   4 · HOW HE WORKS
   ============================================================================= */
.work { background: var(--paper); border-block: 1px solid var(--line); }
.work__grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service { padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.service h3 { font-size: var(--step-1); color: var(--green); margin-bottom: 0.4rem; }
.service p { color: var(--muted); max-width: 52ch; }
@media (min-width: 48rem) {
  .work__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem); border-top: 0;
  }
  .service { border-bottom: 0; border-top: 3px solid var(--yellow); padding: 1.6rem 0 0; }
}

/* =============================================================================
   GALLERY — full-bleed photo strip
   ============================================================================= */
.gallery {
  background: var(--ink); /* shows in the 3px gap between photos */
  padding-block: 0;
  overflow: hidden;
}

/* Mobile: horizontal scroll with snap — primary surface */
.gallery__strip {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery__strip::-webkit-scrollbar { display: none; }

.gallery__item {
  margin: 0;
  flex: 0 0 84vw;      /* show edge of next photo = natural swipe affordance */
  height: clamp(300px, 56vw, 400px);
  scroll-snap-align: start;
  overflow: hidden;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, center center);
  display: block;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

/* Desktop: all three side by side, fill the width */
@media (min-width: 52rem) {
  .gallery__strip { overflow-x: visible; }
  .gallery__item {
    flex: 1 1 0; width: auto;
    height: clamp(380px, 36vw, 520px);
  }
}

/* =============================================================================
   5 · CONNECT
   ============================================================================= */
.connect { background: var(--green); color: #fff; }
.connect .section__label h2 { color: #fff; }
.connect .section__label .num,
.connect .eyebrow { color: var(--yellow-2); }
/* Inside the dark section, switch the focus ring to yellow so it stays visible */
.connect :focus-visible { outline-color: var(--yellow); }
.connect__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 52rem) {
  .connect__grid { grid-template-columns: 1fr auto; gap: clamp(3rem, 6vw, 6rem); }
}
.connect__lead p { color: #cfe2d9; max-width: 40ch; margin-bottom: 2rem; }
.connect .btn--primary { background: var(--yellow); color: var(--ink); }
.connect .btn--primary:hover { background: var(--yellow-2); }

.socials__label {
  font: 600 var(--step--1)/1 var(--sans);
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--yellow-2); margin: 2.2rem 0 0.2rem;
}

.socials { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.socials li { border-top: 1px solid rgba(255,255,255,.14); }
.socials li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.socials a {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; padding: 0.4rem 0;
  text-decoration: none; font-weight: 600; letter-spacing: 0.02em;
  transition: color .2s ease, padding .2s ease;
}
.socials a span { color: #9fbcb1; font-weight: 400; }
.socials a:hover { color: var(--yellow-2); padding-inline-start: 0.4rem; }
.socials a:hover span { color: var(--yellow-2); }

/* QR group — two stacked QR codes (book + save card) */
.qr-group { display: flex; flex-direction: column; gap: 2rem; justify-self: center; }
.qr-block { text-align: center; }
.qr__frame {
  background: #fff; padding: 16px; border-radius: var(--radius);
  display: inline-block; box-shadow: 0 18px 40px -20px rgba(0,0,0,.5);
}
.qr__frame img { width: 200px; height: 200px; display: block; }
.qr__cap {
  margin: 0.9rem 0 0.2rem; font: 600 var(--step--1)/1 var(--sans);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow-2);
}
.qr__fallback { color: #9fbcb1; font-size: var(--step--1); text-decoration: underline; text-underline-offset: 3px; }
.qr__fallback:hover { color: #fff; }

/* =============================================================================
   6 · FOOTER
   ============================================================================= */
.footer { background: var(--cream); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer__inner {
  display: flex; flex-direction: column; gap: 2rem;
  align-items: flex-start; justify-content: space-between;
}
.footer__brand { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.footer__mark img { height: 72px; width: 72px; border-radius: 50%; object-fit: cover; }
.footer__meta { font-size: var(--step--1); color: var(--muted); line-height: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.footer__coach-name {
  font: 500 var(--step-1)/1.1 var(--serif);
  color: var(--green);
}
.footer__mea-name {
  font: 600 var(--step-0)/1.2 var(--sans);
  color: var(--green);
  letter-spacing: 0.02em;
}
.footer__meta span:last-child { font-size: var(--step--1); color: var(--muted); margin-top: 0.2rem; }

/* =============================================================================
   Reveal-on-scroll (progressive enhancement — visible by default if no JS)
   ============================================================================= */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.no-js .reveal, html:not(.js) .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================================
   Print — tidy one-page handout
   ============================================================================= */
@media print {
  body { background: #fff; color: #000; }
  .hero, .bio, .work, .pillar { box-shadow: none; }
  .connect { background: #fff; color: #000; }
  .connect .section__label h2, .connect__lead p { color: #000; }
  .btn, .skip-link, .qr__fallback { display: none !important; }
  .qr__frame { box-shadow: none; border: 1px solid #ccc; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href]::after { content: ""; }
}
