/* ==========================================================================
   Pivotwise — shared stylesheet
   Brand: Ink Navy #16243D · Pivot Amber #E2922A · Fog Grey #9CA6B4 · Paper Cream #F8F5EF
   Fonts: Sora (headings), Inter (body). No photography. Pivot-mark motif.
   Rule: never place a solid amber background behind an icon mark.
   ========================================================================== */

/* ─── PROOF FLAG ───────────────────────────────────────────────────────────
   Testimonials and case studies are placeholders until real ones exist.
   Delete this one rule to show every .pending-proof block on the site.     */
.pending-proof { display: none !important; }

/* ─── Reset & tokens ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:        #16243D;   /* Ink Navy */
  --amber:      #E2922A;   /* Pivot Amber — graphics, rules, text on navy only */
  --amber-text: #9A5B0C;   /* Amber tint that passes contrast on white/cream */
  --fog:        #9CA6B4;   /* Fog Grey */
  --cream:      #F8F5EF;   /* Paper Cream */
  --white:      #ffffff;
  --mid:        #4a5568;
  --muted:      #5B6676;
  --border:     #e2ddd6;
  --amber-lt:   #fdf3e3;
  --radius:     8px;
  --max-w:      1120px;
  --font-head:  'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body:  'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
img { display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── Accessibility helpers ─── */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Inline text links inside body copy */
.prose a, .text-link {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
  font-weight: 600;
  color: var(--ink);
}
.prose a:hover, .text-link:hover { color: var(--amber-text); }

/* ─── Header / Nav ─── */
header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo img { height: 42px; width: auto; display: block; }

nav.primary-nav { display: flex; align-items: center; gap: 28px; }
nav.primary-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted);
  transition: color 0.2s; white-space: nowrap;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
nav.primary-nav a:hover,
nav.primary-nav a:focus-visible { color: var(--ink); }
nav.primary-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--amber); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.88rem; }

/* Mobile nav (no-JS <details> pattern) */
.mobile-nav { display: none; }
.mobile-nav summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 6px;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary .bar,
.mobile-nav summary .bar::before,
.mobile-nav summary .bar::after {
  content: ""; display: block; width: 18px; height: 2px;
  background: var(--ink); position: relative;
}
.mobile-nav summary .bar::before { top: -6px; position: absolute; }
.mobile-nav summary .bar::after { top: 6px; position: absolute; }
.mobile-nav[open] summary { border-color: var(--ink); }
.mobile-menu {
  position: absolute; right: 0; top: 52px;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(22,36,61,0.14);
  padding: 10px; display: flex; flex-direction: column; min-width: 240px;
}
.mobile-menu a { padding: 10px 12px; font-size: 0.95rem; color: var(--ink); border-radius: 6px; }
.mobile-menu a:hover { background: var(--cream); }
.mobile-menu a[aria-current="page"] { background: var(--cream); font-weight: 600; }
.mobile-menu .btn { margin-top: 6px; text-align: center; color: var(--white); }

/* ─── Buttons ─── */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  border: 1.5px solid transparent; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--amber); color: var(--ink); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-on-dark { background: var(--amber); color: var(--ink); }
.btn-on-dark:hover { background: var(--white); }

/* ─── Section shared ─── */
section { padding: 96px 24px; }
.section-cream { background: var(--cream); }
.section-dark  { background: var(--ink); color: var(--white); }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-text); margin-bottom: 12px;
}
.section-label::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--amber);
  transform: rotate(-28deg); /* echo of the pivot line */
}
.section-dark .section-label { color: var(--amber); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  letter-spacing: -0.02em; line-height: 1.2;
  max-width: 680px; margin-bottom: 20px; color: var(--ink);
}
.section-dark .section-title { color: var(--white); }

.section-body { font-size: 1rem; color: var(--mid); max-width: 660px; line-height: 1.75; }
.section-body + .section-body { margin-top: 16px; }
.section-dark .section-body { color: rgba(255,255,255,0.78); }

/* ─── Home hero ─── */
.hero-section { padding: 0 24px; }
.hero {
  padding: 84px 24px 80px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
}
.hero-copy .section-label { margin-bottom: 16px; }
.hero-copy h1, .page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 22px; color: var(--ink);
}
.hero-sub {
  font-size: 1.1rem; color: var(--ink); max-width: 560px;
  margin-bottom: 18px; line-height: 1.65; font-weight: 500;
}
.proof-line {
  font-size: 0.9rem; color: var(--muted); font-weight: 600;
  letter-spacing: 0.01em; max-width: 560px; margin-bottom: 34px;
  padding-left: 14px; border-left: 3px solid var(--amber);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-panel {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: 16px; padding: 40px 32px;
}
.hero-panel .pivot-graphic { width: 100%; height: auto; margin-bottom: 28px; display: block; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.94rem; color: var(--ink); font-weight: 500;
}
.check-list li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--amber-text); }

/* ─── Inner page hero ─── */
.page-hero { background: var(--cream); padding: 72px 24px 64px; border-bottom: 1px solid var(--border); }
.page-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center;
}
.page-hero .hero-sub { margin-bottom: 0; }
.hero-actions { margin-top: 28px; }
.page-hero svg { width: 100%; height: auto; display: block; }

/* ─── Icon tiles (never solid amber) ─── */
.icon-tile {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.icon-tile svg { width: 30px; height: 30px; display: block; }
.icon-tile.light { background: var(--white); border: 1px solid var(--border); }

/* ─── Service cards (home) ─── */
.card-grid {
  max-width: var(--max-w); margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.service-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.2s, transform 0.15s;
}
.service-card:hover { border-color: var(--fog); }
.service-card h3 { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.service-card p { font-size: 0.95rem; color: var(--mid); line-height: 1.7; flex-grow: 1; }
.card-link {
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--amber); align-self: flex-start; padding-bottom: 1px;
}
.card-link:hover { color: var(--amber-text); }

/* ─── Why (dark) ─── */
.why-grid {
  max-width: var(--max-w); margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.why-card {
  border: 1px solid rgba(255,255,255,0.14); border-radius: 12px;
  padding: 28px 26px; background: rgba(255,255,255,0.04);
}
.why-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.why-card p { font-size: 0.96rem; color: rgba(255,255,255,0.82); line-height: 1.7; }
.why-more { margin-top: 20px; }
.section-dark .card-link { color: var(--white); }
.section-dark .card-link:hover { color: var(--amber); }
.credentials-line {
  margin-top: 28px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--fog);
}

/* ─── Steps (how an engagement works) ─── */
.steps-diagram {
  max-width: var(--max-w); margin: 48px auto 0;
  background: var(--cream); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 32px 8px;
}
.steps-diagram svg { width: 100%; height: auto; display: block; }
.steps {
  list-style: none; max-width: var(--max-w); margin: 28px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step;
}
.steps li { border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.steps li h3 span { color: var(--amber-text); margin-right: 8px; }
.steps li p { font-size: 0.95rem; color: var(--mid); line-height: 1.7; }

/* ─── CTA band ─── */
.cta-band { background: var(--ink); color: var(--white); }
.cta-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; align-items: center;
}
.cta-inner .section-title { color: var(--white); margin-bottom: 12px; }
.cta-inner .section-body { color: rgba(255,255,255,0.78); }
.cta-inner .cta-actions { display: flex; justify-content: flex-end; }

/* ─── Placeholder blocks (testimonials, case studies) ─── */
.placeholder-flag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber-text); background: var(--amber-lt);
  border: 1px dashed var(--amber); border-radius: 6px; padding: 4px 10px;
}
.placeholder-card {
  max-width: var(--max-w); margin: 32px auto 0;
  border: 1px dashed var(--fog); border-radius: 12px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px; color: var(--mid);
}

/* ─── About ─── */
.about-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 64px; align-items: start;
}
.prose p { font-size: 1.02rem; color: var(--mid); line-height: 1.8; margin-bottom: 18px; max-width: 680px; }
.prose p strong { color: var(--ink); }
.prose h2 {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--ink);
  margin: 40px 0 14px; letter-spacing: -0.01em;
}
.prose h2:first-child { margin-top: 0; }
.aside-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px 26px; position: sticky; top: 110px;
}
.aside-card h2 {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: var(--ink);
}
.aside-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.aside-card li { font-size: 0.9rem; color: var(--mid); line-height: 1.5; padding-left: 16px; position: relative; }
.aside-card li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink);
}
.aside-card ul:last-child { margin-bottom: 0; }

/* ─── Services page: offers ─── */
.offer-nav {
  max-width: var(--max-w); margin: 40px auto 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.offer-nav a {
  font-size: 0.88rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; background: var(--white);
}
.offer-nav a:hover { border-color: var(--ink); }

.offer {
  max-width: var(--max-w); margin: 0 auto;
  padding: 56px 0; border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.offer:first-of-type { border-top: 0; }
.offer-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.offer-head h2 {
  font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink);
}
.offer-head .offer-index { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--amber-text); margin-bottom: 4px; }
.offer-summary { font-size: 1.05rem; color: var(--ink); font-weight: 500; max-width: 760px; line-height: 1.65; margin-bottom: 28px; }

.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.offer-box { background: var(--cream); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.offer-box.out { background: var(--white); border-style: dashed; }
.offer-box h3 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.offer-box p, .offer-box li { font-size: 0.95rem; color: var(--mid); line-height: 1.65; }
.offer-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.offer-box li { padding-left: 18px; position: relative; }
.offer-box li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 9px; height: 2px;
  background: var(--amber); transform: rotate(-28deg);
}
.offer-box.out li::before { background: var(--fog); transform: none; }

.offer-meta {
  margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px;
}
.offer-meta dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.offer-meta dd { font-size: 0.95rem; color: var(--ink); font-weight: 600; line-height: 1.5; }
.offers-section { padding-top: 24px; }
.price-placeholder, .placeholder-inline {
  display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem;
  background: var(--amber-lt); border: 1px dashed var(--amber); border-radius: 4px; padding: 1px 6px;
  color: var(--amber-text);
}
.offer-meta dd.fee { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; }
.offer-cta { margin-top: 22px; }
.offer-note { margin-top: 16px; font-size: 0.85rem; color: var(--muted); max-width: 760px; }

/* ─── Case study card ─── */
.case-card {
  margin-top: 24px; background: var(--ink); color: var(--white);
  border-radius: 16px; padding: 40px 36px;
}
.case-card .section-label { color: var(--amber); }
.case-card h2 { font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.case-facts div { border-top: 2px solid var(--amber); padding-top: 12px; }
.case-facts dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fog); margin-bottom: 6px; }
.case-facts dd { font-size: 0.98rem; line-height: 1.55; color: var(--white); font-weight: 500; }
.case-points { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; max-width: 820px; }
.case-points li { position: relative; padding-left: 22px; color: rgba(255,255,255,0.88); line-height: 1.6; }
.case-points li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 11px; height: 3px; border-radius: 2px; background: var(--amber); transform: rotate(-28deg); }
.case-card > p { color: rgba(255,255,255,0.82); max-width: 720px; line-height: 1.7; }
@media (max-width: 900px) { .case-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .case-facts { grid-template-columns: 1fr; } }

/* ─── FAQ ─── */
.faq-list { max-width: 820px; margin: 40px 0 0; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 0 22px;
}
.faq-list summary {
  cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--amber-text); font-weight: 600;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { font-size: 0.96rem; color: var(--mid); line-height: 1.75; padding-bottom: 20px; }

/* ─── Contact ─── */
.contact-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 500; color: var(--muted); }
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #c9c2b8; border-radius: var(--radius);
  padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--ink);
}
.form-note { font-size: 0.85rem; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; }

.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.contact-aside .aside-card { position: static; }
.contact-aside p { font-size: 0.94rem; color: var(--mid); line-height: 1.65; }
.contact-aside a { font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--amber); }
.contact-aside a:hover { color: var(--amber-text); }
.area-map { width: 100%; height: auto; display: block; margin-bottom: 14px; }

/* ─── Footer ─── */
footer.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 48px 24px 40px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 28px;
}
.footer-logo { display: flex; flex-direction: column; gap: 8px; }
.footer-logo img { height: 40px; width: auto; }
.footer-tagline { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fog); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; }
.footer-nav a { font-size: 0.9rem; color: rgba(255,255,255,0.78); }
.footer-nav a:hover { color: var(--amber); }
.footer-meta { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.82rem; }
.footer-disclaimer { width: 100%; order: 3; color: rgba(255,255,255,0.6); }
.footer-meta a { color: rgba(255,255,255,0.85); }
.footer-meta a:hover { color: var(--amber); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero, .page-hero-inner, .about-grid, .contact-grid, .cta-inner { grid-template-columns: 1fr; }
  .hero { gap: 40px; }
  .hero-panel { max-width: 520px; }
  .page-hero-inner svg { max-width: 320px; }
  .card-grid, .why-grid, .offer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .offer-meta { grid-template-columns: 1fr; }
  .cta-inner .cta-actions { justify-content: flex-start; }
  .aside-card { position: static; }
  nav.primary-nav { display: none; }
  .nav-cta .btn-primary.desktop-only { display: none; }
  .mobile-nav { display: block; position: relative; }
}
@media (max-width: 600px) {
  section { padding: 64px 20px; }
  .hero { padding: 48px 20px 56px; }
  .page-hero { padding: 48px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .logo img { height: 36px; }
  .steps-diagram { padding: 20px 16px 4px; }
}
