/* site.css — the layout for every page. Uses ONLY the names in tokens.css.
   To change a color, font, or spacing, edit tokens.css, not this file. */

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

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

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

body {
  margin: 0;
  background: var(--iron);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--call-bar-height); /* room for the phone call bar */
}

/* ---- Type ----
   Display headings are engraved chrome caps, like BACKBONE on the logo. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 var(--space-2);
  text-wrap: balance;
}
h1, h2 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chrome-solid);                  /* fallback if clip-text is unsupported */
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  width: fit-content;                          /* the gradient spans the words, not the row */
  max-width: 100%;
}
h1 { font-size: var(--size-1); }
h2 { font-size: var(--size-2); }
h3 { font-size: var(--size-3); font-weight: 700; line-height: 1.2; color: var(--ink); }
p  { margin: 0 0 var(--space-2); max-width: var(--measure); }
a  { color: inherit; }
a:hover { color: var(--chrome-hi); }
img, svg { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--chrome-solid); outline-offset: 3px; }
.lead { font-size: 1.2rem; color: var(--ink); }

/* Eyebrow: the short line above a heading, set like EST 2026 on the logo. */
.eyebrow {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: var(--size-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

/* The twin rails: two thin silver lines with a gap, lifted from the logo.
   They sit under every section heading and above the footer's license line. */
.rails {
  height: calc(2px + var(--rail-gap));
  width: 96px;
  margin: 0 0 var(--space-3);
  background:
    linear-gradient(90deg, var(--chrome-hi), var(--chrome-lo)) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, var(--chrome-hi), var(--chrome-lo)) 0 100% / 100% 1px no-repeat;
}

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
@media (min-width: 900px) {
  .wrap { padding-left: var(--gutter-wide); padding-right: var(--gutter-wide); }
}

/* ---- Buttons: two kinds only. "solid" = chrome, the main action. "line" = outlined. */
.btn {
  display: inline-block;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-small);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  line-height: 1;
  color: var(--ink);
  background: transparent;
  transition: filter 120ms ease, background-color 120ms ease, border-color 120ms ease;
}
.btn.solid { background: var(--chrome); border-color: transparent; color: var(--on-chrome); }
.btn.solid:hover { filter: brightness(1.1); color: var(--on-chrome); }
.btn.line:hover { border-color: var(--chrome-solid); background: var(--plate-2); color: var(--ink); }

/* ---- Header ---- */
.site-header { background: var(--iron); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 88px; }
.site-header .logo { display: block; line-height: 0; }
.site-header .logo img { height: var(--logo-header); width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-3); }
.site-nav a {
  text-decoration: none; font-family: var(--font-condensed); font-weight: 600; font-size: 1.15rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  padding: 0.4em 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); }
/* the current page turns silver with a chrome underline (set by data-page on <body>) */
body[data-page="index"]    .site-nav a[href="./index.html"],
body[data-page="services"] .site-nav a[href="./services.html"],
body[data-page="projects"] .site-nav a[href="./projects.html"],
body[data-page="about"]    .site-nav a[href="./about.html"],
body[data-page="reviews"]  .site-nav a[href="./reviews.html"],
body[data-page="contact"]  .site-nav a[href="./contact.html"] { color: var(--ink); border-bottom-color: var(--chrome-solid); }
.site-header .header-call { display: none; }
@media (max-width: 760px) {
  .site-nav ul { gap: 0.7rem; flex-wrap: wrap; }
  .site-nav a { font-size: 0.95rem; letter-spacing: 0.04em; }
  .site-header .wrap { flex-wrap: wrap; padding-top: var(--space-2); padding-bottom: var(--space-2); }
}
@media (min-width: 761px) {
  .site-header .header-call { display: inline-block; }
}

/* ---- Sections ----
   Iron background by default; "on-plate" bands step up to the plate color
   with a hairline top and bottom, so the page reads as stacked steel plates. */
.section { padding: var(--space-5) 0; }
.section.on-plate { background: var(--plate); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.on-plate + .section.on-plate { border-top: 0; }
/* "tight" pulls a section up under the one before it (a list right after its heading) */
.section.tight { padding-top: 0; }

/* ---- Hero ----
   Centered: the logo, then the headline between two rails, then the promise
   and the two buttons. The logo is the brand; nothing competes with it. */
.hero { padding: var(--space-4) 0 var(--space-5); text-align: center; overflow: hidden; }
.hero .wrap { display: grid; justify-items: center; gap: var(--space-3); }
.hero .hero-logo { width: min(82%, var(--logo-hero-max)); height: auto; margin: 0 auto; }
.hero .eyebrow { margin: 0; }
.hero-title { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-3); width: 100%; }
.hero-title h1 { margin: 0; }
.hero-title .rail {
  height: calc(2px + var(--rail-gap)); min-width: 24px;
  background:
    linear-gradient(90deg, transparent, var(--chrome-mid)) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, var(--chrome-mid)) 0 100% / 100% 1px no-repeat;
}
.hero-title .rail:last-child { transform: scaleX(-1); }
.hero .lead { margin: 0 auto; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
@media (max-width: 559px) {
  .hero-title { grid-template-columns: 1fr; gap: var(--space-2); }
  .hero-title .rail { width: 96px; margin: 0 auto; transform: none; }
  .hero-title .rail:last-child { transform: scaleX(-1); }
}

/* ---- Cards (services, why) ---- */
.grid { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--plate); border: 1px solid var(--line); padding: var(--space-3); border-radius: var(--radius); }
.on-plate .card { background: var(--iron); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-family: var(--font-condensed); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--chrome-solid); }
.card a.more:hover { color: var(--chrome-hi); }

/* icon tile: a small square of plate with a silver line icon, top of a card */
.icon-tile {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--plate-2); border: 1px solid var(--line); border-radius: var(--radius-small);
  color: var(--chrome-solid); margin-bottom: var(--space-2);
}
.icon-tile svg { width: 24px; height: 24px; }

/* checklist: what a service includes, each line with a chrome check */
.checks { list-style: none; margin: 0 0 var(--space-2); padding: 0; display: grid; gap: 0.45rem; }
.checks li { position: relative; padding-left: 1.6rem; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 1rem; height: 1rem;
  background: var(--chrome);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* photo placeholders: where JD's real project photos go */
.photo {
  margin: 0;
  background:
    repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 14px),
    var(--plate);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-family: var(--font-condensed); font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: var(--space-2);
  border-radius: var(--radius);
}
.on-plate .photo { background-color: var(--iron); }

/* work tiles: a photo with its caption under it (gallery and recent work) */
.work { display: grid; gap: var(--space-1); align-content: start; }
.work .work-kind { font-family: var(--font-condensed); font-size: var(--size-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: var(--space-1); }
.work h3 { margin: 0; font-size: 1.15rem; }
.work p { margin: 0; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); }

/* ---- Steps (a real sequence: how a project goes) ---- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); counter-reset: step; }
.steps li { position: relative; padding-left: 3.6rem; max-width: var(--measure); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: var(--chrome); color: var(--on-chrome);
  font-family: var(--font-display); font-weight: 900; font-size: 1.3rem;
  border-radius: var(--radius-small);
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { color: var(--muted); }

/* ---- Trust row: licensed / bonded / insured ---- */
.trust { display: grid; gap: var(--space-2); }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust div { border-left: 1px solid var(--chrome-solid); padding-left: var(--space-2); color: var(--muted); }
.trust strong { display: block; font-family: var(--font-condensed); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.pending { color: var(--muted); }

/* ---- Reviews: quote cards ---- */
.reviews { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .reviews.three { grid-template-columns: repeat(3, 1fr); } }
.review {
  margin: 0; background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); position: relative;
}
.on-plate .review { background: var(--iron); }
.review::before {
  content: "\201C"; position: absolute; top: 0.2rem; left: var(--space-3);
  font-family: var(--font-display); font-size: 3rem; line-height: 1;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--chrome-solid);
}
.review p { margin: 1.6rem 0 var(--space-2); }
.review cite { display: block; font-style: normal; color: var(--muted); font-size: var(--size-small); }

/* ---- Forms (inert in the mock) ---- */
.form-card { background: var(--plate); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
form.stack { display: grid; gap: var(--space-2); }
label { display: grid; gap: 0.35rem; font-weight: 600; color: var(--ink); }
input, select, textarea {
  font: inherit; padding: 0.7em 0.8em; border: 1px solid var(--line-strong);
  border-radius: var(--radius-small); background: var(--iron); color: var(--ink); width: 100%;
  color-scheme: dark;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--chrome-solid); outline: none; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: var(--size-small); color: var(--muted); }
.form-row { display: grid; gap: var(--space-2); }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* contact page: "talk to us" beside the form */
.contact-split { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .contact-split { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.contact-lines { display: grid; gap: var(--space-3); align-content: start; }
.contact-lines .line-item strong { display: block; font-family: var(--font-condensed); font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-lines .line-item span, .contact-lines .line-item a { font-size: 1.2rem; }
.contact-lines .line-item a { text-decoration-color: var(--chrome-lo); }

/* ---- Footer ---- */
.site-footer { background: var(--plate); border-top: 1px solid var(--line); color: var(--muted); padding: var(--space-4) 0; font-size: var(--size-small); }
.site-footer .wrap { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer a { color: var(--ink); }
.site-footer .ccb strong { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); font-size: 1rem; }
.site-footer .ccb .rails { margin-bottom: var(--space-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.site-footer p { max-width: none; }
.site-footer .footer-logo { height: 44px; width: auto; margin-top: var(--space-2); }

/* ---- Sticky call bar (phones): chrome on black ---- */
.call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--call-bar-height);
  background: var(--iron); border-top: 1px solid var(--chrome-solid);
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-condensed); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; z-index: 10;
  color: var(--chrome-solid);
}
.call-bar span { background: var(--chrome); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.call-bar svg { width: 24px; height: 24px; color: var(--chrome-solid); }
@media (min-width: 761px) { .call-bar { display: none; } body { padding-bottom: 0; } }
