:root {
  --ink: #0b0c0d;
  --ink-soft: #151719;
  --paper: #f1eee7;
  --muted: #a9aaab;
  --steel: #2b2e31;
  --orange: #e65f1b;
  --line: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 5vw;
  background: rgba(11,12,13,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.header-logo { display: block; width: 245px; height: 58px; object-fit: cover; object-position: center; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { color: #d7d5d0; font-size: .9rem; font-weight: 600; text-decoration: none; }
.site-nav a:hover { color: white; }
.site-nav .nav-cta { padding: .7rem 1rem; color: white; border: 1px solid var(--orange); }
.menu-button { display: none; border: 1px solid var(--line); background: transparent; color: white; padding: .55rem .8rem; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  overflow: hidden;
  padding: 7rem 7vw;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, rgba(7,8,9,.94) 0%, rgba(7,8,9,.78) 48%, rgba(7,8,9,.60) 100%), url("assets/rye-colorado-landscape.webp");
  background-size: cover;
  background-position: center 44%;
  background-repeat: no-repeat;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to right, #000, transparent 75%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -20%;
  width: 58%;
  height: 140%;
  background: linear-gradient(135deg, transparent 45%, rgba(230,95,27,.13) 45.2%, rgba(230,95,27,.13) 45.9%, transparent 46.1%);
  transform: skewX(-8deg);
}
.hero-content, .hero-logo { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 1.2rem; color: var(--orange); font: 700 .83rem/1 "Barlow Condensed", sans-serif; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; }
h1 { margin-bottom: 1.6rem; font-size: clamp(4.8rem, 8vw, 8.5rem); line-height: .82; letter-spacing: -.045em; }
h1 span { color: transparent; -webkit-text-stroke: 1px var(--paper); }
.hero-copy { max-width: 620px; color: #c4c2bd; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.3rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: .8rem 1.25rem; border: 1px solid transparent; cursor: pointer; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--orange); color: white; }
.button-primary:hover { background: #ff6e23; }
.button-secondary { border-color: rgba(255,255,255,.35); background: transparent; color: white; }
.hero-logo { justify-self: end; width: min(700px, 100%); border: 1px solid var(--line); background: #0b0c0d; transform: rotate(-1deg); box-shadow: 24px 24px 0 rgba(230,95,27,.06); }
.hero-logo img { display: block; width: 100%; height: auto; }

.section { padding: 7rem 7vw; }
.services-section {
  background-image: linear-gradient(90deg, rgba(8,9,10,.96) 0%, rgba(8,9,10,.80) 52%, rgba(8,9,10,.70) 100%), url("assets/welding-in-progress.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-heading { max-width: 760px; margin-bottom: 3rem; }
h2 { margin-bottom: 1rem; font-size: clamp(2.8rem, 5vw, 5rem); line-height: .95; letter-spacing: -.025em; }
h3 { margin-bottom: .7rem; font-size: 1.9rem; line-height: 1; }
.section-heading > p:last-child, .about-copy > p, .estimate-intro > p { color: #aaa9a5; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 270px; padding: 2.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10,11,12,.78); backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.service-card:hover { background: rgba(21,23,25,.96); transform: translateY(-4px); }
.service-number { display: block; margin-bottom: 3.6rem; color: var(--orange); font: 700 .85rem "Barlow Condensed", sans-serif; letter-spacing: .15em; }
.service-card p { color: #9e9e9b; font-size: .93rem; }
.scope-note { margin-top: 1.4rem; color: #aaa; font-size: .8rem; }

.split-section { display: block; background: #101214; }
.about-copy { max-width: 820px; margin: 0 auto; }
.steel-panel { position: relative; min-height: 490px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, #25282a, #121415); }
.steel-panel::before, .steel-panel::after { content: ""; position: absolute; width: 180%; height: 1px; background: rgba(255,255,255,.1); transform: rotate(-32deg); }
.steel-panel::after { transform: rotate(32deg); }
.steel-panel strong { position: relative; z-index: 1; font: 800 clamp(4rem, 8vw, 7rem)/.9 "Barlow Condensed", sans-serif; letter-spacing: -.035em; text-align: center; text-transform: uppercase; }
.steel-panel small { position: relative; z-index: 1; font: 600 1rem "Barlow Condensed", sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.steel-line { width: 160px; height: 8px; margin-bottom: 1rem; background: var(--orange); }
.check-list { padding: 0; margin: 2rem 0 0; list-style: none; }
.check-list li { padding: .8rem 0 .8rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 10px; height: 3px; background: var(--orange); }

.area-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 5vw;
  align-items: center;
  min-height: 560px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #101214, #0b0c0d);
}
.area-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.26); border-left: 1px solid rgba(255,255,255,.26); backdrop-filter: blur(5px); }
.area-list span { padding: 1.7rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 600 1.5rem "Barlow Condensed", sans-serif; text-transform: uppercase; }

.estimate-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; background: var(--paper); color: var(--ink); }
.estimate-intro > p { color: #515355; }
.contact-details { margin-top: 2.5rem; border-top: 1px solid #c8c4bd; }
.contact-details p { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; margin: 0; border-bottom: 1px solid #c8c4bd; }
.contact-details span { color: #717171; }
.estimate-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: 2.2rem; background: white; box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.estimate-form label { display: grid; gap: .45rem; font: 600 .83rem Inter, sans-serif; }
.estimate-form label:nth-child(n+3), .estimate-form .button, .form-note { grid-column: 1 / -1; }
input, textarea { width: 100%; padding: .9rem 1rem; border: 1px solid #cbc9c4; border-radius: 0; background: #f9f8f5; color: #151515; }
input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.form-note { margin: 0; color: #6b6b68; font-size: .78rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem; padding: 2.2rem 5vw; border-top: 1px solid var(--line); color: #8d8e8f; font-size: .78rem; }
.footer-brand { width: 220px; height: 52px; overflow: hidden; }
.footer-logo { display: block; width: 220px; height: 92px; object-fit: cover; object-position: center; }

dialog { width: min(640px, calc(100% - 2rem)); padding: 2.2rem; border: 1px solid #3a3a3a; background: #111315; color: var(--paper); }
dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(3px); }
dialog textarea { margin: 1rem 0; background: #f5f3ee; }
.dialog-close { position: absolute; top: .8rem; right: 1rem; border: 0; background: transparent; color: white; cursor: pointer; font-size: 2rem; }
.dialog-actions { display: flex; gap: .8rem; }

@media (max-width: 950px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem 5vw 1.5rem; background: #0d0e0f; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 4rem; padding-top: 6rem; }
  .hero-logo { justify-self: start; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .split-section, .area-section, .estimate-section { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: .3rem; }
}

@media (max-width: 580px) {
  .site-header { min-height: 68px; }
  .site-nav { top: 68px; }
  .header-logo { width: 205px; height: 50px; }
  .hero, .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  h1 { font-size: clamp(3rem, 15.5vw, 3.55rem); }
  .hero-content { min-width: 0; }
  .hero-copy { max-width: 100%; font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-logo { width: 100%; }
  .service-grid, .area-list { grid-template-columns: 1fr; }
  .service-card { min-height: 230px; }
  .estimate-form { grid-template-columns: 1fr; padding: 1.3rem; }
  .estimate-form label { grid-column: 1 / -1; }
  .contact-details p { flex-direction: column; gap: .2rem; }
  .dialog-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
