/* ProdUx Design — site styles (homepage rebuild, "Clarity" direction)
   Brand colours and fonts live in the variables below: change them once
   here and the whole site follows. */

:root {
  --navy: #14213D;
  --navy-line: #46557A;
  --navy-text: #C3CADB;
  --gold: #E0A83E;
  --gold-dark: #8F6414;      /* gold that is readable as text on white */
  --ink: #1D2433;
  --muted: #4F5B70;
  --logo: #6A7489;
  --line: #E2E6EE;
  --soft: #F4F6FA;
  --white: #FFFFFF;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-quote: 'Source Serif 4', Georgia, serif;

  --gutter: clamp(20px, 5.5vw, 80px);
  --section: clamp(64px, 8vw, 112px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; }
a { color: inherit; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); color: var(--navy); padding: 12px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; }
.band { padding: var(--section) var(--gutter); }
.band-soft { background: var(--soft); }

/* ---------- Type ---------- */
h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.eyebrow-gold { color: var(--gold-dark); margin-bottom: 0; }
.eyebrow-spaced { margin-top: 56px; }
.text-link { font-weight: 700; font-size: 17px; color: var(--gold-dark); text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 820px; margin-bottom: 48px; }
.section-head p { font-size: 19px; color: var(--muted); }
.section-head-split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; }
.section-head-center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; align-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 16px 28px; border-radius: 12px; font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 15px; border-radius: 10px; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #EBB957; }
.btn-ghost { border-color: var(--navy-line); color: var(--white); font-weight: 600; }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top: nav + hero ---------- */
.top { background: var(--navy); color: var(--white); border-radius: 0 0 clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); }

.nav { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; min-height: 88px; padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--white); text-decoration: none; }
.brand span { color: var(--gold); }
.brand img { display: block; height: 80px; width: auto; }
.brand-dark { color: var(--navy); font-size: 20px; }
.brand-dark span { color: var(--gold-dark); }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { color: #D5DAE6; text-decoration: none; padding: 12px 0; }
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-toggle { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: none; border: 1.5px solid var(--navy-line); border-radius: 10px; color: var(--white); cursor: pointer; }

.hero { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8.5vw, 120px); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 900px; }
.pill { font-size: 14px; font-weight: 600; color: var(--gold); background: rgba(224,168,62,.12); padding: 8px 14px; border-radius: 999px; }
.lede { font-size: clamp(18px, 1.4vw, 20px); color: var(--navy-text); max-width: 720px; }

.assess-strip { margin-top: 32px; background: var(--navy); color: var(--white); border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.assess-strip > div { display: flex; flex-direction: column; gap: 10px; flex: 1 1 420px; min-width: 0; }
.assess-strip .eyebrow { color: var(--gold); margin-bottom: 0; }
.assess-strip h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.01em; }
.assess-strip p:not(.eyebrow) { font-size: 16px; color: var(--navy-text); max-width: 620px; }

/* ---------- Inner pages: compact header and embeds ---------- */
.page-head { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 20px; }
.page-head .pill { align-self: flex-start; }
.page-head h1 { font-size: clamp(34px, 4.4vw, 56px); max-width: 900px; }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--white); box-shadow: inset 0 -2px 0 var(--gold); }
.band-embed { padding-top: clamp(32px, 5vw, 64px); }
.embed { max-width: 1040px; }
.embed-calendar { display: block; width: 100%; height: 1050px; border: 0; }
.embed-note { margin-top: 20px; font-size: 15px; color: var(--muted); text-align: center; }
.embed-note a, .contact a:not(.btn) { color: var(--gold-dark); font-weight: 600; }
.contact { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.contact p { font-size: 19px; color: var(--muted); }
.contact .btn-row { justify-content: center; margin-top: 8px; }
.btn-outline { border-color: var(--navy); color: var(--navy); font-weight: 600; }

/* ---------- About, Services, Articles ---------- */
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-white { background: var(--white); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-text { display: flex; flex-direction: column; gap: 20px; font-size: 18px; color: var(--muted); max-width: 820px; }
.split-img { width: 100%; height: auto; border-radius: 20px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; background: var(--white); transition: transform .15s ease, box-shadow .15s ease; }
.post:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(20,33,61,.10); }
.post img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.post-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex-grow: 1; }
.post-body h2 { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.post-body p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.post-body .text-link { margin-top: auto; font-size: 15px; }
.band-article { padding-top: clamp(32px, 5vw, 64px); }
.prose-wrap { max-width: 760px; }
.article-cover { width: 100%; height: auto; border-radius: 16px; margin-bottom: 40px; }
.prose { font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); margin-top: 48px; }
.prose h3 { font-size: 21px; margin-top: 32px; }
.prose h4 { font-size: 18px; font-weight: 700; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--gold-dark); font-weight: 600; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin-top: 32px; }
.prose img.inline-figure { border-radius: 8px; margin-top: 40px; }
.prose img.inline-figure + h2 { margin-top: 16px; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 20px; color: var(--muted); }
.back-link { margin-top: 56px; }
.legal-date { font-weight: 600; color: var(--muted); }

/* ---------- Logo carousel ---------- */
.logos { padding: 56px 0; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.logos-title { font-size: 15px; font-weight: 600; color: var(--muted); padding: 0 var(--gutter); text-align: center; }
.logo-viewport { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; align-items: center; width: max-content; }
.logo-track li { flex: none; display: flex; align-items: center; height: 56px; margin-right: clamp(40px, 5vw, 72px); font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--logo); white-space: nowrap; }
.logo-track img { display: block; height: 36px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.logo-track li:hover img { filter: none; opacity: 1; }
.logo-track li.is-square img { height: 52px; }
/* The SherpaDevs file is a light-on-dark version, so it is shown as a dark silhouette. */
.logo-track li[data-logo="sherpadevs"] img, .logo-track li[data-logo="sherpadevs"]:hover img { filter: brightness(0); opacity: .55; }
/* Scrolls only once the script has doubled the list, so the loop is seamless. */
.logo-track.is-looping { animation: logo-scroll 45s linear infinite; }
.logo-viewport:hover .logo-track.is-looping { animation-play-state: paused; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
/* Without the script (or with reduced motion) the logos sit in a wrapped, centred row. */
.logo-track:not(.is-looping) { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 12px; padding: 0 var(--gutter); }
.logo-track:not(.is-looping) li { margin: 0 clamp(16px, 2.2vw, 28px); }

/* ---------- Problems and outcomes ---------- */
.outcomes { background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.outcomes-head, .outcome { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 28px clamp(20px, 3vw, 40px); }
.outcomes-head { padding-top: 20px; padding-bottom: 20px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.outcome { font-size: 19px; line-height: 1.5; }
.outcome + .outcome { border-top: 1px solid var(--line); }
.outcome dt { font-weight: 700; }
.outcome dd { color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.card-navy { background: var(--navy); color: var(--white); border-color: var(--navy); padding: 32px; }
.card-navy h3 { font-size: 22px; }
.card-navy p { color: var(--navy-text); }

/* ---------- Packages ---------- */
.section-head .eyebrow { margin-bottom: 0; }
.pkg { border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; background: var(--white); }
.pkg h3 { font-size: 22px; letter-spacing: -0.01em; }
.pkg p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.pkg .pkg-get { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); }
.pkg-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pkg-navy p { color: var(--navy-text); }
.pkg-navy .pkg-get { border-top-color: var(--navy-line); color: var(--white); }
.pkg-navy .pkg-get strong { color: var(--gold); }
.pkg-bundle { border: 2px solid var(--gold); gap: 16px; }
.pkg-bundle h3 { font-size: 26px; }
.pkg-label { font-size: 13px !important; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.pkg-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.pkg-list li { position: relative; padding-left: 28px; font-size: 17px; font-weight: 600; }
.pkg-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--gold-dark); border-bottom: 2.5px solid var(--gold-dark); transform: rotate(-45deg); }
.pkg-bundle .btn { align-self: flex-start; margin-top: auto; }
.card-navy .pkg-includes { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--navy-line); font-size: 14px; color: var(--white); }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: var(--white); padding: clamp(48px, 6vw, 80px) var(--gutter); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.stats-grid div { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stats-grid dd { font-size: clamp(40px, 4.4vw, 56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--gold); }
.stats-grid dt { font-size: 16px; color: var(--navy-text); }

/* ---------- Approach ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 16px; position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps li::before { content: ""; position: absolute; top: 21px; left: 56px; right: 0; height: 2px; background: var(--line); }
.steps h3 { font-size: 24px; }
.steps p { font-size: 17px; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote { background: var(--white); border-radius: 16px; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 28px; }
.quote blockquote { font-family: var(--font-quote); font-style: italic; font-size: 20px; line-height: 1.55; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.4; }
.quote small { font-size: 14px; color: var(--muted); }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }

/* ---------- Call to action ---------- */
.cta { background: var(--navy); color: var(--white); border-radius: clamp(20px, 2.2vw, 28px); padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta h2 { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.03em; line-height: 1.08; max-width: 900px; }
.cta p { font-size: 19px; color: var(--navy-text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px var(--gutter); font-size: 15px; color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px 64px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 380px; margin-right: auto; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
.footer-col a, .footer-col span { padding: 6px 0; text-decoration: none; }
.footer-col a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Tablet ---------- */
@media (max-width: 1040px) {
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 17px; border-top: 1px solid rgba(255,255,255,.12); }
  .nav-links .btn { margin-top: 12px; }
  .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li::before { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .cards-4, .cards-2, .posts, .stats-grid { grid-template-columns: minmax(0, 1fr); }
  .outcomes-head { display: none; }
  .outcome { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: 22px; padding-bottom: 22px; font-size: 17px; }
  .btn-row .btn { width: 100%; }
  .logo-track li { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
