:root {
  --ink: #171512;
  --panel: #f6f1e8;
  --paper: #fffaf0;
  --ember: #b64225;
  --ember-dark: #7d2718;
  --steel: #677077;
  --line: rgba(23, 21, 18, 0.16);
  --shadow: 0 18px 45px rgba(23, 21, 18, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

body.lightbox-open {
  overflow: hidden;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 250, 240, 0.2);
  background: rgba(23, 21, 18, 0.92);
  color: #fffaf0;
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 32px));
  min-height: 106px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand img {
  width: 88px;
  height: 88px;
  border: 2px solid rgba(255, 250, 240, 0.82);
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 250, 240, 0.32);
  background: transparent;
  color: #fffaf0;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 11px;
  border-radius: 6px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 0.93rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.12);
}

.hero {
  min-height: calc(100svh - 106px);
  display: grid;
  align-items: end;
  color: #fffaf0;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.92) 0%, rgba(12, 10, 8, 0.72) 41%, rgba(12, 10, 8, 0.24) 100%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.86), rgba(12, 10, 8, 0.18) 35%),
    url("assets/forge-fabrication-hero.png") center / cover no-repeat;
}

.hero-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 12vh, 148px) 0 clamp(36px, 8vh, 78px);
}

.eyebrow {
  margin: 0 0 12px;
  color: #e0b08a;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 9vw, 7.8rem);
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 250, 240, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ember);
  color: #fffaf0;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--ember-dark);
}

.button.secondary {
  border-color: rgba(255, 250, 240, 0.42);
  background: rgba(255, 250, 240, 0.08);
}

.button.secondary:hover {
  background: rgba(255, 250, 240, 0.16);
}

.section {
  padding: clamp(54px, 8vw, 96px) 0;
}

.section.alt {
  background: var(--panel);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.55fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.section-head p {
  margin: 0;
  color: rgba(23, 21, 18, 0.72);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.7);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.card p {
  margin: 0;
  color: rgba(23, 21, 18, 0.72);
}

.photo-reel {
  margin-top: 34px;
}

.photo-reel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
}

.reel-track {
  display: grid;
  grid-auto-columns: minmax(260px, 360px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
}

.reel-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  overflow: hidden;
  scroll-snap-align: start;
}

.reel-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  transition: opacity 160ms ease;
}

.reel-zoom:hover {
  opacity: 0.88;
}

.reel-zoom:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: -3px;
}

.reel-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel);
}

.reel-item figcaption {
  min-height: 48px;
  padding: 12px 14px;
  color: rgba(23, 21, 18, 0.72);
  font-size: 0.94rem;
  font-weight: 700;
}

.feature-photo {
  display: block;
  width: 100%;
  margin-bottom: 18px;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--panel);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
  background: rgba(12, 10, 8, 0.9);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-inner {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100svh - 42px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.lightbox img {
  width: 100%;
  max-height: calc(100svh - 142px);
  object-fit: contain;
  background: #111;
}

.lightbox-caption {
  margin: 0;
  padding: 14px 60px 16px 18px;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.lightbox-counter {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(23, 21, 18, 0.6);
  font-size: 0.9rem;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #fff;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 56px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  background: #fff;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.content h1 {
  max-width: 900px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

.content h2 {
  margin: 36px 0 12px;
  font-size: clamp(1.75rem, 3.8vw, 3rem);
}

.content p,
.content li {
  color: rgba(23, 21, 18, 0.74);
  font-size: 1.04rem;
}

.content ul {
  padding-left: 1.2rem;
}

.page-intro {
  padding: clamp(50px, 8vw, 86px) 0 34px;
  background: var(--panel);
}

.service-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.aside-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: var(--shadow);
}

.aside-panel h2,
.aside-panel h3 {
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 22px;
}

.contact-method {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-method strong {
  display: block;
}

.contact-method span {
  color: rgba(23, 21, 18, 0.68);
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(23, 21, 18, 0.24);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 156px;
  resize: vertical;
}

.facebook-frame {
  width: 100%;
  height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.note {
  color: rgba(23, 21, 18, 0.66);
  font-size: 0.95rem;
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: rgba(255, 250, 240, 0.78);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #fffaf0;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-wrap {
    flex-wrap: wrap;
    min-height: 92px;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 0 0 14px;
    justify-content: flex-start;
  }

  .nav-links.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links a {
    border: 1px solid rgba(255, 250, 240, 0.12);
  }

  .hero {
    min-height: calc(100svh - 92px);
    background:
      linear-gradient(90deg, rgba(12, 10, 8, 0.94) 0%, rgba(12, 10, 8, 0.74) 72%, rgba(12, 10, 8, 0.48) 100%),
      linear-gradient(0deg, rgba(12, 10, 8, 0.88), rgba(12, 10, 8, 0.12) 35%),
      url("assets/forge-fabrication-hero.png") center / cover no-repeat;
  }

  .section-head,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .facebook-frame {
    height: 660px;
  }

  .reel-track {
    grid-auto-columns: minmax(230px, 82vw);
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox-caption {
    padding: 12px 54px 14px 14px;
    font-size: 0.95rem;
  }

  .lightbox-nav {
    width: 38px;
    height: 50px;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand img {
    width: 72px;
    height: 72px;
  }

  .nav-links.open {
    grid-template-columns: 1fr;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
