/* ==========================================================================
   VALMONT DATA — SEO landing pages (generated catalogue & service pages)
   Builds on the storefront design system in assets/css/style.css: same navy
   #0b1f3a, same orange #d9772a, same type scale, same cards. Everything here
   is content-first — no JavaScript is needed to read a price, a table, an FAQ
   answer or a cross-link, because that is exactly what a crawler (and a slow
   connection) sees.
   ========================================================================== */

/* ---------- shared chrome adjustments ---------- */
/* The landing-page nav has more destinations than the storefront's three, so
   let it wrap on small screens instead of hiding links: Google indexes the
   mobile version, and a link hidden on mobile is a link that does not count. */
@media (max-width: 860px) {
  .nav-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .nav-links { margin-left: 0; width: 100%; flex-wrap: wrap; row-gap: 2px; }
}

/* Footers on these pages carry four or five link columns (the homepage now has
   a "Services" column too) — size them to fit rather than to a fixed count. */
.footer-grid { grid-template-columns: 1.4fr repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- breadcrumbs ---------- */
.seo-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.seo-crumbs a { color: var(--muted); }
.seo-crumbs a:hover { color: var(--orange-2); }
.seo-crumbs [aria-current="page"] { color: var(--soft); font-weight: 700; }
.seo-crumbs .sep { color: var(--line-strong); }

/* ---------- hero ---------- */
.seo-hero { padding: 26px 0 8px; }
.seo-hero .t { margin: 8px 0 12px; max-width: 20ch; }
.seo-hero .lead { margin-bottom: 18px; }
.seo-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.seo-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 14px;
}
.seo-price .amount { font-size: clamp(30px, 5vw, 42px); font-weight: 900; color: var(--orange); letter-spacing: -1px; }
.seo-price .unit { font-size: 14px; color: var(--soft); font-weight: 700; }
.seo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }

/* ---------- "also searched as" — visible vocabulary ---------- */
.seo-aka {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 10px;
  max-width: 760px;
}
.seo-aka > span:first-child {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--orange);
}
.seo-aka span:not(:first-child) {
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--soft);
  background: rgba(248, 250, 252, 0.03);
}

/* ---------- content blocks ---------- */
.seo-content { padding-bottom: 40px; }
.seo-block { margin-top: 40px; max-width: 900px; }
.seo-h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 850;
  color: var(--white);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.seo-block p { font-size: 15.5px; line-height: 1.72; color: var(--soft); margin-bottom: 12px; }
.seo-block p b, .seo-block p strong { color: var(--white); }
.seo-note { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.seo-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  background: rgba(217, 119, 42, 0.12);
  border: 1px solid rgba(217, 119, 42, 0.3);
  color: #ffd9a8;
  padding: 2px 7px;
  border-radius: 7px;
}
.muted { color: var(--muted); font-weight: 400; }

/* ---------- tables (price lists) ---------- */
.seo-table table { min-width: 560px; }
.seo-table caption,
.seo-table-caption {
  caption-side: top;
  text-align: left;
  font-size: 12.5px;
  color: var(--muted);
  padding: 12px 14px 0;
}
.seo-table td b { color: var(--white); }
.seo-table tr.on td { background: rgba(217, 119, 42, 0.12); }
.seo-table tr.on td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.seo-table tbody tr:hover td { background: rgba(248, 250, 252, 0.04); }
.seo-table .btn-sm { padding: 6px 12px; font-size: 12.5px; white-space: nowrap; }

/* ---------- spec list on a product page ---------- */
.seo-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 4px 0 20px;
}
.seo-specs > div { background: var(--panel); padding: 14px 16px; }
.seo-specs dt {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 5px;
}
.seo-specs dd { font-size: 15px; color: var(--white); font-weight: 700; }
.seo-specs dd b { color: var(--orange); font-size: 18px; }
.seo-specs dd .muted { font-size: 12.5px; font-weight: 500; }

/* ---------- cross-link grid ---------- */
.seo-linkgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.seo-homegrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.seo-linkcard {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  transition: var(--transition);
}
.seo-linkcard:hover { border-color: var(--orange); transform: translateY(-2px); }
.seo-linkcard b { display: block; color: var(--white); font-size: 15px; margin-bottom: 4px; }
.seo-linkcard span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
a.seo-linkcard { color: inherit; }

/* ---------- prev / next size ---------- */
.seo-pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- FAQ (real <details>: readable with JavaScript off) ---------- */
.seo-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.seo-faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 2px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--white);
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--orange);
  flex: none;
  transition: transform 0.2s;
}
.seo-faq-item[open] summary::after { transform: rotate(45deg); }
.seo-faq-item summary:hover { color: var(--orange-2); }
.seo-faq-item > div { padding: 0 2px 16px; }
.seo-faq-item > div p { font-size: 14.5px; line-height: 1.7; color: var(--soft); margin: 0 0 8px; }
.seo-faq-item > div p:last-child { margin-bottom: 0; }

/* ---------- on-site catalogue search (progressive enhancement) ---------- */
.seo-search-block { margin-top: 30px; }
.seo-search { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.seo-search input[type="search"] {
  flex: 1 1 260px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
}
.seo-search input[type="search"]:focus { outline: none; border-color: var(--orange); }
.seo-search-meta { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 18px; }
.seo-search-meta b { color: var(--orange-2); }
.seo-hit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel);
  margin-top: 8px;
}
.seo-hit:hover { border-color: var(--orange); }
.seo-hit .who { font-size: 14.5px; color: var(--white); font-weight: 700; }
.seo-hit .why { font-size: 12px; color: var(--muted); }
.seo-hit .what { font-size: 15px; color: var(--orange); font-weight: 800; white-space: nowrap; }
.seo-pagehit { border-left: 3px solid var(--orange); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .seo-hero .t { max-width: none; }
  .seo-cta .btn { flex: 1 1 100%; }
  .seo-specs { grid-template-columns: 1fr 1fr; }
}

/* ---------- a bundle picked out by a deep link (?net=&size=) ---------- */
.bundle.seo-picked {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 2px var(--orange-glow), 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}
.bundle.seo-picked::after {
  content: "You came for this";
  position: absolute;
  top: -11px;
  left: 14px;
  background: var(--orange);
  color: #1a0f00;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 999px;
}

/* ---------- verified-purchase reviews (assets/js/reviews.js) ----------
   The reviews block is the one part of these pages that needs JavaScript: the
   numbers are live, and a rating we cannot show is a rating we must not claim.
   Everything around it — price, specs, FAQ — still reads with scripts off. */
.reviews-mount.rv-loading { opacity: 0.55; }
.rv-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.rv-score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; color: var(--soft); }
.rv-score b { color: var(--white); font-size: 17px; }
.rv-count { color: var(--muted); font-size: 13px; }
.rv-stars { color: var(--orange); letter-spacing: 1px; font-size: 15px; }
.rv-stars-off { color: var(--line-strong); }
.rv-histogram { display: grid; gap: 5px; }
.rv-bar { display: grid; grid-template-columns: 58px minmax(0, 1fr) 26px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.rv-bar-track { height: 7px; border-radius: 999px; background: rgba(248, 250, 252, 0.08); overflow: hidden; }
.rv-bar-fill { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.rv-bar-count { text-align: right; font-variant-numeric: tabular-nums; }

.rv-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.rv-item { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.rv-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.rv-title { color: var(--white); font-size: 14.5px; }
.rv-body { margin: 7px 0 0; color: var(--soft); font-size: 14px; line-height: 1.6; }
.rv-meta { margin: 9px 0 0; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rv-verified { color: var(--green); font-weight: 700; }
.rv-none { margin: 0; padding: 13px 15px; background: var(--panel); border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.rv-write { margin-top: 16px; }
.rv-panel { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.rv-panel p { margin: 0 0 8px; font-size: 13.5px; color: var(--soft); line-height: 1.6; }
.rv-panel p:last-child { margin-bottom: 0; }
.rv-link { color: var(--orange-2); font-weight: 700; }
.rv-form { display: grid; gap: 12px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.rv-field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); border: 0; padding: 0; margin: 0; }
.rv-field legend { padding: 0; font-size: 13px; color: var(--muted); }
.rv-field em { font-style: normal; opacity: 0.75; }
.rv-field input, .rv-field textarea {
  background: var(--navy-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--white);
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
}
.rv-field textarea { resize: vertical; }
.rv-field input:focus, .rv-field textarea:focus { outline: 2px solid var(--orange-glow); border-color: var(--orange); }
.rv-rates { display: flex; flex-wrap: wrap; gap: 7px; }
.rv-rate { position: relative; }
.rv-rate input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rv-rate span {
  display: inline-block; padding: 6px 11px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line-strong); color: var(--soft); background: var(--navy-2);
}
.rv-rate input:checked + span { border-color: var(--orange); color: #1a0f00; background: var(--orange); font-weight: 800; }
.rv-rate input:focus-visible + span { outline: 2px solid var(--orange-2); outline-offset: 2px; }
.rv-hint { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; }
.rv-submit, .rv-retract {
  border-radius: 10px; padding: 9px 16px; font: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
  border: 1px solid transparent;
}
.rv-submit { background: var(--orange); color: #1a0f00; }
.rv-submit:hover { background: var(--orange-2); }
.rv-submit:disabled { opacity: 0.6; cursor: progress; }
.rv-retract { background: transparent; border-color: var(--line-strong); color: var(--muted); font-weight: 600; }
.rv-retract:hover { color: var(--red); border-color: var(--red); }
.rv-msg { margin: 0; font-size: 13px; min-height: 1.2em; color: var(--muted); }
.rv-msg-bad { color: var(--red); }
@media (min-width: 720px) {
  .rv-summary { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: 18px; }
  .rv-histogram { grid-column: 2; }
  .rv-score { grid-column: 1; }
}
