/* ARF Consulting — Revenue Architecture
   Design tokens: editorial corporate, soft white, graphite, navy, gold ---- */
:root {
  --paper: #f7f6f3;
  --paper-2: #efede8;
  --graphite: #1c1e22;
  --graphite-2: #26292f;
  --steel: #5b6270;
  --navy: #14213d;
  --navy-2: #1c2c52;
  --gold: #a8874f;
  --gold-bright: #c6a465;
  --hairline: rgba(28, 30, 34, 0.13);
  --hairline-strong: rgba(28, 30, 34, 0.24);
  --hairline-on-navy: rgba(247, 246, 243, 0.16);
  --hairline-on-navy-strong: rgba(247, 246, 243, 0.3);
  --text-primary: #191b1e;
  --text-secondary: rgba(25, 27, 30, 0.64);
  --text-muted: rgba(25, 27, 30, 0.42);
  --text-on-navy: #f7f6f3;
  --text-on-navy-dim: rgba(247, 246, 243, 0.68);
  --font-display: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1200px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--graphite);
  padding: 12px 20px; z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.14; margin: 0; }
h1 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.85rem, 3vw, 2.55rem); letter-spacing: -0.005em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1rem; max-width: 64ch; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }
.section-dek { font-size: 1.1rem; max-width: 58ch; color: var(--text-secondary); }

/* Sections ---------------------------------------------------------- */
.section { padding: 96px 0; }
.section--tight { padding: 60px 0; }
.section--navy { background: var(--navy); color: var(--text-on-navy); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--text-on-navy); }
.section--navy p, .section--navy .section-dek { color: var(--text-on-navy-dim); }
.section--paper-2 { background: var(--paper-2); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 48px; flex-wrap: wrap;
  border-bottom: 1px solid var(--hairline); padding-bottom: 26px;
}
.section--navy .section-head { border-bottom-color: var(--hairline-on-navy); }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--gold); display: block; margin-bottom: 12px; text-transform: uppercase;
}

/* Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 243, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { font-family: var(--font-display); font-size: 1.2rem; color: var(--text-primary); letter-spacing: 0.01em; }
.brand strong { color: var(--gold); font-weight: 500; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 10px 13px; font-size: 0.83rem; color: var(--text-secondary); }
.main-nav > ul > li > a:hover, .main-nav > ul > li.open > a { color: var(--text-primary); }

.nav-panel {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--hairline-strong);
  padding: 10px; display: none; box-shadow: 0 16px 40px rgba(28,30,34,0.12);
}
.main-nav > ul > li.open .nav-panel { display: block; }
.nav-panel a { display: block; padding: 9px 12px; font-size: 0.84rem; color: var(--text-secondary); }
.nav-panel a:hover { background: var(--paper-2); color: var(--text-primary); }

.header-cta { display: none; }
@media (min-width: 980px) {
  .main-nav { display: block; }
  .header-cta { display: inline-block; font-size: 0.8rem; padding: 10px 20px; background: var(--navy); color: var(--text-on-navy); }
  .header-cta:hover { background: var(--navy-2); }
}
.nav-toggle { background: none; border: 1px solid var(--hairline-strong); color: var(--text-primary); padding: 8px 12px; font-size: 0.85rem; cursor: pointer; }
@media (min-width: 980px) { .nav-toggle { display: none; } }

.mobile-nav { display: none; background: #fff; border-bottom: 1px solid var(--hairline); padding: 8px 0 24px; }
.mobile-nav.open { display: block; }
.mobile-nav details { border-top: 1px solid var(--hairline); }
.mobile-nav summary { padding: 14px 0; color: var(--text-primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav .sub-links { padding: 0 0 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav .sub-links a { color: var(--text-secondary); font-size: 0.92rem; }
.mobile-nav .top-link { display: block; padding: 14px 0; border-top: 1px solid var(--hairline); color: var(--text-primary); }

/* Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font-size: 0.9rem; font-weight: 500; cursor: pointer; white-space: nowrap; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline-navy { border-color: var(--hairline-on-navy-strong); color: var(--text-on-navy); }
.btn-outline-navy:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-outline-paper { border-color: var(--hairline-strong); color: var(--text-primary); }
.btn-outline-paper:hover { border-color: var(--gold); color: var(--gold); }

/* Hero: Revenue Architecture Command Center -------------------------- */
.hero { padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-bottom: 56px; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 56px; } }
.hero h1 { margin-bottom: 22px; }
.hero .section-dek { font-size: 1.18rem; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; aspect-ratio: 4/3.3; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(15%) contrast(1.03); }

/* Page hero (non-home) ------------------------------------------------ */
.page-hero { padding: 60px 0 72px; }
.page-hero.on-navy { background: var(--navy); color: var(--text-on-navy); }
.page-hero h1 { margin-bottom: 18px; }
.crumbs { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { margin: 0 6px; }
.page-hero-media { margin-top: 40px; aspect-ratio: 21/8; overflow: hidden; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Bento / grid ----------------------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.bento-card { background: var(--paper); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.section--navy .bento { background: var(--hairline-on-navy); border-color: var(--hairline-on-navy); }
.section--navy .bento-card { background: var(--navy); }
.section--paper-2 .bento-card { background: var(--paper-2); }
.bento-card h3 { font-size: 1.12rem; }
.bento-card p { font-size: 0.94rem; margin: 0; }
.bento-card .bento-index { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); }
.bento-card.photo { position: relative; padding: 0; min-height: 240px; overflow: hidden; }
.bento-card.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bento-card.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,33,61,0) 35%, rgba(20,33,61,0.9) 100%); }
.bento-card.photo > * { position: relative; z-index: 1; }
.bento-card.photo h3, .bento-card.photo p, .bento-card.photo .bento-index { color: #fff; padding: 0 28px; }
.bento-card.photo h3 { margin-top: auto; }
.bento-card.photo { justify-content: flex-end; padding-bottom: 26px; }

/* Lifecycle map (revenue lifecycle) ------------------------------------ */
.lifecycle { display: flex; flex-direction: column; }
.lifecycle-row { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--hairline-on-navy); align-items: start; }
@media (min-width: 720px) { .lifecycle-row { grid-template-columns: 60px 220px 1fr auto; align-items: center; } }
.lifecycle-row:first-child { border-top: 1px solid var(--hairline-on-navy); }
.lifecycle-n { font-family: var(--font-mono); font-size: 1.5rem; color: var(--gold); }
.lifecycle-name { font-family: var(--font-display); font-size: 1.28rem; color: var(--text-on-navy); }
.lifecycle-text { color: var(--text-on-navy-dim); margin: 0; }
.lifecycle-link { font-size: 0.82rem; color: var(--gold-bright); white-space: nowrap; }

/* Chips (intelligence functions) ----------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 13px 22px; border: 1px solid var(--hairline-strong); font-size: 0.88rem; }
.chip:hover { border-color: var(--gold); color: var(--gold); }

/* Photo grid (global regions) -------------------------------------------- */
.photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
@media (max-width: 1000px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-tile { position: relative; background: var(--graphite); aspect-ratio: 3/4; overflow: hidden; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: filter 0.3s ease; }
.photo-tile:hover img { filter: grayscale(0%); }
.photo-tile .tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(0deg, rgba(20,33,61,0.9), rgba(20,33,61,0)); color: #fff; font-family: var(--font-display); font-size: 1rem; }

/* Article / listing cards ------------------------------------------------- */
.article-list { display: flex; flex-direction: column; }
.article-row { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 720px) { .article-row { grid-template-columns: 130px 1fr 110px; gap: 24px; align-items: baseline; } }
.article-row .cat { font-family: var(--font-mono); font-size: 0.7rem; color: var(--gold); letter-spacing: 0.03em; }
.article-row h3 { font-size: 1.12rem; }
.article-row p { color: var(--text-secondary); font-size: 0.92rem; margin: 4px 0 0; }
.article-row .cta { font-size: 0.8rem; text-align: right; color: var(--text-muted); }
.section--navy .article-row { border-bottom-color: var(--hairline-on-navy); }
.section--navy .article-row p { color: var(--text-on-navy-dim); }

/* CTA band ---------------------------------------------------------------- */
.cta-band { background: var(--graphite); color: var(--text-on-navy); padding: 84px 0; }
.cta-band h2 { color: var(--text-on-navy); margin-bottom: 18px; }
.cta-band .section-dek { color: rgba(247,246,243,0.7); margin-bottom: 28px; }
.cta-band ul { margin: 0 0 32px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cta-band li { padding-left: 22px; position: relative; font-size: 0.95rem; color: rgba(247,246,243,0.82); }
.cta-band li::before { content: "—"; position: absolute; left: 0; color: var(--gold-bright); }

/* Forms --------------------------------------------------------------- */
form.contact-form { display: grid; gap: 18px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; color: var(--text-secondary); }
.field input, .field select, .field textarea { font-family: var(--font-sans); font-size: 0.95rem; padding: 12px 14px; border: 1px solid var(--hairline-strong); background: #fff; color: var(--text-primary); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: var(--graphite); color: var(--text-on-navy); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; padding-bottom: 48px; border-bottom: 1px solid var(--hairline-on-navy); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: repeat(6, 1fr); } }
.footer-col h4 { font-size: 0.76rem; color: var(--gold-bright); margin-bottom: 16px; font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.87rem; color: rgba(247,246,243,0.68); }
.footer-col a:hover { color: var(--text-on-navy); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-top: 32px; font-size: 0.82rem; color: rgba(247,246,243,0.5); }
.footer-address { max-width: 40ch; }

/* Utilities --------------------------------------------------------------- */
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.body-copy { max-width: 68ch; }
.body-copy p { font-size: 1.02rem; }
.deliverables { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 62ch; }
.deliverables li { padding-left: 22px; position: relative; font-size: 0.96rem; }
.deliverables li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.legal-section { padding: 28px 0; border-bottom: 1px solid var(--hairline); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 1.22rem; margin-bottom: 12px; }
.updated-note { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
