/* ============================================================
   Nova Construction Solutions — core stylesheet
   Palette sampled directly from the logo artwork.
   ============================================================ */

:root {
  /* Brand — sampled from logo */
  --crimson:        #EF0140;
  --crimson-deep:   #C2012F;
  --crimson-tint:   #FDE6EC;
  --ink:            #402D2C;
  --ink-deep:       #2A1D1C;
  --ink-soft:       #5C4644;
  --paper:          #FFFDFA;

  /* Derived neutrals (warm, pulled from the ink hue) */
  --concrete:       #F2EDEB;
  --concrete-deep:  #E5DCD9;
  --line:           #E2D9D6;
  --muted:          #8A7674;

  /* Type */
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body:    "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Roboto Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1240px;
  --chamfer: 14px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* ---------- Reset ---------- */
*, *::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: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.6vw, 4.6rem); font-stretch: 105%; }
h2 { font-size: clamp(1.9rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.01em; }
p  { margin: 0 0 1.1rem; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink-soft); max-width: 62ch; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--crimson);
  font-weight: 500;
  margin: 0 0 1rem;
  display: block;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--concrete { background: var(--concrete); }
.section--ink { background: var(--ink-deep); color: var(--paper); }
.section--ink .lead,
.section--ink p { color: rgba(255, 253, 250, .78); }
.section--ink h2, .section--ink h3 { color: var(--paper); }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

/* ---------- Signature: dimension-line divider ----------
   Borrowed from shop drawings: a hairline with end ticks
   and a centred annotation. Used to open every section.    */
.dimline {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 2.25rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.dimline::before,
.dimline::after {
  content: "";
  height: 9px;
  border-inline: 1px solid var(--line);
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
  width: 9px;
  align-self: center;
}
.dimline span { white-space: nowrap; }
.dimline i {
  display: block;
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.section--ink .dimline { color: rgba(255, 253, 250, .55); }
.section--ink .dimline i,
.section--ink .dimline::before,
.section--ink .dimline::after { background: rgba(255, 253, 250, .22); border-color: rgba(255, 253, 250, .22); }
.section--ink .dimline i { background: rgba(255, 253, 250, .22); }

/* ---------- Signature: chamfer ----------
   45° cut corners, echoing the bevels in the logo mark.    */
.chamfer {
  clip-path: polygon(
    var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer)
  );
}

/* ---------- Buttons ---------- */
.btn {
  --chamfer: 10px;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
  clip-path: polygon(
    var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer)
  );
}
.btn--primary { background: var(--crimson); color: #fff; }
.btn--primary:hover { background: var(--crimson-deep); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--ink .btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(255, 253, 250, .5); }
.section--ink .btn--ghost:hover { background: var(--paper); color: var(--ink-deep); }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--crimson); color: #fff; padding: .8rem 1.2rem; font-weight: 600;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 250, .93);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 78px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 42px; width: auto; }
@media (max-width: 480px) { .brand img { height: 34px; } }

.nav { display: flex; align-items: center; gap: clamp(.75rem, 1.7vw, 1.6rem); }
.nav a {
  text-decoration: none; font-weight: 500; font-size: .97rem;
  color: var(--ink-soft); padding: .3rem 0; position: relative;
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--crimson);
}
.nav .btn { padding: .65rem 1.15rem; font-size: .93rem; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    max-height: calc(100dvh - 78px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-in { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 6rem); position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; margin-bottom: 1.4rem; }
.hero .lead { max-width: 54ch; }
.hero-lattice {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(115deg, transparent 38%, #000 78%);
          mask-image: linear-gradient(115deg, transparent 38%, #000 78%);
}
@media (max-width: 800px) { .hero-lattice { opacity: .22; } }

/* Hero stat strip */
.hero-facts {
  display: grid; gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--line);
  position: relative; z-index: 2;
}
.hero-facts div { padding: 1.4rem 1.5rem 1.4rem 0; border-right: 1px solid var(--line); }
.hero-facts div:last-child { border-right: 0; }
.hero-facts dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .45rem;
}
.hero-facts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
@media (max-width: 620px) { .hero-facts div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; } }

/* ---------- Cards ---------- */
.card {
  --chamfer: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.section--concrete .card { background: var(--paper); }
.card:hover { border-color: var(--ink); }
a.card { text-decoration: none; }
a.card:hover { transform: translateY(-3px); }
.card h3 { margin-bottom: .55rem; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 0; }
.card .more {
  margin-top: 1.35rem; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); font-weight: 500;
}
.card-tag {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .9rem;
}

/* ---------- Step sequence (order carries meaning) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid; gap: clamp(1rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 1fr);
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .step { grid-template-columns: 5.5rem 15rem minmax(0, 1fr); align-items: baseline; } }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  color: var(--crimson);
}
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--ink-soft); }
.section--ink .step { border-color: rgba(255, 253, 250, .18); }

/* ---------- Trade chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.chips li {
  --chamfer: 8px;
  background: var(--paper); border: 1px solid var(--line);
  padding: .55rem 1rem; font-size: .95rem; font-weight: 500;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.section--ink .chips li { background: rgba(255, 253, 250, .07); border-color: rgba(255, 253, 250, .2); color: var(--paper); }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: .95rem 1rem .95rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; }
.spec th {
  width: 42%; font-weight: 500; color: var(--muted);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  padding-top: 1.15rem;
}
.section--ink .spec th, .section--ink .spec td { border-color: rgba(255, 253, 250, .18); }
.section--ink .spec th { color: rgba(255, 253, 250, .6); }

/* ---------- Callout band ---------- */
.band {
  --chamfer: 22px;
  background: var(--ink-deep); color: var(--paper);
  padding: clamp(2.5rem, 5vw, 4rem);
}
.band h2 { color: var(--paper); max-width: 20ch; }
.band p { color: rgba(255, 253, 250, .78); max-width: 58ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .93rem; }
.field .hint { font-size: .84rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line);
  padding: .8rem .9rem; width: 100%;
  transition: border-color .15s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--concrete-deep); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--crimson); }
.field textarea { min-height: 150px; resize: vertical; }
.field--row { display: grid; gap: 1.15rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.req { color: var(--crimson); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  --chamfer: 10px;
  display: none; padding: 1rem 1.2rem; font-weight: 500; font-size: .96rem;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.form-status[data-state="ok"] { display: block; background: #E8F4EC; color: #1C6B3C; }
.form-status[data-state="error"] { display: block; background: var(--crimson-tint); color: var(--crimson-deep); }
.form-status[data-state="sending"] { display: block; background: var(--concrete); color: var(--ink-soft); }

/* ---------- Contact aside ---------- */
.contact-card {
  --chamfer: 18px;
  background: var(--concrete); padding: clamp(1.75rem, 3vw, 2.4rem);
}
.contact-card a { color: var(--ink); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.contact-list dt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem;
}
.contact-list dd { margin: 0; font-weight: 500; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  padding-block: 1.5rem 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--crimson); }

/* ---------- Page header ---------- */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); max-width: 18ch; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 2.6rem; }
.prose h3 { margin-top: 1.9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink-deep); color: rgba(255, 253, 250, .72); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .95rem; }
.foot-top { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-brand img { height: 46px; width: auto; margin-bottom: 1.25rem; }
.foot-brand address { font-style: normal; line-height: 1.75; }
.foot-brand a { color: rgba(255, 253, 250, .72); }
.site-foot h4 {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--paper); margin: 0 0 1rem; font-weight: 500;
}
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot-links a { color: rgba(255, 253, 250, .72); text-decoration: none; }
.foot-links a:hover { color: var(--crimson); }

.foot-disclaimer {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 253, 250, .16);
  font-size: .8rem; line-height: 1.7; color: rgba(255, 253, 250, .55);
  max-width: 100ch;
}
.foot-disclaimer strong { color: rgba(255, 253, 250, .8); font-weight: 600; }
.foot-base {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 253, 250, .16);
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255, 253, 250, .55);
}
.foot-base a { color: rgba(255, 253, 250, .55); text-decoration: none; }
.foot-base a:hover { color: var(--crimson); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.notfound .code { font-family: var(--display); font-size: clamp(5rem, 18vw, 11rem); font-weight: 700; color: var(--crimson); line-height: .9; margin-bottom: 1rem; }
.notfound .btn-row { justify-content: center; }
