/* ==========================================================================
   fabiangrupe.com — Production-Grade AI Transformation
   Design system: Navy #0F2747 + Gold #E89A2D, Inter, 8px spacing scale
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --navy: #0F2747;
  --navy-soft: #1C3A63;
  --gold: #E89A2D;
  --gold-dark: #C97F15;
  --ink: #0A0A0A;
  --muted: #4B5563;
  --faint: #9CA3AF;
  --surface: #F4F6F9;
  --bg: #FFFFFF;
  --warm: #FAFAF9;
  --border: #E5E7EB;
  --green: #059669;
  --green-bg: #ECFDF5;
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1140px;
  --narrow: 720px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { color: var(--navy); font-weight: 620; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; }

h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
h3 { font-size: clamp(21px, 2.6vw, 25px); margin-bottom: 12px; }

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 8px; }

::selection { background: rgba(232, 154, 45, 0.25); }

/* ---------- Layout helpers ---------- */

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

section { padding: 104px 0; }
section.tight { padding: 72px 0; }
.alt { background: var(--surface); }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: middle;
}

.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); line-height: 1.55; }

.section-head { max-width: 760px; margin-bottom: 48px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 16px;
  font-weight: 550;
  padding: 16px 30px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 39, 71, 0.18);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface); color: var(--navy); border-color: var(--navy); transform: translateY(-2px); box-shadow: none; }

.btn-on-dark { background: var(--gold); color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--navy); }

.text-link { font-weight: 550; color: var(--gold-dark); white-space: nowrap; }
.text-link:hover { color: var(--navy); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.wordmark { font-size: 19px; font-weight: 650; color: var(--navy); letter-spacing: -0.01em; white-space: nowrap; }
.wordmark:hover { color: var(--navy); }
.wordmark .wm-short { display: none; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.main-nav a:not(.btn):hover { color: var(--gold-dark); }
.main-nav a.active { color: var(--gold-dark); }
.main-nav .btn { padding: 11px 20px; font-size: 15px; }

/* ---------- Hero (Home) ---------- */

.hero { padding: 88px 0 112px; }
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin-bottom: 24px;
}
.hero .sub {
  font-size: clamp(19px, 2.4vw, 25px);
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 20px;
  max-width: 620px;
}
.hero .pitch { font-size: 18px; max-width: 580px; margin-bottom: 36px; }
.hero-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero-photo { position: relative; }
.hero-photo img {
  border-radius: var(--radius-lg);
  width: 100%;
  box-shadow: 0 20px 48px rgba(15, 39, 71, 0.16);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.55;
}

/* ---------- Page hero (subpages) ---------- */

.page-hero { padding: 80px 0 64px; }
.page-hero h1 { font-size: clamp(34px, 4.8vw, 54px); margin-bottom: 20px; max-width: 800px; }
.page-hero .lead { max-width: 720px; }

/* ---------- Cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: 1fr 1fr; }
.card h3 + p { margin-top: 4px; }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.layer-num {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 12px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

.framework-note { margin-top: 28px; font-size: 15px; font-style: italic; color: var(--muted); }

/* ---------- Stats ---------- */

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }

.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.stat-num {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 660;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.stat-num::after { content: ""; display: block; width: 36px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 14px; }
.stat-card p { font-size: 15.5px; color: var(--muted); }
.stat-card p strong { color: var(--ink); }

.coverage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; }
.coverage .stat-num { margin-bottom: 8px; }
.coverage .stat-num::after { display: none; }
.coverage span.label { font-size: 15px; color: var(--muted); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
thead th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  font-weight: 600;
  padding: 14px 18px;
  white-space: nowrap;
}
tbody td { padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--border); }
tbody tr:nth-child(even) { background: var(--surface); }
td:first-child { font-weight: 600; color: var(--navy); }
.scroll-hint { display: none; font-size: 13px; color: var(--faint); margin-top: 8px; }

/* ---------- Story split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(15, 39, 71, 0.14); }
.split .body-lg p { font-size: 18px; }

/* ---------- Pull quote ---------- */

.pull-quote { max-width: 800px; margin: 0 auto; text-align: center; position: relative; padding-top: 40px; }
.pull-quote::before {
  content: "\201C";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 96px;
  line-height: 1;
  color: var(--gold);
  font-weight: 650;
  opacity: 0.85;
}
.pull-quote blockquote { font-size: clamp(21px, 3vw, 27px); font-style: italic; color: var(--navy); line-height: 1.45; margin-bottom: 20px; letter-spacing: -0.01em; }
.pull-quote cite { font-style: normal; font-size: 15.5px; color: var(--muted); }

.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.quote-card blockquote { font-size: 18px; font-style: italic; color: var(--navy); line-height: 1.55; margin-bottom: 18px; }
.quote-card cite { font-style: normal; font-size: 14.5px; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--navy); color: #fff; padding: 120px 0; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 16px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); font-size: 18px; max-width: 560px; margin: 0 auto 36px; }
.cta-band .motif { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }

/* ---------- Phases ---------- */

.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.phase-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.phase-card .phase-tag { font-size: 13px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); display: block; margin-bottom: 10px; }
.phase-card h3 { font-size: 24px; }
.phase-card .phase-meta { font-size: 14.5px; color: var(--faint); margin-bottom: 18px; }
.phase-card h4 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 20px 0 8px; }
.phase-card p, .phase-card li { font-size: 15.5px; color: var(--muted); }
.phase-card ul { padding-left: 18px; }
.phase-card li { margin-bottom: 6px; }

/* ---------- Fit filter ---------- */

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fit-col { border-radius: var(--radius); padding: 36px; }
.fit-col.green { background: var(--green-bg); border: 1px solid rgba(5, 150, 105, 0.25); }
.fit-col.red { background: var(--red-bg); border: 1px solid rgba(220, 38, 38, 0.18); }
.fit-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.fit-col.green h3 { color: var(--green); }
.fit-col.red h3 { color: var(--red); }
.fit-col ul { list-style: none; padding: 0; }
.fit-col li { padding-left: 30px; position: relative; margin-bottom: 14px; font-size: 16px; }
.fit-col.green li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.fit-col.red li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ---------- FAQ accordion ---------- */

.faq { max-width: 800px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--bg); overflow: hidden; }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  color: var(--navy);
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--gold-dark);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); position: relative; }
.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 20px; }
.step-card p { font-size: 15.5px; color: var(--muted); }

/* ---------- How I work ---------- */

.hw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hw-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.hw-card .layer-num { font-size: 13px; }
.hw-card h3 { font-size: 20px; margin-bottom: 12px; }
.hw-card p { font-size: 16px; color: var(--muted); }

/* ---------- Caveat / callout ---------- */

.callout {
  border-left: 4px solid var(--gold);
  background: var(--warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 32px;
  max-width: 800px;
  margin: 0 auto;
}
.callout p { font-size: 17px; color: var(--ink); font-style: italic; }

.industries { text-align: center; font-size: 17px; color: var(--muted); letter-spacing: 0.02em; }
.industries .sep { color: var(--gold); margin: 0 10px; }

/* ---------- Credentials ---------- */

.cred-list { list-style: none; padding: 0; max-width: 760px; }
.cred-list li {
  padding: 18px 0 18px 34px;
  border-bottom: 1px solid var(--border);
  position: relative;
  font-size: 17px;
  margin: 0;
}
.cred-list li:last-child { border-bottom: none; }
.cred-list li::before { content: ""; position: absolute; left: 4px; top: 28px; width: 10px; height: 3px; background: var(--gold); border-radius: 2px; }

/* ---------- Intake ---------- */

.intake-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.intake-box .avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; box-shadow: 0 4px 14px rgba(15, 39, 71, 0.2); }
.intake-box h2 { font-size: 26px; }
.intake-box p { color: var(--muted); max-width: 540px; margin-left: auto; margin-right: auto; }
.intake-box .btn { margin: 20px 0 12px; }
.intake-box .micro { font-size: 14px; color: var(--faint); }

.q-list { counter-reset: q; list-style: none; padding: 0; max-width: 760px; margin: 0 auto; }
.q-list li {
  counter-increment: q;
  padding: 20px 0 20px 56px;
  position: relative;
  font-size: 17.5px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.q-list li:last-child { border-bottom: none; }
.q-list li::before {
  content: counter(q);
  position: absolute;
  left: 0;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  font-weight: 650;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-pitch { border-left: 4px solid var(--gold); padding: 4px 0 4px 28px; max-width: 720px; margin: 0 auto; }
.no-pitch li { font-size: 17px; margin-bottom: 12px; }
.no-pitch ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-grid h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ink); font-size: 15.5px; }
.footer-grid a:hover { color: var(--gold-dark); }
.footer-brand .wordmark { font-size: 20px; display: block; margin-bottom: 10px; }
.footer-brand p { font-size: 15.5px; color: var(--muted); max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--faint);
}
.footer-bottom a { color: var(--faint); margin-left: 18px; }
.footer-bottom a:first-child { margin-left: 0; }
.footer-bottom a:hover { color: var(--navy); }

.footer-min { padding: 40px 0; text-align: center; }

/* Language switcher (footer) */
.lang-switch { display: inline-flex; gap: 4px; align-items: center; }
.lang-switch a { color: var(--faint); margin-left: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 6px; }
.lang-switch a + a { margin-left: 2px; }
.lang-switch a.active { color: var(--navy); background: var(--surface); }
.lang-switch a:hover { color: var(--gold-dark); }
.footer-bottom .lang-switch a { margin-left: 0; }

/* ---------- Legal pages ---------- */

.legal h2 { font-size: 24px; margin-top: 40px; }
.legal { padding-bottom: 104px; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid .hero-photo { order: -1; max-width: 420px; }
  .card-grid, .stat-grid, .phase-grid, .steps { grid-template-columns: 1fr; }
  .stat-grid.four { grid-template-columns: 1fr 1fr; }
  .coverage { grid-template-columns: 1fr 1fr; gap: 36px; }
  .split, .fit-grid, .hw-grid, .quote-grid { grid-template-columns: 1fr; }
  .split .split-photo { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Mobile: tables become stacked cards, no horizontal scroll */
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; border: none; border-radius: 0; }
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; background: var(--bg); overflow: hidden; }
  .table-wrap tbody tr:nth-child(even) { background: var(--bg); }
  .table-wrap td { border: none; border-top: 1px solid var(--border); padding: 14px 18px; font-size: 15px; }
  .table-wrap td:first-child { border-top: none; background: var(--surface); color: var(--navy); font-weight: 600; }
  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 5px;
  }
  .table-wrap td:first-child::before { color: var(--muted); }
  .table-wrap td:first-child { font-weight: 600; }
  .scroll-hint { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { padding: 14px 16px; gap: 8px; }
  .main-nav { gap: 13px; }
  .main-nav a:not(.btn) { font-size: 13px; }
  .main-nav .btn { padding: 9px 13px; font-size: 13px; white-space: nowrap; }
  .wordmark { font-size: 17px; }
  .wordmark .wm-full { display: none; }
  .wordmark .wm-short { display: inline; }
  .container { padding: 0 20px; }
  .intake-box { padding: 32px 24px; }
  .cta-band { padding: 80px 0; }
  .hero-photo::after { display: none; }
}

@media (max-width: 380px) {
  .header-inner { padding: 14px 14px; gap: 6px; }
  .main-nav { gap: 11px; }
  .main-nav a:not(.btn) { font-size: 12.5px; }
  .main-nav .btn { padding: 9px 12px; font-size: 12.5px; }
}
