/* ============================================================
   Fabcon Industrial — "Heavy Industrial" style, light theme
   Concrete-and-steel light backgrounds, dark photo hero, diagonal
   plate cuts, huge condensed type, weld-spark accents.

   Brand colors from the logo:
     --red     #D42027  (FABCON wordmark)
     --orange  #C87137  (weld spark)
     --black   #131313  (welder / INDUSTRIAL)
   ============================================================ */

:root {
  --red: #d42027;
  --red-bright: #ef3b42;
  --red-dark: #a8161c;
  --orange: #c86a28;       /* spark orange, deepened for light bg */
  --orange-bright: #e8833a;
  --ink: #131313;          /* headings, dark bands */
  --ink-2: #1d1f22;        /* trust bar / footer */
  --concrete-1: #f6f5f2;   /* section background A */
  --concrete-2: #eceae5;   /* section background B */
  --card: #ffffff;
  --line: #d8d5cd;
  --text: #33363b;
  --text-dim: #6d7278;
  --white: #ffffff;
  --heading-font: "Oswald", "Arial Narrow", sans-serif;
  --body-font: "Inter", "Segoe UI", Arial, sans-serif;
  --cut: 3vw;              /* depth of the diagonal section cuts */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--body-font);
  color: var(--text);
  background: var(--concrete-1);
  line-height: 1.65;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink);
}

h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.9rem; }

.section { padding: 90px 0; position: relative; }

/* Diagonal plate-steel cut on a section's top edge */
.cut-top {
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--cut));
  padding-top: calc(90px + var(--cut));
}
.cut-top-rev {
  clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%);
  margin-top: calc(-1 * var(--cut));
  padding-top: calc(90px + var(--cut));
}

.bg-a { background: var(--concrete-1); }
.bg-b {
  background:
    repeating-linear-gradient(-45deg, rgba(19,19,19,0.02) 0 2px, transparent 2px 6px),
    var(--concrete-2);
}

.section-kicker {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.section-kicker::before {
  content: "";
  display: inline-block;
  width: 34px; height: 3px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 12px;
}
.section-intro { max-width: 660px; margin-bottom: 2.2rem; color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 36px; font-size: 1.08rem; }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: #fff; border-color: #ffffff88; }
.btn-outline:hover { border-color: var(--orange-bright); color: var(--orange-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 14px rgba(19,19,19,0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: block; }
.brand-logo { height: 60px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--red); border-bottom-color: var(--red); }
.site-nav .nav-cta {
  color: #fff;
  border-bottom: none;
  padding: 10px 20px;
  font-size: 0.9rem;
}
.site-nav .nav-cta:hover { color: #fff; }

.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span {
  display: block; width: 26px; height: 3px; background: var(--ink);
  margin: 5px 0;
}

/* ---------- Hero (stays dark — photo section) ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  background: url("/assets/images/hero-welder.jpg") center/cover no-repeat, var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  /* warm "weld glow" duotone: solid dark steel over the text zone,
     easing into a rusty red-orange wash on the right */
  background:
    linear-gradient(80deg, rgba(10,8,8,0.97) 0%, rgba(12,9,8,0.92) 38%, rgba(26,12,8,0.72) 62%, rgba(150,45,15,0.35) 100%),
    rgba(90,25,12,0.25);
}
.hero-content { position: relative; color: #fff; padding-top: 70px; padding-bottom: calc(70px + var(--cut)); }
.hero-kicker {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--orange-bright);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.3rem;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
}
.hero h1 .accent { color: var(--red-bright); }
.hero-sub {
  max-width: 580px; font-size: 1.18rem; color: #e2e0dd;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Trust bar (dark band under the hero) ---------- */
.trust-bar { background: var(--ink-2); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  text-align: center; padding: 30px 20px; gap: 16px;
}
.trust-item { border-left: 1px solid #34373d; }
.trust-item:first-child { border-left: none; }
.trust-num {
  display: block; font-family: var(--heading-font);
  font-size: 2.4rem; font-weight: 700; color: var(--orange-bright);
}
.trust-label {
  font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: #9aa0a6;
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 60px; align-items: center;
}
.about-text p { margin-bottom: 1rem; }
.about-points { list-style: none; margin-top: 1.4rem; }
.about-points li {
  padding-left: 30px; position: relative; margin-bottom: 0.7rem;
  font-weight: 500; color: var(--ink);
}
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px; background: var(--red);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.about-photo { position: relative; }
.about-photo img { border: 1px solid var(--line); }
.about-photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 3px solid var(--orange);
  z-index: -1;
}

/* ---------- Capabilities ---------- */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 2.2rem;
}
.cap-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 28px 26px;
  box-shadow: 0 1px 4px rgba(19,19,19,0.05);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.cap-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--orange);
  box-shadow: 0 8px 20px rgba(19,19,19,0.1);
}
.cap-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.cap-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Industries (dark cards pop on light bg) ---------- */
.ind-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; margin-top: 2.2rem;
}
.ind-card {
  background: var(--ink-2);
  border-top: 3px solid var(--orange);
  padding: 26px 18px;
  text-align: center;
}
.ind-card h3 {
  font-size: 1rem; letter-spacing: 0.08em; color: #f0f0ee;
}
.ind-card p { font-size: 0.82rem; color: #9aa0a6; margin-top: 0.4rem; }

/* ---------- Process ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-top: 2.2rem;
  counter-reset: step;
}
.process-step { position: relative; padding: 20px 22px 0 22px; border-left: 1px solid var(--line); }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--heading-font);
  font-size: 3.2rem; font-weight: 700; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--orange);
  margin-bottom: 0.6rem;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.92rem; color: var(--text-dim); }

/* ---------- Gallery ---------- */
.gallery-grid { columns: 3; column-gap: 16px; }
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  background: none;
  display: block;
  width: 100%;
}
.gallery-item img { width: 100%; transition: transform 0.25s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: #fff; font-size: 0.85rem; padding: 20px 12px 10px;
  text-align: left;
  opacity: 0; transition: opacity 0.2s;
}
.gallery-item:hover .cap { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5,5,6,0.95);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.lightbox-caption { color: #ccc; margin-top: 12px; }
.lightbox-close {
  position: absolute; top: 14px; right: 22px;
  background: none; border: none; color: #fff;
  font-size: 2.6rem; cursor: pointer; line-height: 1;
}

/* ---------- Contact ---------- */
.contact-header { max-width: 660px; margin-bottom: 2.5rem; }
.contact-header p:last-child { color: var(--text-dim); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 36px;
  max-width: 780px;
  box-shadow: 0 2px 10px rgba(19,19,19,0.06);
}
.contact-form label {
  display: block; margin-bottom: 16px;
  font-family: var(--heading-font); text-transform: uppercase;
  letter-spacing: 0.07em; font-size: 0.85rem; color: var(--ink);
}
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 12px 14px; border: 1px solid var(--line);
  background: var(--concrete-1); color: var(--ink);
  font-family: var(--body-font); font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--red); border-color: var(--red);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { margin-top: 14px; font-size: 0.9rem; color: var(--text-dim); text-transform: none; letter-spacing: 0; }
.form-note a { color: var(--orange); }
.hidden-field { display: none; }

/* Shop info strip + map, below the form */
.info-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 44px;
}
.info-cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  padding: 20px 22px;
}
.info-cell strong {
  display: block;
  font-family: var(--heading-font); text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--orange);
  font-weight: 600; font-size: 0.82rem; margin-bottom: 6px;
}
.info-cell a { color: var(--ink); text-decoration: none; word-break: break-word; }
.info-cell a:hover { color: var(--red); }
.info-cell span { color: var(--text); font-size: 0.95rem; }
.map-embed { border: 1px solid var(--line); margin-top: 14px; }

/* ---------- Footer (dark band to bookend the hero) ---------- */
.site-footer {
  background: var(--ink-2); color: #9aa0a6;
  padding: 44px 0; font-size: 0.9rem;
  border-top: 3px solid var(--red);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-logo { height: 54px; width: auto; }
.site-footer a { color: #cfd3d7; }
.site-footer a:hover { color: var(--orange-bright); }

/* ---------- Floating call button (mobile) ---------- */
.floating-call {
  display: none;
  position: fixed; bottom: 18px; right: 18px; z-index: 150;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--heading-font); font-weight: 600; letter-spacing: 0.04em;
  padding: 14px 20px; border-radius: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ind-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .info-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
}

@media (max-width: 640px) {
  :root { --cut: 5vw; }
  .section { padding: 60px 0; }
  .cut-top { padding-top: calc(60px + var(--cut)); }
  .cut-top-rev { padding-top: calc(60px + var(--cut)); }
  .cap-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); padding: 18px 8px; }
  .trust-num { font-size: 1.5rem; }
  .trust-label { font-size: 0.65rem; }
  .brand-logo { height: 46px; }
  .floating-call { display: block; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px 22px; gap: 16px;
    border-bottom: 3px solid var(--red);
    box-shadow: 0 10px 20px rgba(19,19,19,0.18);
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { text-align: center; }
}
