/* =========================================================
   Arts District HVAC: Design System
   Industrial-modern: raw concrete, oxidized steel, crisp type.
   Signature element: the "spec plate," a nameplate motif
   borrowed from equipment rating plates, used for trust
   badges and stat readouts throughout the site.
   ========================================================= */

/* Font loaded via <link rel="preconnect"> + <link rel="stylesheet"> in each
   page's <head> (not @import, which blocks parallel discovery and delays
   first paint). Single family, four weights, to keep requests minimal. */

:root {
  /* Color tokens */
  --ink: #14130f;
  --ink-soft: #232019;
  --concrete: #edeae2;
  --paper: #f7f5f0;
  --rust: #c1502e;
  --rust-light: #d56f4d;
  --rust-dark: #9c3d21;
  --rust-darker: #7c351d;
  --amber: #f2a93b;
  --steel: #53565a;
  --steel-dim: #8a8d91;
  --line-on-dark: rgba(247, 245, 240, 0.14);
  --line-on-light: rgba(20, 19, 15, 0.12);

  /* Type */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  /* Scale (1.25 ratio). step-4/step-5 (hero headlines) use a lower floor
     and steeper vw growth than a straight ratio would give, so a narrow
     phone doesn't render the headline as a barely-shrunk copy
     of the desktop size (which reads as "squeezed" and eats the viewport
     in 5 wrapped lines); it still reaches the same desktop max. */
  --step--1: clamp(0.8rem, 0.77rem + 0.15vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.13rem);
  --step-1: clamp(1.25rem, 1.18rem + 0.35vw, 1.42rem);
  --step-2: clamp(1.56rem, 1.44rem + 0.6vw, 1.9rem);
  --step-3: clamp(1.95rem, 1.75rem + 1vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.7rem + 2.2vw, 3.5rem);
  --step-5: clamp(2.25rem, 1.7rem + 4vw, 4.75rem);

  --radius: 3px;
  --container: 1200px;

  color-scheme: dark;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; line-height: 1.1; }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* =========================================================
   Motion: one signature entrance (hero) + one signature
   scroll reveal (section headlines), reused everywhere so it
   reads as a system rather than scattered effects.
   ========================================================= */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow { animation: rise-in 600ms ease both; animation-delay: 60ms; }
.hero h1 { animation: rise-in 700ms ease both; animation-delay: 140ms; }
.hero .hero__lede { animation: rise-in 700ms ease both; animation-delay: 220ms; }
.hero .hero__actions { animation: rise-in 700ms ease both; animation-delay: 300ms; }
.hero .spec-plate { animation: rise-in 800ms ease both; animation-delay: 380ms; }

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) {
  .container { padding-inline: 2.5rem; }
}

.section {
  padding-block: clamp(3rem, 6vw, 6rem);
}
.section--light { background: var(--concrete); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-light);
}
.section--light .eyebrow,
.section--paper .eyebrow,
.quote-panel .eyebrow {
  color: var(--rust-dark);
}
.eyebrow::before {
  content: "";
  width: 1.5em;
  height: 2px;
  background: currentColor;
}

/* =========================================================
   Header: phone number takes the top-left "logo" slot,
   always visible, never wraps to a second line.
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line-on-dark);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.85rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 0.76rem + 1.2vw, 1.15rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--paper);
  flex-shrink: 0;
}
.header-phone svg { width: 1.1em; height: 1.1em; color: var(--rust-light); flex-shrink: 0; }
.header-phone__number { font-weight: 700; }
.header-phone:hover .header-phone__number { color: var(--rust-light); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--paper); }

.site-nav {
  display: none;
}
.site-nav[data-open="true"] {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--ink);
  border-bottom: 1px solid var(--line-on-dark);
  padding: 1rem 1.25rem 1.5rem;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.75rem 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--steel-dim);
  transition: color 150ms ease;
}
.site-nav a:hover { color: var(--paper); }
.site-nav a[aria-current="page"] { color: var(--amber); }

/* Quote CTA reads as a solid, unmissable button everywhere it appears,
   inside the mobile dropdown just as much as the desktop nav bar. */
.header-quote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85em 1.1rem;
  background: var(--rust-dark);
  color: var(--paper);
  border-radius: var(--radius);
  border-bottom: none;
  margin-top: 0.75rem;
}
.header-quote-btn:hover { background: var(--rust-darker); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background: none;
    border: 0;
    padding: 0;
  }
  .site-nav a { border: 0; padding: 0; }
  .header-quote-btn {
    display: inline-flex;
    padding: 0.6rem 1.1rem;
    margin-top: 0;
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95em 1.5em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn--primary { background: var(--rust-dark); color: var(--paper); }
.btn--primary:hover { background: var(--rust-darker); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #e0972b; }
.btn--outline { border-color: var(--line-on-dark); color: var(--paper); }
.btn--outline:hover { border-color: var(--paper); }
.btn--outline-dark { border-color: var(--line-on-light); color: var(--ink); }
.btn--outline-dark:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

/* =========================================================
   Hero (dvh-safe full screen)
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  /* --hero-img is set per-page via inline style; falls back to "none" so
     pages that don't set one just get the plain gradient. */
  background:
    radial-gradient(ellipse at 80% 20%, rgba(193, 80, 46, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(20, 19, 15, 0.86) 0%, rgba(35, 32, 25, 0.82) 100%),
    var(--hero-img, none) center / cover no-repeat var(--ink);
  border-bottom: 1px solid var(--line-on-dark);
  padding-block: clamp(2rem, 6vw, 4rem);
}
.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}
.hero h1 {
  font-size: var(--step-5);
  text-transform: uppercase;
}
.hero h1 span { color: var(--rust-light); }
.hero__lede {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: var(--steel-dim);
  font-size: var(--step-1);
}
.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
/* Below ~600px two pill buttons never sit comfortably side by side, so stack
   them full-width instead of letting them wrap at their own content width. */
@media (max-width: 599px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
.hero__phone {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.hero__phone-number {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 600;
}

/* Spec plate: signature element, reused for stat readouts and spec sheets */
.spec-plate {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
/* On mobile, bleed the plate out to the viewport edge instead of sitting
   doubly-inset (container padding + the plate's own padding). That extra
   inset was what made the standards grid inside feel cramped and forced
   labels like "NOT A NATIONAL CALL CENTER" to wrap awkwardly. Internal
   padding-inline is kept equal to the container's own padding so the text
   still lines up with everything above and below it. */
@media (max-width: 767px) {
  .spec-plate {
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
}

.spec-plate__label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  display: block;
  margin-bottom: 1rem;
}
.spec-plate__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.spec-plate__stat-value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--paper);
  display: block;
}
.spec-plate__stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--steel-dim);
  text-transform: uppercase;
}

/* =========================================================
   Sticky mobile CTA bar
   ========================================================= */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  border-top: 1px solid var(--line-on-dark);
  transform: translateY(100%);
  transition: transform 200ms ease;
  padding: 0.6rem;
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
  gap: 0.6rem;
}
.sticky-cta[data-visible="true"] { transform: translateY(0); }
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* =========================================================
   Quote form overlay
   ========================================================= */
.quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(20, 19, 15, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.quote-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }
.quote-panel {
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 1.75rem 1.5rem 2rem;
  transform: translateY(16px);
  transition: transform 180ms ease;
}
.quote-overlay[data-open="true"] .quote-panel { transform: translateY(0); }
@media (min-width: 640px) {
  .quote-overlay { align-items: center; }
  .quote-panel { border-radius: var(--radius); }
}
.quote-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.quote-panel__close {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--steel);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  padding: 0.35rem 0.6rem;
}

/* =========================================================
   Forms
   ========================================================= */
/* Netlify Forms honeypot: off-screen for sighted/AT users, still present
   in the DOM so indiscriminate bots that fill every field trip it. */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-required-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  margin-bottom: 1.25rem;
}
.required-mark { color: var(--rust); margin-left: 0.15em; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.4rem;
}
.field label .required-mark { color: var(--rust); }
.field label .optional-mark {
  text-transform: none;
  letter-spacing: 0;
  color: var(--steel-dim);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--step--1);
  padding: 0.75em 0.85em;
  background: var(--paper);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--rust); }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 480px) {
  .field-row--2 { grid-template-columns: 1fr 1fr; }
}
.field__error {
  display: block;
  min-height: 1.2em;
  font-size: 0.78rem;
  color: var(--rust-dark);
  margin-top: 0.3rem;
}
.form-status {
  font-size: var(--step--1);
  color: var(--rust-dark);
  margin-top: 1rem;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel-dim);
  margin-top: 0.75rem;
}

/* Page (non-modal) contact form uses the same field styles on light bg */
.page-form {
  background: var(--ink-soft);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 2rem;
}
.page-form .field label { color: var(--steel-dim); }
.page-form .form-required-note { color: var(--steel-dim); }
.page-form .field input,
.page-form .field select,
.page-form .field textarea { background: var(--paper); }

/* =========================================================
   Service cards
   ========================================================= */
.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--ink-soft);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 150ms ease, transform 150ms ease;
}
.service-card:hover { border-color: var(--rust); transform: translateY(-2px); }
.service-card h3 { font-size: var(--step-1); text-transform: uppercase; }
.service-card p { color: var(--steel-dim); font-size: var(--step--1); }
.service-card a { margin-top: auto; font-family: var(--font-mono); font-size: 0.78rem; color: var(--amber); text-transform: uppercase; letter-spacing: 0.05em; }

/* =========================================================
   Process steps
   ========================================================= */
.process {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  counter-reset: step;
}
@media (min-width: 800px) {
  .process { grid-template-columns: repeat(4, 1fr); }
}
.process__step {
  counter-increment: step;
  border-top: 2px solid var(--rust);
  padding-top: 1rem;
}
.process__step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--rust-dark);
  margin-bottom: 0.5rem;
}

/* =========================================================
   FAQ (native <details>, no JS needed, fully accessible)
   ========================================================= */
.faq-list { margin-top: 2rem; border-top: 1px solid var(--line-on-dark); }
.faq-item { border-bottom: 1px solid var(--line-on-dark); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--rust-light);
  font-size: 1.4rem;
  flex-shrink: 0;
  transition: transform 150ms ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.25rem; color: var(--steel-dim); max-width: 65ch; }

/* =========================================================
   Page hero (interior pages, shorter than home)
   ========================================================= */
.page-hero {
  min-height: 56vh;
  min-height: 56dvh;
  display: flex;
  align-items: flex-end;
  /* --hero-img is set per-page via inline style; falls back to "none".
     Overlay is dark enough that the photo reads as texture, not a
     competing layer under the breadcrumb/eyebrow/lede text. */
  background:
    linear-gradient(180deg, rgba(35, 32, 25, 0.88) 0%, rgba(20, 19, 15, 0.94) 100%),
    var(--hero-img, none) center / cover no-repeat var(--ink-soft);
  border-bottom: 1px solid var(--line-on-dark);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { font-size: var(--step-4); text-transform: uppercase; max-width: 20ch; }
.page-hero__lede { margin-top: 1rem; max-width: 60ch; color: var(--steel-dim); font-size: var(--step-1); }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--steel-dim); }
.breadcrumb a:hover { color: var(--amber); }

/* Two-column content section */
.split {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.spec-list {
  border-top: 1px solid var(--line-on-light);
}
.spec-list__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-on-light);
  font-size: var(--step--1);
}
.spec-list__row dt { font-family: var(--font-mono); color: var(--steel); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.spec-list__row dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line-on-dark);
  padding-block: 3rem;
  padding-bottom: calc(3rem + 64px); /* clear sticky mobile CTA */
}
@media (min-width: 900px) {
  .site-footer { padding-bottom: 3rem; }
}
.footer-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-bottom: 0.9rem;
}
.footer-grid ul li { margin-bottom: 0.55rem; color: var(--steel-dim); font-size: var(--step--1); }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-bottom a:hover { color: var(--paper); }

.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;
}
