/* ============================================================
   NORTHWOOD WELDING & FABRICATION
   Brand system — "Anchored in Alaska · Built to Endure"
   Blackened steel · bone white · molten bronze · graphite
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* --- Core palette (brand guidelines) --- */
  --steel-900: #111113;   /* deepest black for depth */
  --steel-800: #1A1A1C;   /* BLACKENED STEEL — primary dark surface */
  --steel-700: #232427;   /* raised dark surface */
  --steel-600: #3E4348;   /* GRAPHITE — borders on dark */
  --steel-400: #767b80;   /* muted steel text */
  --steel-200: #b7bbbf;   /* light steel */

  --bone-100: #F6F4F1;    /* BONE WHITE — primary light surface */
  --bone-200: #ebe7e1;    /* light surface alt */
  --bone-300: #d9d4cc;    /* light border */

  --bronze:    #B67A3C;   /* MOLTEN BRONZE accent */
  --bronze-lt: #cc8f4d;   /* hover / highlight */
  --bronze-dk: #8f5d2c;

  /* --- Semantic --- */
  --bg-dark: var(--steel-800);
  --bg-light: var(--bone-100);
  --text-on-dark: #ece9e4;
  --text-on-dark-muted: var(--steel-400);
  --text-on-light: #1A1A1C;
  --text-on-light-muted: #565a5e;
  --accent: var(--bronze);

  /* --- Type --- */
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --body: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* --- Layout --- */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--body);
  background: var(--bg-light);
  color: var(--text-on-light);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;            /* Bebas Neue ships a single weight */
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 8vw, 6.6rem); letter-spacing: 0.015em; }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
h3 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h4 { font-size: 1.1rem; letter-spacing: 0.06em; }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--text-on-light-muted);
  max-width: 56ch;
}

p { max-width: 64ch; }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: var(--section-y); }

.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark .lede { color: var(--steel-200); }
.section-dark p { color: var(--steel-200); }

.section-darkest { background: var(--steel-900); color: var(--text-on-dark); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.35s var(--ease);
  background: var(--accent);
  color: #14110c;
}
.btn:hover { background: var(--bronze-lt); transform: translateY(-2px); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-ghost:hover { background: var(--accent); border-color: var(--accent); color: #14110c; }

.section-dark .btn-ghost { color: var(--text-on-dark); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 15, 17, 0.92);
  backdrop-filter: blur(10px);
  padding-block: 1rem;
  border-bottom-color: var(--steel-600);
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  line-height: 1;
  color: var(--text-on-dark);
  z-index: 101;
}
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand .mark span { color: var(--accent); }
.brand .sub {
  font-family: var(--body);
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-top: 0.32rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav a {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  font-weight: 500;
  position: relative;
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav .btn { padding: 0.8rem 1.5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 101;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text-on-dark);
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(14, 15, 17, 0.98);
    backdrop-filter: blur(8px);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; }
}

/* ============================================================
   IMAGE SLOTS  (intentional placeholders for real photography)
   ============================================================ */
.slot {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(176,122,67,0.06), rgba(0,0,0,0) 60%),
    repeating-linear-gradient(115deg, #1b1e22 0px, #1b1e22 2px, #191c20 2px, #191c20 9px),
    var(--steel-700);
  border: 1px solid var(--steel-600);
  display: flex;
  align-items: flex-end;
  color: var(--steel-200);
  border-radius: var(--radius);
  min-height: 240px;
}
.slot::before {
  content: "";
  position: absolute;
  top: 1rem; left: 1rem;
  width: 22px; height: 22px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  opacity: 0.7;
}
.slot::after {
  content: "";
  position: absolute;
  bottom: 1rem; right: 1rem;
  width: 22px; height: 22px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.7;
}
.slot .slot-label {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-200);
  width: 100%;
}
.slot .slot-label strong {
  color: var(--accent);
  font-weight: 500;
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.3rem;
}
.slot.tall { min-height: 520px; }
.slot.wide { min-height: 340px; }
.slot.hero-slot { min-height: 100%; }

/* If a real <img> is dropped in, it covers the placeholder.
   Grayscale treatment unifies mixed filler into the restrained brand look.
   Swap for real photos later — remove the filter for full color. */
.slot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.86);
  z-index: 0;
}
.slot img + .slot-label { display: none; }
.slot:hover img { filter: grayscale(0.65) contrast(1.06) brightness(0.92); transition: filter 0.6s var(--ease); }
.ba-tag { z-index: 3; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background: var(--steel-900);
  color: var(--text-on-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,15,17,0.55) 0%, rgba(14,15,17,0.3) 35%, rgba(14,15,17,0.92) 100%),
    linear-gradient(115deg, rgba(176,122,67,0.10), rgba(0,0,0,0) 55%),
    repeating-linear-gradient(118deg, #17191d 0px, #17191d 3px, #141619 3px, #141619 11px),
    var(--steel-800);
}
.hero-bg .slot-label {
  position: absolute;
  bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--steel-400);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0;
  filter: grayscale(1) contrast(1.08) brightness(0.78);
}
/* readability overlay above the hero photo */
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(17,17,19,0.55) 0%, rgba(17,17,19,0.30) 35%, rgba(17,17,19,0.94) 100%),
    linear-gradient(115deg, rgba(182,122,60,0.12), rgba(0,0,0,0) 55%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(3.5rem, 8vw, 7rem); width: 100%; }
.hero h1 { max-width: 16ch; }
.hero .hero-lede {
  margin-top: 1.8rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 300;
  color: var(--steel-200);
  max-width: 50ch;
}
.hero .hero-cta { margin-top: 2.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
  position: absolute;
  bottom: clamp(3.5rem, 8vw, 7rem);
  right: var(--gutter);
  z-index: 2;
  text-align: right;
  border-right: 1px solid var(--accent);
  padding-right: 1.2rem;
}
.hero-meta span {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
}
.hero-meta .big { font-size: 2.4rem; font-weight: 600; color: var(--accent); line-height: 1; }
.hero-meta .small { font-size: 0.68rem; letter-spacing: 0.22em; color: var(--steel-400); margin-top: 0.4rem; }
@media (max-width: 700px) { .hero-meta { display: none; } }

/* ============================================================
   MARQUEE / CAPABILITY STRIP
   ============================================================ */
.strip {
  background: var(--steel-900);
  color: var(--text-on-dark);
  border-block: 1px solid var(--steel-600);
  padding-block: 1.4rem;
  overflow: hidden;
}
.strip-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  width: max-content;
}
.strip-track span {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-200);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.strip-track span::after { content: "◆"; color: var(--accent); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   FEATURE / SERVICE CARDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--steel-800);
  border: 1px solid var(--steel-600);
  padding: 2.4rem 2rem;
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card .num {
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.2em;
}
.card h3 { color: var(--text-on-dark); margin-top: 1rem; }
.card p { color: var(--steel-200); margin-top: 0.9rem; font-size: 0.96rem; }

/* light variant */
.card-light {
  background: #fff;
  border: 1px solid var(--bone-300);
}
.card-light h3 { color: var(--text-on-light); }
.card-light p { color: var(--text-on-light-muted); }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat .n {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.stat .l {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-top: 0.7rem;
}

/* ============================================================
   BEFORE / AFTER + GALLERY
   ============================================================ */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 700px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 2;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  background: var(--steel-900);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.gallery .slot { min-height: 320px; }
.g-span-7 { grid-column: span 7; }
.g-span-5 { grid-column: span 5; }
.g-span-6 { grid-column: span 6; }
.g-span-4 { grid-column: span 4; }
.g-span-8 { grid-column: span 8; }
.g-span-12 { grid-column: span 12; }
.g-tall { min-height: 480px !important; }
@media (max-width: 800px) {
  .gallery > * { grid-column: span 12 !important; }
  .g-tall { min-height: 320px !important; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ============================================================
   PROCESS LIST
   ============================================================ */
.process { border-top: 1px solid var(--steel-600); }
.process .step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 2rem;
  padding-block: 2.2rem;
  border-bottom: 1px solid var(--steel-600);
  align-items: start;
  transition: padding-left 0.4s var(--ease);
}
.process .step:hover { padding-left: 1rem; }
.process .step .idx { font-family: var(--display); font-size: 1.6rem; color: var(--accent); }
.process .step h3 { color: var(--text-on-dark); }
.process .step p { color: var(--steel-200); margin-top: 0.6rem; }
@media (max-width: 640px) { .process .step { grid-template-columns: 1fr; gap: 0.6rem; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--steel-900);
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(176,122,67,0.18), transparent 60%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lede { margin: 1.5rem auto 2.5rem; color: var(--steel-200); }

/* ============================================================
   FORM
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.95rem 1rem;
  background: var(--steel-800);
  border: 1px solid var(--steel-600);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-400); }

/* contact info rows */
.contact-list { border-top: 1px solid var(--steel-600); }
.contact-list .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--steel-600);
}
.contact-list .row .k {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-list .row .v {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-on-dark);
  text-align: right;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--steel-900);
  color: var(--text-on-dark);
  border-top: 1px solid var(--steel-600);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--steel-600);
}
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 2.2rem; } }
.footer-top .brand { color: var(--text-on-dark); }
.footer-col h4 { color: var(--accent); margin-bottom: 1.2rem; font-family: var(--body); font-size: 0.72rem; letter-spacing: 0.2em; }
.footer-col a { display: block; color: var(--steel-200); font-size: 0.92rem; padding-block: 0.4rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-tagline { color: var(--steel-200); font-weight: 300; max-width: 36ch; margin-top: 1.2rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--steel-400);
  text-transform: uppercase;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* page hero (interior) */
.page-hero {
  background: var(--steel-900);
  color: var(--text-on-dark);
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--steel-600);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; right: -5%; top: -20%;
  width: 40%; height: 140%;
  background: linear-gradient(115deg, rgba(176,122,67,0.10), transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow { margin-bottom: 1.4rem; }
.page-hero p { color: var(--steel-200); margin-top: 1.4rem; }
