/* Tricord Masonry — site styles
   Layout: white pages, brick-red accents, red label + short rule above every section heading
   (same system as the business card), charcoal bands for emphasis. */
:root {
  --red: #991c20;
  --red-dark: #6e1417;
  --red-tint: #f6e8e8;
  --ink: #2b2927;
  --body: #4a4845;
  --muted: #6b6865;
  --line: #e4e3e1;
  --tint: #f5f4f2;
  --char: #1c1a19;
  --on-char: #c9c6c2;
  --white: #ffffff;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; color: var(--ink); }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--red); color: var(--white); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 16px; top: 16px; }

/* Bands and the shared gutter */
.band { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-block: 96px; }
.band--tight { padding-block: 40px; }
.band--tint { background: var(--tint); }
.band--char { background: var(--char); color: var(--white); }
.band--char h2, .band--char h3 { color: var(--white); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
@media (max-width: 760px) { .band { padding-block: 64px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); } }

/* Section label: red caps + short rule, as on the business card */
.label { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.label::after { content: ""; display: block; width: 44px; height: 3px; background: var(--red); margin: 16px 0 24px; }
.band--char .label { color: #e8a9ab; }
.band--char .label::after { background: #e8a9ab; }

.h1 { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.h2 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3vw, 36px); line-height: 1.05; margin: 0 0 20px; }
.h3 { font-size: 20px; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.lede { font-size: 19px; line-height: 1.65; color: var(--body); max-width: 62ch; }
.muted { color: var(--muted); }
.body { color: var(--body); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--text); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--red-tint); color: var(--red-dark); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-block: 12px; position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding-block: 8px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--ink); }
.nav a.btn { color: var(--white); border: 0; padding: 0 20px; min-height: 44px; }
.nav a.btn:hover { color: var(--white); }
.menu { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .menu summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 0 14px; border: 1.5px solid var(--ink); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-panel { display: flex; }
  .menu-panel { display: none; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px max(18px, env(safe-area-inset-right, 0px)) 20px max(18px, env(safe-area-inset-left, 0px)); box-shadow: 0 12px 24px rgba(28,26,25,.08); }
  .menu-panel a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu-panel a.btn { color: var(--white); border: 0; margin-top: 16px; }
  .brand img { height: 52px; }
}

/* Hero with ghost triangle */
.hero { position: relative; overflow: hidden; }
.hero .ghost { position: absolute; right: -140px; top: 30px; width: min(760px, 70vw); opacity: 0.14; pointer-events: none; }
.hero .wrap { position: relative; }
.hero .lede { margin: 24px 0 36px; }
.hero:not(.page-hero) { padding-block: 72px 80px; }
@media (min-width: 761px) { .hero:not(.page-hero) .ghost { width: min(540px, 60vw); top: 20px; right: -100px; } }
.page-hero { padding-block: 80px 72px; }
.page-hero .ghost { width: min(560px, 60vw); top: 10px; right: -110px; }
@media (max-width: 760px) { .hero .ghost { right: -90px; top: auto; bottom: -40px; width: 380px; opacity: 0.1; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.stat-n { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1.1; }
.stat-l { font-size: 14px; color: var(--on-char); margin-top: 4px; }

/* Lists with top rules */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 56px; }
.ruled { padding-block: 24px; border-top: 1px solid var(--line); min-width: 0; }
.ruled p { color: var(--body); }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card { background: var(--white); display: flex; flex-direction: column; min-width: 0; }
.band--tint .card { background: var(--white); }
.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.kicker { font-size: 12px; color: var(--red); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.card h3 { font-size: 21px; margin: 0; line-height: 1.25; }
.card p { color: var(--body); font-size: 15px; }

/* Photo slot (placeholder until real photos are added) */
.photo { aspect-ratio: 4 / 3; max-width: 100%; background-color: #ebe9e6; background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(28,26,25,.045) 22px 24px), repeating-linear-gradient(90deg, transparent 0 46px, rgba(28,26,25,.03) 46px 48px); display: flex; align-items: flex-end; padding: 14px; font-size: 12px; color: var(--muted); }
.photo--wide { aspect-ratio: 16 / 10; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Project detail rows */
.project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px; border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; padding-top: 0; }
.project:nth-child(even) .photo { order: 2; }
.project address { font-style: normal; color: var(--muted); margin: 4px 0 18px; }
.scope { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.scope li { position: relative; padding-left: 18px; color: var(--body); font-size: 15px; }
.scope li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 4px; background: var(--red); }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; gap: 24px; } .project:nth-child(even) .photo { order: 0; } .scope { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.person { border-top: 3px solid var(--red); padding-top: 14px; }
.person-name { font-family: var(--display); font-weight: 900; font-size: 22px; }
.person-role { font-size: 13px; color: var(--red); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.person a { display: inline-block; margin-top: 10px; font-weight: 600; }

/* Partners */
.partners { display: flex; flex-wrap: wrap; gap: 10px 32px; font-weight: 600; color: var(--muted); }
.partners-title { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 14px; }

/* Split layouts */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 380px; min-width: 0; }
.split--wide > :first-child { flex: 2 1 520px; }

/* Forms */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid #c9c6c2; padding: 12px 13px; border-radius: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); outline: 2px solid var(--red); outline-offset: 0; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.panel { background: var(--tint); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.panel h3 { font-family: var(--display); font-weight: 900; font-size: 26px; margin: 0; line-height: 1.15; }
.contact-list { display: grid; gap: 18px; }
.contact-list dt { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.contact-list dd { margin: 4px 0 0; font-size: 17px; }

/* CTA band */
.cta { background: var(--red); color: var(--white); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--white); margin: 0 0 8px; }
.cta p { color: #f6dcdd; }

/* Footer */
.site-footer { background: var(--char); color: var(--on-char); font-size: 15px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); padding-block: 56px 32px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid h3 { color: var(--white); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { width: 190px; }
.footer-base { border-top: 1px solid #3a3735; margin-top: 44px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.band--tint .panel { background: var(--white); }
.photo.has-img { padding: 0; overflow: hidden; }
.photo.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Subcontractor partner page */
.sub-panel h3 { margin-bottom: 4px; }
.sub-panel--char { background: var(--char); color: var(--on-char); }
.sub-panel--char h3 { color: var(--white); }
.band--tint .sub-panel--char { background: var(--char); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 11px 0 11px 28px; border-top: 1px solid var(--line); color: var(--body); }
.sub-panel--char .ticks li { border-color: #3a3735; color: var(--on-char); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.sub-panel--char .ticks li::before { border-color: #e8a9ab; }
.sub-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px; }
.sub-steps li { border-top: 3px solid var(--red); padding-top: 16px; }
.sub-steps span { font-family: var(--display); font-weight: 900; font-size: 34px; color: var(--red); line-height: 1; display: block; margin-bottom: 10px; }
.sub-steps p { color: var(--body); }
.form-group { font-family: var(--display); font-weight: 900; font-size: 20px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.form-group:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.checkset, .yn { border: 0; padding: 0; margin: 0; }
.checkset legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 10px; }
.checkset { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 18px; }
.checkset legend { grid-column: 1 / -1; }
.checkset label, .yn label { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; cursor: pointer; }
.checkset input, .yn input, .certify input { width: 18px; height: 18px; accent-color: var(--red); flex: 0 0 18px; margin: 0; }
.yn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.yn p { flex: 1 1 260px; font-size: 15px; font-weight: 500; }
.yn-opts { display: flex; gap: 22px; }
.field input[type="file"] { padding: 10px; border-style: dashed; background: var(--tint); font-size: 14px; }
.certify { display: flex; gap: 12px; align-items: flex-start; background: var(--tint); padding: 16px 18px; font-size: 15px; color: var(--body); }
.certify input { margin-top: 3px; }
.band--tint .certify { background: var(--white); }
/* Seven-item menu: keep links on one line and tighten spacing on mid-size screens */
.nav a { white-space: nowrap; }
@media (max-width: 1080px) { .nav { gap: 18px; } .nav a.btn { padding: 0 16px; } }
