/* DBI Complete Building Solutions
   Layout: charcoal "shop drawing" hero, white working pages, orange used for action only. */
:root {
  --orange: #dd5402;        /* logo orange, buttons and marks */
  --orange-ink: #b04300;    /* orange for small text on light backgrounds */
  --charcoal: #3d3939;      /* logo charcoal, deepened for bands */
  --charcoal-2: #4a4545;
  --ink: #262222;
  --muted: #645d5a;
  --paper: #ffffff;
  --steel: #f4f1ee;         /* warm neutral biased toward the orange */
  --line: #ddd6d1;
  --on-dark: #f4f1ee;
  --on-dark-muted: #bdb5b0;

  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 850; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; font-stretch: 105%; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font-family: var(--f-display); font-stretch: 108%; font-weight: 750; font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.4em; border: 2px solid transparent; border-radius: 3px;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-ink); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--orange-ink); }
.on-dark .btn-ghost { color: var(--on-dark); }
.on-dark .btn-ghost:hover { color: #fff; border-color: var(--orange); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: auto; }
.brand-name { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1; }
.brand-name b { font-family: var(--f-display); font-stretch: 118%; font-weight: 900; font-size: 2.1rem; color: var(--orange); letter-spacing: 0.02em; line-height: .9; }
.brand-name span { font-family: var(--f-display); font-stretch: 110%; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; line-height: 1.2; text-transform: uppercase; color: var(--charcoal-2); white-space: nowrap; border-left: 2px solid var(--orange); padding-left: 9px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }
.nav .btn { padding: 0.6em 1.05em; font-size: 0.95rem; }
.menu-toggle {
  display: none; background: none; border: 2px solid var(--line); border-radius: 3px;
  padding: 8px 10px; font: 600 0.9rem var(--f-body); color: var(--ink); cursor: pointer;
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter-r) 20px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 16px; }
}


/* Hero */
.on-dark { background: var(--charcoal); color: var(--on-dark); }
.on-dark .eyebrow { color: #ff8a47; }
.on-dark .lede { color: var(--on-dark-muted); }
.hero {
  padding-block: clamp(56px, 8vw, 104px); position: relative; overflow: hidden;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(90deg, rgba(24,21,21,.78) 0%, rgba(24,21,21,.5) 45%, rgba(24,21,21,.18) 100%),
    url("photos/steel-1.jpg");
  background-size: cover; background-position: center 40%;
}
@media (max-width: 900px) {
  .hero { background-image: linear-gradient(180deg, rgba(24,21,21,.72), rgba(24,21,21,.55)), url("photos/steel-1-sm.jpg"); }
}
.hero::before { display: none; }
.hero h1, .hero .lede, .hero .eyebrow, .hero .drawing-caption { text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero .lede { color: #e6e0db; }
.hero::before { /* faint drawing grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-drawing { min-width: 0; }
.hero-drawing svg { width: 100%; height: auto; display: block; }
.plan-sheet { box-shadow: 0 20px 44px rgba(0,0,0,.4); border-radius: 2px; }
.drawing-caption { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 10px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 10px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.page-hero { padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.page-hero .hero-copy { max-width: 760px; }

/* Proof strip */
.proof { background: var(--orange); color: #fff; }
.proof ul { list-style: none; margin: 0; padding-block: 18px; display: grid; grid-template-columns: repeat(4, auto); gap: 12px 24px; justify-content: space-between; align-items: center; }
@media (max-width: 760px) { .proof ul { grid-template-columns: repeat(2, auto); } }
.proof li { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: clamp(0.8rem, 1.25vw, 1rem); white-space: nowrap; min-width: 0; }
.proof b { font-family: var(--f-display); font-stretch: 118%; font-weight: 900; font-size: clamp(1.05rem, 1.9vw, 1.5rem); line-height: 1; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.alt { background: var(--steel); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }

/* Building type cards */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } }
.type { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--charcoal); padding: 24px 22px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.type-fig { margin: -24px -22px 4px; aspect-ratio: 1 / 1; overflow: hidden; background: var(--steel); border-bottom: 1px solid var(--line); }
.type-fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.type p { color: var(--muted); font-size: 0.98rem; }
.spec { font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.04em; color: var(--charcoal-2); border-top: 1px dashed var(--line); padding-top: 10px; }
.spec b { color: var(--orange-ink); font-weight: 600; }


/* Service list */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); background: var(--paper); transition: background .15s; min-width: 0; }
.service:hover { background: var(--steel); color: var(--ink); }
.service p { color: var(--muted); font-size: 0.98rem; }
.service .more { font-weight: 700; color: var(--orange-ink); font-size: 0.95rem; }
.service-tag { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding: 0 24px 0 0; display: grid; gap: 10px; align-content: start; position: relative; }
.steps li::before {
  content: counter(step); font-family: var(--f-display); font-stretch: 118%; font-weight: 900; font-size: 1.1rem;
  width: 44px; height: 44px; display: grid; place-items: center; background: var(--orange); color: #fff; border-radius: 2px;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 56px; right: 12px; border-top: 2px dashed rgba(255,255,255,.25); }
.steps li:last-child::after { display: none; }
@media (max-width: 900px) { .steps li::after { display: none; } }
.steps p { color: var(--on-dark-muted); font-size: 0.98rem; }

/* Area */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .area-grid { grid-template-columns: 1fr; } }
.towns { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { border: 1px solid var(--line); background: var(--paper); padding: 5px 12px; border-radius: 2px; font-size: 0.92rem; font-weight: 600; }
.radius svg { width: 100%; max-width: 440px; height: auto; margin-inline: auto; display: block; }

/* CTA band */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(40px, 6vw, 64px); }
.cta-band h2 { max-width: 22ch; }
.phone-big { font-family: var(--f-display); font-stretch: 112%; font-weight: 850; font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: #fff; text-decoration: none; letter-spacing: 0.01em; }
.phone-big:hover { color: #fff; text-decoration: underline; }

/* Reviews */
.reviews { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.review-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* Detail sections (services page) */
.detail { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 56px); padding-block: 48px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.detail:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; gap: 16px; } }
.detail-head { display: grid; gap: 10px; align-content: start; }
.detail-body { display: grid; gap: 16px; min-width: 0; max-width: 68ch; align-content: start; }
.detail-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.detail-body li::marker { color: var(--orange); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { color: var(--on-dark); border: 1px solid rgba(255,255,255,.3); padding: 6px 12px; border-radius: 2px; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.jump a:hover { border-color: var(--orange); color: #fff; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--charcoal); color: var(--on-dark); font-family: var(--f-display); font-stretch: 108%; font-weight: 700; }
.compare tbody th { font-weight: 700; white-space: nowrap; }
.compare tbody tr:nth-child(even) { background: var(--steel); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 18px; max-width: 64ch; }
.facts { border: 1px solid var(--line); background: var(--steel); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .values { grid-template-columns: 1fr; } }
.values div { display: grid; gap: 8px; border-top: 3px solid var(--orange); padding-top: 16px; }
.values p { color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: grid; gap: 22px; }
.contact-item { display: grid; gap: 4px; }
.contact-item .label { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item span.val { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.contact-item a:hover { color: var(--orange-ink); text-decoration: underline; }
form.quote { background: var(--steel); border: 1px solid var(--line); padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid #c9c1bb; border-radius: 3px; padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); outline: 2px solid rgba(221,84,2,.25); outline-offset: 0; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { font-weight: 600; color: var(--orange-ink); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid img { width: 150px; }
.footer-grid h3 { color: var(--on-dark); font-size: 0.85rem; font-family: var(--f-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #ff8a47; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Mobile call bar */
.call-bar { display: none; }
@media (max-width: 700px) {
  .call-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--ink);
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
  }
  .call-bar .btn { padding: 0.75em 0.5em; }
  body { padding-bottom: 76px; }
}

/* Photos */
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.section-head-row > div { display: grid; gap: 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.shot, .detail-photo { margin: 0; display: grid; gap: 8px; min-width: 0; }
.shot a, .detail-photo a { display: block; overflow: hidden; border-radius: 2px; background: var(--steel); }
.shot img, .detail-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.shot a:hover img, .detail-photo a:hover img { transform: scale(1.03); }
.shot figcaption, .detail-photo figcaption { font-size: 0.88rem; color: var(--muted); }
.gallery-feature .shot:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-feature .shot:first-child img { aspect-ratio: auto; height: 100%; min-height: 0; }
.gallery-feature .shot:first-child a { height: 100%; }
@media (max-width: 860px) { .gallery-feature .shot:first-child { grid-column: span 2; grid-row: auto; } .gallery-feature .shot:first-child img { aspect-ratio: 4 / 3; height: auto; } }
@media (max-width: 520px) { .gallery-feature .shot:first-child { grid-column: auto; } }
.detail-head .detail-photo { margin-top: 8px; }
.gallery-wide .shot:first-child { grid-column: 1 / -1; }
.gallery-wide .shot:first-child img { aspect-ratio: 21 / 9; }
.hero .drawing-caption { color: #e6e0db; }

