/* Hoffmann Underground, LLC — shared stylesheet
   Palette taken from the company logo: gold #F4D755 with a deeper
   #BC9734 gradient stop, on near-black. Gold is a display colour only —
   it never carries body text on white, where its contrast fails.

   Typeface note: the brand font is Gotham, which has no web licence in
   this project. Montserrat (SIL Open Font Licence) is the substitute —
   the same geometric-sans skeleton, self-hosted as a latin-subset
   variable file so the site makes no external font requests.
*/

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin-var.woff2") format("woff2");
}

:root {
  --gold: #f4d755;
  --gold-deep: #bc9734;
  --gold-dim: #8a6f22;
  --black: #0b0b0b;
  --ink: #16160f;
  --ink-soft: #23231a;
  --paper: #ffffff;
  --sand: #f7f5ef;
  --border: #e2ded1;
  --border-strong: #cfc9b6;
  --text: #2a2a24;
  --body: #4a4a42;
  --muted: #6f6f64;
  --shadow: 0 1px 2px rgba(11, 11, 11, .05), 0 8px 24px rgba(11, 11, 11, .06);
  --wrap: 1120px;
  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-dim); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--black); padding: 12px 20px;
  font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- eyebrow / section furniture ---------- */

.eyebrow {
  display: block;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 .85rem;
}
.band .eyebrow, .hero .eyebrow { color: var(--gold); }

.rule {
  width: 56px; height: 4px; border: 0; margin: 0 0 1.6rem;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
}

.lede { font-size: 1.12rem; color: var(--body); max-width: 62ch; }

section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 68ch; margin-bottom: clamp(32px, 4vw, 48px); }

.sand { background: var(--sand); border-block: 1px solid var(--border); }

/* ---------- header ---------- */

/* The header is light so the logo can be used exactly as drawn: its wordmark
   is black artwork, which would vanish on a dark bar. The black in the design
   is carried by the hero and the CTA bands instead. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--gold-deep);
}
.site-header .container {
  display: flex; align-items: center; gap: 20px;
  min-height: 96px;
}

/* The lockup is wide and short, so it needs real height to stay readable —
   hence the tall header above. */
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 72px; width: auto; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--radius);
  width: 46px; height: 40px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--text); content: "";
  position: relative; transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block;
  color: var(--text); text-decoration: none;
  font-size: .87rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 9px 13px; border-radius: var(--radius);
}
.main-nav a:hover { color: var(--gold-dim); background: var(--sand); }
.main-nav a[aria-current="page"] { color: var(--gold-dim); box-shadow: inset 0 -3px 0 var(--gold-deep); }

.nav-call {
  margin-left: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--black); color: var(--gold) !important;
  padding: 12px 20px !important; border-radius: var(--radius);
  font-weight: 800 !important; letter-spacing: .02em !important;
  white-space: nowrap;
}
.nav-call:hover { background: var(--ink-soft); color: var(--gold) !important; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-size: .95rem; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-primary:hover { background: #ffe87a; border-color: #ffe87a; color: var(--black); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold-deep); }
.btn-outline:hover { background: rgba(244, 215, 85, .1); color: var(--gold); border-color: var(--gold); }
.btn-dark { background: var(--black); color: var(--gold); border-color: var(--black); }
.btn-dark:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--black);
  color: #d9d6c8;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
/* Faint diagonal striping, echoing equipment hazard marking. Decorative. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(244, 215, 85, .05) 0 2px, transparent 2px 78px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: var(--paper); max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: #c7c4b6; font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 56ch; margin-top: 1.2rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 12px 40px;
  margin: clamp(36px, 5vw, 52px) 0 0;
  padding-top: 28px; border-top: 1px solid #2e2e22;
}
.hero-stats div { min-width: 130px; }
.hero-stats dt { font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: #8d8a7c; }
.hero-stats dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; color: var(--gold); }

.page-hero { padding-bottom: clamp(40px, 6vw, 64px); }
.page-hero h1 { max-width: 22ch; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 20px; }
/* Held to exactly two columns: auto-fit would fit a third at desktop width
   and leave the four service areas as a 3 + 1 orphan row. */
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-deep);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p { font-size: .96rem; }
.card ul { margin: .6rem 0 0; padding-left: 1.1rem; font-size: .95rem; }
.card li { margin-bottom: .35rem; }
.card li::marker { color: var(--gold-deep); }

.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px;
  background: var(--ink); color: var(--gold);
  font-size: .82rem; font-weight: 800; border-radius: 2px;
}

/* ---------- checklist ---------- */

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 13px; height: 7px;
  border-left: 3px solid var(--gold-deep); border-bottom: 3px solid var(--gold-deep);
  transform: rotate(-45deg);
}
.band .checks li::before { border-color: var(--gold); }

/* ---------- project list ---------- */

.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.projects li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--border);
}
.projects .p-name { font-weight: 700; color: var(--text); font-size: 1.05rem; }
.projects .p-where { color: var(--muted); font-size: .92rem; margin-left: auto; }

/* ---------- FAQ ----------
   Native <details>/<summary>, so it works with no JavaScript and screen
   readers announce the expanded state for free. */

.faq { max-width: 78ch; border-top: 1px solid var(--border); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  list-style: none;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 1.06rem; font-weight: 700; color: var(--text);
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-dim); }

/* Plus that becomes a minus. Drawn in CSS so it inherits the text colour. */
.faq-item summary::after {
  content: ""; flex: none; margin-left: auto; position: relative; top: 7px;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--gold-deep), var(--gold-deep)) center/14px 3px no-repeat,
    linear-gradient(var(--gold-deep), var(--gold-deep)) center/3px 14px no-repeat;
  transition: transform .18s ease;
}
.faq-item[open] summary::after {
  background: linear-gradient(var(--gold-deep), var(--gold-deep)) center/14px 3px no-repeat;
  transform: rotate(180deg);
}

.faq-body { padding: 0 40px 24px 4px; }
.faq-body p { font-size: 1rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------- long-form prose (policy pages) ---------- */

.prose { max-width: 74ch; }
.prose .updated {
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 20px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.prose h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-top: 2.1em; padding-top: .1em;
}
.prose h2:first-of-type { margin-top: 1.2em; }
.prose h3 { font-size: 1.03rem; margin-top: 1.7em; color: var(--text); }
.prose ul.checks { margin: 1.1em 0 1.4em; }
.prose ul.checks li { font-size: 1rem; }

/* ---------- bands ---------- */

.band { background: var(--ink); color: #cfccbe; }
.band h2, .band h3 { color: var(--paper); }
.band p { color: #bdbaad; }
.band a:not(.btn) { color: var(--gold); }

.cta-band { text-align: center; }
.cta-band .container { max-width: 720px; }
.cta-band .btn-row { justify-content: center; }

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

.split { display: grid; gap: clamp(32px, 5vw, 60px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr .85fr; } }

/* The aside box keeps its light panel colours even when it sits inside a
   dark band, which would otherwise hand it the band's light-on-dark text. */
.band .aside-box h3 { color: var(--text); }
.band .aside-box p, .band .aside-box dd { color: var(--body); }
.band .aside-box dd { color: var(--text); }
.band .aside-box a:not(.btn) { color: var(--gold-dim); }
.band .aside-box a:not(.btn):hover { color: var(--text); }

.aside-box {
  background: var(--sand); border: 1px solid var(--border);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius); padding: 26px 24px;
}
.aside-box h3 { margin-bottom: .6em; }
.aside-box dl { margin: 0; }
.aside-box dt { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.aside-box dt:first-of-type { margin-top: 0; }
.aside-box dd { margin: 2px 0 0; color: var(--text); font-weight: 600; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }

.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .78rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  margin-bottom: 7px;
}
.field .opt { color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper);
  padding: 12px 14px;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-deep); outline: 2px solid rgba(188, 151, 52, .35); outline-offset: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .87rem; color: var(--muted); margin-top: 1rem; }

.form-status { margin-top: 1.1rem; padding: 14px 16px; border-radius: var(--radius); font-size: .95rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { background: #f0f7ec; border: 1px solid #bcd9ab; color: #2f5c1d; }
.form-status.err { background: #fdf1ef; border: 1px solid #e6b8b0; color: #8c2f1f; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .c-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list .c-value { font-size: 1.08rem; font-weight: 700; color: var(--text); text-decoration: none; word-break: break-word; }
a.c-value:hover { color: var(--gold-dim); }

/* ---------- footer ---------- */

/* Light for the same reason as the header — it carries the real logo. */
.site-footer {
  background: var(--sand); color: var(--body);
  border-top: 3px solid var(--gold-deep);
  padding: clamp(48px, 6vw, 68px) 0 32px; font-size: .92rem;
}
.site-footer .f-logo { height: 72px; width: auto; margin: 0 0 20px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { color: var(--text); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--body); text-decoration: none; }
.site-footer a:hover { color: var(--gold-dim); text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .85rem; color: var(--muted);
}

/* ---------- mobile nav ---------- */

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 3px solid var(--gold-deep);
    box-shadow: 0 12px 24px rgba(11, 11, 11, .12);
    padding: 10px 24px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 6px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav a[aria-current="page"] { box-shadow: none; }
  .nav-call { margin: 14px 0 0; justify-content: center; padding: 15px 18px !important; }
  .site-header .container { position: relative; min-height: 80px; }
  .brand img { height: 56px; }
  .site-footer .f-logo { height: 62px; }
}

@media (max-width: 400px) {
  .brand img { height: 46px; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .cta-band, .btn { display: none !important; }
  body { font-size: 12pt; color: #000; }
  .hero { background: #fff; color: #000; padding: 0 0 24pt; }
  .hero::after { display: none; }
  .hero h1, .hero .lede { color: #000; }
  .hero-stats dd { color: #000; }
}
