/* =========================================================================
   [YOUR COMPANY NAME] — General Contractor & Building Services
   Design system: "Job Site Precision" — charcoal steel + rust orange,
   Barlow / Barlow Condensed type, tape-measure tick dividers.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Barlow:wght@400;500;600;700&display=swap');

:root {
  /* ---- color tokens ---- */
  --charcoal:      #212B33;   /* primary dark: nav, footer, headings */
  --charcoal-soft: #303D48;   /* raised panels on charcoal */
  --concrete:      #F6F3ED;   /* page background, warm off-white */
  --surface:       #FFFDF9;   /* card surfaces atop concrete */
  --rust:          #D35400;   /* primary accent */
  --rust-dark:     #A84300;   /* accent hover/active */
  --timber:        #8A6240;   /* secondary warm accent, sparing use */
  --steel:         #5B6770;   /* secondary text */
  --steel-light:   #A9B2B8;   /* muted text on dark */
  --line:          #E1DACD;   /* hairline borders on light bg */
  --line-dark:     #3C4852;   /* hairline borders on dark */
  --success:       #3F7A50;

  /* ---- type tokens ---- */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  /* ---- layout tokens ---- */
  --max-w: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(33,43,51,0.08);
  --shadow-md: 0 8px 24px rgba(33,43,51,0.12);
  --shadow-lg: 0 16px 40px rgba(33,43,51,0.18);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body { margin: 0; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

body {
  background: var(--concrete);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

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

/* ---- eyebrow / labels ---- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.4rem, 3.6vw + 1.2rem, 4.2rem); }
h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); }
h3 { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem); }

.lede {
  font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
  color: var(--steel);
  max-width: 56ch;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--rust);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline-light {
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.btn-outline-dark {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline-dark:hover { background: var(--charcoal); color: #fff; transform: translateY(-2px); }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-dark);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel-light);
  position: relative;
  padding-block: 4px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--rust);
  transition: width 200ms ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone {
  display: flex; flex-direction: column;
  font-family: var(--font-display);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav-phone span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-light);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  margin: 6px 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line-dark);
    padding: 0 24px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 260ms ease, padding 260ms ease, visibility 260ms;
  }
  .nav-links.open {
    max-height: 340px;
    padding: 8px 24px 24px;
    visibility: visible;
  }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .nav-cta { display: none; }
}

/* =========================================================================
   Tape-measure divider — signature element
   ========================================================================= */
.tape-divider {
  height: 30px;
  width: 100%;
  --tick: var(--line);
  background-color: var(--concrete);
  background-image:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, var(--rust) 0 2px, transparent 2px 40px),
    linear-gradient(var(--tick), var(--tick));
  background-size: 8px 10px, 40px 20px, 100% 1px;
  background-position: 0 bottom, 0 bottom, 0 bottom;
  background-repeat: repeat-x;
}
.tape-divider.on-dark {
  background-color: var(--charcoal);
  --tick: var(--line-dark);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  background: var(--charcoal);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(211,84,0,0.16) 0%, transparent 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding-block: 88px 76px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; margin-block: 18px 20px; }
.hero .lede { color: var(--steel-light); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-slideshow {
  background: var(--charcoal-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 550ms ease;
}
.hero-slideshow .slide.active { opacity: 1; z-index: 2; }
.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-slideshow .slide svg { width: 62%; height: 62%; margin: 19% auto; }
.hero-figure-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #fff;
  padding: 30px 16px 14px;
  background: linear-gradient(to top, rgba(15,19,23,0.75), transparent);
}

/* slideshow controls — only shown by JS when there's more than one slide */
.slide-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(15,19,23,0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease, opacity 160ms ease;
  opacity: 0.8;
}
.slide-arrow:hover, .slide-arrow:focus-visible { opacity: 1; background: rgba(15,19,23,0.8); }
.slide-arrow.prev { left: 12px; }
.slide-arrow.next { right: 12px; }
.slide-arrow svg { width: 18px; height: 18px; }

.slide-dots {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  display: flex;
  gap: 7px;
}
.slide-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.8);
  background: rgba(15,19,23,0.35);
  padding: 0;
  transition: background-color 160ms ease, transform 160ms ease;
}
.slide-dots .dot.active { background: var(--rust); border-color: var(--rust); transform: scale(1.15); }

/* page (interior) hero — shorter banner variant */
.page-hero .hero-inner { grid-template-columns: 1fr; padding-block: 56px 52px; text-align: left; }
.page-hero .lede { max-width: 62ch; }

/* =========================================================================
   Trust strip
   ========================================================================= */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 22px;
  gap: 16px;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--charcoal);
  text-transform: uppercase;
}
.trust-strip svg { width: 20px; height: 20px; color: var(--rust); flex-shrink: 0; }
@media (max-width: 760px) {
  .trust-strip ul { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   Sections generic
   ========================================================================= */
.section { padding-block: 76px; }
.section-head { max-width: 62ch; margin-bottom: 42px; }
.section-head h2 { margin-top: 14px; }
.section.on-dark { background: var(--charcoal); color: #fff; }
.section.on-dark h2, .section.on-dark h3 { color: #fff; }
.section.tight { padding-block: 56px; }
.section.on-surface { background: var(--surface); }

/* =========================================================================
   Card grid — services / values
   ========================================================================= */
.grid { display: grid; gap: 26px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--concrete);
  border-radius: var(--radius);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; color: var(--rust); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--steel); font-size: 0.98rem; }
.card-link {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rust);
}
.card-link svg { width: 14px; height: 14px; transition: transform 160ms ease; }
.card:hover .card-link svg { transform: translateX(4px); }

@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .hero-inner { grid-template-columns: 1fr !important; }
  .hero-figure { order: -1; }
}

/* =========================================================================
   Why-us checklist
   ========================================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.check-list li {
  display: flex;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list svg { width: 22px; height: 22px; color: var(--rust); flex-shrink: 0; margin-top: 2px; }
.check-list strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.02rem; }
.check-list span.desc { color: var(--steel); font-size: 0.95rem; }
@media (max-width: 780px) { .why-grid { grid-template-columns: 1fr; gap: 30px; } }

/* =========================================================================
   Stats row (about page)
   ========================================================================= */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 2vw + 1rem, 3rem);
  color: var(--rust);
  line-height: 1;
}
.stat .label {
  margin-top: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel-light);
  font-family: var(--font-display);
  font-weight: 500;
}
@media (max-width: 760px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================================
   Process steps (services page)
   ========================================================================= */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-step {
  padding: 26px 24px 0;
  border-top: 3px solid var(--rust);
  position: relative;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--line);
  line-height: 1;
}
.process-step h3 { margin-top: 6px; }
.process-step p { color: var(--steel); font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 900px) { .process-list { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  background: var(--charcoal);
  color: #fff;
  padding-block: 56px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: var(--steel-light); margin-inline: auto; margin-top: 12px; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }

/* =========================================================================
   Contact page
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.info-panel {
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
}
.info-panel h3 { color: #fff; margin-bottom: 4px; }
.info-row {
  display: flex;
  gap: 14px;
  padding-block: 16px;
  border-top: 1px solid var(--line-dark);
}
.info-row:first-of-type { margin-top: 20px; }
.info-row svg { width: 20px; height: 20px; color: var(--rust); flex-shrink: 0; margin-top: 2px; }
.info-row .k { font-family: var(--font-display); text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--steel-light); }
.info-row .v { font-weight: 600; margin-top: 2px; }
.info-row a.v:hover { color: var(--rust); }

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--charcoal);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(211,84,0,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--steel); margin-top: 4px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}
.form-status.show { display: block; }
.form-status.ok { background: #EAF3EC; color: var(--success); border: 1px solid #BFDCC5; }
.form-status.err { background: #FBEAE3; color: var(--rust-dark); border: 1px solid #F1C3AB; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--charcoal);
  color: var(--steel-light);
  padding-block: 56px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 {
  font-family: var(--font-display);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.footer-grid p { font-size: 0.92rem; line-height: 1.7; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.social-link { display: inline-flex; align-items: center; gap: 7px; }
.social-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.82rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================================================
   Scroll reveal
   ========================================================================= */
/* Content is fully visible by default (no-JS / JS-not-yet-run state).
   Only once the 'has-js' class lands on <html> do reveal elements start
   hidden and animate in — this keeps the page fully readable even if the
   script fails to load. */
.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.has-js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
}
