/* =====================================================================
   Ops & Order — Editorial Boutique Operations Studio
   Design system. Palette + typography locked to the brand playbook.
   Colors (playbook Visual Identity): copper authority, slate systems,
   navy + off-white base. Bernhard Fashion = mixed-case accent only.
   ===================================================================== */

:root {
  /* --- Playbook palette (do not change) --- */
  --copper:    #C07840;  /* primary — authority, operational trust */
  --copper-dk: #A5652F;
  --slate:     #4A7EA0;  /* secondary — systems, precision */
  --navy:      #0D1520;  /* base dark */
  --navy-soft: #1B2735;
  --offwhite:  #F4F1EC;  /* base light — matches asset ground */
  --offwhite-2:#ECE7DE;
  --ink:       #23262B;
  --muted:     #6C7079;
  --line:      #D8D2C7;
  --line-navy: rgba(244,241,236,0.16);

  /* --- Fonts --- */
  /* Display serif that echoes the high-contrast Didone wordmark */
  --font-serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  /* Bernhard Fashion — editorial accent, MIXED CASE only, never all-caps */
  --font-accent: 'Bernhard Fashion', 'Cormorant Garamond', Georgia, serif;
  /* Clean, legible, licensed body */
  --font-body: 'Work Sans', system-ui, -apple-system, sans-serif;

  /* --- Type scale --- */
  --text-xs:   0.78rem;
  --text-sm:   0.9rem;
  --text-base: 1.05rem;
  --text-lg:   1.3rem;
  --text-xl:   clamp(1.6rem, 3vw, 2.2rem);
  --text-2xl:  clamp(2.3rem, 5vw, 3.4rem);
  --text-hero: clamp(3rem, 8vw, 6rem);

  /* --- Spacing --- */
  --space-2: 0.5rem;  --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem;  --space-8: 2rem;    --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;
  --space-32: 8rem;

  --maxw: 1200px;
  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Utilities --- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-6); }
.narrow { max-width: 760px; }
.section { padding: clamp(var(--space-16), 9vw, var(--space-32)) 0; }
.eyebrow {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-bottom: var(--space-4);
  display: inline-block;
}
.serif { font-family: var(--font-serif); }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.08; color: var(--navy); letter-spacing: -0.01em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
p { max-width: 62ch; }

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244,241,236,0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(13,21,32,0.06); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand-lockup { display: flex; align-items: center; gap: var(--space-3); }
.brand-lockup .mark { width: 40px; height: 40px; }
.brand-lockup .name {
  font-family: var(--font-serif);
  font-size: 1.45rem; font-weight: 600; color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-lockup .name .amp { color: var(--copper); font-style: italic; padding: 0 1px; }
.nav-links { display: flex; align-items: center; gap: var(--space-8); }
.nav-links a {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  color: var(--ink);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--copper); }
.nav-links a.nav-cta {
  background: var(--navy); color: var(--offwhite);
  padding: 0.6rem 1.1rem; border-radius: var(--radius);
  transition: background 0.25s var(--ease);
}
.nav-links a.nav-cta:hover { background: var(--copper); color: var(--offwhite); }
.nav-toggle { display: none; font-size: 1.5rem; color: var(--navy); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-accent); font-size: var(--text-base);
  letter-spacing: 0.02em;
  padding: 0.9rem 1.7rem; border-radius: var(--radius);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--copper); color: var(--offwhite); }
.btn-primary:hover { background: var(--copper-dk); }
.btn-dark { background: var(--navy); color: var(--offwhite); }
.btn-dark:hover { background: var(--navy-soft); }
.btn-ghost { border: 1px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--offwhite); }
.btn-ghost-light { border: 1px solid var(--line-navy); color: var(--offwhite); }
.btn-ghost-light:hover { background: var(--offwhite); color: var(--navy); }

/* =====================================================================
   HERO — presents the wordmark exactly as supplied on the off-white
   ground. The wordmark JPG is placed unchanged.
   ===================================================================== */
.hero {
  background: var(--offwhite);
  padding: clamp(var(--space-20), 12vw, var(--space-32)) 0 clamp(var(--space-16), 8vw, var(--space-24));
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  /* thin vertical rule echoing the asset's right-edge tick */
  content: ""; position: absolute; top: 12%; right: 6%; bottom: 12%;
  width: 1px; background: var(--line); display: none;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-wordmark {
  width: min(880px, 92%);
  height: auto; margin: 0 auto var(--space-8);
}
.hero-lede {
  font-family: var(--font-serif);
  font-size: var(--text-xl); font-weight: 400; font-style: italic;
  color: var(--navy); max-width: 30ch; margin: var(--space-4) auto var(--space-8);
  line-height: 1.35;
}
.hero-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: center; }

/* --- Positioning band (navy) --- */
.band-navy { background: var(--navy); color: var(--offwhite); }
.band-navy h2, .band-navy h3 { color: var(--offwhite); }
.band-navy .eyebrow { color: var(--copper); }
.positioning p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.4;
  font-weight: 400; max-width: 24ch; margin: 0 auto; color: var(--offwhite);
}
.positioning .amp { color: var(--copper); font-style: italic; }

/* --- Anxiety / problem framing --- */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-8); margin-top: var(--space-12);
}
.problem-card {
  padding: var(--space-8); background: var(--offwhite-2);
  border-left: 2px solid var(--copper); border-radius: 0 var(--radius) var(--radius) 0;
}
.problem-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.problem-card p { font-size: var(--text-base); color: var(--muted); }

/* --- How it works --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-8); margin-top: var(--space-12); }
.step { position: relative; }
.step .num {
  font-family: var(--font-serif); font-size: 2.6rem; color: var(--copper);
  line-height: 1; margin-bottom: var(--space-3); font-weight: 500;
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--muted); }

/* --- Packages --- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); margin-top: var(--space-12); align-items: stretch; }
.pkg {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-8);
  display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pkg:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13,21,32,0.08); border-color: var(--copper); }
.pkg.featured { background: var(--navy); border-color: var(--navy); }
.pkg.featured h3, .pkg.featured .pkg-price { color: var(--offwhite); }
.pkg.featured .pkg-desc, .pkg.featured li { color: rgba(244,241,236,0.82); }
.pkg.featured .pkg-tag { background: var(--copper); color: var(--offwhite); }
.pkg-tag {
  align-self: flex-start; font-family: var(--font-accent);
  font-size: var(--text-xs); letter-spacing: 0.1em;
  background: var(--offwhite-2); color: var(--copper);
  padding: 0.3rem 0.7rem; border-radius: 2px; margin-bottom: var(--space-4);
}
.pkg h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.pkg-price { font-family: var(--font-serif); font-size: var(--text-lg); color: var(--copper); margin-bottom: var(--space-4); font-weight: 500; }
.pkg.featured .pkg-price { color: var(--copper); }
.pkg-desc { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-6); }
.pkg ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); flex: 1; }
.pkg li { font-size: var(--text-sm); padding-left: 1.4rem; position: relative; line-height: 1.5; }
.pkg li::before { content: "—"; position: absolute; left: 0; color: var(--copper); }

/* --- Industries --- */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-6); margin-top: var(--space-12); }
.ind {
  padding: var(--space-6) var(--space-8); background: var(--offwhite-2);
  border-radius: var(--radius); border-top: 2px solid var(--slate);
}
.ind .ind-label { font-family: var(--font-accent); font-size: var(--text-sm); letter-spacing: 0.05em; color: var(--slate); display: block; margin-bottom: var(--space-2); }
.ind p { font-size: var(--text-base); color: var(--ink); font-family: var(--font-serif); font-style: italic; }

/* --- CTA band --- */
.cta-band { background: var(--copper); color: var(--offwhite); text-align: center; }
.cta-band h2 { color: var(--offwhite); margin-bottom: var(--space-4); }
.cta-band p { color: rgba(244,241,236,0.9); margin: 0 auto var(--space-8); }
.cta-band .btn-dark { background: var(--navy); }
.cta-band .btn-dark:hover { background: var(--navy-soft); }

/* --- Footer --- */
.site-footer { background: var(--navy); color: rgba(244,241,236,0.7); padding: var(--space-16) 0 var(--space-8); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-8); align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); }
.footer-brand .mark { width: 44px; height: 44px; }
.footer-brand .name { font-family: var(--font-serif); font-size: 1.5rem; color: var(--offwhite); }
.footer-brand .name .amp { color: var(--copper); font-style: italic; }
.footer-tag { font-family: var(--font-accent); letter-spacing: 0.08em; font-size: var(--text-sm); margin-top: var(--space-3); }
.footer-links { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.footer-links a { font-size: var(--text-sm); transition: color 0.2s; }
.footer-links a:hover { color: var(--copper); }
.footer-bottom { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line-navy); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-xs); }

/* --- reveal-on-scroll (only hides when JS is active; visible by default) --- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   QUICK ANALYSIS
   ===================================================================== */
.analysis-main { background: var(--offwhite); min-height: 100vh; }
.qa-intro { text-align: center; padding: clamp(var(--space-16), 10vw, var(--space-24)) 0 var(--space-12); }
.qa-intro h1 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.qa-intro p { margin: 0 auto; color: var(--muted); }

.qa-progress { position: sticky; top: 74px; z-index: 40; background: rgba(244,241,236,0.9); backdrop-filter: blur(8px); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.qa-progress-inner { display: flex; align-items: center; gap: var(--space-4); }
.qa-progress .mark { width: 30px; height: 30px; flex-shrink: 0; }
.qa-bar { flex: 1; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.qa-bar-fill { height: 100%; width: 0%; background: var(--copper); border-radius: 4px; transition: width 0.4s var(--ease); }
.qa-count { font-family: var(--font-accent); font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }

.qa-card { max-width: 720px; margin: 0 auto; padding: var(--space-12) 0 var(--space-24); }
.qa-step { display: none; }
.qa-step.active { display: block; animation: fadeUp 0.45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.qa-area-label { font-family: var(--font-accent); font-size: var(--text-sm); letter-spacing: 0.1em; color: var(--copper); margin-bottom: var(--space-3); }
.qa-question { font-family: var(--font-serif); font-size: var(--text-xl); color: var(--navy); margin-bottom: var(--space-8); line-height: 1.2; }
.qa-options { display: flex; flex-direction: column; gap: var(--space-3); }
.qa-option {
  text-align: left; padding: var(--space-4) var(--space-6);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: var(--text-base); color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.15s var(--ease);
  display: flex; align-items: center; gap: var(--space-4);
}
.qa-option:hover { border-color: var(--copper); transform: translateX(3px); }
.qa-option.selected { border-color: var(--copper); background: var(--offwhite-2); }
.qa-option .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: all 0.2s; }
.qa-option.selected .dot { border-color: var(--copper); background: var(--copper); box-shadow: inset 0 0 0 3px #fff; }
.qa-nav { display: flex; justify-content: space-between; margin-top: var(--space-12); }
.qa-back { font-family: var(--font-accent); color: var(--muted); font-size: var(--text-sm); align-self: center; }
.qa-back:hover { color: var(--navy); }
.qa-back[disabled] { visibility: hidden; }

/* Lead form fields */
.qa-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.qa-field { display: flex; flex-direction: column; gap: 0.4rem; }
.qa-field.full { grid-column: 1 / -1; }
.qa-field label { font-family: var(--font-accent); font-size: var(--text-sm); color: var(--navy); letter-spacing: 0.03em; }
.qa-field input, .qa-field select {
  font-family: var(--font-body); font-size: var(--text-base);
  padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink);
}
.qa-field input:focus, .qa-field select:focus { outline: none; border-color: var(--copper); }

/* --- Results --- */
.qa-results { display: none; max-width: 820px; margin: 0 auto; padding: var(--space-16) 0 var(--space-24); }
.qa-results.active { display: block; animation: fadeUp 0.5s var(--ease); }
.score-hero { text-align: center; margin-bottom: var(--space-16); }
.score-ring { position: relative; width: 220px; height: 220px; margin: 0 auto var(--space-6); }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-ring .val .n { font-family: var(--font-serif); font-size: 3.6rem; color: var(--navy); line-height: 1; font-weight: 500; }
.score-ring .val .d { font-family: var(--font-accent); font-size: var(--text-sm); color: var(--muted); letter-spacing: 0.1em; }
.score-band { font-family: var(--font-accent); font-size: var(--text-lg); color: var(--copper); letter-spacing: 0.05em; }
.rec-pkg { background: var(--navy); color: var(--offwhite); border-radius: var(--radius); padding: var(--space-12); text-align: center; margin-bottom: var(--space-12); }
.rec-pkg .eyebrow { color: var(--copper); }
.rec-pkg h2 { color: var(--offwhite); font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.rec-pkg .price { font-family: var(--font-serif); font-size: var(--text-xl); color: var(--copper); margin-bottom: var(--space-6); }
.rec-pkg p { color: rgba(244,241,236,0.85); margin: 0 auto var(--space-8); }
.gaps { margin-bottom: var(--space-12); }
.gaps h3 { margin-bottom: var(--space-6); font-size: var(--text-xl); }
.gap-list { display: flex; flex-direction: column; gap: var(--space-4); }
.gap-item { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-6); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--copper); border-radius: 0 var(--radius) var(--radius) 0; }
.gap-item .gap-score { font-family: var(--font-serif); font-size: var(--text-lg); color: var(--copper); white-space: nowrap; }
.gap-item .gap-name { font-family: var(--font-body); font-weight: 500; color: var(--navy); }
.gap-item .gap-note { font-size: var(--text-sm); color: var(--muted); }
.area-breakdown { margin-bottom: var(--space-12); }
.area-row { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.area-row .area-name { flex: 0 0 42%; font-size: var(--text-sm); color: var(--ink); }
.area-track { flex: 1; height: 6px; background: var(--offwhite-2); border-radius: 6px; overflow: hidden; }
.area-fill { height: 100%; background: var(--slate); border-radius: 6px; }
.area-row .area-pts { font-family: var(--font-accent); font-size: var(--text-xs); color: var(--muted); white-space: nowrap; flex: 0 0 54px; text-align: right; }
.results-cta { text-align: center; padding-top: var(--space-8); border-top: 1px solid var(--line); }
.results-cta .btn { margin: var(--space-3) var(--space-2) 0; }
.qa-status { text-align: center; font-size: var(--text-sm); color: var(--muted); margin-top: var(--space-6); font-family: var(--font-accent); }

/* --- Responsive --- */
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 74px 0 auto 0; background: var(--offwhite); flex-direction: column; padding: var(--space-8); gap: var(--space-6); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform 0.35s var(--ease); box-shadow: 0 12px 30px rgba(13,21,32,0.1); }
  .nav-links.open { transform: none; }
  .nav-toggle { display: block; }
  .footer-top { flex-direction: column; }
  .qa-fields { grid-template-columns: 1fr; }
  .positioning p { max-width: 100%; }
  .gap-item { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
