/* ==========================================================================
   INTEGRITY STRUCTURES — Stylesheet
   Design language: architectural / structural drawing.
   Dimension-line rules, framing-plan tick marks, hatch fills for materials.
   ========================================================================== */

:root{
  /* ---- Color tokens ---- */
  --paper:        #EFEDE7;   /* light warehouse grey-beige field */
  --paper-2:      #E5E1D7;   /* slightly deeper panel tone */
  --ink:          #1A1D1F;   /* near-black charcoal, primary text */
  --ink-soft:     #4B4F52;   /* secondary text on paper */
  --steel:        #33546E;   /* structural blue */
  --steel-dark:   #1E3345;   /* deep steel, dark section bg */
  --steel-mid:    #2C4A61;
  --safety:       #C0501C;   /* burnt safety orange — sparing accent */
  --safety-dim:   #A5461A;
  --line:         #C7C1B3;   /* hairline rule on paper */
  --line-strong:  #9C978A;
  --line-dark:    rgba(239,237,231,0.22); /* hairline on dark bg */
  --paper-on-dark:#EFEDE7;

  /* ---- Type ---- */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
}

p{ margin: 0 0 1em 0; }
p:last-child{ margin-bottom: 0; }

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ==========================================================================
   Eyebrow / mono labels — used like drawing callouts (SHEET, SCALE, REV)
   ========================================================================== */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--safety);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--safety);
  display: inline-block;
}
.eyebrow.on-dark{ color: #E8A576; }
.eyebrow.on-dark::before{ background: #E8A576; }

/* ==========================================================================
   Dimension-line divider — signature element.
   A ruled line with tick marks + arrowheads, like a drawing dimension.
   ========================================================================== */
.dim-line{
  display:flex;
  align-items:center;
  gap: 6px;
  width: 100%;
  color: var(--line-strong);
  margin: 0;
  user-select:none;
}
.dim-line svg{ width:100%; height:14px; display:block; }
.dim-line.on-dark{ color: var(--line-dark); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--safety);
  color: #FFF7F0;
  border-color: var(--safety);
}
.btn-primary:hover{ background: var(--safety-dim); border-color: var(--safety-dim); }

.btn-outline{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover{ background: var(--ink); color: var(--paper); }

.btn-outline.on-dark{
  color: var(--paper-on-dark);
  border-color: var(--line-dark);
}
.btn-outline.on-dark:hover{ background: var(--paper-on-dark); color: var(--steel-dark); border-color: var(--paper-on-dark); }

.btn-ghost{
  background: transparent;
  color: var(--safety);
  border: none;
  padding: 15px 0;
}
.btn-ghost::after{ content: "→"; margin-left: 4px; transition: transform 0.15s ease; }
.btn-ghost:hover::after{ transform: translateX(4px); }

.btn-row{ display:flex; flex-wrap:wrap; gap: 14px; align-items:center; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
.brand{
  display:flex;
  flex-direction:column;
  line-height: 1;
}
.brand-mark{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand-mark span{ color: var(--safety); }
.brand-sub{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 3px;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 34px;
  list-style: none;
  margin:0; padding:0;
}
.nav-links a{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--ink); }
.nav-links a[aria-current="page"]::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 2px;
  background: var(--safety);
}

.nav-cta{ display:flex; align-items:center; gap: 18px; }
.nav-phone{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  display:none;
}

.nav-toggle{
  display:none;
  background:none;
  border: 1px solid var(--ink);
  width: 42px; height: 42px;
  align-items:center; justify-content:center;
  cursor:pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:"";
  display:block;
  width: 18px; height: 2px;
  background: var(--ink);
  position:relative;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  background: var(--steel-dark);
  color: var(--paper-on-dark);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.hero-photo{
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-photo::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30,51,69,0.94) 0%, rgba(30,51,69,0.86) 32%, rgba(30,51,69,0.55) 60%, rgba(30,51,69,0.35) 100%);
  z-index: 0;
}
.hero-inner{
  position:relative;
  z-index:1;
  padding-top: 88px;
  padding-bottom: 72px;
  max-width: 760px;
}
.hero-photo-label{
  position: absolute;
  left: 24px; bottom: 18px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(239,237,231,0.65);
}
@media (max-width: 900px){
  .hero-photo{ min-height: 460px; }
}
.hero h1{
  font-size: clamp(34px, 5vw, 54px);
  color: #FFFFFF;
  margin-bottom: 22px;
}
.hero-lede{
  font-size: 18px;
  color: #FFFFFF;
  max-width: 620px;
  margin-bottom: 28px;
}
.hero-lede-2{
  font-size: 16px;
  color: #FFFFFF;
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-stat-strip{
  display:flex;
  flex-wrap:wrap;
  gap: 10px 28px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(239,237,231,0.75);
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
}
.hero-stat-strip strong{ color: var(--paper-on-dark); font-weight: 600; }

.page-hero{
  background: var(--steel-dark);
  color: var(--paper-on-dark);
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--safety);
}
.page-hero h1{
  font-size: clamp(30px, 4.4vw, 46px);
  color:#fff;
  margin-bottom: 18px;
  max-width: 760px;
}
.page-hero p{
  max-width: 640px;
  color: rgba(239,237,231,0.82);
  font-size: 17px;
  margin-bottom: 14px;
}
.page-hero .btn-row{ margin-top: 26px; }

/* ==========================================================================
   Credibility strip
   ========================================================================== */
.cred-strip{
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.cred-list{
  display:flex;
  flex-wrap:wrap;
  list-style:none;
  margin:0; padding: 20px 0;
  gap: 0;
}
.cred-list li{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 24px;
  border-left: 1px solid var(--line-strong);
}
.cred-list li:first-child{ border-left: none; padding-left: 0; }
.cred-list li strong{ color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section{ padding: 88px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type{ border-bottom: none; }
.section.tight{ padding: 64px 0; }
.section.cozy{ padding: 48px 0; }
.section.on-dark{
  background: var(--steel-dark);
  color: var(--paper-on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.section.on-dark h2, .section.on-dark h3{ color: #fff; }
.section.panel{ background: var(--paper-2); }

.section-head{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2{
  font-size: clamp(26px, 3.2vw, 38px);
}
.section-head .lede{
  max-width: 440px;
  color: var(--ink-soft);
  font-size: 16px;
}
.on-dark .section-head .lede{ color: rgba(239,237,231,0.75); }

.section-intro{
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 48px;
}
.on-dark .section-intro{ color: rgba(239,237,231,0.8); }

/* ==========================================================================
   Project types (Projects page)
   ========================================================================== */
.project-type{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.project-type:last-child{ margin-bottom: 0; }
.project-type h3{ font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 16px; }
.project-type p{ color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.project-type p:last-child{ margin-bottom: 0; }

.rotator{
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.rotator img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.rotator img.is-active{ opacity: 1; }
.rotator-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(239,237,231,0.85);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.rotator-nav:hover{ background: var(--paper); }
.rotator-nav.prev{ left: 12px; }
.rotator-nav.next{ right: 12px; }
.rotator-dots{
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.rotator-dots button{
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--paper);
  background: rgba(239,237,231,0.5);
  padding: 0;
  cursor: pointer;
}
.rotator-dots button.is-active{ background: var(--safety); border-color: var(--safety); }
@media (max-width: 900px){
  .project-type{ grid-template-columns: 1fr; }
}

.hatch-block{
  background: var(--paper);
  position: relative;
  min-height: 120px;
  background-image: repeating-linear-gradient(
    45deg,
    var(--line) 0px,
    var(--line) 1px,
    transparent 1px,
    transparent 12px
  );
}
.hatch-block .visual-label{
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* About page team/jobsite photo */
.about-photo{
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.about-photo img{
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* Service-area map image */
.service-map{
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.service-map img{
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.service-map .visual-label{
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(239,237,231,0.85);
  padding: 3px 8px;
}

/* Capability points — checklist styled like a spec sheet */
.spec-list{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}
.on-dark .spec-list{ border-color: var(--line-dark); }
.spec-list li{
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display:flex;
  align-items:center;
  gap: 12px;
}
.on-dark .spec-list li{ border-color: var(--line-dark); color: rgba(239,237,231,0.88); }
.spec-list li::before{
  content:"";
  width: 7px; height: 7px;
  background: var(--safety);
  flex-shrink: 0;
}
.spec-list li:nth-child(2n){ border-right: none; }

/* Service detail tag rows (used on services page) */
.tag-row{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 22px;
}
.tag{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 7px 14px;
}

/* Service block (big alternating rows) */
.service-block{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.service-block:last-child{ border-bottom: none; }
.service-block .service-index{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--safety);
  letter-spacing: 0.1em;
}
.service-block h3{
  font-size: 26px;
  margin: 10px 0 0;
}
.service-block .service-body p{
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 640px;
}

/* ==========================================================================
   Project type feature list (used on Home + Projects)
   ========================================================================== */
.feature-list{
  display:flex;
  flex-direction:column;
}
.feature-row{
  display:grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 28px;
  align-items:center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:first-child{ border-top: 1px solid var(--line); }
.feature-row .f-mark{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--safety);
}
.feature-row h4{
  font-size: 18px;
  letter-spacing: 0.01em;
}
.feature-row p{
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
}

/* ==========================================================================
   About / info blocks
   ========================================================================== */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.info-table{
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 14px;
}
.info-table tr{ border-bottom: 1px solid var(--line); }
.info-table tr:last-child{ border-bottom:none; }
.info-table th, .info-table td{
  text-align:left;
  padding: 14px 4px;
  font-weight: 400;
  vertical-align: top;
}
.info-table th{
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  width: 42%;
}
.on-dark .info-table th{ color: rgba(239,237,231,0.6); }
.info-table td{ color: var(--ink); }
.on-dark .info-table td{ color: var(--paper-on-dark); }
.on-dark .info-table tr{ border-color: var(--line-dark); }

/* ==========================================================================
   CTA band (Request a Bid)
   ========================================================================== */
.cta-band{
  background: var(--steel-dark);
  color: var(--paper-on-dark);
  padding: 72px 0;
}
.cta-inner{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
}
.cta-inner h2{ color:#fff; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 18px; }
.cta-inner p{ color: rgba(239,237,231,0.8); font-size: 16px; max-width: 480px; }
.cta-contact{
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2.1;
  color: rgba(239,237,231,0.92);
}
.cta-contact strong{ display:block; color:#fff; font-family: var(--font-display); text-transform: uppercase; font-size: 16px; margin-bottom: 8px; letter-spacing: 0.02em;}
.cta-contact a:hover{ color: var(--safety); }
.cta-contact .addr{ margin-top: 14px; }

/* ==========================================================================
   Form (Contact page)
   ========================================================================== */
.form-wrap{
  display:grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
form.bid-form{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.field{ display:flex; flex-direction:column; gap: 8px; }
.field.full{ grid-column: 1 / -1; }
.field label{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field select, .field textarea{
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: 2px solid var(--safety);
  outline-offset: 1px;
  border-color: var(--safety);
}
.field textarea{ resize: vertical; min-height: 110px; }
.field input[type="file"]{ padding: 10px 14px; font-size: 13px; }
.form-note{
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.form-submit{ grid-column: 1 / -1; display:flex; align-items:center; gap: 18px; margin-top: 6px; }
.form-status{ font-family: var(--font-mono); font-size: 13px; color: var(--steel); }

.side-contact{
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--paper-2);
}
.side-contact h3{ font-size: 16px; margin-bottom: 20px; }
.side-contact .info-table{ margin-bottom: 28px; }
.side-contact .info-table:last-child{ margin-bottom: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  background: var(--ink);
  color: var(--paper);
}
.footer-top{
  padding-top: 64px;
  padding-bottom: 40px;
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .brand-mark{ color: var(--paper); font-size: 20px; }
.footer-brand .brand-mark span{ color: var(--safety); }
.footer-brand p{
  color: rgba(239,237,231,0.6);
  font-size: 14px;
  margin-top: 16px;
  max-width: 320px;
}
.footer-col h4{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239,237,231,0.55);
  margin-bottom: 10px;
  font-weight: 500;
}
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 8px; }
.footer-col a, .footer-col span{
  font-size: 14px;
  color: rgba(239,237,231,0.85);
}
.footer-col a:hover{ color: var(--safety); }
.footer-bottom{
  border-top: 1px solid rgba(239,237,231,0.14);
  padding-top: 22px;
  padding-bottom: 22px;
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: rgba(239,237,231,0.45);
}

/* ==========================================================================
   Focus visibility
   ========================================================================== */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--safety);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 900px){
  .nav-phone{ display:block; }
}

@media (max-width: 900px){
  .nav-links{
    position: absolute;
    top: 100%; left:0; right:0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 20px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:flex; }
  .nav-cta .btn{ display:none; }
  .service-block{ grid-template-columns: 1fr; gap: 20px; }
  .two-col{ grid-template-columns: 1fr; gap: 40px; }
  .cta-inner{ grid-template-columns: 1fr; gap: 36px; }
  .form-wrap{ grid-template-columns: 1fr; }
  form.bid-form{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; gap: 36px; }
  .spec-list{ grid-template-columns: 1fr; }
  .spec-list li{ border-right: none !important; }
  .feature-row{ grid-template-columns: 40px 1fr; }
  .feature-row .f-img{ display:none; }
}

@media (max-width: 600px){
  .cred-list{ flex-direction: column; gap: 4px; }
  .cred-list li{ border-left:none; padding-left:0; }
  .hero-inner{ padding-top: 60px; padding-bottom: 48px; }
  .section{ padding: 56px 0; }
}
