/* Titan Metal Supply — shared styles
   Brand: black #000 · red #C92E2E · white #FFFFFF  (blue #022396 used sparingly) */

:root {
  --ink: #121212;
  --ink-soft: #55595f;
  --line: #e4e6e9;
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --black: #000000;
  --red: #c92e2e;
  --red-dark: #a62424;
  --red-soft: #fdeceb;
  --blue: #022396;
  --max: 1140px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Placeholder marker — anything still to confirm */
.todo { background: #fff3cd; border-bottom: 2px dotted #c9a227; padding: 0 3px; color: #6b5400; }

/* ---------- Top strip ---------- */
.topbar { background: #1b1b1b; color: #b9bcc0; font-size: 14.5px; }
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--red); }

/* ---------- Header ---------- */
header.site { background: var(--black); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; border-bottom: 3px solid var(--red); }
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 90px; flex-wrap: wrap;
}
.brand { display: block; line-height: 0; }
.brand img { width: 206px; height: auto; }

nav.main { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
nav.main a {
  text-decoration: none; color: #fff; font-weight: 600; font-size: 15.5px;
  padding: 4px 0; border-bottom: 2px solid transparent; letter-spacing: .2px;
}
nav.main a:hover { border-bottom-color: #555; }
nav.main a.active { border-bottom-color: var(--red); }
nav.main a.btn { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--red); color: #fff !important;
  text-decoration: none; font-weight: 700; padding: 12px 24px; font-size: 16px;
  border-radius: var(--radius); border: 2px solid var(--red); cursor: pointer;
  font-family: inherit; transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--red) !important; }
.btn.ghost:hover { background: var(--red-soft); }
.btn.onblack { background: transparent; color: #fff !important; border-color: #fff; }
.btn.onblack:hover { background: #fff; color: var(--black) !important; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.06;
  letter-spacing: -1.4px; margin: 0 0 20px; max-width: 17ch;
}
.hero h1 .red { color: var(--red); }
.hero p.lead { font-size: 20px; color: var(--ink-soft); max-width: 56ch; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero.photo {
  background-size: cover; background-position: center; border-bottom: 3px solid var(--red);
  color: #fff; padding: 96px 0 80px;
}
.hero.photo h1 { color: #fff; }
.hero.photo p.lead { color: #d6d9dd; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 1.8px; font-size: 13px;
  font-weight: 800; color: var(--red); margin: 0 0 14px;
}
.eyebrow.light { color: #fff; }

/* ---------- Hero badges ---------- */
.badges {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px; margin-top: 52px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.22);
}
.badge { display: flex; gap: 12px; align-items: center; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.3; }
.badge .bi {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--red); color: var(--red);
  display: grid; place-items: center; font-size: 17px;
}

/* ---------- Red stripe ---------- */
.stripe { background: var(--red); color: #fff; }
.stripe .wrap {
  padding: 16px 24px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  font-size: 17px;
}
.stripe strong { font-size: 19px; text-transform: uppercase; letter-spacing: .6px; }
.stripe span { color: #ffdedb; }

/* ---------- Sections ---------- */
section { padding: 74px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

h2 { font-size: clamp(26px, 3.4vw, 35px); letter-spacing: -0.6px; margin: 0 0 16px; line-height: 1.18; }
h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -0.2px; }
.section-intro { color: var(--ink-soft); max-width: 62ch; margin: 0 0 40px; font-size: 18px; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.tight { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--ink-soft); margin: 0; }
.card ul { color: var(--ink-soft); margin: 0; padding-left: 20px; }
.card ul li { margin-bottom: 6px; }
.card.accent { background: var(--black); color: #fff; border-color: var(--black); }
.card.accent h3 { color: #fff; }
.card.accent p { color: #b6bac0; }
.card .thumb {
  width: 100%; height: 150px; object-fit: cover; object-position: center;
  border-radius: 6px; margin-bottom: 18px; background: #eceef0;
}

.shot { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.shot.white { background: #fff; padding: 14px; }


/* ---------- Mini list items ---------- */
.mini {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; font-weight: 600; font-size: 16px;
}
.mini span {
  width: 26px; height: 26px; border-radius: 50%; background: var(--black); color: var(--red);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; flex-shrink: 0;
}

/* ---------- Product rows ---------- */
.prod {
  display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.prod:last-child { border-bottom: 0; }
.prod img { width: 100%; border-radius: 6px; background: #eceef0; }
.prod p { color: var(--ink-soft); margin: 0 0 14px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips span {
  background: var(--black); color: #fff; border-radius: 5px;
  padding: 5px 12px; font-size: 14px; font-weight: 700;
}

/* ---------- Gauges ---------- */
.gauges { display: flex; gap: 14px; flex-wrap: wrap; }
.gauge {
  background: var(--black); color: #fff; border-radius: var(--radius);
  padding: 16px 22px; text-align: center; min-width: 104px;
}
.gauge .g { font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -1px; }
.gauge .gl { font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; color: #a8adb3; }
.gauge .gt { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--red); margin-top: 4px; }
.gauge.sm { padding: 14px 20px; }
.gauge.sm .g { font-size: 24px; }

/* ---------- Pills ---------- */
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 16px; font-size: 15px; font-weight: 600; color: var(--ink);
}
section.alt .pill { background: #fff; }

/* ---------- Ticks & steps ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 28px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink-soft); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 800;
}
.ticks.big li { font-size: 17px; margin-bottom: 14px; }
.ticks.big li strong { color: var(--ink); }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
ol.steps li {
  counter-increment: s; position: relative; padding-left: 56px;
  margin-bottom: 26px; color: var(--ink-soft);
}
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--black); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
}
ol.steps li strong { color: var(--ink); display: block; font-size: 18px; }

.bigline {
  margin-top: 42px; text-align: center; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  font-size: clamp(15px, 2.2vw, 20px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

/* ---------- Info rows ---------- */
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.info-row:last-child { border-bottom: 0; }
.info-row .k { font-weight: 700; min-width: 96px; flex-shrink: 0; }
.info-row .v { color: var(--ink-soft); word-break: break-word; }
.info-row .v a { font-weight: 700; text-decoration: none; }
.info-row .v a:hover { text-decoration: underline; }

.split { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }

/* ---------- CTA band ---------- */
.cta { background: var(--black); color: #fff; padding: 66px 0; border-top: 3px solid var(--red); }
.cta h2 { color: #fff; }
.cta p { color: #b6bac0; font-size: 18px; max-width: 54ch; margin: 0 0 28px; }

/* ---------- Footer ---------- */
footer.site { background: var(--black); color: #9ea3a9; padding: 54px 0 30px; font-size: 15.5px; }
footer.site .cols { display: grid; gap: 34px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 36px; }
footer.site h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: 1.4px; color: #fff; margin: 0 0 14px; }
footer.site a { color: #c9ced4; text-decoration: none; word-break: break-word; }
footer.site a:hover { color: var(--red); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site ul li { margin-bottom: 8px; }
footer.site .flogo { width: 176px; margin-bottom: 16px; }
footer.site .legal {
  border-top: 1px solid #2a2a2a; padding-top: 22px; font-size: 14px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #7d8288;
}

/* ---------- Form ---------- */
form.quote label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15.5px; }
form.quote input, form.quote select, form.quote textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ccd1d6; border-radius: 8px;
  font: inherit; font-size: 16px; margin-bottom: 18px; background: #fff; color: var(--ink);
}
form.quote input:focus, form.quote select:focus, form.quote textarea:focus {
  outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red);
}
form.quote textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 14.5px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- Colors ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 16px; }
.swatch .chip { height: 78px; border-radius: 6px; border: 1px solid rgba(0,0,0,.16); margin-bottom: 8px; }
.swatch .n { font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.swatch .hx { font-size: 12.5px; color: #8b9098; letter-spacing: .4px; }

/* ---------- Map ---------- */
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

@media (max-width: 900px) {
  .prod { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  header.site .wrap { min-height: 0; padding-top: 16px; padding-bottom: 16px; }
  .brand img { width: 170px; }
  nav.main { gap: 16px; width: 100%; }
  .hero, .hero.photo { padding: 56px 0 48px; }
  section { padding: 56px 0; }
  .badges { margin-top: 36px; }
}


/* ---------- Figure ---------- */
.figure { margin: 26px 0; }
.figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.figure figcaption { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; }

/* ---------- Sticky call bar (phones only) ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(0,0,0,.94);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 2px solid var(--red);
  }
  .callbar a {
    text-align: center; text-decoration: none; font-weight: 800; font-size: 16px;
    padding: 13px 8px; border-radius: 8px; background: var(--red); color: #fff;
  }
  .callbar a.alt { background: transparent; border: 2px solid #fff; padding: 11px 8px; }
  body { padding-bottom: 76px; }
}


/* ---------- Gallery ---------- */
.tiles {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.tile { margin: 0; }
.tile img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); border: 1px solid var(--line); background: #eceef0;
}
.tile figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 10px; line-height: 1.45; }
.tile figcaption strong { color: var(--ink); }

.empty {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 56px 32px; text-align: center; background: var(--bg-soft);
}
.empty h3 { font-size: 22px; margin-bottom: 10px; }
.empty p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
