/* =========================================================
   BGomez Ironworks and Metal Trading — one-page site
   Art direction from the poster/mockup references:
   workshop hero backdrop, diagonal slash accents, real
   product catalog, trust badges.
   Palette:  red #d32027 (hover #b01a20) · gold #e8a33d · ink #1a1a1a
   Type:     Archivo (display) · Barlow (body)
   ========================================================= */

:root {
  --red: #d32027;
  --red-dark: #b01a20;
  --gold: #e8a33d;
  --ink: #1a1a1a;
  --cream: #e6e2e0;
  --panel: #f4f5f6;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.accent-red  { color: var(--red); }
.accent-gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 4px;
  color: #fff;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { color: #fff; }
.btn-red  { background: var(--red); padding: 15px 34px; font-size: 15px; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-lg   { padding: 16px 40px; font-size: 17px; margin-top: 34px; background: var(--red); }
.btn-lg:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-call { background: var(--red); padding: 13px 24px; font-size: 14px; }
.btn-call:hover { background: var(--red-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 18, 18, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  padding: 12px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: 'Archivo', sans-serif; }
.brand:hover { color: inherit; }
.brand-logo { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-name { font-weight: 900; font-size: 26px; letter-spacing: -0.5px; color: #fff; }
.brand-sub  { color: #d0cccc; font-weight: 600; font-size: 8.5px; letter-spacing: 2.5px; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a { color: #fff; font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #141212;
  isolation: isolate;
}
/* dark workshop backdrop from the welding photo */
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: url('assets/welding.jpg') center/cover no-repeat;
  filter: blur(3px) brightness(0.32) grayscale(0.2);
  transform: scale(1.08);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 140% at 100% 20%, rgba(90,21,23,0.85) 0%, rgba(28,20,20,0.92) 45%, rgba(20,18,18,0.96) 100%),
    linear-gradient(90deg, rgba(20,18,18,0.95) 0%, rgba(20,18,18,0.55) 55%, rgba(20,18,18,0.15) 100%);
}
/* diagonal red/white slash graphic, top-right */
.hero-slash {
  position: absolute; top: -120px; right: -140px; z-index: -1;
  width: 620px; height: 620px; transform: rotate(-38deg);
  background: repeating-linear-gradient(
    180deg,
    var(--red) 0 22px,
    #fff 22px 30px,
    transparent 30px 60px,
    var(--red) 60px 74px,
    transparent 74px 128px
  );
  opacity: 0.9; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero-grid {
  position: relative;
  padding: 64px 28px 0;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 20px;
  align-items: end;
}
.hero-copy { padding-bottom: 96px; }
.hero-title {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-style: italic;
  color: #fff; font-size: 52px; line-height: 1.02; letter-spacing: -0.5px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-tagline {
  font-family: 'Archivo', sans-serif; font-style: italic; font-weight: 600;
  color: var(--cream); font-size: 22px; margin-top: 22px;
}
.hero-photo {
  align-self: end; display: flex; align-items: flex-end; justify-content: center;
  height: 540px;
}
.hero-photo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.5));
}

/* feature bar */
.feature-bar {
  position: relative; z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-inner { padding: 20px 28px; display: flex; align-items: center; }
.feature { flex: 1; display: flex; align-items: center; gap: 14px; }
.feature--pad { padding-left: 34px; }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 26px;
}
.feature-icon--ring { border: 2px solid var(--gold); border-radius: 50%; font-size: 20px; }
.feature-label {
  font-family: 'Archivo', sans-serif; font-weight: 800; color: #fff;
  font-size: 15px; line-height: 1.15;
}
.feature-divider { width: 1px; height: 42px; background: rgba(255, 255, 255, 0.18); }

/* ---------- Products ---------- */
.products {
  background:
    linear-gradient(180deg, #eceef0 0%, #f4f5f6 100%),
    repeating-linear-gradient(135deg, rgba(0,0,0,0.02) 0 2px, transparent 2px 9px);
  padding: 60px 28px 76px;
}
.section-title {
  text-align: center; font-family: 'Archivo', sans-serif; font-weight: 900;
  font-style: italic; font-size: 38px; letter-spacing: -0.5px; color: var(--ink);
}
.section-sub {
  text-align: center; margin-top: 10px; font-size: 17px; color: #565c63; font-weight: 500;
}
.product-card {
  background: #fff; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,0.10);
  padding: 40px; margin-top: 30px;
}
.group-head {
  display: flex; align-items: center; gap: 16px; margin: 6px 0 22px;
}
.group-head span {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-style: italic;
  font-size: 15px; letter-spacing: 1px; color: #fff; text-transform: uppercase;
  background: var(--red); padding: 8px 18px; border-radius: 3px;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0% 100%);
}
.group-head::after {
  content: ""; flex: 1; height: 2px;
  background: linear-gradient(90deg, rgba(211,32,39,0.35), transparent);
}
.product-grid { display: grid; gap: 22px; }
.product-grid.grid-6 { grid-template-columns: repeat(6, 1fr); margin-bottom: 34px; }
.product-grid.grid-5 { grid-template-columns: repeat(5, 1fr); }
.product { display: flex; flex-direction: column; align-items: center; }
.product img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 6px; background: #f2f3f4;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover img { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(0,0,0,0.14); }
.product figcaption {
  margin-top: 13px; text-align: center; font-family: 'Archivo', sans-serif;
  font-weight: 800; font-size: 13.5px; letter-spacing: 0.3px; color: var(--ink);
  line-height: 1.25; text-transform: uppercase;
}
.products-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- About / Built Strong ---------- */
.about {
  background:
    linear-gradient(180deg, #eef0f2 0%, #f4f5f6 100%),
    repeating-linear-gradient(45deg, rgba(0,0,0,0.015) 0 2px, transparent 2px 10px);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.about-copy { padding: 66px 60px 66px 28px; }
.about-title {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-style: italic;
  font-size: 34px; letter-spacing: -0.5px; color: var(--ink); line-height: 1.05;
}
.about-lede { margin-top: 20px; font-size: 17px; line-height: 1.55; color: #41474d; max-width: 440px; }
.about-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 13px; }
.about-list li {
  display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; color: #20242a;
}
.about-list .check { color: var(--red); font-size: 19px; font-weight: 700; }
.about-badges { display: flex; gap: 18px; margin-top: 26px; }
.about-badges img { height: 84px; width: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.2)); }
.about-copy .btn { margin-top: 28px; font-size: 16px; padding: 15px 40px; }

.about-media {
  position: relative; clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); overflow: hidden;
  min-height: 420px;
}
.about-media-zoom {
  position: absolute; inset: 0; animation: bg-slowzoom 14s ease-in-out infinite; will-change: transform;
}
.about-media-zoom img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ember { position: absolute; mix-blend-mode: screen; pointer-events: none; }
.ember-bloom {
  left: 56%; top: 64%; width: 34%; height: 34%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,140,0.9) 0%, rgba(255,150,40,0.4) 35%, rgba(255,120,20,0) 70%);
  filter: blur(6px); animation: bg-flicker 2.6s steps(1, end) infinite;
}
.ember-glow {
  inset: 0;
  background: radial-gradient(circle at 60% 66%, rgba(120,170,255,0.25) 0%, rgba(0,0,0,0) 45%);
  animation: bg-emberglow 3.4s ease-in-out infinite;
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: #1a1010; isolation: isolate; }
.cta-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('assets/welding.jpg') center/cover no-repeat;
  filter: brightness(0.4) saturate(1.2); transform: scaleX(-1);
}
.cta-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(26,16,16,0.97) 0%, rgba(70,18,20,0.9) 55%, rgba(150,26,30,0.78) 100%);
  pointer-events: none;
}
.cta-inner {
  position: relative; padding: 48px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-title {
  font-family: 'Archivo', sans-serif; font-weight: 900; font-style: italic;
  color: #fff; font-size: 34px; letter-spacing: -0.5px; line-height: 1.05;
}
.cta-text { margin-top: 12px; color: #e8dede; font-size: 17px; }
.cta-phone {
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px; padding: 18px 26px; flex-shrink: 0;
}
.cta-phone-label {
  font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--gold);
  font-size: 13px; letter-spacing: 1px;
}
.cta-phone-number {
  display: block; font-family: 'Archivo', sans-serif; font-weight: 900; color: #fff;
  font-size: 28px; letter-spacing: 0.5px; margin-top: 4px;
}
.cta-phone-number:hover { color: #fff; }
.cta-email {
  display: block; margin-top: 8px; color: var(--cream);
  font-family: 'Barlow', sans-serif; font-weight: 600; font-size: 16px;
}
.cta-email:hover { color: var(--gold); }

/* ---------- Map / Visit us ---------- */
.map-section {
  background: linear-gradient(180deg, #eceef0 0%, #f4f5f6 100%);
  padding: 58px 28px 64px;
}
.map-head { text-align: center; margin-bottom: 28px; }
.map-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  border: 5px solid #fff;
}
.map-frame iframe { display: block; width: 100%; height: 460px; border: 0; }
.map-cta { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f0b0b; padding: 34px 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; align-items: center; }
.footer-item { display: flex; align-items: center; gap: 14px; }
.footer-badge {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 19px; flex-shrink: 0;
}
.footer-badge--f { font-family: 'Archivo', sans-serif; font-weight: 900; font-size: 20px; }
.footer-label {
  font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--red);
  font-size: 12px; letter-spacing: 1px;
}
.footer-strong { font-family: 'Archivo', sans-serif; font-weight: 900; color: #fff; font-size: 21px; }
.footer-strong:hover { color: var(--red); }
.footer-strong--sm { font-size: 13px; letter-spacing: 0; white-space: nowrap; }
.footer-email {
  display: block; margin-top: 3px; color: var(--cream);
  font-family: 'Barlow', sans-serif; font-weight: 500; font-size: 14px;
}
.footer-email:hover { color: var(--red); }
.footer-address { color: var(--cream); font-size: 16px; font-weight: 500; line-height: 1.3; font-style: normal; }
.footer-social { color: var(--cream); font-size: 16px; font-weight: 600; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .hero-title { font-size: 44px; }
  .about-copy { padding: 56px 40px 56px 28px; }
  .product-grid.grid-6 { grid-template-columns: repeat(3, 1fr); }
  .product-grid.grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; gap: 12px 20px; }
  .main-nav { order: 3; width: 100%; justify-content: center; gap: 24px; }

  .hero-grid { grid-template-columns: 1fr; padding: 40px 28px 0; gap: 0; }
  .hero-copy { padding-bottom: 28px; text-align: center; }
  .hero-title { font-size: 40px; }
  .hero-photo { height: auto; margin: 0 auto; }
  .hero-photo img { max-height: 420px; }
  .hero-slash { opacity: 0.5; }

  .about-grid { grid-template-columns: 1fr; }
  .about-copy { padding: 52px 28px; }
  .about-badges { justify-content: flex-start; }
  .about-media { clip-path: none; min-height: 320px; }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-phone { align-self: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 560px) {
  .feature-inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .feature--pad { padding-left: 0; }
  .feature-divider { display: none; }
  .hero-title { font-size: 32px; }
  .hero-tagline { font-size: 19px; }
  .section-title { font-size: 30px; }
  .product-card { padding: 22px; }
  .product-grid.grid-6, .product-grid.grid-5 { grid-template-columns: repeat(2, 1fr); }
  .cta-title { font-size: 27px; }
  .brand-logo { height: 38px; }
  .map-frame iframe { height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .about-media-zoom, .ember-bloom, .ember-glow { animation: none; }
  .btn:hover { transform: none; }
}

/* ---------- Keyframes ---------- */
@keyframes bg-slowzoom { 0% { transform: scale(1.02); } 50% { transform: scale(1.13); } 100% { transform: scale(1.02); } }
@keyframes bg-emberglow { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.55; } }
@keyframes bg-flicker { 0%, 100% { opacity: 0.3; } 45% { opacity: 0.85; } 55% { opacity: 0.4; } 70% { opacity: 0.9; } }
