/* ==========================================================================
   Ironlayer — Variation B: Bold / Technical-Industrial
   Dark near-black theme, safety-orange accent, blueprint/schematic motifs.
   ========================================================================== */

/* ---- Font stacks (Google Fonts loaded via <link> in each HTML file) ---- */
:root {
  --font-head: "Space Grotesk", "Archivo", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Colors */
  --bg: #0b0d0c;
  --bg-alt: #111413;
  --panel: #16191a;
  --panel-2: #1c1f1f;
  --line: rgba(244, 243, 239, 0.14);
  --line-strong: rgba(244, 243, 239, 0.28);
  --text: #f4f3ef;
  --text-dim: #aeb2ae;
  --text-faint: #7c807d;
  --accent: #ff5c1c;
  --accent-dim: #cc4a16;
  --accent-contrast: #0b0d0c;
  --focus: #ffd23f;

  --container: 1180px;
  --radius: 2px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  background-attachment: fixed;
}

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

a {
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }

p {
  margin: 0 0 1em;
  color: var(--text-dim);
  max-width: 62ch;
}

/* Focus visibility — accessibility requirement */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---- Utility ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.6em 1em;
  font-weight: 600;
  z-index: 200;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2.75rem;
}

.text-dim {
  color: var(--text-dim);
}

/* ---- Buttons ---- */
.btn {
  --clip: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85em 1.5em;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(var(--clip) 0, 100% 0, 100% calc(100% - var(--clip)), calc(100% - var(--clip)) 100%, 0 100%, 0 var(--clip));
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-accent:hover {
  background: #ff7238;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 1.1em 2.1em;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.55em 1.05em;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

/* ---- Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 12, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.logo-accent {
  color: var(--accent);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.site-nav.is-open {
  max-height: 260px;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  color: var(--text-dim);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line-strong);
  width: 42px;
  height: 38px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 6px;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 12, 0.55) 0%, rgba(11, 13, 12, 0.94) 85%),
    linear-gradient(0deg, rgba(255, 92, 28, 0.16), rgba(255, 92, 28, 0) 55%);
  z-index: 0;
}

.hero--home {
  background-image: url("https://images.unsplash.com/photo-1611117775350-ac3950990985?auto=format&fit=crop&w=1600&q=80");
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero h1 {
  color: var(--text);
}

.hero .lede {
  font-size: 1.1rem;
  max-width: 40ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  align-items: center;
}

.hero-actions .link-arrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  color: var(--text);
}

.hero-actions .link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Page banner for interior pages */
.page-banner {
  position: relative;
  padding: 3.5rem 0 3rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 12, 0.7) 0%, rgba(11, 13, 12, 0.95) 100%),
    linear-gradient(0deg, rgba(255, 92, 28, 0.14), rgba(255, 92, 28, 0) 55%);
}

.page-banner--about {
  background-image: url("https://images.unsplash.com/photo-1560831340-b9679dc9e9f0?auto=format&fit=crop&w=1600&q=80");
}

.page-banner--order {
  background-image: url("https://images.unsplash.com/photo-1704283860614-803aa8be7993?auto=format&fit=crop&w=1600&q=80");
}

.page-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 44rem;
}

.page-banner p.lede {
  font-size: 1.05rem;
  max-width: 55ch;
}

/* ---- Steps (schematic annotation style) ---- */
.steps {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.steps .step:last-child {
  border-bottom: 1px solid var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 500;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  line-height: 1;
  min-width: 2.4ch;
}

.step-body h3 {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.4em;
}

.step-body h3 .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.15em 0.5em;
  text-transform: uppercase;
}

.step-body p {
  margin-bottom: 0;
}

@media (min-width: 700px) {
  .step {
    grid-template-columns: 110px 1fr;
    align-items: start;
  }
}

/* ---- Cards grid (possibilities) ---- */
.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%) contrast(1.08) brightness(0.88);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 12, 0) 40%, rgba(11, 13, 12, 0.85) 100%),
    linear-gradient(0deg, rgba(255, 92, 28, 0.18), rgba(255, 92, 28, 0) 55%);
}

.card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.35em;
}

.card-body p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ---- Trust strip ---- */
.trust-strip {
  padding: 3rem 0;
}

.trust-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .trust-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.trust-item p {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 30ch;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

/* ---- About page ---- */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .split--reverse .split-media {
    order: 2;
  }
}

.split-media .photo-frame {
  aspect-ratio: 5 / 4;
}

.list-check {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.5rem 0;
  padding: 0;
}

.list-check li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-dim);
}

.list-check li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.4em;
  background: var(--accent);
  clip-path: polygon(2px 0, 100% 0, 100% calc(100% - 2px), calc(100% - 2px) 100%, 0 100%, 0 2px);
}

.pull-note {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.pull-note p {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
}

.cta-band {
  text-align: left;
  padding: 3.5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cta-band h2 {
  margin-bottom: 0.3em;
}

.cta-band p {
  margin-bottom: 0;
}

/* ---- Custom order page ---- */
.spec-box {
  border: 1px solid var(--line-strong);
  background: var(--panel);
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
}

.spec-row:last-child {
  border-bottom: none;
}

@media (min-width: 700px) {
  .spec-row {
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.spec-row p {
  margin: 0;
  color: var(--text-dim);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}

.faq-list .faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  text-transform: none;
  color: var(--text);
  margin-bottom: 0.5em;
  letter-spacing: 0;
}

.faq-item p {
  margin-bottom: 0;
}

.final-cta {
  position: relative;
  padding: 4.5rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255, 92, 28, 0.14), rgba(255, 92, 28, 0) 60%);
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-inline: auto;
}

.final-cta .eyebrow {
  justify-content: center;
}

.final-cta p {
  margin-inline: auto;
}

.final-cta .btn {
  margin-top: 1.5rem;
}

/* ---- Responsive: desktop nav ---- */
@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border-bottom: none;
  }

  .site-nav ul {
    flex-direction: row;
    padding: 0;
    gap: 2rem;
  }

  .site-nav a {
    border-bottom: none;
    padding: 0.4rem 0;
  }
}
