/* Forge Labs — ironforgelabs.cc
   Studio white. The logo render is the only picture; type carries the rest.
   See work/DESIGN.md. */

:root {
  --white: #FFFFFF;
  --surface: #F6F6F7;
  --rule: #E3E4E8;
  --rule-strong: #C9CBD1;
  --ink: #111318;
  --ink-2: #4B5058;
  --ink-3: #7A8089;
  --ember: #F5820D;
  --ember-ink: #BF5F08;

  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-word { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-weight: 500; font-size: .97rem; color: var(--ink-2); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--ember); }
.nav-cta { padding: 10px 18px; font-size: .95rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule-strong);
  background: var(--white); border-radius: 3px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  padding: 14px 24px; border-radius: 3px; border: 1px solid var(--ink); cursor: pointer;
  background: var(--ink); color: var(--white); font-family: inherit;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: #24272E; border-color: #24272E; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }

/* ---------- Sections ---------- */
main > section { padding: 96px var(--gutter); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; max-width: 52ch; }

/* ---------- Hero ---------- */
.hero { padding-top: 40px; padding-bottom: 72px; }
.hero-logo { display: block; width: min(100%, 460px); margin: 0 auto 24px; }
.hero-logo img { width: 100%; }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.9rem); line-height: 1.04; letter-spacing: -0.02em;
  max-width: 22ch;
  padding-top: 40px; border-top: 1px solid var(--ink);
}
.hero-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 60px; margin-top: 36px; align-items: start; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 50ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-self: end; }

/* ---------- Work ---------- */
.work { padding-top: 72px; border-top: 1px solid var(--rule); }
.work-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.work-item a { display: block; text-decoration: none; color: inherit; }
.work-item picture { display: block; border: 1px solid var(--rule); background: var(--surface); overflow: hidden; }
.work-item img { width: 100%; aspect-ratio: 1400 / 639; object-fit: cover; transition: transform .35s ease; }
.work-item a:hover img { transform: scale(1.015); }
@media (prefers-reduced-motion: reduce) { .work-item img { transition: none; } .work-item a:hover img { transform: none; } }
.work-cap { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: baseline; margin-top: 14px; }
.work-cap strong { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.work-cap span { color: var(--ink-2); font-size: .95rem; }
.work-item a:hover .work-cap strong { text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }

/* ---------- Services (spec sheet) ---------- */
.services { padding-top: 72px; }
.sheet { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr) minmax(0, 1.1fr); gap: 24px 48px;
  padding: 40px 0 44px; border-bottom: 1px solid var(--rule);
}
.row h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; }
.row-lead { font-weight: 600; font-size: 1.1rem; }
.row-body p + p { margin-top: 12px; color: var(--ink-2); max-width: 52ch; }
.row-list { list-style: none; display: grid; gap: 8px; align-content: start; padding-top: 6px; }
.row-list li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: .98rem; }
.row-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--ember); }

/* ---------- Process ---------- */
.process { background: var(--surface); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--ink); }
.step { padding-top: 28px; position: relative; }
.step + .step { border-left: 1px solid var(--rule-strong); padding-left: 28px; }
.step-num { display: block; font-weight: 500; font-size: 3rem; line-height: 1; color: var(--ember); letter-spacing: -0.03em; }
.step h3 { font-size: 1.35rem; margin-top: 18px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: .98rem; }

/* ---------- Why ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; border-top: 1px solid var(--ink); padding-top: 40px; }
.reason dt { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.reason dd { margin: 10px 0 0; color: var(--ink-2); font-size: .98rem; }

/* ---------- Contact ---------- */
.contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px 80px; align-items: start; }
.contact h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.08; }
.contact-copy > p { margin-top: 18px; color: var(--ink-2); font-size: 1.05rem; max-width: 44ch; }
.contact-alt a { color: var(--ember-ink); text-underline-offset: 3px; }

.lead-form { display: grid; gap: 26px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; padding: 8px 0 10px;
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--ember); padding-bottom: 9px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field.invalid input, .field.invalid textarea { border-bottom-color: #C8321E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn { justify-self: start; }
.form-status { min-height: 1.4em; font-size: .95rem; color: var(--ink-2); }
.form-status.ok { color: var(--ink); font-weight: 600; }
.form-status.err { color: #C8321E; }
.lead-form.sent .field, .lead-form.sent .btn { display: none; }
.lead-form.sent .form-status { font-size: 1.1rem; }

/* Direct lines: phone, base, service area, Instagram */
.reach { margin: 34px 0 0; padding: 0; border-top: 1px solid var(--rule-strong); max-width: 44ch; }
.reach-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.reach dt { font-weight: 600; font-size: .9rem; color: var(--ink-3); padding-top: 3px; }
.reach dd { margin: 0; color: var(--ink); font-size: 1.02rem; line-height: 1.5; }
.reach dd span { display: block; margin-top: 6px; color: var(--ink-2); font-size: .95rem; }
.reach-phone { font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.reach-phone:hover { color: var(--ember-ink); }

.ig-link { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; color: var(--ink); text-decoration: none; }
.ig-link .ig { width: 34px; height: 34px; flex: none; color: var(--ember-ink); transition: color .15s, transform .15s; }
.ig-link span { display: grid; line-height: 1.25; }
.ig-link strong { font-weight: 700; font-size: 1.05rem; }
.ig-link small { font-size: .92rem; color: var(--ink-2); }
.ig-link:hover .ig { color: var(--ember); transform: translateY(-1px); }
.ig-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.contact-copy > .contact-privacy { font-size: .9rem; color: var(--ink-3); margin-top: 28px; }
.contact-privacy a { color: var(--ink-2); text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px var(--gutter) 96px; }
.legal-wrap { max-width: 68ch; margin-left: 0; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.08; }
.legal-date { margin-top: 10px; color: var(--ink-3); font-size: .95rem; padding-bottom: 28px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.legal h2 { font-size: 1.25rem; margin-top: 40px; }
.legal p { margin-top: 14px; color: var(--ink-2); }
.legal ul { margin-top: 14px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }
.legal a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--ember); }

/* ---------- Footer ---------- */
.site-foot { padding: 36px var(--gutter) 40px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; }
.site-foot .brand img { height: 34px; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a { font-weight: 500; font-size: .92rem; color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }
.foot-ig { display: inline-flex; align-items: center; gap: 7px; }
.foot-ig .ig { width: 18px; height: 18px; color: var(--ember-ink); }
.foot-legal a { color: var(--ink-2); text-decoration: none; }
.foot-legal a:hover { color: var(--ink); }
.foot-legal { grid-column: 1 / -1; font-size: .88rem; color: var(--ink-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .row { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
  .row-list { grid-column: 2; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .step + .step { border-left: 0; padding-left: 0; }
  .step:nth-child(even) { border-left: 1px solid var(--rule-strong); padding-left: 28px; }
  .reasons { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  main > section { padding-top: 64px; padding-bottom: 64px; }
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule); padding: 4px var(--gutter) 20px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav a:not(.btn):hover { border-bottom-color: var(--rule); }
  .nav-cta { margin-top: 16px; text-align: center; }

  .work-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-cap { grid-template-columns: 1fr; gap: 4px; margin-top: 12px; }
  .work-cap strong { white-space: normal; }

  .hero { padding-top: 24px; }
  .hero-logo { width: min(100%, 340px); margin-bottom: 16px; }
  .hero h1 { padding-top: 28px; }
  .hero-row { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .cta-row { justify-self: start; }
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .row { grid-template-columns: 1fr; gap: 16px; padding: 30px 0 34px; }
  .row-list { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 28px 0 32px; border-bottom: 1px solid var(--rule-strong); }
  .step:nth-child(even) { border-left: 0; padding-left: 0; }
  .step-num { font-size: 2.4rem; }
  .reasons { grid-template-columns: 1fr; gap: 28px; padding-top: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .reach-row { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .cta-row .btn { width: 100%; text-align: center; }
}
