/* ─────────────────────────────────────────────────────────────
   Harswell Corporate — Front Site
   Mid-tier B2B aesthetic. Boring is the brand.
   ───────────────────────────────────────────────────────────── */

:root {
  --hw-navy: #2A3A52;
  --hw-navy-dark: #1f2c3f;
  --hw-navy-darker: #182437;
  --hw-amber: #B07B3A;
  --hw-amber-hover: #9a6a30;
  --hw-cream: #F1EAD9;
  --hw-cream-2: #ebe3cf;
  --hw-ink: #1A1A1F;
  --hw-gray: #6A6A72;
  --hw-gray-2: #8c8c93;
  --hw-line: #d8d4ca;
  --hw-line-dark: #c9c3b3;
  --hw-bg: #ffffff;
  --hw-card: #fbf8f1;

  --hw-radius: 2px;
  --hw-shadow: 0 1px 2px rgba(26,26,31,0.06);
  --hw-shadow-card: 0 1px 3px rgba(26,26,31,0.08), 0 0 0 1px rgba(26,26,31,0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--hw-bg);
  color: var(--hw-ink);
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--hw-amber); text-decoration: none; }
a:hover { color: var(--hw-amber-hover); text-decoration: underline; }

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

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; color: var(--hw-ink); margin: 0; }
h1 { font-size: 56px; line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 16px; line-height: 1.3; }
p  { margin: 0 0 1em; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hw-amber);
}

.muted { color: var(--hw-gray); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--hw-radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--hw-amber);
  color: #fff;
}
.btn-primary:hover { background: var(--hw-amber-hover); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--hw-navy);
  border-color: var(--hw-navy);
}
.btn-secondary:hover { background: var(--hw-navy); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--hw-amber);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--hw-amber-hover); text-decoration: underline; }

/* ── Header / Nav ──────────────────────────────────────────── */
.site-header {
  background: var(--hw-bg);
  border-bottom: 1px solid var(--hw-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--hw-ink);
}
.brand:hover { text-decoration: none; color: var(--hw-ink); }
.brand-mark {
  width: 28px; height: 28px;
  background: var(--hw-navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.brand-name {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hw-ink);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--hw-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--hw-amber); }
.nav-links a.active { color: var(--hw-amber); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-portal {
  font-size: 13px;
  color: var(--hw-gray);
  text-decoration: none;
}
.nav-portal:hover { color: var(--hw-navy); text-decoration: none; }

/* ── Sections ──────────────────────────────────────────────── */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--hw-cream); }
section.dark { background: var(--hw-navy); color: #fff; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark .eyebrow { color: #d6a572; }
section.dark .muted { color: #b9bdc7; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 110px 0 100px;
  border-bottom: 1px solid var(--hw-line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero p.lede {
  font-size: 19px;
  color: var(--hw-gray);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Stock photo placeholder ───────────────────────────────── */
.stock {
  position: relative;
  background: linear-gradient(135deg, #cdd5e0 0%, #b6c0cf 50%, #a3aebd 100%);
  overflow: hidden;
  border-radius: var(--hw-radius);
  display: grid;
  place-items: center;
  color: rgba(26,26,31,0.45);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stock::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 8px, rgba(0,0,0,0.04) 8px 16px);
  pointer-events: none;
}
.stock-tall { aspect-ratio: 4/5; }
.stock-wide { aspect-ratio: 16/9; }
.stock-square { aspect-ratio: 1/1; }
.stock-warm { background: linear-gradient(135deg, #d8c8a8 0%, #c4b08a 100%); }
.stock-cool { background: linear-gradient(135deg, #b8c5d8 0%, #95a5bd 100%); }
.stock-deep { background: linear-gradient(135deg, #4a5a72 0%, #2A3A52 100%); color: rgba(255,255,255,0.55); }
.stock-label {
  position: relative;
  background: rgba(255,255,255,0.85);
  color: var(--hw-ink);
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* ── Solutions grid ────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card {
  background: var(--hw-bg);
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  padding: 28px 26px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.card:hover { border-color: var(--hw-navy); box-shadow: var(--hw-shadow-card); }
.card .icon-box {
  width: 44px; height: 44px;
  background: var(--hw-cream);
  display: grid; place-items: center;
  margin-bottom: 18px;
  border-radius: var(--hw-radius);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--hw-gray); font-size: 15px; margin-bottom: 18px; }
.card .learn {
  font-size: 13px;
  font-weight: 600;
  color: var(--hw-amber);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.card .learn:hover { text-decoration: underline; }

/* ── Logo wall ─────────────────────────────────────────────── */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--hw-line);
  border-radius: var(--hw-radius);
  background: var(--hw-bg);
}
.logo-cell {
  padding: 38px 22px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--hw-line);
  border-bottom: 1px solid var(--hw-line);
  min-height: 110px;
}
.logo-cell:nth-child(4n) { border-right: 0; }
.logo-cell:nth-child(n+5) { border-bottom: 0; }
.logo-cell svg { opacity: 0.55; max-width: 140px; height: auto; }

/* ── Stats strip ───────────────────────────────────────────── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 56px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.stat {
  text-align: center;
  padding: 0 18px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.stat .label {
  margin-top: 10px;
  font-size: 13px;
  color: #b9bdc7;
  letter-spacing: 0.04em;
}

/* ── Testimonial ───────────────────────────────────────────── */
.testimonial {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.testimonial blockquote {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 26px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  color: var(--hw-ink);
}
.testimonial blockquote::before { content: "\201C"; }
.testimonial blockquote::after { content: "\201D"; }
.testimonial .attrib {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--hw-gray);
}
.testimonial .initials {
  width: 40px; height: 40px;
  background: var(--hw-navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.testimonial .who { font-weight: 600; color: var(--hw-ink); }

/* ── CTA strip ─────────────────────────────────────────────── */
.cta-strip {
  background: var(--hw-cream);
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--hw-line);
}
.cta-strip h2 { margin-bottom: 16px; }
.cta-strip p { color: var(--hw-gray); max-width: 600px; margin: 0 auto 28px; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--hw-navy-darker);
  color: #b9bdc7;
  padding: 64px 0 28px;
  font-size: 14px;
}
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #b9bdc7; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-grid .brand-name { color: #fff; }
.footer-grid .brand-mark { background: #fff; color: var(--hw-navy); }
.footer-grid p { color: #8d92a0; line-height: 1.6; max-width: 280px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: #8d92a0;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #8d92a0; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-internal {
  font-size: 12px;
  color: #5b6175;
}
.footer-internal:hover { color: #b9bdc7; }

/* ── Page hero (interior) ──────────────────────────────────── */
.page-hero {
  background: var(--hw-cream);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--hw-line);
}
.page-hero h1 { font-size: 48px; margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--hw-gray); max-width: 640px; }
.crumbs {
  font-size: 13px;
  color: var(--hw-gray);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.crumbs a { color: var(--hw-gray); text-decoration: none; }
.crumbs a:hover { color: var(--hw-amber); }
.crumbs .sep { margin: 0 8px; color: var(--hw-line-dark); }

/* ── About: leadership ─────────────────────────────────────── */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.leader {
  background: var(--hw-bg);
  border: 1px solid var(--hw-line);
  padding: 24px;
}
.leader .avatar {
  width: 56px; height: 56px;
  background: var(--hw-cream);
  color: var(--hw-navy);
  border-radius: 999px;
  display: grid; place-items: center;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 18px;
}
.leader h4 { margin-bottom: 4px; font-size: 17px; }
.leader .title { color: var(--hw-gray); font-size: 13px; }

/* ── Values ────────────────────────────────────────────────── */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value h3 {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--hw-navy);
}
.value p { color: var(--hw-gray); font-size: 15px; }

/* ── Solutions detail blocks ───────────────────────────────── */
.solution-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--hw-line);
}
.solution-block:last-child { border-bottom: 0; }
.solution-block.flip > :first-child { order: 2; }
.solution-block .eyebrow { margin-bottom: 14px; display: inline-block; }
.solution-block h2 { margin-bottom: 18px; }
.solution-block p { color: var(--hw-gray); font-size: 16px; }
.solution-block .stock { aspect-ratio: 4/3; }

/* ── Careers ───────────────────────────────────────────────── */
.job-list { border-top: 1px solid var(--hw-line); }
.job-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 100px;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--hw-line);
  align-items: center;
  text-decoration: none;
  color: var(--hw-ink);
  transition: background 120ms ease;
}
.job-row:hover { background: var(--hw-cream); text-decoration: none; color: var(--hw-ink); }
.job-row .job-title { font-weight: 600; font-size: 17px; }
.job-row .job-meta { color: var(--hw-gray); font-size: 14px; }
.job-row .job-go { text-align: right; color: var(--hw-amber); font-size: 13px; font-weight: 600; }

/* ── Job detail ────────────────────────────────────────────── */
.job-detail h2 { margin: 32px 0 14px; font-size: 24px; }
.job-detail ul { padding-left: 20px; color: var(--hw-gray); }
.job-detail ul li { margin-bottom: 8px; }
.job-detail .job-tags {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
}
.job-tag {
  font-size: 12px;
  background: var(--hw-cream);
  border: 1px solid var(--hw-line-dark);
  padding: 6px 10px;
  color: var(--hw-ink);
  border-radius: var(--hw-radius);
}

/* ── Forms ─────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--hw-ink);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--hw-line-dark);
  background: var(--hw-bg);
  border-radius: var(--hw-radius);
  font-family: inherit;
  font-size: 14px;
  color: var(--hw-ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--hw-navy);
  box-shadow: 0 0 0 3px rgba(42,58,82,0.10);
}
textarea { min-height: 140px; resize: vertical; }

/* ── Portal ────────────────────────────────────────────────── */
.portal-bg {
  min-height: calc(100vh - 1px);
  background: #f4f5f7;
  display: grid;
  place-items: center;
  padding: 60px 24px;
}
.portal-card {
  width: 100%;
  max-width: 420px;
  background: var(--hw-bg);
  border: 1px solid var(--hw-line);
  padding: 40px 36px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);
  border-radius: var(--hw-radius);
}
.portal-card .brand-mark { width: 40px; height: 40px; font-size: 30px; }
.portal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.portal-head h2 { font-size: 18px; font-weight: 600; }
.portal-card label { font-size: 12px; }
.portal-card .field-row { margin-bottom: 14px; }
.portal-card button { width: 100%; margin-top: 8px; }
.portal-error {
  background: #fbeaea;
  color: #8a2424;
  border: 1px solid #f0caca;
  padding: 10px 12px;
  font-size: 13px;
  border-radius: var(--hw-radius);
  margin-bottom: 16px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.01em;
}
.portal-foot {
  text-align: center;
  font-size: 12px;
  color: var(--hw-gray);
  margin-top: 22px;
  border-top: 1px solid var(--hw-line);
  padding-top: 18px;
}
.portal-foot a { color: var(--hw-gray); }
.portal-attempts {
  margin-top: 10px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--hw-gray);
  letter-spacing: 0.05em;
}

/* ── Thank-you / 404 ───────────────────────────────────────── */
.simple-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
}
.simple-page h1 { font-size: 40px; margin-bottom: 16px; }
.simple-page p { color: var(--hw-gray); font-size: 17px; max-width: 520px; margin: 0 auto 24px; }
.code-404 {
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 80px;
  color: var(--hw-navy);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .hero { padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4, .grid-2, .leader-grid, .values { grid-template-columns: 1fr; gap: 18px; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { border-right: 1px solid var(--hw-line) !important; border-bottom: 1px solid var(--hw-line) !important; }
  .logo-cell:nth-child(2n) { border-right: 0 !important; }
  .logo-cell:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 24px 0; padding: 36px 0; }
  .stat { border-right: 0; padding: 8px; }
  .stat .num { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .solution-block { grid-template-columns: 1fr; gap: 32px; }
  .solution-block.flip > :first-child { order: 0; }
  .job-row { grid-template-columns: 1fr; gap: 6px; }
  .job-row .job-go { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .testimonial blockquote { font-size: 22px; }
  section { padding: 56px 0; }
}
