/* ==========================================================================
   Team R2 — R2 Fabrication, LLC
   Clean light theme · brand orange #FF6700 + black
   ========================================================================== */

:root {
  --orange: #FF6700;        /* logo orange — use for fills, bars, buttons (with black text) */
  --orange-dark: #C24E00;   /* orange that passes contrast as text on white */
  --orange-tint: #FFF1E8;
  --ink: #111111;           /* logo black */
  --ink-2: #3A3B3E;
  --grey: #7B7D82;          /* logo outline grey */
  --line: #E4E4E1;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F3;
  --radius: 6px;
  --max: 1200px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #d7d7d7; font-size: .85rem; }
.topbar .container { display: flex; gap: 20px; justify-content: space-between; align-items: center; min-height: 36px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--orange); }
.topbar .tb-left, .topbar .tb-right { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand .wordmark { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; letter-spacing: .04em; line-height: 1; }
.brand .wordmark span { color: var(--orange); }
.brand .sub { display: block; font-family: var(--font); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-top: 3px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 11px; white-space: nowrap; border-radius: var(--radius); }
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); padding-left: 14px; }
  .nav .btn { margin: 14px 0 0; text-align: center; }
  .topbar .tb-right { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font); font-weight: 700; font-size: 1rem; padding: 13px 22px; border-radius: var(--radius); text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--orange); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.nav .btn-primary { padding: 10px 18px; color: var(--ink); }
.nav .btn-primary:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-family: var(--font); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 12px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--orange); vertical-align: middle; margin-right: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero (home) ---------- */
.hero { padding: 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; }
.hero-copy { padding: 72px 48px 72px max(20px, calc((100vw - var(--max)) / 2 + 20px)); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-copy h1 em { font-style: normal; color: var(--orange); }
.hero-copy .lead { margin-bottom: 30px; }
.hero-media { position: relative; background: #ddd; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--orange); z-index: 1; }
.hero-tag { position: absolute; left: 30px; bottom: 24px; background: #fff; padding: 10px 16px; font-weight: 600; font-size: .9rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-tag strong { color: var(--ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 20px; }
  .hero-media { height: 280px; order: -1; }
  .hero-media::before { width: auto; height: 8px; right: 0; top: auto; bottom: 0; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 56px; background: var(--bg-alt); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero.has-img { color: #fff; background: #222; }
.page-hero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,17,17,.88) 0%, rgba(17,17,17,.6) 55%, rgba(17,17,17,.25) 100%); }
.page-hero.has-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-img h1, .page-hero.has-img .lead { color: #fff; }
.page-hero.has-img .eyebrow { color: var(--orange); }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: var(--grey); }
.page-hero.has-img .crumbs, .page-hero.has-img .crumbs a { color: #cfcfcf; }
.page-hero .btn-row { margin-top: 26px; }

/* ---------- Proof bar ---------- */
.proof { padding: 0; background: var(--ink); color: #fff; }
.proof .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .stat { padding: 28px 20px; border-left: 1px solid #2a2a2a; }
.proof .stat:first-child { border-left: 0; }
.proof .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; }
.proof .label { font-size: .9rem; color: #cfcfcf; margin-top: 6px; }
@media (max-width: 760px) { .proof .container { grid-template-columns: 1fr 1fr; } .proof .stat:nth-child(3) { border-left: 0; } .proof .stat { border-top: 1px solid #2a2a2a; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
a.card { text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
a.card:hover { box-shadow: var(--shadow); border-color: #d0d0cc; }
a.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card-body p { color: var(--ink-2); }
.card .more { margin-top: auto; font-weight: 700; color: var(--ink); }
.card .more::after { content: " →"; color: var(--orange); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 8px; }

.audience { border-top: 5px solid var(--orange); padding: 28px; }
.audience.dark { border-top-color: var(--ink); }
.audience ul { margin: 0 0 18px; padding: 0; list-style: none; }
.audience li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line); }
.audience li::before { content: ""; position: absolute; left: 0; top: 15px; width: 12px; height: 3px; background: var(--orange); }

.feature { display: flex; gap: 16px; }
.feature .ico { flex: 0 0 44px; height: 44px; border-radius: var(--radius); background: var(--orange-tint); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; stroke: var(--orange-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: 6px; font-size: 1.25rem; }
.feature p { margin: 0; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split-img { border-radius: var(--radius); overflow: hidden; position: relative; }
.split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-img::after { content: ""; position: absolute; right: 0; bottom: 0; width: 38%; height: 8px; background: var(--orange); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding: 6px 0 6px 30px; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li { background: #fff; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.cols-2 { columns: 2; column-gap: 40px; }
@media (max-width: 640px) { .cols-2 { columns: 1; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { border-bottom: 3px solid var(--orange); padding-bottom: 10px; display: inline-block; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 0 18px 0 0; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--orange); line-height: 1; margin-bottom: 10px; }
.steps li::after { content: ""; position: absolute; top: 18px; left: 64px; right: 18px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { font-size: .95rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 30px; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, opacity .2s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 100%; width: auto; border-radius: 4px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 1.8rem; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: var(--orange); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .9rem; }

/* ---------- Equipment table ---------- */
.equip { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.equip th, .equip td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.equip th { background: var(--ink); color: #fff; font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .03em; font-weight: 700; }
.equip td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.equip tr:last-child td { border-bottom: 0; }
.equip tbody tr:nth-child(even) { background: #fafaf8; }
.table-wrap { overflow-x: auto; }
@media (max-width: 640px) { .equip td:first-child { white-space: normal; } .equip th, .equip td { padding: 12px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: var(--ink); padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 1.1rem; font-weight: 500; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
.form-section { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line); padding-bottom: 6px; margin: 12px 0 0; grid-column: 1 / -1; }
label, legend { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--orange-dark); }
.hint { font-weight: 400; color: var(--grey); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1px solid #cfcfca; border-radius: var(--radius); background: #fff; color: var(--ink);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(255,103,0,.3); border-color: var(--orange); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
.checks input, .consent input { accent-color: var(--orange); width: 18px; height: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.consent input { flex: 0 0 auto; margin-top: 3px; }
.hp { position: absolute; left: -5000px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: #EAF7EE; color: #11552A; border: 1px solid #BFE5CB; }
.form-status.err { display: block; background: #FDECEC; color: #7A1212; border: 1px solid #F3C3C3; }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { margin-bottom: 22px; }
.info-block h3 { font-size: 1.05rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .08em; color: var(--grey); font-family: var(--font); }
.info-block p { margin: 0; color: var(--ink); font-weight: 500; }
.map { border: 0; width: 100%; height: 300px; border-radius: var(--radius); }

/* ---------- Prose (policy pages) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bdbdbd; padding: 60px 0 0; font-size: .95rem; }
.site-footer a { color: #e6e6e6; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.foot-brand img { width: 44px; height: 44px; background: #fff; border-radius: 6px; padding: 4px; }
.foot-brand .wordmark { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: .04em; }
.foot-brand .wordmark span { color: var(--orange); }
.foot-bottom { border-top: 1px solid #2a2a2a; margin-top: 46px; padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.foot-bottom a { margin-left: 18px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } .foot-bottom a { margin: 0 18px 0 0; } }

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