/* ==========================================================================
   VELOCITY PERFORMANCE CONSULTING — SHARED STYLESHEET
   Single stylesheet for all pages. No build step, no preprocessor.

   Table of contents
   -------------------------------------------------------------------------
   01  Design tokens (CSS custom properties)
   02  Reset & base elements
   03  Typography helpers (eyebrow, hairline, section headers)
   04  Layout primitives (.wrap, sections, navy glow)
   05  The Velocity logo component (lifted verbatim from logo v4)
   06  Buttons / CTAs
   07  Site header + navigation (+ mobile hamburger)
   08  Cards, pillars, pricing tiers
   09  GHL embed wrappers
   10  Site footer
   11  Page-specific helpers (hero, about, contact)
   12  Scroll-in motion utilities
   13  Responsive (<= 900px) + accessibility prefs
   ========================================================================== */

/* ==========================================================================
   01  DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand palette — exact values from the brand system */
  --navy:       #0E2240;  /* primary brand / dark backgrounds */
  --navy-deep:  #081730;  /* deepest sections, footer */
  --red:        #D72638;  /* accent only — lines, eyebrows, emphasis */
  --cream:      #F5F1E8;  /* text on navy, light surfaces */
  --cream-deep: #ECE6D6;  /* borders, dividers on light */
  --paper:      #FBF9F4;  /* default page background */
  --ink:        #161616;  /* body text on light */
  --slate:      #5B6470;  /* secondary text */
  --mist:       #C9C5BC;
  --white:      #FFFFFF;

  /* Layout */
  --maxw: 1140px;
  --pad-x: 48px;          /* desktop horizontal padding */
  --pad-x-mobile: 24px;   /* mobile horizontal padding */

  /* Type families */
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}

/* ==========================================================================
   02  RESET & BASE
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Accessible skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red);
  color: var(--white);
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; text-decoration: none; }

/* Visible focus for keyboard users on every interactive element */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   03  TYPOGRAPHY HELPERS
   ========================================================================== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}

/* Recurring 1px red hairline divider motif */
.hairline {
  height: 1px;
  width: 100%;
  background: var(--red);
  border: none;
  opacity: 0.85;
}

/* Big editorial display heading used across pages */
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.display em { font-style: italic; color: var(--red); }

/* Numbered section header pattern: mono number w/ red top rule + Fraunces title */
.section-head {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: baseline;
}
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 2px solid var(--red);
  padding-top: 10px;
  font-weight: 500;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
  font-variation-settings: "opsz" 72;
}
.section-title em { font-style: italic; color: var(--red); }
.section-lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  color: var(--slate);
  margin-top: 12px;
  max-width: 600px;
  font-variation-settings: "opsz" 24;
}
/* On navy sections the section title/lede flip to light */
.on-navy .section-title { color: var(--cream); }
.on-navy .section-lede  { color: rgba(245, 241, 232, 0.72); }

/* ==========================================================================
   04  LAYOUT PRIMITIVES
   ========================================================================== */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { padding: 88px 0; }
.section--light  { background: var(--paper); border-bottom: 1px solid var(--cream-deep); }
.section--cream  { background: var(--cream); }

/* Navy section with subtle radial red glow accent */
.section--navy {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.section--navy-deep { background: var(--navy-deep); color: var(--cream); }

.glow {
  position: absolute;
  pointer-events: none;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(215, 38, 56, 0.14), transparent 70%);
}
.glow--tr { top: -160px; right: -140px; }
.glow--bl { bottom: -220px; left: -120px; }

/* Generic measure for readable prose blocks */
.measure { max-width: 640px; }
.lead {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.5;
  font-variation-settings: "opsz" 40;
  color: var(--ink);
}
.on-navy .lead { color: var(--cream); }

/* ==========================================================================
   05  THE VELOCITY LOGO COMPONENT  (verbatim from velocity-pc-logo-v4.html)
   ========================================================================== */
.velocity-logo {
  display: inline-flex;
  align-items: flex-start;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  line-height: 1;
  color: var(--white);
}

/* The big dipping italic V */
.velocity-logo .v {
  font-size: 2.05em;
  line-height: 0.82;
  letter-spacing: -0.02em;
  margin-right: 0.06em;
  margin-top: -0.05em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

/* Right-side stack */
.velocity-logo .stack {
  display: flex;
  flex-direction: column;
  padding-top: 0.22em;
}
.velocity-logo .word {
  font-size: 1em;
  line-height: 0.9;
  letter-spacing: 0.005em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.velocity-logo .line {
  height: 1px;
  background: var(--red);
  margin-top: 0.22em;
  margin-bottom: 0.20em;
  width: 100%;
}

/* Descriptor stays clean sans — sharp contrast with the serif above */
.velocity-logo .desc {
  font-family: 'IBM Plex Sans', sans-serif;
  font-style: normal;
  font-size: 0.135em;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  color: inherit;
  font-variation-settings: normal;
}

/* ---- Color variants ---- */
.velocity-logo.on-light { color: var(--navy); }
.velocity-logo.on-light .line { background: var(--red); }

.velocity-logo.mono-cream { color: var(--cream); }
.velocity-logo.mono-cream .line { background: var(--cream); opacity: 0.7; }

.velocity-logo.mono-red { color: var(--red); }
.velocity-logo.mono-red .line { background: var(--red); }

/* Size driver */
.velocity-logo.xs  { font-size: 28px; }
.velocity-logo.sm  { font-size: 48px; }
.velocity-logo.md  { font-size: 72px; }
.velocity-logo.lg  { font-size: 112px; }
.velocity-logo.xl  { font-size: 160px; }

/* Logo used as a nav/footer link should never underline its letterforms */
a.velocity-logo:hover,
.logo-link:hover { text-decoration: none; }

/* ==========================================================================
   06  BUTTONS / CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover { background: #c01f30; border-color: #c01f30; }

/* Secondary on dark backgrounds */
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 241, 232, 0.35);
}
.btn--ghost:hover { border-color: var(--cream); color: var(--white); }

/* Secondary on light backgrounds */
.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--cream); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* ==========================================================================
   07  SITE HEADER + NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav__links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav__links a:hover { text-decoration: none; border-bottom-color: var(--red); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--red); color: var(--white); }

.nav__cta { margin-left: 8px; }

/* Hamburger toggle (hidden on desktop) */
.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(245, 241, 232, 0.35);
  border-radius: 2px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--cream);
  transform: translateX(-50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span { top: 50%; margin-top: -1px; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   08  CARDS, PILLARS, PRICING
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(14, 34, 64, 0.35);
  border-color: var(--mist);
}
.card__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red);
  font-weight: 500;
}
.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 14px 0 12px;
  font-variation-settings: "opsz" 48;
}
.card__title em { font-style: italic; color: var(--red); }
.card__body { color: var(--slate); font-size: 15px; flex: 1; }
.card__link {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Bulleted feature list used inside service detail blocks */
.feature-list { list-style: none; margin-top: 18px; }
.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 15px;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 1px;
  background: var(--red);
}
.on-navy .feature-list li { color: rgba(245, 241, 232, 0.82); }

/* Pricing tiers */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.tier {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.tier--featured {
  border-color: var(--navy);
  box-shadow: 0 22px 50px -28px rgba(14, 34, 64, 0.5);
  position: relative;
}
.tier--featured::after {
  content: "Most popular";
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.tier__name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--navy);
  font-variation-settings: "opsz" 48;
}
.tier__price {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  color: var(--ink);
  margin: 12px 0 4px;
}
.tier__price small {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.tier__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 18px;
}
.tier .feature-list { margin-top: 0; flex: 1; }
.tier .btn { margin-top: 24px; justify-content: center; }

/* Credibility / positioning band stat blocks */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.stat__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(34px, 5vw, 52px);
  color: var(--red);
  line-height: 1;
  font-variation-settings: "opsz" 96;
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.6);
  margin-top: 10px;
}

/* Vertical / tag chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--cream-deep);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--white);
}

/* ==========================================================================
   09  GHL EMBED WRAPPERS
   Branded containers so third-party iframes feel native, not bolted on.
   ========================================================================== */
.ghl-embed {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 18px 50px -30px rgba(14, 34, 64, 0.4);
  overflow: hidden;
}
.ghl-embed--on-navy {
  background: rgba(245, 241, 232, 0.04);
  border-color: rgba(245, 241, 232, 0.14);
}
.ghl-embed iframe { width: 100%; border: none; display: block; border-radius: 4px; }
/* Sensible default heights so the layout doesn't collapse before GHL loads */
/* min-height matches the GHL form's data-height (847) as a pre-load fallback;
   form_embed.js resizes the iframe dynamically once loaded. */
.ghl-embed--form iframe    { min-height: 850px; display: block; max-width: 100%; }
.ghl-embed--booking iframe { min-height: 700px; }
/* Placeholder shown until a real GHL ID is pasted in */
.ghl-placeholder {
  border: 1px dashed var(--mist);
  border-radius: 4px;
  padding: 48px 24px;
  text-align: center;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  background: var(--paper);
}
.ghl-placeholder strong { color: var(--red); }

/* ==========================================================================
   10  SITE FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 72px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer__tag {
  margin-top: 22px;
  color: rgba(245, 241, 232, 0.6);
  font-size: 14px;
  max-width: 320px;
}
.footer__col h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 12px; }
.footer__col a { color: var(--cream); font-size: 14px; }
.footer__col a:hover { color: var(--white); }
.footer__contact { font-style: normal; color: rgba(245, 241, 232, 0.8); font-size: 14px; line-height: 1.9; }
.footer__contact a { color: var(--cream); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 241, 232, 0.4);
}

/* ==========================================================================
   11  PAGE-SPECIFIC HELPERS
   ========================================================================== */
/* Hero (shared across pages, navy) */
.hero { padding: 96px 0 104px; }
.hero__inner { max-width: 760px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 24px;
  color: var(--cream);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero__lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(18px, 2.4vw, 22px);
  color: rgba(245, 241, 232, 0.85);
  max-width: 560px;
  font-variation-settings: "opsz" 40;
}

/* About headshot */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.headshot {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  border: 1px solid var(--cream-deep);
  object-fit: cover;
  background: var(--cream);
}
.prose p { margin-bottom: 20px; color: var(--ink); }
.prose p.lead { margin-bottom: 28px; }
.prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--navy);
  margin: 36px 0 14px;
  font-variation-settings: "opsz" 48;
}
.prose h3 em { font-style: italic; color: var(--red); }

/* Contact details list */
.contact-details { list-style: none; }
.contact-details li { margin-bottom: 20px; }
.contact-details .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}
.contact-details .value { font-size: 17px; color: var(--ink); }
.on-navy .contact-details .value { color: var(--cream); }
.on-navy .contact-details .value a { color: var(--cream); }

/* Final CTA band */
.cta-band { text-align: center; }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 640px;
  margin: 0 auto;
  font-variation-settings: "opsz" 96;
}
.cta-band h2 em { font-style: italic; color: var(--red); }
.cta-band .btn-row { justify-content: center; }

/* Intro / two-column text helpers */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.stack-gap > * + * { margin-top: 18px; }

/* ==========================================================================
   12  SCROLL-IN MOTION
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   13  RESPONSIVE + ACCESSIBILITY PREFERENCES
   ========================================================================== */
@media (max-width: 900px) {
  :root { --pad-x: var(--pad-x-mobile); }

  section { padding: 56px 0; }

  .section-head { grid-template-columns: 1fr; gap: 14px; }

  .grid-3, .grid-2, .tiers, .stats, .about-grid, .split, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats { gap: 28px; }

  /* Logo scales down on small screens (matches logo v4 behavior) */
  .velocity-logo.xl { font-size: 90px; }
  .velocity-logo.lg { font-size: 72px; }
  .velocity-logo.md { font-size: 52px; }

  /* --- Mobile navigation --- */
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--navy);
    border-bottom: 1px solid rgba(245, 241, 232, 0.1);
    padding: 16px var(--pad-x-mobile) 24px;
    /* Hidden by default; revealed when .nav.is-open */
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; width: 100%; padding: 12px 0; }
  .nav__cta { margin-left: 0; margin-top: 8px; }
  .nav { position: relative; flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .velocity-logo.xl { font-size: 72px; }
  .hero { padding: 64px 0 72px; }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
