/* Integrated Construction Solutions LLC — site styles
   Brand: charcoal / steel gray with construction-orange accent.
   Type: Barlow + Barlow Condensed (Google Fonts). */

:root {
  --char: #1E2327;
  --char-2: #2C333A;
  --steel: #5B6770;
  --light: #EEF1F3;
  --line: #C9D0D6;
  --acc: #E8772E;
  --acc-hover: #CF671F;
  --txt: #262B30;
  --mute: #9AA5AE;
  --white: #ffffff;
  --soft: #D9DEE2;
  --mist: #B5BEC5;
  --header-h: 72px;
  --wrap: 1120px;
  --font: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cond: "Barlow Condensed", "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 2px;
  --shadow: 0 8px 24px rgba(30, 35, 39, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--txt);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--acc);
  text-decoration: none;
}

a:hover {
  color: var(--acc-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
}

ul, ol, dl, dt, dd, figure, p, h1, h2, h3 {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-family: var(--cond);
  font-weight: 700;
  line-height: 1.15;
  color: var(--char);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: var(--acc);
  color: var(--white);
  padding: 8px 14px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 40px, 760px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--char);
  border-bottom: 4px solid var(--acc);
  min-height: var(--header-h);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--white);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 36px;
  padding: 0 8px;
  background: var(--acc);
  color: var(--white);
  font-family: var(--cond);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.logo-sub {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px 22px;
  list-style: none;
}

.site-nav a {
  color: var(--soft);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--acc);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--char);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(30, 35, 39, 0.28) 0%, rgba(30, 35, 39, 0.2) 38%, rgba(30, 35, 39, 0.88) 100%),
    linear-gradient(90deg, rgba(30, 35, 39, 0.72) 0%, rgba(30, 35, 39, 0.28) 55%, rgba(30, 35, 39, 0.18) 100%),
    url("images/01-radial-curved-framed-ceiling.jpg") center 42% / cover no-repeat;
}

.hero-inner {
  padding: 72px 0 80px;
}

.hero-kicker {
  font-family: var(--font);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 14px;
}

.hero-title {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-line {
  display: block;
}

.hero-tagline {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 32px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--acc);
  color: var(--white);
  border-color: var(--acc);
}

.btn-primary:hover {
  background: var(--acc-hover);
  border-color: var(--acc-hover);
  color: var(--white);
}

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

.btn-secondary:hover {
  background: var(--white);
  color: var(--char);
}

.btn-ghost {
  background: transparent;
  color: var(--char);
  border-color: var(--char);
}

.btn-ghost:hover {
  background: var(--char);
  color: var(--white);
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--light);
}

.section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.section-title::before {
  content: "";
  width: 18px;
  height: 4px;
  background: var(--acc);
  flex-shrink: 0;
  margin-top: 0.55em;
}

.lead {
  font-size: 1.0625rem;
  color: var(--txt);
}

#about .lead {
  max-width: 72ch;
}

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

.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.service-grid li {
  display: grid;
  grid-template-columns: 12px 1fr;
  column-gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.service-grid li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--acc);
}

.service-grid h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  grid-column: 2;
}

.service-grid p {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--steel);
  margin-top: 2px;
}

/* ---------- Why GCs ---------- */

.why-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  counter-reset: none;
}

.why-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--acc);
  padding: 22px 22px 24px 22px;
  box-shadow: var(--shadow);
}

.why-num {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--acc);
  margin-right: 8px;
}

.why-grid h3 {
  display: inline;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.why-grid p {
  margin-top: 10px;
  font-size: 0.98rem;
  color: var(--txt);
}

/* ---------- Featured projects ---------- */

.project-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.project-grid li {
  background: var(--char);
  color: var(--white);
  padding: 18px 20px 18px 18px;
  border-left: 4px solid var(--acc);
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-grid h3 {
  color: var(--white);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.project-grid p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--soft);
}

/* ---------- Partners ---------- */

.partner-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.partner-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--acc);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--char);
}

/* ---------- Gallery ---------- */

.gallery-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  background: var(--char);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 42%;
}

/* A single photo should not stretch across an empty 3-column grid. */
.gallery-grid li:only-child {
  grid-column: 1 / span 2;
}

.gallery-grid li:only-child img {
  height: 420px;
}

/* Two photos: use a 2-column layout so the third column is not left empty. */
.gallery-grid:has(> li:first-child:nth-last-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid:has(> li:first-child:nth-last-child(2)) img {
  height: 360px;
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(30, 35, 39, 0.88);
  color: var(--white);
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px 8px 16px;
  border-left: 3px solid var(--acc);
}

/* ---------- Insurance ---------- */

.ins-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.ins-grid > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.ins-grid > div:nth-child(odd) {
  background: var(--light);
}

.ins-grid dt {
  font-weight: 600;
  color: var(--char);
}

.ins-grid dd {
  font-weight: 600;
  color: var(--char);
  text-align: right;
}

.ins-note {
  margin-top: 16px;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--steel);
}


/* ---------- Careers ---------- */

.careers-section {
  background: var(--char);
  color: var(--white);
}

.careers-section .section-title {
  color: var(--white);
}

.careers-section .lead {
  color: var(--soft);
  max-width: 72ch;
}

.careers-roles {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 32px;
}

.careers-roles li {
  flex: 1 1 calc(33.333% - 10px);
  background: var(--char-2);
  border: 1px solid #3a424a;
  border-left: 3px solid var(--acc);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--white);
  display: flex;
  align-items: center;
}

.careers-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.careers-call {
  margin: 0;
  color: var(--soft);
  font-weight: 500;
}

.careers-call a {
  color: var(--white);
  font-weight: 600;
  border-bottom: 1px solid var(--acc);
}

.careers-call a:hover {
  color: var(--acc);
}

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

.contact-section {
  background: var(--light);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow);
}

.contact-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--char);
}

.contact-role {
  font-size: 0.95rem;
  color: var(--steel);
  margin-bottom: 22px;
}

.contact-details {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-details div {
  display: grid;
  gap: 2px;
}

.contact-details dt {
  font-family: var(--font);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--acc);
}

.contact-details dd,
.contact-details a {
  color: var(--char);
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

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

.site-footer {
  background: var(--char);
  color: var(--soft);
  border-top: 4px solid var(--acc);
  padding: 28px 0 32px;
  text-align: center;
}

.footer-brand {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}

.footer-meta {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-meta a,
.site-footer a {
  color: var(--soft);
}

.footer-meta a:hover,
.site-footer a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--mute);
}

/* Sticky-header offset for in-page anchors */
#about,
#services,
#why,
#projects,
#partners,
#gallery,
#insurance,
#careers,
#contact {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .project-grid,
  .partner-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid li:only-child {
    grid-column: 1 / -1;
  }

  .gallery-grid li:only-child img {
    height: 360px;
  }

  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 980px) {
  .logo-text {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--char-2);
    border-bottom: 4px solid var(--acc);
    display: none;
    padding: 8px 20px 20px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid #3a424a;
    font-size: 16px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    border-bottom-color: var(--acc);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 16px;
  }

  .wrap,
  .wrap.narrow,
  .hero-inner {
    width: min(100% - 32px, var(--wrap));
  }

  .section {
    padding: 56px 0;
  }

  .hero-inner {
    padding: 48px 0 56px;
  }

  .hero-kicker {
    letter-spacing: 0.1em;
  }

  .hero-rest {
    display: block;
  }

  .hero-actions .btn,
  .contact-actions .btn {
    flex: 1 1 100%;
  }

  .service-grid,
  .why-grid,
  .project-grid,
  .partner-list,
  .ins-grid,
  .gallery-grid,
  .gallery-grid:has(> li:first-child:nth-last-child(2)),
  .careers-roles {
    grid-template-columns: 1fr;
  }

  .gallery-grid:has(> li:first-child:nth-last-child(2)) img {
    height: 240px;
  }

  .careers-roles li {
    flex-basis: 100%;
    min-height: 0;
  }

  .gallery-grid li:only-child {
    grid-column: auto;
  }

  .gallery-grid img,
  .gallery-grid li:only-child img {
    height: 240px;
  }

  .ins-grid > div {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .ins-grid dd {
    text-align: left;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .footer-meta span[aria-hidden="true"] {
    display: none;
  }

  .footer-meta a,
  .footer-meta {
    display: block;
  }

  .footer-meta a {
    padding: 2px 0;
  }
}

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

  .nav-toggle-bar,
  .btn {
    transition: none;
  }
}
