/* ============================================================
   Andrew Wilson — Coach, Mentor, Facilitator
   Bolder refresh: bone ground · deep-bronze accent · Fraunces display
   Fonts: Fraunces (display) + Nunito Sans (body)
   ============================================================ */

:root {
  /* ---- Colour ---- */
  --bg:            #f7f4ef;   /* bone ground */
  --bg-raised:     #ffffff;   /* cards / tiers */
  --ink:           #1a1a18;   /* primary text */
  --ink-muted:     #5c5953;   /* secondary text, roles */
  --hairline:      #e2dcd2;   /* borders, rules */
  --accent:        #8a5a2b;   /* deep bronze */
  --accent-hover:  #6f4621;
  --dark:          #1f1d1a;   /* hero overlay, dark band, footer, featured tier */
  --on-dark:       #f2ede4;   /* text on dark */
  --on-dark-muted: #b3ac9f;

  /* ---- Buttons ---- */
  --btn:     var(--ink);
  --btn-txt: var(--on-dark);

  /* ---- Type ---- */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --heading: var(--display);   /* legacy alias */

  /* ---- Layout ---- */
  --maxw:    1400px;
  --gutter:  clamp(24px, 5vw, 48px);
  --measure: 64ch;

  /* ---- Spacing (8px base) ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --reveal-dur: 600ms;
  --hover-dur: 150ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

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

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Headings ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.15; }

p { margin: 0 0 1.1em; }

/* ---------- Eyebrow + rule ---------- */
.eyebrow {
  font-family: var(--body); font-weight: 700; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted);
  margin: 0 0 var(--s-4); line-height: 1.2; display: flex; align-items: baseline; gap: .7em;
}
.eyebrow .num { color: var(--accent); font-variant-numeric: tabular-nums; }
.eyebrow--ondark { color: var(--on-dark-muted); }
.eyebrow--ondark .num { color: var(--accent); }
.rule { display: block; width: 48px; height: 2px; background: var(--accent); }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: var(--on-dark); padding: 10px 16px; }
.skip:focus { left: 0; }

/* ---------- Visible focus (keyboard) ---------- */
a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--bg); position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent; transition: background var(--hover-dur) ease, border-color var(--hover-dur) ease;
}
.site-header.is-scrolled {
  background: rgba(247,244,239,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom-color: var(--hairline);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand {
  font-family: var(--display); font-weight: 500; font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  letter-spacing: -0.01em; color: var(--ink);
}
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--body); font-size: .9rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); font-weight: 600;
}
.nav-links a:hover { text-decoration: none; color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 3px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; }

/* Nav CTA (Get in touch as a pill) */
.nav-links .nav-cta a {
  background: var(--btn); color: var(--btn-txt);
  padding: 12px 24px; border-radius: 300px; transition: transform var(--hover-dur) ease, background var(--hover-dur) ease;
}
.nav-links .nav-cta a[aria-current="page"] { border-bottom: 0; padding-bottom: 12px; }
.nav-links .nav-cta a:hover { color: var(--btn-txt); transform: translateY(-1px); background: #000; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-block; font-family: var(--body); font-size: 1rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--btn); color: var(--btn-txt);
  padding: 16px 32px; border-radius: 300px; border: 0; cursor: pointer;
  transition: transform var(--hover-dur) ease, background var(--hover-dur) ease, color var(--hover-dur) ease;
}
.btn:hover { text-decoration: none; background: #000; color: var(--btn-txt); transform: translateY(-1px); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--on-dark); }

/* ---------- Sections / bands ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.band-white { background: var(--bg); }
.band-grey  { background: var(--bg); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.band-dark  { background: var(--dark); color: var(--on-dark); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--on-dark); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 4.5vw, 64px); }
.hero-banner {
  position: relative; min-height: clamp(520px, 72vh, 760px);
  background: linear-gradient(90deg, rgba(31,29,26,.74) 0%, rgba(31,29,26,.56) 45%, rgba(31,29,26,.22) 100%),
              url("assets/hero.jpeg") center/cover no-repeat, var(--dark);
  display: grid; align-items: center;
}
.hero-inner {
  position: relative; max-width: 820px; padding: clamp(32px, 6vw, 80px);
  display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2.4vw, 26px);
}
.hero-inner .rule { background: var(--accent); }
.hero-inner h1 { color: var(--on-dark); margin: 0; max-width: 16ch; }
.hero-eyebrow { color: var(--on-dark-muted); }
.hero-sub {
  font-family: var(--body); color: var(--on-dark-muted);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 52ch; margin: 0;
}

/* ---------- Stats / proof strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 48px);
  align-items: start;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: clamp(32px, 4vw, 52px) 0;
}
.stat-num { font-family: var(--display); font-weight: 500; color: var(--accent); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; margin: 0 0 .35em; }
.stat-label { font-family: var(--body); color: var(--ink-muted); font-size: 1rem; line-height: 1.4; margin: 0; }

/* ---------- Section head (eyebrow rail + content) ---------- */
.section-head { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: var(--s-7) var(--s-8); align-items: start; }
.section-head__label { display: flex; flex-direction: column; gap: var(--s-4); }
.section-head__label .eyebrow { margin: 0; }
.measure { max-width: var(--measure); }
.rich p { font-size: 1.18rem; line-height: 1.62; }
.rich a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.lead { font-family: var(--body); font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.5; color: var(--ink-muted); }
.btn-row { margin-top: var(--s-5); }

/* ---------- Generic two-column row ---------- */
.row { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.row.top { align-items: start; }
.row.svc { grid-template-columns: 1.25fr 1fr; align-items: start; }
.row.svc .row-media { overflow: hidden; }
.row.svc .row-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.row.text-first .row-media { order: 2; }
.row-media img { width: 100%; height: auto; object-fit: cover; }

/* art-directed portrait frame */
.row-media.portrait { overflow: hidden; }
.row-media.portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; transition: transform 500ms var(--ease); }
.row-media.portrait:hover img { transform: scale(1.03); }
/* keep a tall-column portrait in view while reading long copy */
.row-media.sticky-media { position: sticky; top: 96px; align-self: start; }

/* ---------- Service blocks list ---------- */
.row.svc ul { margin: 1em 0 0; padding-left: 1.1em; }
.row.svc li { font-size: 1.08rem; line-height: 1.5; margin-bottom: .55em; }

/* ---------- Six Cs list ---------- */
.cs-list { max-width: var(--measure); margin: 1.4em 0 0; padding-left: 1.1em; }
.cs-list li { font-size: 1.18rem; line-height: 1.6; margin-bottom: .85em; }
.cs-list li strong { font-weight: 700; }
.cs-list li em { font-style: normal; color: var(--accent); }

/* ---------- "What I offer" mini list (about page) ---------- */
.mini-offer { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; max-width: 860px; }
.mini-offer h3 { margin: 0 0 .25em; }
.mini-offer p { margin: 0; font-size: 1.1rem; }

/* ---------- Single testimonial (inner pages) — editorial restyle ---------- */
.testimonial { display: grid; grid-template-columns: 1fr; gap: var(--s-6); max-width: 880px; }
.testimonial > img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--hairline); order: 2; }
.testimonial blockquote { margin: 0; order: 1; }
.testimonial blockquote p {
  font-family: var(--display); font-style: normal; font-weight: 400;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.42; margin: 0; color: var(--ink); max-width: 48ch;
}
.testimonial .t-name { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin: var(--s-5) 0 .15em; order: 3; }
.testimonial .t-role { font-family: var(--body); color: var(--ink-muted); font-size: 1rem; margin: 0; order: 4; }
.testimonial .t-role em { font-style: italic; }
.band-dark .testimonial blockquote p, .band-dark .testimonial .t-name { color: var(--on-dark); }
.band-dark .testimonial .t-role { color: var(--on-dark-muted); }

/* ---------- Rotating testimonials carousel ---------- */
.testimonials .eyebrow { margin-bottom: var(--s-6); }
.carousel { position: relative; max-width: 980px; }
.carousel-viewport { position: relative; min-height: 340px; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease); margin: 0; display: flex; flex-direction: column; align-items: flex-start;
}
.slide.is-active { opacity: 1; visibility: visible; position: relative; }
.slide .t-quote {
  font-family: var(--display); font-weight: 400; font-style: normal;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.32; color: var(--on-dark);
  margin: 0 0 var(--s-6); max-width: 40ch; position: relative;
}
.slide .t-quote::before {
  content: "\201C"; position: absolute; left: -.1em; top: -.55em;
  font-family: var(--display); font-size: 4.5rem; color: var(--accent); opacity: .5; line-height: 1;
}
.t-meta { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: var(--s-4); align-items: center; }
.t-portrait { grid-row: 1 / 3; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(138,90,43,.5); }
.t-meta .t-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--on-dark); align-self: end; }
.t-meta .t-role { font-family: var(--body); color: var(--on-dark-muted); font-size: .98rem; align-self: start; margin: 0; }

.carousel-controls { display: flex; align-items: center; gap: var(--s-5); margin-top: var(--s-7); }
.carousel-prev, .carousel-next {
  background: none; border: 1px solid var(--on-dark-muted); color: var(--on-dark);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1;
  display: grid; place-items: center; transition: border-color var(--hover-dur) ease, color var(--hover-dur) ease;
}
.carousel-prev:hover, .carousel-next:hover { border-color: var(--accent); color: var(--accent); }
.carousel-dots { display: flex; gap: 10px; }
.carousel-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--on-dark-muted); opacity: .4; transition: opacity var(--hover-dur) ease, background var(--hover-dur) ease;
}
.carousel-dots button:hover { opacity: .8; }
.carousel-dots button.is-active { background: var(--accent); opacity: 1; }

/* ---------- Full-bleed banner image ---------- */
.fullbleed { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }
.fullbleed img { width: 100vw; aspect-ratio: 1521 / 498; object-fit: cover; }

/* ---------- Page intro heading (left aligned) ---------- */
.section.page-intro { padding-top: clamp(32px, 4vw, 56px); }
.stack { max-width: 760px; }

/* ---------- Membership tiers ---------- */
.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px); align-items: stretch;
  margin-top: clamp(32px, 5vw, 56px);
}
.tier {
  display: flex; flex-direction: column;
  border: 1px solid var(--hairline); background: var(--bg-raised);
  padding: clamp(28px, 3vw, 40px);
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.tier:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 12px 30px rgba(26,26,24,.08); }
.tier.featured { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.tier.featured:hover { box-shadow: 0 14px 36px rgba(26,26,24,.22); }
.tier.featured h3, .tier.featured .tier-price { color: var(--on-dark); }
.tier-tag {
  font-family: var(--body); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 16px;
}
.tier.featured .tier-tag { color: var(--accent); }
.tier h3 { margin: 0 0 .15em; }
.tier-price {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(2rem, 3.4vw, 2.6rem); margin: 10px 0 2px;
}
.tier-price span { font-family: var(--body); font-weight: 400; font-size: 1rem; letter-spacing: 0; color: var(--ink-muted); }
.tier.featured .tier-price span { color: var(--on-dark-muted); }
.tier-desc { font-size: 1.05rem; line-height: 1.5; margin: 8px 0 24px; }
.tier-feats { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 13px; }
.tier-feats li { position: relative; padding-left: 28px; font-size: 1.02rem; line-height: 1.45; }
.tier-feats li svg { position: absolute; left: 0; top: 3px; width: 16px; height: 16px; color: var(--ink); }
.tier.featured .tier-feats li svg { color: var(--on-dark); }
.tier .btn { margin-top: auto; text-align: center; }
.tier.featured .btn { background: var(--on-dark); color: var(--ink); }
.tier.featured .btn:hover { background: #fff; color: var(--ink); }
.tiers-note { margin-top: clamp(22px, 3vw, 34px); font-size: .98rem; line-height: 1.5; color: var(--ink-muted); max-width: 760px; }

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding: clamp(64px, 8vw, 96px) 0 clamp(44px, 5vw, 64px); }
.site-footer .rule { margin-bottom: var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 22px; letter-spacing: -.01em; color: var(--on-dark); }
.footer-brand::before { content: ""; display: block; width: 48px; height: 2px; background: var(--accent); margin-bottom: var(--s-5); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { display: inline-grid; place-items: center; color: var(--on-dark-muted); }
.footer-social a:hover { color: var(--accent); }
.footer-social svg { width: 22px; height: 22px; }
.site-footer h4 { font-family: var(--body); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 1em; }
.site-footer p { margin: 0 0 .4em; font-size: 1rem; color: var(--on-dark); }
.site-footer a { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--on-dark-muted); text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-color: var(--accent); }

/* ---------- Scroll reveal (gated on .js so no-JS shows everything) ---------- */
.reveal { transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease); }
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-7); }
}
@media (max-width: 880px) {
  .brand-suffix { display: none; }   /* show just "Andrew Wilson" once the hamburger appears */
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--hairline); padding: 10px var(--gutter) 24px;
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .section-head { gap: var(--s-5) var(--s-8); }
  .carousel-viewport { min-height: 400px; }
  .hero-banner { min-height: clamp(440px, 70vh, 600px); }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links a[aria-current="page"] { border-bottom: 0; color: var(--accent); }
  .nav-links .nav-cta a { background: none; color: var(--ink); padding: 14px 0; border-radius: 0; }
  .nav-toggle { display: block; }
  .row, .row.svc, .row.top, .section-head { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 24px; }
  body { font-size: 17px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .fullbleed img { aspect-ratio: 16 / 10; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-links { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
  .row-media.portrait img, .tier, .btn, .nav-links .nav-cta a { transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
