:root {
  --ink: #1e2830;
  --muted: #5d6673;
  --paper: #f4f5f2;
  --surface: #ffffff;
  --line: #dbe1e7;
  --brick: #d9653c;
  --brick-dark: #ae442c;
  --steel: #1d6870;
  --blue: #315c8c;
  --yellow: #e4b23d;
  --shadow: 0 18px 45px rgba(24, 33, 43, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  max-width: 100%;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(2.35rem, 5vw, 4.7rem); line-height: 0.98; letter-spacing: 0; }
h2 { margin-bottom: 12px; font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.1; letter-spacing: 0; }
h3 { margin-bottom: 9px; font-size: 1.15rem; }
p { color: var(--muted); }
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(219, 225, 231, 0.95);
  backdrop-filter: blur(14px);
}
.nav {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brick), var(--steel));
  font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 10px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--ink);
  background: #eef2f5;
  outline: none;
}
.nav-links .nav-cta {
  margin-left: 6px;
  color: #fff;
  background: var(--brick);
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible,
.nav-links .nav-cta.is-active {
  color: #fff;
  background: var(--brick-dark);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.home-hero {
  min-height: 78svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
  padding: 100px max(22px, calc((100vw - var(--max)) / 2)) 70px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(20, 24, 31, 0.94) 0%, rgba(20, 24, 31, 0.78) 45%, rgba(20, 24, 31, 0.28) 100%),
    url("nyc-urban-construction.png") center / cover no-repeat;
}
.hero-content { max-width: 840px; }
.lead { max-width: 780px; color: rgba(255, 255, 255, 0.84); font-size: 1.15rem; }
.eyebrow {
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-actions,
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #fff;
  background: var(--brick);
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.button:hover,
.button:focus-visible { background: var(--brick-dark); outline: none; }
.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}
.button.secondary:hover,
.button.secondary:focus-visible { background: rgba(255, 255, 255, 0.16); }
.button.dark-text { color: var(--ink); border-color: var(--line); background: #fff; }
.button.full { width: 100%; }
.hero-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(20, 24, 31, 0.72);
}
.hero-panel strong { display: block; margin-bottom: 8px; font-size: 1.2rem; }
.hero-panel span { color: rgba(255, 255, 255, 0.78); }

.page-hero {
  padding: 96px 22px 82px;
  color: #fff;
  background: linear-gradient(90deg, rgba(20, 24, 31, 0.92), rgba(20, 24, 31, 0.55)), url("construction-materials-shelves.jpg") center / cover no-repeat;
}
.materials-hero { background-image: linear-gradient(90deg, rgba(20, 24, 31, 0.92), rgba(20, 24, 31, 0.55)), url("construction-materials-shelves.jpg"); }
.trade-hero { background-image: linear-gradient(90deg, rgba(20, 24, 31, 0.92), rgba(20, 24, 31, 0.55)), url("california-house-construction.jpg"); }
.procurement-hero { background-image: linear-gradient(90deg, rgba(20, 24, 31, 0.92), rgba(20, 24, 31, 0.55)), url("interior-renovation.jpg"); }
.company-hero { background-image: linear-gradient(90deg, rgba(20, 24, 31, 0.92), rgba(20, 24, 31, 0.55)), url("nyc-construction.jpg"); }
.payments-hero { background-image: linear-gradient(90deg, rgba(20, 24, 31, 0.92), rgba(20, 24, 31, 0.55)), url("nyc-urban-construction.png"); }
.contact-hero { background-image: linear-gradient(90deg, rgba(20, 24, 31, 0.92), rgba(20, 24, 31, 0.55)), url("interior-renovation.jpg"); }
.page-hero-inner { width: min(100%, var(--max)); margin: 0 auto; }
.page-hero .lead { max-width: 760px; }

.section { padding: 76px 22px; }
.section.alt { background: #fff; }
.section.dark { color: #fff; background: var(--ink); }
.section.dark p { color: rgba(255, 255, 255, 0.74); }
.section-inner { width: min(100%, var(--max)); margin: 0 auto; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.wide { max-width: 900px; }
.section-kicker {
  margin-bottom: 8px;
  color: var(--brick);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}
.dark .section-kicker { color: var(--yellow); }

.link-grid,
.info-grid,
.check-grid,
.phase-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.link-card,
.info-card,
.phase-grid article,
.check-grid div,
.stat-grid div,
.notice-card,
.payment-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 10px 24px rgba(24, 33, 43, 0.05);
}
.link-card { text-decoration: none; min-height: 220px; }
.link-card span,
.phase-grid span,
.timeline span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--steel);
  font-weight: 900;
}
.link-card:hover { border-color: var(--steel); transform: translateY(-2px); transition: 160ms ease; }
.link-card p,
.info-card p,
.phase-grid p,
.check-grid span { margin-bottom: 0; color: var(--muted); }
.stat-grid div { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.stat-grid strong { display: block; font-size: 2.6rem; line-height: 1; color: var(--yellow); }
.stat-grid span { color: rgba(255, 255, 255, 0.76); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.9fr);
  gap: 34px;
  align-items: center;
}
.image-frame,
.certificate-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.image-frame img { width: 100%; height: 430px; object-fit: cover; }
.image-frame figcaption,
.certificate-frame figcaption {
  padding: 13px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.check-list { display: grid; gap: 13px; margin: 24px 0 0; padding: 0; list-style: none; }
.check-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--steel);
  background: #f1f7f5;
  color: var(--muted);
}
.check-list strong { color: var(--ink); }
.check-list.compact li { padding: 10px 12px; }

.media-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}
.video-frame,
.media-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 33, 43, 0.06);
}
.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #10141a;
}
.video-frame figcaption,
.media-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.media-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.media-grid figcaption strong,
.asset-note strong {
  color: var(--ink);
}

.asset-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.media-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.media-highlights article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 33, 43, 0.06);
}

.media-highlights img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-highlights div {
  padding: 18px;
}

.media-highlights h3 {
  margin-bottom: 6px;
}

.media-highlights p {
  margin-bottom: 0;
}

.product-video-strip,
.product-video-grid {
  display: grid;
  gap: 18px;
}
.product-video-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}
.product-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-library {
  margin-top: 24px;
}
.product-video-strip article,
.product-video-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 33, 43, 0.06);
}
.product-video-strip video,
.product-video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #10141a;
}
.product-video-strip article {
  padding-bottom: 18px;
}
.product-video-strip h3,
.product-video-strip p,
.product-video-card div {
  margin-left: 18px;
  margin-right: 18px;
}
.product-video-strip h3 {
  margin-top: 18px;
}
.product-video-strip p,
.product-video-card p {
  margin-bottom: 0;
}
.product-video-card div {
  padding: 20px 0 22px;
}

.material-grid { display: grid; gap: 20px; }
.material-card {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(24, 33, 43, 0.05);
}
.material-card img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.material-card div { padding: 28px; }
.material-card ul { color: var(--muted); padding-left: 19px; }

body[data-page="materials"] .material-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
body[data-page="materials"] .material-card {
  grid-template-columns: 1fr;
  min-height: 100%;
}
body[data-page="materials"] .material-card img {
  height: 286px;
  min-height: 0;
}
body[data-page="materials"] .material-card div {
  padding: 26px;
}
body[data-page="materials"] .material-card h2 {
  font-size: 1.55rem;
}
body[data-page="materials"] .material-card p,
body[data-page="materials"] .material-card li {
  font-size: 1rem;
}
.pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--brick-dark);
  background: #fff0ef;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline { display: grid; gap: 14px; counter-reset: step; }
.timeline article {
  display: grid;
  grid-template-columns: 58px 0.35fr 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.timeline h2 { margin-bottom: 0; font-size: 1.3rem; }
.timeline p { margin-bottom: 0; }

.company-layout,
.payment-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 24px;
  align-items: start;
}
.info-card.large { min-height: 100%; }
.detail-list { margin: 0; display: grid; gap: 0; }
.detail-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f3;
}
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-weight: 900; }
.detail-list dd { margin: 0; }
.certificate-frame img { width: 100%; max-height: 680px; object-fit: contain; background: #fff; }

.notice-card { border-left: 6px solid var(--yellow); }
.notice-card strong { display: block; margin-bottom: 8px; font-size: 1.18rem; }
.notice-card span { color: var(--muted); }
.notice-card.strong { border-left-color: var(--brick); }
.payment-layout { grid-template-columns: 0.8fr 1.2fr; }
.copy-grid { display: grid; gap: 0; }
.copy-row {
  display: grid;
  grid-template-columns: 150px 1fr 84px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f3;
}
.copy-row:last-child { border-bottom: 0; }
.copy-row span { color: var(--muted); font-weight: 900; }
.copy-row strong { word-break: break-word; font-family: "Courier New", Courier, monospace; font-size: 0.94rem; }
.copy-row button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 900;
  cursor: pointer;
}
.copy-row button:hover { color: var(--steel); border-color: var(--steel); }
.copy-status { min-height: 24px; margin: 12px 0 0; }

.worksheet { display: grid; gap: 14px; }
.worksheet label { display: grid; gap: 7px; color: var(--ink); font-weight: 900; }
.worksheet input,
.worksheet textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: #fbfcfd;
}
.worksheet textarea { min-height: 120px; resize: vertical; }
.small-note { margin: 14px 0 0; font-size: 0.9rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.site-footer {
  padding: 28px 22px;
  color: rgba(255, 255, 255, 0.76);
  background: #161a20;
}
.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}
.footer-inner strong,
.footer-inner a { color: #fff; }
.redirect-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav { flex-wrap: wrap; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links .nav-cta { margin-left: 0; text-align: center; }
  .home-hero,
  .split,
  .media-showcase,
  .media-highlights,
  .product-video-strip,
  .product-video-grid,
  .company-layout,
  .payment-layout,
  .contact-layout { grid-template-columns: 1fr; }
  .home-hero { align-items: center; min-height: auto; padding-top: 76px; }
  .hero-panel { max-width: 560px; }
  .link-grid,
  .info-grid,
  .phase-grid,
  .check-grid,
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .material-card { grid-template-columns: 1fr; }
  .material-card img { height: 260px; }
  body[data-page="materials"] .material-grid { grid-template-columns: 1fr; }
  body[data-page="materials"] .material-card img { height: 300px; }
  .timeline article { grid-template-columns: 58px 1fr; }
  .timeline p { grid-column: 2; }
}

@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .brand small { display: none; }
  .brand strong { font-size: 0.94rem; }
  .brand-mark { width: 38px; height: 38px; }
  .home-hero { padding: 56px 18px; }
  .page-hero { padding: 64px 18px 58px; }
  .lead { font-size: 1rem; }
  .hero-actions,
  .button-row { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 56px 18px; }
  .link-grid,
  .info-grid,
  .phase-grid,
  .check-grid,
  .stat-grid { grid-template-columns: 1fr; }
  .image-frame img { height: 300px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-grid img { height: 220px; }
  .material-card div,
  .link-card,
  .info-card,
  .phase-grid article,
  .check-grid div,
  .payment-card { padding: 20px; }
  .timeline article,
  .detail-list div,
  .copy-row { grid-template-columns: 1fr; }
  body[data-page="materials"] .material-card img { height: 240px; }
  .timeline p { grid-column: auto; }
  .copy-row button { width: 100%; }
}
