/* SRJ Metal Works — shared styles
   Palette: spun aluminum and copper. Type: Archivo (wide cut for headings, echoing the logo). */

:root {
  --graphite: #1F2326;
  --graphite-2: #2A2F33;
  --steel: #5E666D;
  --aluminum: #C9CED3;
  --mill: #F3F4F5;
  --white: #FFFFFF;
  --copper: #A4572A;
  --copper-deep: #8A4520;
  --copper-light: #E0A27C;

  --text: var(--graphite);
  --text-muted: #4D545A;
  --text-on-dark: #F3F4F5;
  --text-on-dark-muted: #B9BFC5;
  --line: #DADDE0;
  --line-dark: #3A4045;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: 125%;

  --radius-sm: 4px;
  --radius-lg: 20px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);

  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a { color: var(--copper-deep); text-underline-offset: 3px; }
a:hover { color: var(--copper); }

:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--copper-light); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--graphite); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3 { font-stretch: var(--wide); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.4vw, 4.25rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--text-muted); }
.on-dark .lead { color: var(--text-on-dark-muted); }
.kicker { font-weight: 600; color: var(--copper-deep); margin-bottom: 0.75rem; }
.on-dark .kicker { color: var(--copper-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 700; font-size: 1rem; font-stretch: 112%;
  text-decoration: none; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out);
}
.btn-primary { background: var(--copper); color: var(--white); }
.btn-primary:hover { background: var(--copper-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn-ghost:hover { background: var(--graphite); color: var(--white); }
.on-dark .btn-ghost { color: var(--white); border-color: var(--aluminum); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--graphite); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 132px; height: auto; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; font: inherit; font-weight: 600;
  background: transparent; border: 2px solid var(--graphite); border-radius: var(--radius-sm); color: var(--graphite); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  display: block; padding: 10px 12px; color: var(--graphite); text-decoration: none; font-weight: 600; font-size: 0.975rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--copper-deep); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--copper); }
.site-nav .btn { margin-left: 12px; min-height: 44px; padding: 10px 18px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 0; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--copper-deep); }
  .site-nav .btn { margin: 16px 0 0; width: 100%; }
}

/* ---------- Hero (home) ---------- */
.hero-shell { padding: 12px 12px 0; }
.hero {
  position: relative; overflow: hidden;
  background: var(--graphite); color: var(--text-on-dark);
  border-radius: var(--radius-lg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); min-height: min(640px, 78vh); }
.hero-copy { padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { color: var(--white); max-width: 14ch; }
.hero-copy .lead { max-width: 46ch; margin-bottom: 2rem; }
.hero-media { position: relative; min-height: 320px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 35%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--graphite) 0%, rgba(31, 35, 38, 0) 28%);
}

.spec-bar { border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec-bar div { padding: 22px clamp(20px, 3vw, 36px); border-left: 1px solid var(--line-dark); }
.spec-bar div:first-child { border-left: 0; }
.spec-bar dt { font-size: 0.9rem; color: var(--text-on-dark-muted); margin-bottom: 4px; }
.spec-bar dd { margin: 0; font-weight: 700; font-stretch: var(--wide); font-size: 1.15rem; color: var(--white); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; min-height: 300px; }
  .hero-media::after { background: linear-gradient(0deg, var(--graphite) 0%, rgba(31, 35, 38, 0) 45%); }
  .spec-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-bar div:nth-child(3) { border-left: 0; }
  .spec-bar div:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--graphite); color: var(--text-on-dark); border-radius: var(--radius-lg); padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 72px); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.6vw, 3.5rem); max-width: 18ch; }
.page-hero .lead { max-width: 56ch; margin-bottom: 0; }
.page-hero.has-media { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 40px; align-items: center; padding-right: clamp(24px, 3vw, 40px); }
.page-hero.has-media img { border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .page-hero.has-media { grid-template-columns: 1fr; } .page-hero.has-media img { aspect-ratio: 16 / 10; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.bg-mill { background: var(--mill); }
.bg-dark { background: var(--graphite); color: var(--text-on-dark); }
.bg-dark h2, .bg-dark h3 { color: var(--white); }

/* Intro split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Capability panels ---------- */
.capabilities { display: grid; gap: 24px; }
.cap-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--graphite); color: var(--text-on-dark); border-radius: 12px; overflow: hidden;
}
.cap-panel:nth-child(even) .cap-media { order: -1; }
.cap-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.cap-body h3 { color: var(--white); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cap-body p { color: var(--text-on-dark-muted); }
.cap-media { position: relative; min-height: 320px; }
.cap-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .cap-panel { grid-template-columns: 1fr; }
  .cap-panel .cap-media, .cap-panel:nth-child(even) .cap-media { order: -1; min-height: 240px; }
}

.checklist { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist svg { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; color: var(--copper); }
.on-dark .checklist svg, .cap-body .checklist svg, .bg-dark .checklist svg { color: var(--copper-light); }

/* ---------- Audience list ---------- */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--graphite); }
.audience > div { padding: 28px 28px 8px 0; }
.audience > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.audience p { color: var(--text-muted); font-size: 1rem; }
@media (max-width: 960px) {
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .audience > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .audience { grid-template-columns: 1fr; }
  .audience > div, .audience > div + div { padding: 24px 0 4px; border-left: 0; }
  .audience > div + div { border-top: 1px solid var(--line); }
}

/* ---------- Why SRJ ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.reasons > div { padding: 32px 32px 24px 0; border-bottom: 1px solid var(--line-dark); }
.reasons > div:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.reasons h3 { font-size: 1.15rem; display: flex; gap: 12px; align-items: center; }
.reasons h3 svg { width: 24px; height: 24px; color: var(--copper-light); flex-shrink: 0; }
.reasons p { color: var(--text-on-dark-muted); font-size: 1rem; margin: 0; }
@media (max-width: 960px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .reasons > div:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line-dark); }
}
@media (max-width: 600px) {
  .reasons { grid-template-columns: 1fr; }
  .reasons > div, .reasons > div:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* ---------- Spun-metal discs (materials) ---------- */
.metals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.metal { text-align: center; }
.disc {
  --c1: #d9dde1; --c2: #a8afb6; --c3: #f4f6f7;
  width: 100%; max-width: 180px; aspect-ratio: 1; margin: 0 auto 16px; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(0,0,0,.18) 0 7%, transparent 7.5%),
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(255,255,255,.18) 22.5% 23.5%, transparent 24%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,.05) 1px 3px),
    conic-gradient(from 20deg, var(--c3), var(--c2) 12%, var(--c1) 24%, var(--c3) 36%, var(--c2) 50%, var(--c1) 62%, var(--c3) 74%, var(--c2) 88%, var(--c3));
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.12), 0 18px 30px -18px rgba(31,35,38,.55);
}
.disc.aluminum { --c1: #d5d9dd; --c2: #9ea6ad; --c3: #f5f6f7; }
.disc.copper   { --c1: #c77c50; --c2: #8a4520; --c3: #f0b48f; }
.disc.brass    { --c1: #cfb35e; --c2: #8e7124; --c3: #f3e2a2; }
.disc.steel    { --c1: #8d959c; --c2: #50575d; --c3: #c3c9ce; }
.disc.stainless{ --c1: #c3c8cc; --c2: #7f878e; --c3: #eef0f2; }
.metal h3 { font-size: 1.05rem; margin-bottom: 4px; }
.metal p { font-size: 0.95rem; color: var(--text-muted); margin-inline: auto; }
@media (max-width: 860px) { .metals { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 480px) { .metals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--graphite); color: var(--text-on-dark); border-radius: 12px;
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.4em; }
.cta-band p { color: var(--text-on-dark-muted); margin: 0; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }
.cta-actions .phone { color: var(--white); font-weight: 700; font-size: 1.15rem; text-decoration: none; font-stretch: var(--wide); }
.cta-actions .phone:hover { color: var(--copper-light); }
.cta-actions small { display: block; color: var(--text-on-dark-muted); font-size: 0.875rem; font-stretch: 100%; font-weight: 400; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Spec tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.spec-table caption { text-align: left; font-weight: 700; padding-bottom: 12px; font-stretch: var(--wide); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 600; width: 42%; color: var(--text-muted); }
.spec-table td { font-weight: 600; font-variant-numeric: tabular-nums; }
.spec-table thead th { color: var(--graphite); border-bottom: 2px solid var(--graphite); width: auto; }
.spec-table .pending { color: var(--text-muted); font-weight: 400; }
.spec-table .pending a { font-weight: 600; }
.table-scroll { overflow-x: auto; }
.note { font-size: 0.95rem; color: var(--text-muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: var(--white); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); font-size: 1rem; }
.bg-mill .card { border-color: transparent; }

.shapes { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.shapes li { border: 1px solid var(--aluminum); background: var(--white); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.95rem; }

/* Service blocks (fabrication) */
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }

/* Steps (how ordering works — a real sequence) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; border-top: 2px solid var(--graphite); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-stretch: var(--wide); font-size: 1.5rem; color: var(--copper); margin-bottom: 8px; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 1rem; color: var(--text-muted); margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { columns: 3 300px; column-gap: 20px; }
.gallery figure { break-inside: avoid; margin: 0 0 20px; }
.gallery img { width: 100%; border-radius: 10px; background: var(--mill); }
.gallery figcaption { font-size: 0.95rem; color: var(--text-muted); padding: 10px 2px 0; }

/* ---------- About ---------- */
.about-photo img { border-radius: 12px; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 38% 50%; }
.fact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.fact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact-list span:first-child { color: var(--text-muted); }
.fact-list span:last-child { font-weight: 700; text-align: right; }

/* ---------- Quote form ---------- */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } }
.form { display: grid; gap: 28px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.form legend { font-weight: 700; font-stretch: var(--wide); font-size: 1.2rem; margin-bottom: 14px; padding: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.975rem; }
.field .req { color: var(--copper-deep); }
.field .hint { font-size: 0.9rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--graphite);
  background: var(--white); border: 1.5px solid #9AA1A8; border-radius: var(--radius-sm);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--copper); outline-offset: 1px; border-color: var(--graphite); }
.field input[type="file"] { padding: 10px; background: var(--mill); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field .error { color: #B42318; font-size: 0.925rem; font-weight: 600; }
.field .error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: 8px; padding: 16px 18px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { background: #FDECEA; color: #8F1D14; border: 1px solid #F3B8B2; }
.form-status.is-success { background: #EAF4EC; color: #1E5B2C; border: 1px solid #B9DBC1; }
.form-status a { color: inherit; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.side-panel { background: var(--mill); border-radius: 12px; padding: 28px; position: sticky; top: 100px; }
.side-panel h2 { font-size: 1.35rem; }
.side-panel .fact-list li { flex-direction: column; gap: 2px; }
.side-panel .fact-list span:last-child { text-align: left; }
@media (max-width: 960px) { .side-panel { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--mill); margin-top: var(--section); padding-block: 64px 28px; font-size: 0.975rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2 { font-size: 1rem; font-stretch: 112%; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--graphite); text-decoration: none; }
.footer-grid a:hover { color: var(--copper-deep); text-decoration: underline; }
.footer-brand img { width: 150px; margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); max-width: 32ch; }
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-muted); font-size: 0.9rem; }
.footer-base p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
