/* ===================================================================
   A Modern Jack LLC — Design System
   Palette: Charcoal Slate / Ochre Gold / Deep Sage / Soft Steel / White
   Type: Archivo Black (display) + Inter (body/nav)
   Concept: architectural spec-sheet — hairline rules, drafting marks,
   flat bordered "schedules" instead of soft shadow cards.
   =================================================================== */

:root {
  --charcoal: #2F3E46;
  --charcoal-soft: #3C4E58;
  --gold: #DAA520;
  --gold-deep: #B8860B;
  --sage: #52796F;
  --steel: #CED4DA;
  --steel-light: #E9ECEF;
  --white: #FFFFFF;
  --ink: #222C32;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --max: 1160px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --radius: 3px;
}

* { 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-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--charcoal);
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
a:hover { color: var(--gold-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: 62ch; }
.lede { font-size: 1.2rem; color: var(--charcoal-soft); max-width: 46ch; }

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

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.rule {
  border: none;
  border-top: 1px solid var(--steel);
  margin: 0;
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75em 1.2em;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--steel);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-mark-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 4px;
  flex-shrink: 0;
}
.brand-mark-chip .brand-mark { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--charcoal);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--charcoal);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--charcoal);
}

.nav-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--steel);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--steel-light); }
  .nav-links a { display: block; padding: 0.8rem 0; }
  .nav-cta { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.5em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1;
}
.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: var(--white); }
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost-light:hover { background: var(--white); color: var(--charcoal); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--white);
  background-image:
    linear-gradient(90deg, rgba(206,212,218,0.5) 1px, transparent 1px),
    linear-gradient(rgba(206,212,218,0.5) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center -1px;
  border-bottom: 1px solid var(--steel);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sage);
  margin: 0 0 0.9em;
}
.hero p.lede { margin-top: 0.9rem; }

.hero-figure {
  background: var(--white);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 1.5rem;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------- Stat / data band ---------- */
.stat-band {
  background: var(--charcoal);
  color: var(--white);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.stat-grid .stat + .stat { border-left: 1px solid rgba(255,255,255,0.18); padding-left: 2rem; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}
.stat p { color: rgba(255,255,255,0.85); margin: 0; max-width: 32ch; }
@media (max-width: 720px) {
  .stat-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .stat-grid .stat + .stat { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 1.4rem; }
}

/* ---------- Section headers ---------- */
.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Spec sheet list (services) ---------- */
.spec-list { border-top: 1px solid var(--steel); }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--steel);
}
.spec-row .spec-index {
  font-family: var(--font-display);
  color: var(--steel);
  font-size: 2rem;
  line-height: 1;
}
.spec-row h3 { margin-bottom: 0.5rem; }
.spec-row .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: 0.25em 0.8em;
}
@media (max-width: 700px) {
  .spec-row { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- Values grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  border-top: 1px solid var(--steel);
  border-left: 1px solid var(--steel);
}
.value-cell {
  border-right: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  padding: 1.8rem;
}
.value-cell .value-num { color: var(--gold-deep); font-weight: 700; font-size: 0.85rem; }
.value-cell h3 { font-size: 1.05rem; margin: 0.5rem 0 0.5rem; }
.value-cell p { font-size: 0.95rem; margin: 0; }

/* ---------- Timeline (process) ---------- */
.timeline { position: relative; }
.phase {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.6rem;
  padding-bottom: 3rem;
  position: relative;
}
.phase:last-child { padding-bottom: 0; }
.phase-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phase-marker .dot {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.phase-marker .line {
  flex: 1;
  width: 1px;
  background: var(--steel);
  margin-top: 0.5rem;
}
.phase:last-child .line { display: none; }
.phase-body h3 { margin-bottom: 0.35rem; }
.phase-body .phase-kicker {
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: block;
}
@media (max-width: 640px) {
  .phase { grid-template-columns: 56px 1fr; }
  .phase-marker .dot { width: 36px; height: 36px; font-size: 0.9rem; }
}

/* ---------- Area list ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
}
.area-cell {
  background: var(--white);
  padding: 1.6rem;
}
.area-cell .kind {
  font-size: 0.78rem;
  color: var(--sage);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}
.area-cell h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.area-cell p { font-size: 0.92rem; margin: 0; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Band (sage) ---------- */
.band-sage { background: var(--sage); color: var(--white); }
.band-sage h2, .band-sage h3 { color: var(--white); }
.band-sage p { color: rgba(255,255,255,0.92); }

.band-steel { background: var(--steel-light); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--steel); }
.faq-item { border-bottom: 1px solid var(--steel); padding: 1.4rem 0; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--charcoal);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plusminus { font-size: 1.3rem; color: var(--gold-deep); flex-shrink: 0; }
.faq-item[open] summary .plusminus { transform: rotate(45deg); display: inline-block; }
.faq-item p { margin-top: 0.9rem; font-size: 0.98rem; }

/* ---------- Founder split ---------- */
.founder-figure {
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--steel-light);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-detail { padding: 1rem 0; border-top: 1px solid var(--steel); }
.contact-detail:last-child { border-bottom: 1px solid var(--steel); }
.contact-detail .label { font-size: 0.8rem; color: var(--sage); font-weight: 600; }
.contact-detail a, .contact-detail span.value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--charcoal);
  text-decoration: none;
  display: block;
  margin-top: 0.2rem;
}

form.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--charcoal); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--steel);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sage);
  outline: none;
}
.form-note { font-size: 0.85rem; color: var(--charcoal-soft); }

#form-status { font-size: 0.92rem; font-weight: 600; min-height: 1.2em; }
#form-status.success { color: var(--sage); }
#form-status.error { color: #B3261E; }
.contact-form button[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Map ---------- */
.map-wrap {
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.85);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.9rem; }
.footer-brand .brand-name { color: var(--white); }
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--charcoal);
  color: var(--white);
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.2rem, 5vw, 3rem);
}
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero .lede { color: rgba(255,255,255,0.85); }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- ROI Calculator ---------- */
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 860px) { .roi-grid { grid-template-columns: 1fr; } }

.radio-group { display: flex; flex-direction: column; gap: 0.6rem; }
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1.5px solid var(--steel);
  border-radius: var(--radius);
  padding: 0.85em 1em;
  cursor: pointer;
  font-size: 0.95rem;
}
.radio-option:has(input:checked) { border-color: var(--sage); background: var(--steel-light); }
.radio-option input { margin-top: 0.2em; accent-color: var(--sage); flex-shrink: 0; }
.radio-option .radio-label { font-weight: 600; color: var(--charcoal); display: block; }
.radio-option .radio-sub { font-size: 0.85rem; color: var(--charcoal-soft); display: block; margin-top: 0.1em; }

.field .range-row { display: flex; align-items: center; gap: 0.9rem; }
.field input[type="range"] { flex: 1; accent-color: var(--sage); }
.range-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--charcoal);
  min-width: 3.4em;
  text-align: right;
}

.roi-results {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  position: sticky;
  top: 90px;
}
.roi-results h3 { color: var(--white); font-size: 1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 1.4rem; }
.roi-headline { margin-bottom: 1.8rem; }
.roi-headline .roi-bignum {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  color: var(--gold);
  display: block;
  line-height: 1.1;
}
.roi-headline .roi-sublabel { font-size: 0.88rem; color: rgba(255,255,255,0.75); }

.roi-bar-row { margin-bottom: 1.1rem; }
.roi-bar-row .roi-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.35rem;
}
.roi-bar-track {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}
.roi-bar-fill { height: 100%; border-radius: 999px; background: var(--gold); width: 0%; transition: width 0.25s ease; }
.roi-bar-fill.alt { background: var(--sage); }

.roi-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.92rem;
}
.roi-stat-row .roi-stat-value { font-family: var(--font-display); color: var(--white); font-size: 1.05rem; }

.roi-caveat {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1.4rem;
  margin-bottom: 0;
  max-width: none;
}
