/* ===============================
TRAILFORGE USA — GLOBAL STYLES
=============================== */

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0b0b0c;
  color: #f2f2f2;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

/* ===== Links (NO BLUE / PURPLE) ===== */
a, a:visited { color: #ff3b3b; text-decoration: none; }
a:hover { opacity: 0.95; }
a:active { color: #ff5a5a; }

.muted { opacity: 0.82; margin-top: -0.25rem; }

/* ===== Layout ===== */
.section {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem 1.25rem; }
li { margin: 0.35rem 0; }

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(10,10,11,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}

.brand img { width: 220px; max-width: 220px; }

.header nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-weight: 800;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
}
.header nav a:visited { color: rgba(255,255,255,0.92); }
.header nav a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}

/* ================= HERO (HOME) ================= */
/* HERO WAS TOO DARK — tuned so hero.png is clearly visible */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 3.5rem 0;

  background:
    radial-gradient(900px 520px at 72% 20%, rgba(242,195,0,0.10), transparent 55%),
    radial-gradient(900px 520px at 20% 85%, rgba(179,18,18,0.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.32), rgba(0,0,0,0.55)),
    url("/assets/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* lighter overlay than before */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 50% 30%, rgba(0,0,0,0.10), rgba(0,0,0,0.45));
  pointer-events:none;
}

.hero-inner{
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 2rem));
  text-align: center;
  padding: 2.25rem 1.25rem;
  border-radius: 22px;
  background: rgba(0,0,0,0.18); /* lighter so hero shows through */
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 28px 80px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}

.hero-kicker{
  margin: 0 0 0.8rem;
  font-weight: 900;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  opacity: 0.90;
}

.hero-title{
  margin: 0 0 0.85rem;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 950;
  letter-spacing: 0.4px;
  text-shadow: 0 12px 28px rgba(0,0,0,0.55);
}

.hero-subtitle{
  margin: 0 auto 1.35rem;
  width: min(720px, 100%);
  opacity: 0.90;
  font-weight: 750;
  text-shadow: 0 10px 22px rgba(0,0,0,0.55);
}

.hero-cta{
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.btn-arrow{
  display:inline-block;
  transform: translateY(0.5px);
}

/* ================= BUTTON SYSTEM ================= */
.btn,
.btn-ghost,
.btn-red,
.btn-red-outline,
.hero-cta a,
.callout a,
.form-actions button,
.summary-actions button,
.reset-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 900;
  padding: 0.95rem 1.35rem;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;

  transform: translateY(0);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease;
}

.btn:hover,
.btn-ghost:hover,
.btn-red:hover,
.btn-red-outline:hover,
.hero-cta a:hover,
.callout a:hover,
.form-actions button:hover,
.summary-actions button:hover,
.reset-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.55);
}

.btn:active,
.btn-ghost:active,
.btn-red:active,
.btn-red-outline:active,
.hero-cta a:active,
.callout a:active,
.form-actions button:active,
.summary-actions button:active,
.reset-actions button:active {
  transform: translateY(1px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.55);
}

.btn,
.btn-red,
.hero-cta a,
.form-actions button,
.summary-actions button {
  background: #b31212;
  border: 1px solid #ff4a4a;
  color: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.btn:visited, .btn-red:visited, .hero-cta a:visited { color: #fff; }
.btn:hover, .btn-red:hover, .hero-cta a:hover,
.form-actions button:hover, .summary-actions button:hover { background: #d01414; }

.btn-ghost,
.btn-red-outline,
.callout a + a,
.reset-actions button {
  background: rgba(0,0,0,0.18);
  border: 2px solid #b31212;
  color: #ff4a4a;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.btn-ghost:visited, .btn-red-outline:visited, .callout a + a:visited { color: #ff4a4a; }
.btn-ghost:hover, .btn-red-outline:hover, .callout a + a:hover, .reset-actions button:hover {
  background: rgba(179,18,18,0.18);
}

/* ================= Cards / grids ================= */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.25rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* ================= Callout ================= */
.callout{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.callout-left h2{ margin-bottom: 0.4rem; }
.callout-left p{ margin: 0; opacity: 0.86; font-weight: 750; }
.callout-right{
  display:flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ================= Mini callout ================= */
.mini-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}
.mini-callout-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  font-size: 0.78rem;
  background: rgba(242,195,0,0.12);
  border: 1px solid rgba(242,195,0,0.28);
  color: rgba(255,255,255,0.92);
}

/* ================= Made-in-USA Stamp sizing ================= */
.stamp-wrapper{
  display:flex;
  justify-content:center;
  margin-top: 1.1rem;
}
.usa-stamp{
  width: 220px;
  max-width: 60vw;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.55));
}
.home-page .stamp-wrapper{ margin-top: 1.15rem; }
.home-page .usa-stamp{ width: 200px; }
.products-page .usa-stamp{ width: 200px; }

/* ================= Products: legend + compare table (cleaner) ================= */
.legend{
  display:flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}
.legend-item{
  display:flex;
  align-items:center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 850;
  opacity: 0.92;
}

.mark{
  display:inline-flex;
  width: 22px;
  height: 22px;
  align-items:center;
  justify-content:center;
  border-radius: 7px;
  font-weight: 950;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.30);
}
.mark.yes{ color: rgba(150,255,180,0.95); }
.mark.maybe{ color: rgba(242,195,0,0.95); }
.mark.no{ color: rgba(255,120,120,0.95); }

.table-wrapper{
  overflow:auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
}

.compare-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.compare-table th,
.compare-table td{
  padding: 0.85rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-weight: 800;
  white-space: nowrap;
}

.compare-table th:first-child,
.compare-table td:first-child{
  text-align: left;
  position: sticky;
  left: 0;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(10px);
}

.compare-table thead th{
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  text-transform: uppercase;
  letter-spacing: 0.25px;
  font-weight: 950;
}

.compare-table tbody tr:nth-child(odd){
  background: rgba(255,255,255,0.02);
}

.attachments-list li{
  margin: 0.55rem 0;
}

/* ================= Build page ================= */
.build-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1rem;
  align-items: start;
}

.build-main { min-width: 0; }

.build-summary {
  position: sticky;
  top: 92px;
}

.summary-card {
  padding: 1.15rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 0.85rem;
}

.summary-title {
  font-weight: 950;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.summary-sub { opacity: 0.78; font-size: 0.95rem; margin-top: 0.15rem; }

.summary-badge {
  font-weight: 950;
  font-size: 0.80rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(242,195,0,0.12);
  border: 1px solid rgba(242,195,0,0.28);
}

.summary-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.summary-row:last-of-type { border-bottom: none; }
.summary-label { opacity: 0.78; font-weight: 800; }
.summary-value { font-weight: 850; }
.summary-notes .summary-value { white-space: pre-wrap; opacity: 0.92; font-weight: 800; }

.summary-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.reset-actions{
  margin-top: 0.65rem;
  display:flex;
  justify-content:center;
}

.summary-fine {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.82;
  text-align: center;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.option-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.option-card {
  position: relative;
  display: block;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.option-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.035);
}

.option-card.selected {
  border-color: rgba(242,195,0,0.35);
  background: linear-gradient(180deg, rgba(242,195,0,0.10), rgba(255,255,255,0.03));
  box-shadow: 0 26px 62px rgba(0,0,0,0.50);
}

.option-title {
  font-weight: 950;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.option-sub { opacity: 0.82; font-weight: 700; }
.option-card-check .option-title { text-transform: none; letter-spacing: 0.15px; }

.opt-note {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  opacity: 0.72;
}

/* Disabled option cards */
.option-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.option-card.is-disabled:hover {
  transform: none;
  box-shadow: none;
  background: rgba(0,0,0,0.25);
}

/* Form elements */
.build-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1rem;
}
.select:focus {
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
  outline: none;
}

form {
  max-width: 640px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label { font-weight: 800; }

input, textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 1rem;
}

textarea { min-height: 150px; resize: vertical; }

input:focus, textarea:focus {
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
  outline: none;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

/* Mounting options: clearer "what is what" */
.mount-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.75rem;
}
.mount-card{
  position:relative;
  padding: 0.95rem 0.95rem 0.95rem 3.1rem;
  border-radius: 16px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}
.mount-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0,0,0,0.40);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
}
.mount-card input{
  position:absolute;
  left: 0.95rem;
  top: 1.05rem;
  width: 18px;
  height: 18px;
  opacity: 1;
  pointer-events:auto;
}
.mount-title{
  font-weight: 950;
  letter-spacing: 0.2px;
}
.mount-sub{
  opacity: 0.82;
  font-weight: 700;
  margin-top: 0.2rem;
  font-size: 0.95rem;
}
.mount-card.selected{
  border-color: rgba(242,195,0,0.35);
  background: linear-gradient(180deg, rgba(242,195,0,0.08), rgba(255,255,255,0.02));
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  opacity: 0.80;
  background: rgba(10,10,11,0.65);
}
.footer p { margin: 0; }
.footer .footer-sub { margin-top: 0.35rem; opacity: 0.85; }

/* Responsive */
@media (max-width: 1020px) {
  .build-layout { grid-template-columns: 1fr; }
  .build-summary { position: static; }
}

@media (max-width: 950px) {
  .grid-2 { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .option-grid-compact { grid-template-columns: 1fr; }
  .build-form-grid { grid-template-columns: 1fr; }
  .mount-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .header { flex-direction: column; align-items: flex-start; }
  .brand img { width: 200px; max-width: 200px; }
  .header nav { justify-content: flex-start; }
}
