/* ==========================================================================
   MB Technology Consulting — styles.css
   Direction F, "Ivory and ink". Hand-written CSS, no build step.
   ========================================================================== */

:root {
  /* Colour tokens — see docs/DESIGN-SPEC.md */
  --paper: #F7F4ED;
  --ink: #1A1C1E;
  --ink-body: #55514A;
  --ink-muted: #726C62;
  --ink-soft: #6F6A5D;
  --ink-nav: #4E4A42;
  --index: #726C62;
  --index-nav: #726C62;
  --rule: #DFD9CB;
  --rule-soft: #C9C2B1;
  --field-border: #8F8877;

  /* One accent token drives the whole site. Swap this single value to
     re-theme: oxblood #A6432E, deep blue #2A46B8, bronze #7A5C1E. */
  --accent: #0F5C56;

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 24px;
  --transition-fast: 0.18s ease;
  --transition-reveal: 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (min-width: 640px) {
  :root { --gutter: 40px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 68px; }
}

/* ------------------------------ Reset ------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, li, figure { margin: 0; padding: 0; }

ul { list-style: none; }

a { color: inherit; text-decoration: none; }

a.link {
  color: var(--ink-nav);
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea {
  font: inherit;
  color: inherit;
}

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

/* Only clear default outlines when supplying an equivalent replacement. */
a, button, input, textarea, [tabindex] {
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  z-index: 100;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 12px;
}

/* Visually hidden but present for assistive tech (used only where noted). */
/* Utility kept deliberately: unused today, but the standard clip-based
   pattern any future off-screen label should use. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.display { font-family: var(--font-display); }

.idx {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--index);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-display);
  border-radius: 3px;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}
.btn:hover { opacity: 0.82; }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 19px 32px;
  font-size: 16px;
  font-weight: 700;
}

.btn-accent {
  background: var(--accent);
  color: var(--paper);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
}

@media (min-width: 640px) {
  .header-inner { padding-top: 26px; padding-bottom: 26px; }
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.wordmark-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wordmark-divider {
  width: 1px;
  height: 13px;
  background: var(--rule-soft);
  align-self: center;
  flex: none;
}

.wordmark-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

@media (max-width: 479px) {
  .wordmark-divider, .wordmark-meta { display: none; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

@media (min-width: 640px) {
  .nav { gap: 34px; }
}

.nav-link {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-nav);
  transition: opacity var(--transition-fast);
}
.nav-link:hover { opacity: 0.72; }

.nav-link .idx { color: var(--index-nav); }

@media (min-width: 761px) {
  .nav-link { display: inline-flex; }
}

/* ------------------------------ Hero ------------------------------- */

.hero {
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  padding-top: 64px;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .hero-inner { padding-top: 96px; padding-bottom: 96px; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .eyebrow { margin-bottom: 32px; }
}

.eyebrow-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.eyebrow-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  max-width: 1105px;
}

.accent-text { color: var(--accent); }

.hero-sub {
  margin-top: 26px;
  max-width: 610px;
  font-size: 18px;
  line-height: 1.58;
  color: var(--ink-body);
}

@media (min-width: 640px) {
  .hero-sub { margin-top: 34px; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 34px;
}

@media (min-width: 640px) {
  .hero-cta { margin-top: 42px; }
}

.hero-micro {
  font-size: 15px;
  color: var(--ink-muted);
}

/* ------------------------------ Proof band ------------------------------- */

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}

@media (min-width: 901px) {
  .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.proof-item {
  padding: 26px 20px 30px;
  border-left: none;
  border-top: none;
}

.proof-item:nth-child(1) { padding-left: var(--gutter); }
.proof-item:nth-child(2n) { border-left: 1px solid var(--rule); }
.proof-item:nth-child(2) { padding-right: var(--gutter); }
.proof-item:nth-child(3),
.proof-item:nth-child(4) { border-top: 1px solid var(--rule); }

@media (min-width: 901px) {
  .proof-item {
    padding: 30px 34px 36px;
    border-top: none !important;
  }
  .proof-item:nth-child(1) { padding-left: var(--gutter); border-left: none; }
  .proof-item:nth-child(n+2) { border-left: 1px solid var(--rule); }
  .proof-item:nth-child(4) { padding-right: var(--gutter); }
  .proof-item:nth-child(2) { padding-right: 34px; }
}

.stat-figure {
  margin-top: 14px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-arrow { color: var(--accent); }

.stat-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ------------------------------ Sections ------------------------------- */

.section {
  border-bottom: 1px solid var(--rule);
}

.section-inner {
  padding-top: 56px;
  padding-bottom: 56px;
}

@media (min-width: 1024px) {
  .section-inner { padding-top: 96px; padding-bottom: 96px; }
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-label-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 720px;
}

.section-intro {
  margin-top: 24px;
  max-width: 610px;
  font-size: 18px;
  line-height: 1.58;
  color: var(--ink-body);
}

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

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------ Section 01: help list ------------------------------- */

.help-list {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 48px;
}

@media (min-width: 640px) {
  .help-list { grid-template-columns: 1fr 1fr; }
}

.help-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-body);
}

.help-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--accent);
}

.help-list li:first-child { border-top: none; }

@media (min-width: 640px) {
  .help-list li:nth-child(2) { border-top: none; }
}

/* ------------------------------ Section 02: offers ------------------------------- */

.offers {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

@media (min-width: 821px) {
  .offers { grid-template-columns: 1fr 1fr; }
}

.offer {
  padding: 36px 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.offer-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.offer-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.offer-body {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.58;
  color: var(--ink-body);
}

.offer-body-secondary {
  color: var(--ink-muted);
}

/* ------------------------------ Section 03: why me ------------------------------- */

/* Why me: prose ~60% of the content width, portrait alongside.
   The 1.7fr/1fr split lands the text at roughly 780px on a 1440px viewport. */
.why-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.prose {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portrait {
  margin: 0;
  position: sticky;
  top: 96px;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--rule);
  /* Warms the image very slightly towards the ivory ground so a photo shot
     under any lighting still sits in the palette rather than on top of it. */
  filter: saturate(0.92) contrast(1.02);
}

@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .prose { max-width: none; }

  .portrait {
    position: static;
    order: -1;
    max-width: 320px;
  }
}

.prose p {
  font-size: 18px;
  line-height: 1.58;
  color: var(--ink-body);
}

.sectors {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  max-width: 720px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ------------------------------ Section 04: contact ------------------------------- */

.contact-form {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 720px;
}

@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field-full { grid-column: 1 / -1; }

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-nav);
}

.field input,
.field textarea {
  border: 1px solid var(--field-border);
  background: var(--paper);
  border-radius: 3px;
  padding: 13px 14px;
  font-size: 16px;
  color: var(--ink);
  min-height: 44px;
  transition: border-color var(--transition-fast);
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:hover,
.field textarea:hover { border-color: var(--ink-soft); }

.field input:focus,
.field textarea:focus { border-color: var(--accent); }

/* Honeypot: off-screen, not display:none, kept out of the tab order and
   hidden from assistive tech via the wrapper (same clip technique as
   .visually-hidden — collapsed to 1px so it can never introduce a
   scrollbar, unlike a large negative offset). */
.field-honeypot {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}

.btn-submit { min-width: 140px; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  font-size: 15px;
  color: var(--ink-muted);
}

.form-status.is-success { color: var(--accent); font-weight: 600; }
.form-status.is-error { color: #A6432E; font-weight: 600; }

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

.site-footer { }

.footer-inner {
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-muted);
}

.footer-inner a {
  color: var(--ink-nav);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inner a:hover { opacity: 0.72; }
