/* ============================================================
   HEADSTART PRODUCTIONS — Shared base stylesheet (design system)
   See DESIGN-SYSTEM.md. Dark base + black/white bands.
   Accent logic: LIME = vibrant accent on DARK sections; ORANGE = accent on WHITE
   sections (lime disappears on white) + reserved for money/urgency (.btn--money).
   Fonts: Anton (headlines), Montserrat (body).

   SCOPE: this file holds ONLY globally shared identity + components — brand tokens,
   typography, layout/bands, buttons, the fixed nav header, the footer, and the
   primitives reused on 2+ pages (.card, .grid, .eyebrow, .ph, the enquiry .form,
   .ticks, .page-hero, accent overrides). Every page loads this first.
   Page-specific SECTION styles live in each page's own CSS file
   (e.g. homepage/assets/css/homepage.css), loaded AFTER this one — so editing one
   page cannot affect another. Do not add page-only styles here.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --orange: #ff8c14;   /* action: CTAs, prices */
  --lime:   #daff00;   /* highlight: emphasis, comparison "us" column */
  --dark:   #242424;   /* near-black base */
  --black:  #141414;   /* deepest bg */
  --white:  #ffffff;

  --ink:        #f4f4f4;   /* body text on dark */
  --ink-dim:    #a8a8a8;   /* secondary text on dark */
  --ink-invert: #1a1a1a;   /* text on light bands */
  --ink-invert-dim: #5c5c5c;
  --line:       rgba(255,255,255,.12);
  --line-invert:rgba(0,0,0,.12);

  --font-head: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  --maxw: 1200px;
  --pad-x: clamp(20px, 5vw, 48px);
  --pad-section: clamp(64px, 9vw, 120px);
  --radius: 14px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--black);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: .96;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.9rem, 8vw, 6.2rem); }
h2 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-dim); }

/* accent text */
.t-orange { color: var(--orange); }
.t-lime   { color: var(--lime); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--pad-section) 0; }
.section--tight { padding: clamp(40px,6vw,72px) 0; }

/* Alternating bands (lyvisuals-style) */
.band-dark  { background: var(--black); color: var(--ink); }
.band-deep  { background: #0d0d0d; color: var(--ink); }
.band-light { background: var(--white); color: var(--ink-invert); }
.band-light .lead { color: var(--ink-invert-dim); }
.band-light p { color: var(--ink-invert-dim); }

/* Eyebrow / pill badge with dot (nextlvlg) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .5em 1.1em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-dim);
  margin-bottom: 18px;
}
/* robust gap between an eyebrow and the heading that follows it */
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3 { margin-top: 4px; }
.band-light .eyebrow { border-color: var(--line-invert); color: var(--ink-invert-dim); }
.eyebrow::before {
  content: ""; width: .5em; height: .5em; border-radius: 50%;
  background: var(--lime);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-weight: 700; font-size: 1rem;
  padding: .95em 1.9em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  line-height: 1;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--lime); color: #1a1f00; }        /* action = lime (ManyChat-style) */
.btn--primary:hover { background: #eaff5a; }
.btn--money { background: var(--orange); color: #241100; }        /* reserved: purchase / urgency */
.btn--money:hover { background: #ffa03c; }
.btn--lime { background: var(--lime); color: #1a1f00; }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
/* fill with a solid contrasting colour on hover (explicit, never currentColor→same-as-text) */
.band-dark .btn--ghost:hover, .band-deep .btn--ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.band-light .btn--ghost:hover { background: var(--ink-invert); color: var(--white); border-color: var(--ink-invert); }
.btn--lg { padding: 1.1em 2.4em; font-size: 1.08rem; }

/* ---------- Section heading block ---------- */
.head-block { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.head-block--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  background: rgba(255,255,255,.02);
}
.band-light .card { border-color: var(--line-invert); background: #fafafa; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Media placeholders ---------- */
.ph {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    #1c1c1c;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-dim);
  font-size: .85rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase;
}
.ph--video { aspect-ratio: 16/9; }
.ph--reel  { aspect-ratio: 9/16; }
.ph--square{ aspect-ratio: 1/1; }
.ph__play {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center;
}
.ph__play::after {
  content: ""; border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #1a1f00; margin-left: 4px;
}
.ph__label { padding: 0 12px; text-align: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   SHARED CHROME (header + footer, on every page)
   ============================================================ */

/* ---------- Header / pill nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: padding .3s var(--ease);
}
.site-header.is-scrolled { padding: 10px 0; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 12px 14px 12px 22px;
  background: rgba(20,20,20,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-img { height: 34px; width: auto; }
@media (max-width: 480px) { .nav__logo-img { height: 28px; } }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  font-size: .95rem; font-weight: 600; color: var(--ink-dim);
  transition: color .2s var(--ease); position: relative;
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--lime); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__ig { color: var(--ink-dim); transition: color .2s var(--ease); }
.nav__ig:hover { color: var(--white); }
.nav__cta { padding: .7em 1.3em; font-size: .92rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 5px 0; transition: .25s var(--ease); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 18px;
    background: rgba(16,16,16,.97); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: .25s var(--ease);
  }
  .nav { position: relative; }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__links { flex-direction: column; gap: 16px; }
  .nav__actions { justify-content: space-between; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px,7vw,88px) 0 32px; }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer__logo { font-family: var(--font-head); font-size: 2rem; letter-spacing: 1px; color: var(--white); display: block; margin-bottom: 14px; }
.footer__brand .btn { margin-top: 18px; }
.footer__nav h4, .footer__social h4 { color: var(--white); margin-bottom: 16px; letter-spacing: 1px; }
.footer__nav ul, .footer__social ul { list-style: none; margin: 0; padding: 0; }
.footer__nav li, .footer__social li { margin-bottom: 10px; }
.footer__nav a, .footer__social a { color: var(--ink-dim); transition: color .2s var(--ease); }
.footer__nav a:hover, .footer__social a:hover { color: var(--orange); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; color: var(--ink-dim); font-size: .85rem;
}
@media (max-width: 720px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   SHARED PAGE PRIMITIVES (reused across 2+ pages)
   ============================================================ */

/* first section on inner pages must clear the fixed header */
.page-hero { padding-top: clamp(128px, 16vh, 180px); }

/* ---------- Service icons (homepage "What We Offer", playbook "What You Get") ----------
   Bryan's own SVGs from headstart_simple_icon_flow.pptx. They ship black, so the SVG
   supplies the alpha only and we paint it with `background: currentColor` — the icon
   then follows `color` (lime on dark bands, orange on light) with no edit to the art.
   NB: these url()s resolve against THIS stylesheet, not the page. Keep them here, and
   never pass the path in via an inline custom property — it silently mis-resolves. */
[class*="ico--"] {
  background: currentColor;
  -webkit-mask-position: center;  mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.ico--market-fit-testing              { -webkit-mask-image: url(../icons/market-fit-testing.svg);              mask-image: url(../icons/market-fit-testing.svg); }
.ico--website-landing-pages           { -webkit-mask-image: url(../icons/website-landing-pages.svg);           mask-image: url(../icons/website-landing-pages.svg); }
.ico--corporate-video-production      { -webkit-mask-image: url(../icons/corporate-video-production.svg);      mask-image: url(../icons/corporate-video-production.svg); }
.ico--social-media-management         { -webkit-mask-image: url(../icons/social-media-management.svg);         mask-image: url(../icons/social-media-management.svg); }
.ico--branding-photography            { -webkit-mask-image: url(../icons/branding-photography.svg);            mask-image: url(../icons/branding-photography.svg); }
.ico--short-form-video-packages       { -webkit-mask-image: url(../icons/short-form-video-packages.svg);       mask-image: url(../icons/short-form-video-packages.svg); }
.ico--ads-creative-management         { -webkit-mask-image: url(../icons/ads-creative-management.svg);         mask-image: url(../icons/ads-creative-management.svg); }
.ico--influencer-marketing            { -webkit-mask-image: url(../icons/influencer-marketing.svg);            mask-image: url(../icons/influencer-marketing.svg); }
.ico--conversion-lead-magnet-strategy { -webkit-mask-image: url(../icons/conversion-lead-magnet-strategy.svg); mask-image: url(../icons/conversion-lead-magnet-strategy.svg); }

/* checkmark lists (playbooks, services, free version) */
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; max-width: 720px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-dim); }
.band-light .ticks li { color: var(--ink-invert-dim); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/78% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/78% no-repeat;
}
.ticks--sm { gap: 10px; }
.ticks--sm li { font-size: .95rem; padding-left: 30px; }
.ticks--sm li::before { width: 18px; height: 18px; }

/* ---------- Enquiry / capture form (homepage, services, playbooks) ---------- */
.form { max-width: 900px; margin: 0 auto; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.field { display: block; margin-bottom: 24px; }
.field--full { grid-column: 1 / -1; }
/* :not(.field__error) — forms.js appends the error <span> into .field, so an
   unqualified `.field > span` outweighs .field__error and repaints errors in
   the label colour (they must stay red on EVERY form). */
.field > span:not(.field__error), .field legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--ink-invert); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--line-invert); border-radius: 10px; background: #fff; color: var(--ink-invert);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.field textarea { resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: .6em 1.1em; border: 1px solid var(--line-invert); border-radius: var(--radius-pill); font-size: .9rem; font-weight: 500; transition: .18s var(--ease); }
.chip input:checked + span { background: var(--ink-invert); color: #fff; border-color: var(--ink-invert); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form__submit { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Required marker + validation states */
.field .req { color: var(--orange); margin-left: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #e5484d; background: #fff6f6;
}
.field input[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus {
  outline-color: #e5484d;
}
.field__error {
  display: block; margin-top: 7px; color: #d13b40;
  font-size: .82rem; font-weight: 600; line-height: 1.35;
}
/* Success state (replaces the form after a valid submit) */
.form__success {
  max-width: 900px; margin: 0 auto; text-align: center;
  padding: 40px 28px; border: 1px solid var(--line-invert); border-radius: 14px;
  background: #fff; color: var(--ink-invert);
}
.form__success strong { display: block; font-size: 1.4rem; margin-bottom: 10px; }
.form__success p { color: var(--ink-invert); opacity: .8; margin: 0 auto; max-width: 46ch; }
/* Honeypot — kept off-screen (not display:none, which some bots skip) */
.hs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
/* Submit error banner (AJAX failure) */
.form__banner {
  max-width: 900px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 10px;
  background: #fdecea; border: 1px solid #f3b4b1; color: #b3261e;
  font-size: .92rem; font-weight: 600;
}

/* Enquiry section heading/lead — one shared size on every page that has the
   form (homepage, services, playbooks, implementation) so it reads identically.
   Services also carries these via its main-scoped overrides; same values. */
#enquiry h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
#enquiry .lead { font-size: clamp(1rem, 1.4vw, 1.15rem); }

@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

/* ============================================================
   MOBILE OVERFLOW HARDENING (fixes right-side gap / overlap ≤480px)
   ============================================================ */
html { overflow-x: hidden; }                    /* match body so nothing scrolls sideways */
body { overflow-wrap: break-word; }             /* break long words instead of overflowing */
.ph__label { overflow-wrap: anywhere; word-break: break-word; }

/* let grid/flex children shrink below their intrinsic content width
   (shared containers only; page-specific ones live in each page's CSS) */
.grid > *, .form__grid > *, .footer__top > *, .nav > * { min-width: 0; }

.ph, .card, img, svg, video, iframe { max-width: 100%; }

/* small-screen polish: stack form submit + tighten nav */
@media (max-width: 480px) {
  .form__submit { flex-direction: column; }
  .form__submit .btn { width: 100%; }
  .nav { padding-left: 16px; }
}

/* ============================================================
   BACKGROUND-AWARE ACCENTS
   Lime = vibrant accent on DARK sections (ManyChat pop);
   Orange = vibrant accent on WHITE sections (lime disappears on white)
   + orange stays reserved for money/urgency via .btn--money
   ============================================================ */
.band-light .eyebrow::before { background: var(--orange); }
.band-light .btn--primary { background: var(--orange); color: #241100; }
.band-light .btn--primary:hover { background: #ffa03c; }
.band-light .ph__play { background: var(--orange); }
.band-light .ph__play::after { border-color: transparent transparent transparent #241100; }
