/* =========================================================
   Heritage & Co. — Shared Stylesheet (Retro-Modern · Dark)
   Edit COLORS, FONTS, and SPACING here to change site-wide.
   ========================================================= */

/* Google Fonts — loaded directly so the HTML pages don't need updating */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,400;1,400&family=Inter:wght@300;400;500;600&family=Kanit:ital,wght@1,900&display=swap');

/* ---- COLOR PALETTE (change hex values to recolor site) ---- */
:root {
  --bg:        #0d0c0a;   /* page background (deep coal) */
  --bg-soft:   #15130f;   /* secondary background */
  --paper:     #1a1813;   /* cards / panels */
  --ink:       #ece4d0;   /* main text (warm cream) */
  --ink-soft:  #c8bda3;   /* secondary text */
  --ink-dim:   #8a7f6a;   /* muted labels */
  --line:      rgba(236, 228, 208, 0.14);
  --line-strong: rgba(236, 228, 208, 0.32);
  --accent:    #d6913e;   /* warm amber / copper */
  --accent-d:  #a76225;   /* deep copper for hover */
  --accent-2:  #b03826;   /* vintage racing red */
}

/* ---- RESET ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- BASE TYPOGRAPHY ---- */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Subtle film-grain noise overlay — gives surfaces an analog feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Display headings — Bebas Neue, condensed and retro */
h1, h2, h3, h4 {
  font-family: "Bebas Neue", "Oswald", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
}
h1 { font-size: 84px; margin-bottom: 24px; }
h2 { font-size: 56px; margin-bottom: 20px; }
h3 { font-size: 32px; margin-bottom: 14px; letter-spacing: 0.05em; }
h4 { font-size: 22px; margin-bottom: 8px; letter-spacing: 0.05em; }

/* Italic Cormorant inside <em> — keeps elegant heritage accent */
h1 em, h2 em, h3 em, h4 em,
.section-title em, .hero h1 em, .page-banner h1 em {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--accent);
}

p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 30px;
  position: relative;
  z-index: 2;
}

/* ---- HEADER / NAVIGATION ---- */
header.site-header {
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg);
  position: relative;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

/* Brand: official ForgeCraft horizontal logo, tinted cream via CSS filter. Doubles as home link. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 36px;
  width: auto;
  /* Tint pure white pixels to the cream ink color (#ece4d0) */
  filter: sepia(60%) saturate(50%) hue-rotate(-12deg) brightness(0.95);
  transition: filter .25s ease;
}
.brand:hover img {
  /* Shift to the copper accent on hover */
  filter: invert(53%) sepia(45%) saturate(580%) hue-rotate(355deg) brightness(94%);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}
nav.main-nav a {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- LABELS / EYEBROWS (retro bracket-style) ---- */
.eyebrow,
.section-eyebrow,
.page-banner .eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
}
.eyebrow::before,
.section-eyebrow::before,
.page-banner .eyebrow::before { content: "[ "; opacity: 0.7; }
.eyebrow::after,
.section-eyebrow::after,
.page-banner .eyebrow::after  { content: " ]"; opacity: 0.7; }

/* ---- PAGE TITLE BANNER (used on inner pages) ---- */
.page-banner {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-strong);
  padding: 100px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(214,145,62,0.18), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(236,228,208,0.025) 80px 81px);
  pointer-events: none;
}
.page-banner h1 {
  font-size: 96px;
  margin: 0;
}

/* ---- HERO (home page) ---- */
.hero {
  padding: 120px 0 100px;
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Layer 1 — the background image (sharp, no blur) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.85;
  z-index: -2;
  pointer-events: none;
}

/* Layer 2 — copper atmospheric glow + grid + vignette over the image */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* dark vignette top + bottom for headline legibility */
    linear-gradient(180deg, rgba(13,12,10,0.48) 0%, rgba(13,12,10,0.10) 35%, rgba(13,12,10,0.15) 100%),
    /* soft copper glow */
    radial-gradient(ellipse at 50% 30%, rgba(214,145,62,0.18), transparent 60%),
    /* faint vertical grid */
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(236,228,208,0.025) 80px 81px);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-size: 120px;
  max-width: 980px;
  margin: 0 0 28px;
  line-height: 0.95;
  /* Drop-shadow — softer, more feathered spread */
  text-shadow:
    0 6px 22px rgba(0, 0, 0, 0.55),
    0 14px 48px rgba(0, 0, 0, 0.45),
    0 0 140px rgba(0, 0, 0, 0.35);
}
.hero h1 em {
  /* italic accent inherits the same shadow stack */
  text-shadow: inherit;
}
.hero .btn {
  /* subtle lift so buttons stay legible against the now-sharp background */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.hero p.lede {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 44px;
  color: var(--ink-soft);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 18px 34px;
  border: 1px solid var(--ink);
  margin: 4px;
  transition: all .3s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---- SECTIONS ---- */
section {
  padding: 110px 0;
  position: relative;
}
section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  margin-bottom: 18px;
}

/* ---- TWO-COLUMN ROWS ---- */
.row {
  display: flex;
  gap: 70px;
  align-items: center;
  flex-wrap: wrap;
}
.row .col {
  flex: 1;
  min-width: 280px;
}

/* ---- CARD GRID ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px 32px;
  position: relative;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.card .num {
  font-family: "Bebas Neue", Impact, sans-serif;
  color: var(--accent);
  font-size: 18px;
  letter-spacing: 0.2em;
  margin-bottom: 18px;
  display: block;
}
.card h3 { margin-bottom: 12px; color: var(--ink); }
.card p { font-size: 14px; line-height: 1.7; }

/* ---- IMAGE PLACEHOLDERS (swap with real <img>) ---- */
.image-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, #2a241a 0%, #4a3826 55%, #14110b 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.image-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(214,145,62,0.18), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(0,0,0,0.5), transparent 55%);
}
.image-box::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 180'><path d='M30 130 L70 80 L140 70 L220 65 L300 70 L350 85 L380 110 L380 145 L30 145 Z' fill='%23ece4d0'/><circle cx='100' cy='145' r='22' fill='%23ece4d0'/><circle cx='310' cy='145' r='22' fill='%23ece4d0'/></svg>");
  background-repeat: no-repeat;
  background-position: center 70%;
  background-size: 80% auto;
}
.image-box.tall { aspect-ratio: 3 / 4; }
.image-box.wide { aspect-ratio: 16 / 9; }

/* Looping video, sized like an image-box */
.media-box {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  object-fit: cover;
  display: block;
  background: #14110b;
}
.media-box.tall { aspect-ratio: 3 / 4; }
.media-box.wide { aspect-ratio: 16 / 9; }

/* Vary placeholder gradient slightly between cards (poster feel) */
.grid > .build:nth-child(2n) .image-box { background: linear-gradient(160deg, #221d14 0%, #5a3622 55%, #0e0a06 100%); }
.grid > .build:nth-child(3n) .image-box { background: linear-gradient(120deg, #1d1f18 0%, #3b4434 55%, #0e120e 100%); }
.grid > .build:nth-child(5n) .image-box { background: linear-gradient(135deg, #1f1a12 0%, #4a3a22 55%, #0c0905 100%); }

/* ---- BUILD GALLERY ITEM ---- */
.build {
  display: block;
  margin-bottom: 8px;
  transition: transform .4s ease;
}
.build:hover { transform: translateY(-4px); }
.build .image-box { margin-bottom: 18px; }
.build h4 {
  margin-bottom: 4px;
  font-size: 24px;
}
.build .meta {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- TESTIMONIALS / QUOTES ---- */
.quote {
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 30px;
  margin-bottom: 30px;
}
.quote blockquote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 14px;
}
.quote cite {
  font-style: normal;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---- STATS STRIP ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.stats .num {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 84px;
  color: var(--accent);
  line-height: 0.95;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.stats .label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---- CONTACT FORM ---- */
form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 560px;
}
label {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  transition: border-color .3s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-dim); opacity: 0.7; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { min-height: 130px; resize: vertical; }

/* ---- CALL-TO-ACTION STRIP ---- */
.cta {
  text-align: center;
  padding: 100px 30px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(214,145,62,0.14), transparent 65%);
  pointer-events: none;
}
.cta h2 {
  font-size: 72px;
  margin-bottom: 18px;
}
.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 16px;
}

/* ---- FOOTER ---- */
footer.site-footer {
  background: #080705;
  border-top: 1px solid var(--line-strong);
  padding: 50px 0 30px;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer.site-footer p {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
footer.site-footer nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
footer.site-footer nav a {
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
footer.site-footer nav a:hover { color: var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 800px) {
  h1 { font-size: 56px; }
  h2 { font-size: 38px; }
  .hero h1 { font-size: 64px; }
  .page-banner h1 { font-size: 60px; }
  .cta h2 { font-size: 44px; }
  .stats .num { font-size: 56px; }
  .grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px; }
  nav.main-nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .site-header .container { flex-direction: column; gap: 18px; }
  /* On narrow viewports, bias the hero image toward the right so the chassis stays in view */
  .hero::after { background-position: 75% center; }
}
