/* ISI website — styles v2
   Palette drawn from the job site: asphalt, work-zone orange, lane-line white, concrete.
   Type: Overpass, a descendant of the FHWA Highway Gothic signage face. */

:root {
  --asphalt: #202326;
  --asphalt-raised: #2a2e32;
  --asphalt-line: #3a3f44;
  --orange: #f36f21;
  --orange-deep: #d95c12;
  --lane-white: #f5f4ef;
  --concrete: #bfbcb4;
  --concrete-light: #e7e4dd;
  --ink: #202326;
  --ink-muted: #4d5156;

  --font: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-space: clamp(64px, 10vw, 120px);
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--lane-white);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--asphalt);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px 12px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1.0625rem;
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--asphalt);
}

.btn-primary:hover {
  background: var(--orange-deep);
}

.btn-secondary {
  border-color: var(--lane-white);
  color: var(--lane-white);
}

.btn-secondary:hover {
  background: rgba(245, 244, 239, 0.12);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--asphalt);
  border-bottom: 1px solid var(--asphalt-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

.logo img {
  width: 200px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--orange);
}

.site-nav .nav-phone {
  padding: 10px 18px 8px;
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  color: var(--orange);
  font-weight: 800;
}

.site-nav .nav-phone:hover {
  background: var(--orange);
  color: var(--asphalt);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(86vh, 820px);
  padding-block: clamp(96px, 16vh, 160px) clamp(72px, 12vh, 120px);
  background-color: var(--asphalt);
  background-image:
    linear-gradient(90deg, rgba(32, 35, 38, 0.96) 0%, rgba(32, 35, 38, 0.82) 38%, rgba(32, 35, 38, 0.25) 100%),
    linear-gradient(0deg, rgba(32, 35, 38, 0.9) 0%, rgba(32, 35, 38, 0) 40%),
    url("../images/hero-bridge-deck.jpg");
  background-size: cover;
  background-position: center 55%;
}

.hero-content {
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(3.25rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.hero-lede {
  max-width: 34ch;
  margin-top: 28px;
  color: var(--concrete-light);
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Type III barricade striping: the one loud element on the page */
.barricade {
  height: 16px;
  background: repeating-linear-gradient(
    -45deg,
    var(--orange) 0 22px,
    var(--lane-white) 22px 44px
  );
}

/* ---------- Intro ---------- */

.intro {
  padding-block: var(--section-space);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.intro h2 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
}

.intro-copy p {
  max-width: 60ch;
  margin-top: 24px;
  color: var(--concrete);
}

.intro-copy p:first-of-type {
  color: var(--lane-white);
  font-size: 1.25rem;
}

.intro-photo img {
  width: 100%;
  aspect-ratio: 958 / 448;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Services ---------- */

.services {
  padding-block: var(--section-space);
  background: var(--concrete-light);
  color: var(--ink);
}

.services-head {
  display: grid;
  gap: 16px;
  margin-bottom: 56px;
}

.services-head h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
}

.services-head p {
  max-width: 52ch;
  color: var(--ink-muted);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.service-group-head {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--ink);
}

.service-group-head img {
  width: 96px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.service-group h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
}

.service-group-head p {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 1rem;
}

.service-list {
  columns: 2;
  column-gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  break-inside: avoid;
  padding: 14px 0 12px;
  border-bottom: 1px solid #c9c5bc;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- On the job ---------- */

.on-the-job {
  padding-block: var(--section-space);
}

.job-head {
  display: grid;
  gap: 20px;
  margin-bottom: 48px;
}

.job-head h2 {
  max-width: 18ch;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
}

.job-head p {
  max-width: 56ch;
  color: var(--concrete);
}

.job-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
}

.job-photos figure {
  margin: 0;
}

.job-photos img {
  width: 100%;
  aspect-ratio: 468 / 248;
  object-fit: cover;
  border-radius: var(--radius);
}

.job-photos figcaption {
  margin-top: 12px;
  color: var(--concrete);
  font-size: 0.9375rem;
}

/* ---------- Contact band ---------- */

.contact-band {
  padding-block: var(--section-space);
  background: var(--asphalt-raised);
  border-top: 1px solid var(--asphalt-line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-band h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
}

.contact-band .contact-lede {
  max-width: 44ch;
  margin-top: 20px;
  color: var(--concrete);
}

.contact-phone {
  display: inline-block;
  margin-top: 28px;
  color: var(--orange);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.contact-phone:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.contact-details {
  display: grid;
  gap: 24px;
  align-content: start;
  margin: 0;
}

.contact-details div {
  padding-top: 16px;
  border-top: 1px solid var(--asphalt-line);
}

.contact-details dt {
  color: var(--concrete);
  font-size: 0.9375rem;
}

.contact-details dd {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-details dd a {
  text-decoration: none;
}

.contact-details dd a:hover {
  color: var(--orange);
}

.contact-side .btn {
  margin-top: 32px;
}

/* ---------- Inner page header ---------- */

.page-hero {
  padding-block: clamp(64px, 10vw, 112px) clamp(48px, 7vw, 80px);
}

.page-hero h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.page-lede {
  max-width: 40ch;
  margin-top: 24px;
  color: var(--concrete-light);
  font-size: clamp(1.1875rem, 2vw, 1.4375rem);
  line-height: 1.45;
}

.page-hero .hero-actions {
  margin-top: 36px;
}

/* ---------- About page ---------- */

.groups {
  padding-block: var(--section-space);
  background: var(--concrete-light);
  color: var(--ink);
}

.groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.groups-head h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
}

.groups-head p {
  max-width: 40ch;
  margin-top: 16px;
  color: var(--ink-muted);
}

.group-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 4px solid var(--ink);
}

.group-list li {
  padding: 20px 0 16px;
  border-bottom: 1px solid #c9c5bc;
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 800;
  line-height: 1.2;
}

/* ---------- Contact page ---------- */

.contact-page {
  padding-block: var(--section-space);
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

.contact-info h2,
.form-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
}

.contact-info > p {
  margin-top: 12px;
  color: var(--concrete);
}

.contact-info .contact-details {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 40px;
}

.form-panel {
  padding: clamp(24px, 4vw, 48px);
  background: var(--concrete-light);
  color: var(--ink);
  border-radius: var(--radius);
}

.form-panel > p {
  margin-top: 12px;
  color: var(--ink-muted);
}

/* Orange is too faint against the light panel; use ink for focus here */
.form-panel :focus-visible {
  outline-color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 1rem;
  font-weight: 600;
}

.form-field .optional {
  color: var(--ink-muted);
  font-weight: 400;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--ink-muted);
  border-radius: var(--radius);
  background: var(--lane-white);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.form-field textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 8px;
}

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

/* Honeypot field: off-screen so people never see it, but bots still fill it in */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reserve the spam-check widget's height so the button doesn't jump when it loads */
.cf-turnstile {
  min-height: 65px;
}

.form-status {
  padding: 14px 16px 12px;
  border-left: 4px solid var(--orange-deep);
  background: var(--lane-white);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.form-status a {
  color: var(--ink);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 48px 40px;
  border-top: 1px solid var(--asphalt-line);
  color: var(--concrete);
  font-size: 0.9375rem;
}

.footer-inner {
  display: grid;
  gap: 28px;
}

.footer-inner img {
  width: 140px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--lane-white);
}

/* ---------- Page-load moment ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-content > *,
  .page-hero-content > * {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-content > :nth-child(2),
  .page-hero-content > :nth-child(2) { animation-delay: 0.12s; }
  .hero-content > :nth-child(3),
  .page-hero-content > :nth-child(3) { animation-delay: 0.24s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Larger screens ---------- */

@media (min-width: 760px) {
  .job-photos {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .intro-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
  }

  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .contact-page-grid,
  .groups-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 72px;
    align-items: start;
  }

  .services-head,
  .job-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .footer-nav ul {
    justify-content: center;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-block: 14px;
  }

  .site-nav .nav-phone-item {
    display: none;
  }

  .logo img {
    width: 150px;
  }

  .hero {
    min-height: 0;
    background-position: 65% center;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .service-list {
    columns: 1;
  }
}
