/* ============================================================
   REVIT GROUP LLC — Drawing Set Design System
   Palette: blueprint navy / drafting white / safety orange
   Type: Barlow Condensed (display) / Libre Franklin (body)
         IBM Plex Mono (annotations)
   ============================================================ */

:root {
  --ink: #0d1f33;          /* blueprint navy */
  --ink-deep: #081424;     /* darker navy */
  --line: #2a4a6e;         /* drafting line blue */
  --line-soft: #d8e2ec;    /* light grid line */
  --paper: #f7f9fb;        /* drafting paper */
  --white: #ffffff;
  --accent: #ff6a13;       /* safety orange */
  --accent-dark: #e05500;
  --muted: #5a6b7e;
  --max: 1180px;
  --radius: 2px;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Libre Franklin", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- annotations (mono labels) ---------- */
.anno {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.anno::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.anno.on-dark { color: var(--accent); }

/* ---------- top bar ---------- */
.topbar {
  background: var(--ink-deep);
  color: #b9c8d8;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
  gap: 16px;
}
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-right { display: flex; gap: 22px; white-space: nowrap; }
.topbar .tb-left { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- header / nav ---------- */
header.site {
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-mark {
  width: 42px; height: 42px;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: -4px auto auto -4px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.logo-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 3px;
}

nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 13px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--accent); }
nav.main a.active { border-bottom-color: var(--accent); color: var(--accent); }
nav.main a.cta {
  background: var(--accent);
  color: var(--white);
  margin-left: 10px;
  padding: 10px 20px;
  border-bottom: none;
}
nav.main a.cta:hover { background: var(--accent-dark); color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-soft);
  width: 44px; height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Full-screen photo hero (homepage). Layer order: navy overlay on top,
   then your own photo (img/hero.jpg) if present, then a free-license
   stock fallback so it works out of the box. */
.hero.full {
  min-height: calc(100vh - 116px); /* viewport minus topbar+header */
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(180deg, rgba(8,20,36,0.82) 0%, rgba(13,31,51,0.66) 45%, rgba(8,20,36,0.88) 100%),
    url('../img/hero.jpg'),
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2000&q=70');
  background-size: cover, cover, cover;
  background-position: center, center, center;
}
.hero.full .wrap {
  padding-top: 120px;
  padding-bottom: 120px;
  width: 100%;
}
.hero.full h1 {
  font-size: clamp(54px, 9vw, 116px);
  max-width: 12ch;
}
.hero.full p.lede { font-size: 19.5px; max-width: 52ch; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero.full::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9fb2c6;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue::after { animation: none; }
}
.scroll-cue:hover { color: var(--white); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 500px at 78% 20%, rgba(255,106,19,0.12), transparent 60%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 110px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  max-width: 13ch;
  margin: 22px 0 26px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lede {
  max-width: 56ch;
  color: #c4d2e0;
  font-size: 18px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-meta {
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.hero-meta .hm {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #8fa3b8;
  text-transform: uppercase;
}
.hero-meta .hm strong {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

/* page hero (interior pages) */
.hero.page .wrap { padding-top: 72px; padding-bottom: 72px; }
.hero.page h1 { font-size: clamp(38px, 5.5vw, 64px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 14px 30px;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-solid { background: var(--accent); color: var(--white); }
.btn-solid:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.45);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-deep); }

/* ---------- sections ---------- */
section.block { padding: 84px 0; }
section.block.tight { padding: 64px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
section.dark { background: var(--ink); color: var(--white); }

.sec-head { margin-bottom: 48px; max-width: 720px; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.02;
  margin-top: 16px;
}
.sec-head p { margin-top: 14px; color: var(--muted); }
.dark .sec-head p { color: #b9c8d8; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  padding: 30px 26px;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 14px 0 10px;
}
.card p { color: var(--muted); font-size: 15.5px; }
.card .card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
}
.card a.more {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.card a.more:hover { color: var(--accent); }

.dark .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }
.dark .card p { color: #b9c8d8; }
.dark .card h3 { color: var(--white); }

/* ---------- trade list (spec sheet) ---------- */
.spec-list {
  list-style: none;
  columns: 2;
  column-gap: 48px;
}
.spec-list li {
  break-inside: avoid;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  font-size: 15.5px;
}
.spec-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 21px;
  width: 14px; height: 1.5px;
  background: var(--accent);
}
.dark .spec-list li { border-color: rgba(255,255,255,0.12); }

/* numbered spec list (single column variant) */
.spec-list.one { columns: 1; }

/* ---------- split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.split h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.04;
  margin: 14px 0 18px;
}
.split p + p { margin-top: 14px; }
.split .body-col p { color: var(--muted); }
.dark .split .body-col p { color: #b9c8d8; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: var(--white);
}
.cta-band .wrap {
  padding: 56px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.02;
}
.cta-band p { opacity: 0.92; margin-top: 6px; max-width: 52ch; }
.cta-band .btn { background: var(--ink); color: var(--white); white-space: nowrap; }
.cta-band .btn:hover { background: var(--ink-deep); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.info-block { margin-bottom: 28px; }
.info-block h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.info-block p, .info-block a { font-size: 17px; color: var(--ink); text-decoration: none; }
.info-block a:hover { color: var(--accent); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.hours-table td:last-child { text-align: right; font-family: var(--font-mono); font-size: 13.5px; }

form.contact { background: var(--white); border: 1px solid var(--line-soft); padding: 36px; position: relative; }
form.contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid #c3cfdb;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-status {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 14.5px;
  border-left: 3px solid var(--accent);
  background: var(--paper);
}
.form-status.show { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
footer.site {
  background: var(--ink-deep);
  color: #93a7bb;
  font-size: 14.5px;
}
footer.site .wrap { padding: 64px 24px 0; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 10px; }
.foot-grid a { color: #c4d2e0; text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-brand .logo-text { color: var(--white); }
.foot-brand p { margin-top: 14px; max-width: 34ch; }

/* title block strip — drawing set signature */
.title-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f8499;
  border-left: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.title-block > div {
  padding: 14px 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.title-block > div:last-child { border-right: none; }
.title-block strong { display: block; color: #c4d2e0; font-weight: 400; margin-top: 3px; font-size: 11.5px; }

.foot-legal {
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

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

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block > div:nth-child(2n) { border-right: none; }
  .title-block > div { border-bottom: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 760px) {
  .topbar .tb-left { display: none; }
  .topbar .wrap { justify-content: center; }
  nav.main {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line-soft);
    padding: 12px 24px 20px;
    gap: 2px;
    box-shadow: 0 16px 30px rgba(8,20,36,0.12);
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 13px 6px; border-bottom: 1px solid var(--line-soft); }
  nav.main a.cta { margin: 12px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .grid.c3, .grid.c2, .grid.c4 { grid-template-columns: 1fr; }
  .spec-list { columns: 1; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .hero.full { min-height: calc(100svh - 116px); }
  .hero.full .wrap { padding-top: 72px; padding-bottom: 96px; }
  .hero.full h1 { font-size: clamp(44px, 13vw, 64px); }
  .hero-meta { gap: 32px; }
  section.block { padding: 60px 0; }
  form.contact { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* visible keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
