/* Dunedin Polyaspartic — shared stylesheet
   Trade-signage system: condensed display lettering, concrete field,
   full-bleed photography, square high-contrast controls. */

:root {
  /* Field */
  --ink: #241a15;
  --ink-soft: #5a4a41;
  --slab: #ece5dc;
  --chalk: #fbf6f0;
  --rule: #d6c7b8;

  /* Site accent family (rust / terracotta) */
  --rust: #8f3d21;
  --rust-ink: #5e2814;
  --terracotta: #b5502e;
  --terracotta-pale: #f3ddd0;

  /* Job-site marker — seam, step ticks and eyebrow ticks only */
  --marker: #d97a4e;

  --max-width: 1180px;
  --gutter: 24px;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--slab);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

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

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

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

/* ---------- Display type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
  color: var(--ink);
  margin: 0 0 16px;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 8px;
}

p { margin: 0 0 18px; max-width: 68ch; }

ul, ol { max-width: 68ch; padding-left: 22px; }
li { margin-bottom: 10px; }

strong { font-weight: 700; }

/* Mono utility label — eyebrows, spec values, captions */

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--marker);
  flex: none;
}

.caption {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 10px 0 0;
}

/* ---------- Top bar + header ---------- */

.topbar {
  background: var(--ink);
  color: #a89184;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.site-header { background: var(--rust); color: #fff; }

.site-header .container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 32px;
  padding-right: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding: 18px 0;
}

.brand:hover { color: #fff; }
.brand-icon { flex: none; display: block; }

.main-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0 22px;
}

.main-nav a {
  display: flex;
  align-items: center;
  color: #ecd8cb;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  padding: 4px 0;
}

.main-nav a:hover { color: #fff; }

.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--marker);
}

.nav-cta {
  background: var(--marker);
  color: var(--ink) !important;
  padding: 0 26px !important;
  border-bottom: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.09em !important;
}

.nav-cta:hover { background: #e69769; }

/* ---------- Buttons: painted metal plate, no radius ---------- */

.btn {
  display: inline-block;
  background: var(--marker);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.22rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 19px 34px 17px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--rust-ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.btn:hover {
  color: var(--ink);
  background: #e69769;
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--rust-ink);
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--rust-ink);
}

.btn-dark {
  background: var(--rust);
  color: #fff;
  box-shadow: 0 4px 0 var(--rust-ink);
}

.btn-dark:hover {
  background: #a4471f;
  color: #fff;
  box-shadow: 0 2px 0 var(--rust-ink);
}

.btn-dark:active { box-shadow: 0 0 0 var(--rust-ink); }

.textlink {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--ink);
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(24, 16, 11, 0.92) 0%,
    rgba(24, 16, 11, 0.72) 38%,
    rgba(24, 16, 11, 0.18) 78%,
    rgba(24, 16, 11, 0.1) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 56px;
  width: 100%;
}

.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 20px; }

.hero .eyebrow { color: #f0c19e; }

.hero-lede {
  color: #e8e0d8;
  font-size: 1.12rem;
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.hero-actions .textlink { color: #fff; }

/* Interior page hero — shorter, same construction */

.page-hero { min-height: 380px; }
.page-hero .container { padding-top: 76px; padding-bottom: 44px; }
.page-hero h1 { max-width: 20ch; }
.page-hero .hero-lede { margin-bottom: 0; }

/* Flat variant for pages without a lead photo */

.page-hero-flat {
  background: var(--rust);
  color: #fff;
  padding: 62px 0 54px;
}

.page-hero-flat h1 { color: #fff; }
.page-hero-flat .eyebrow { color: #f0c19e; }
.page-hero-flat .hero-lede { color: #ecdccf; margin-bottom: 0; }

/* ---------- Spec strip ---------- */

.specstrip { background: var(--ink); color: #fff; }

.specstrip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: #372a22;
  padding: 0;
  max-width: none;
}

.spec {
  background: var(--ink);
  padding: 22px 26px;
}

.spec dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #96837a;
  margin-bottom: 7px;
}

.spec dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.32rem;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Sections ---------- */

main { padding: 0 0 8px; }

.section { padding: 62px 0; border-top: 3px solid var(--ink); }
.section:first-child { border-top: none; }
.section-pale { background: var(--chalk); }

/* Two-column: sticky label rail + prose */

.section-split .container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.section-rail { position: sticky; top: 28px; }
.section-rail h2 { margin-bottom: 0; }
.section-body > :last-child { margin-bottom: 0; }

/* ---------- Catalog rows (replaces the card grid) ---------- */

.rows { border-top: 2px solid var(--ink); margin-top: 32px; }

.row {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 2px solid var(--ink);
}

.row-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  filter: saturate(0.92);
}

.row h3 { margin-bottom: 10px; }
.row h3 a { color: var(--ink); text-decoration: none; }
.row h3 a:hover { color: var(--terracotta); }
.row p { margin-bottom: 0; }

.row-go {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid var(--marker);
  padding-bottom: 3px;
}

.row-go:hover { color: var(--terracotta); }

/* Plain feature rows — no photo column */

.row-plain { grid-template-columns: 240px 1fr; }
.row-plain h3 { margin-bottom: 0; }

/* ---------- Numbered process ladder ---------- */

.ladder { counter-reset: step; margin-top: 34px; padding: 0; list-style: none; max-width: none; }

.ladder li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 26px;
  padding: 22px 0;
  border-top: 2px solid var(--rule);
  margin: 0;
}

.ladder li:last-child { border-bottom: 2px solid var(--rule); }

.ladder li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--rust);
  border-top: 4px solid var(--marker);
  padding-top: 8px;
  line-height: 1;
}

.ladder li > * { margin: 0; }
.ladder strong { display: block; font-size: 1.08rem; }

/* ---------- Signature: diagonal slab split ---------- */

.split {
  position: relative;
  height: clamp(300px, 42vw, 480px);
  background: var(--ink);
  overflow: hidden;
}

.split img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-bare { clip-path: polygon(0 0, 58% 0, 42% 100%, 0 100%); filter: saturate(0.4) contrast(1.05); }
.split-coated { clip-path: polygon(58% 0, 100% 0, 100% 100%, 42% 100%); }

.split-seam {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.split-seam::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 4px;
  height: 140%;
  background: var(--marker);
  transform: translateX(-50%) rotate(8.5deg);
  transform-origin: center;
}

.split-label {
  position: absolute;
  bottom: 22px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(24, 16, 11, 0.82);
  padding: 8px 14px;
}

.split-label-a { left: 22px; }
.split-label-b { right: 22px; }

/* ---------- Photography ---------- */

.full-photo { width: 100%; height: clamp(260px, 34vw, 430px); object-fit: cover; }

.photo-inline {
  width: 100%;
  height: clamp(220px, 30vw, 340px);
  object-fit: cover;
  margin: 28px 0 8px;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--rust);
  color: #fff;
  padding: 58px 0;
  border-top: 6px solid var(--marker);
}

.cta-band h2 { color: #fff; }
.cta-band p { color: #ecdccf; font-size: 1.08rem; margin-bottom: 28px; }
.cta-band .eyebrow { color: #f0c19e; }

/* ---------- FAQ ---------- */

.faq-list { border-top: 2px solid var(--ink); margin-top: 30px; }

.faq-item {
  border-bottom: 2px solid var(--rule);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.faq-item h3 { margin: 0; color: var(--rust); }
.faq-item p { margin: 0; }
.faq-item p + p { margin-top: 12px; }

/* ---------- Service area ---------- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  margin-top: 32px;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
}

.area-card {
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 24px 26px;
  background: var(--chalk);
}

.area-card h3 { color: var(--rust); margin-bottom: 8px; }
.area-card p { margin: 0; font-size: 0.96rem; }

/* ---------- Comparison table ---------- */

.table-scroll { overflow-x: auto; margin-top: 32px; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  min-width: 620px;
}

table.compare th,
table.compare td {
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
}

table.compare thead th {
  background: var(--rust);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

table.compare tbody td:first-child {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rust);
  background: var(--chalk);
  white-space: nowrap;
}

table.compare tbody td { font-size: 0.96rem; }
table.compare tbody tr:nth-child(even) td:not(:first-child) { background: var(--chalk); }

/* ---------- Form ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}

form.lead-form {
  background: var(--chalk);
  border: 3px solid var(--ink);
  padding: 30px;
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--marker);
  outline-offset: 0;
  border-color: var(--ink);
}

.form-field textarea { resize: vertical; min-height: 130px; }

#form-status {
  margin: 16px 0 0;
  font-weight: 700;
  font-size: 0.96rem;
}

#form-status.success { color: #1c6b3f; }
#form-status.error { color: #a3382c; }

.form-note {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 16px 0 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #ab9a90;
  padding: 52px 0 40px;
  border-top: 6px solid var(--rust);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  padding-bottom: 30px;
  border-bottom: 2px solid #372a22;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.footer-inner p { margin: 0; max-width: 40ch; font-size: 0.96rem; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
}

.footer-links a {
  color: #ecd8cb;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-links a:hover { color: #fff; text-decoration: underline; }

.footer-note {
  margin: 24px 0 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #8a7a70;
  max-width: 78ch;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .section-split .container { grid-template-columns: 1fr; gap: 22px; }
  .section-rail { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .row { grid-template-columns: 200px 1fr; }
  .row-go { grid-column: 2; justify-self: start; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .site-header .container { padding-right: var(--gutter); }
  .brand { font-size: 1.35rem; padding: 14px 0; }

  .main-nav {
    width: 100%;
    gap: 0 18px;
    padding-bottom: 12px;
  }

  .main-nav a { padding: 6px 0; font-size: 0.78rem; }

  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 0 !important;
    margin-top: 6px;
  }

  .hero { min-height: 480px; }
  .hero .container { padding-top: 64px; padding-bottom: 40px; }
  .page-hero { min-height: 320px; }
  .page-hero .container { padding-top: 52px; padding-bottom: 34px; }

  .section { padding: 46px 0; }

  .row, .row-plain { grid-template-columns: 1fr; gap: 16px; }
  .row-photo { height: 200px; }
  .row-go { grid-column: 1; }

  .ladder li { grid-template-columns: 56px 1fr; gap: 18px; }
  .ladder li::before { font-size: 1.2rem; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }

  .split { height: 260px; }
  .split-label { bottom: 14px; font-size: 0.66rem; padding: 6px 10px; }
  .split-label-a { left: 14px; }
  .split-label-b { right: 14px; }
}

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