/* ==========================================================================
   Homepage components.
   Colors/fonts/spacing lifted directly from the approved comp
   (Front Page.dc.html). Sections not present in the comp (Applications,
   Testimonials) reuse the same card/section language so they read as part
   of one system rather than a bolted-on addition.
   ========================================================================== */

.home-section__eyebrow {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.home-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-lg);
  margin-bottom: 56px;
}
.home-section__header h2 { margin: 0; font-size: 44px; }
.home-section__lede {
  font-size: 16px;
  color: var(--color-text);
  max-width: 380px;
  text-align: right;
}
.home-section__header--on-dark h2 { color: var(--color-bg) !important; text-decoration: none !important; }
.home-section__header--on-dark h2::after, .home-section__header--on-dark h2::before { content: none !important; }
.home-section__header--on-dark .home-section__lede { color: var(--color-nav-text); }

/* ---- Hero ---- */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 860px;
  padding: 120px var(--space-2xl);
  background: var(--color-navy-dark); /* shows while the photo loads */
}
.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-hero-overlay);
}
.home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 960px;
}
.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.4);
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 32px;
  backdrop-filter: blur(2px);
}
.home-hero__title {
  font-size: 92px;
  line-height: 1.02;
  letter-spacing: -0.5px;
  color: var(--color-bg) !important;
  margin: 0 0 30px 0;
  text-shadow: 0 4px 24px rgba(0,0,0,0.25);
  text-decoration: none !important;
  border-bottom: none !important;
}
.home-hero__title::after, .home-hero__title::before { content: none !important; }
.home-hero__subtitle {
  font-size: 21px;
  line-height: 1.6;
  color: var(--color-nav-text);
  max-width: 640px;
  margin: 0 0 46px 0;
  font-weight: 400;
}
.home-hero__actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- Product line cards ---- */
.home-products { padding: var(--space-3xl) var(--space-2xl); background: var(--color-bg); }
.product-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s ease;
}
.product-card:hover { border-color: var(--color-gold); }
.product-card__img {
  height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  background: var(--color-bg);
}
.product-card__img-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 7px 16px;
  border: 1.5px solid var(--color-navy);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
  background: transparent;
  transition: background .2s ease, color .2s ease;
}
.product-card__img--tinted .product-card__img-label { border-color: var(--color-gold); color: rgba(245, 247, 250, 0.85); }
.product-card:hover .product-card__img-label { background: var(--color-navy); color: var(--color-bg); }
.product-card:hover .product-card__img--tinted .product-card__img-label { background: var(--color-gold); color: var(--color-navy); }
.product-card__body { padding: 26px 24px 30px 24px; }
.product-card__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.product-card__name { font-size: 24px; margin-bottom: 10px; }
.product-card__desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 18px; }
.product-card__link { font-size: 14px; font-weight: 600; color: var(--color-navy); }
.product-card__flyout {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: var(--color-bg);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  text-align: center;
}
.product-card__flyout-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.product-card__flyout-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin-top: 2px;
}

/* ---- Core stats ---- */
.home-stats { background: var(--color-navy); padding: 90px var(--space-2xl); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; border-right: 1px solid rgba(245, 247, 250, 0.15); padding: 0 var(--space-md); }
.stat:last-child { border-right: none; }
.stat__value { font-family: var(--font-mono); font-weight: 500; font-size: 56px; color: var(--color-gold); line-height: 1; }
.stat__label { font-size: 15px; color: var(--color-nav-text); margin-top: 16px; letter-spacing: 0.3px; }

/* ---- Application scenarios ---- */
.home-applications { padding: 100px var(--space-2xl); background: var(--color-bg); }
.app-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.app-card:hover {
  background: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  box-shadow: 0 0 0 1px var(--color-gold), var(--shadow-card-hover) !important;
}
.app-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.1);
  border: 1.5px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
}
.app-card__name { font-size: 20px; margin: 0; }
.app-card__desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; flex: 1; }
.app-card__link { font-size: 13px; font-weight: 600; color: var(--color-navy); }

/* ---- Trust badges ---- */
.home-trust { padding: 100px var(--space-2xl); background: var(--color-bg); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-md); }
.trust-badge {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.trust-badge__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.1);
  border: 1.5px solid var(--color-badge-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-badge__check {
  width: 22px; height: 14px;
  border-left: 3px solid var(--color-badge-green);
  border-bottom: 3px solid var(--color-badge-green);
  transform: rotate(-45deg) translate(2px, -2px);
}
.trust-badge__name { font-weight: 600; font-size: 15px; color: var(--color-navy); }
.trust-badge__desc { font-size: 12px; color: var(--color-text-muted); }
.cert-photo-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-md); }
.cert-photo-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.cert-photo-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-form-hover); }
.cert-photo-card__img { width: 100%; height: 280px; object-fit: contain; border-radius: 2px; display: block; background: var(--color-bg); }

/* ---- Testimonials ---- */
.home-testimonials { padding: 100px var(--space-2xl); background: var(--color-navy-dark); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 247, 250, 0.12);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card__quote { font-size: 15px; line-height: 1.7; color: var(--color-nav-text); margin: 0; }
.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(245, 247, 250, 0.12);
  padding-top: 16px;
}
.testimonial-card__name { font-weight: 600; font-size: 14px; color: var(--color-bg); }
.testimonial-card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--color-gold); letter-spacing: 0.5px; }

/* ---- Bottom CTA ---- */
.home-cta {
  background: linear-gradient(120deg, var(--color-navy-dark), var(--color-navy));
  padding: 90px var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.home-cta__title { font-size: 42px; color: var(--color-bg) !important; margin: 0 0 12px 0; }
.home-cta__desc { font-size: 17px; color: var(--color-nav-text) !important; margin: 0; }
.home-cta .btn-primary { padding: 20px 44px; font-size: 17px; }
.home-cta--spaced { margin-top: 80px; }
.home-faq { background: linear-gradient(120deg, var(--color-navy-dark), var(--color-navy)); padding: 90px var(--space-2xl); }
.home-faq-list { max-width: 820px; margin: 0 auto; }
.home-faq-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 247, 250, 0.14);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}
.home-faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}
.home-faq-item[open] summary::after { content: '−'; }
.home-faq-item[open] summary { border-bottom: 1px solid rgba(245, 247, 250, 0.14); }
.home-faq-item__answer { padding: 4px 24px 20px; font-size: 14px; color: var(--color-nav-text); line-height: 1.7; }
.home-faq__more { text-align: center; margin-top: 32px; }
.home-faq__more a { color: var(--color-gold); font-weight: 600; font-size: 15px; }
.home-inquiry-card {
  max-width: 820px;
  margin: 56px auto 0;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.home-inquiry-card__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--color-navy); margin-bottom: 24px; }
.home-inquiry-card .form-placeholder { text-align: left; }

/* ---- Contact Form 7 — brand styling (used on homepage, quote & contact pages) ---- */
.wpcf7-form { max-width: 100%; }
.wpcf7-form p { margin: 0 0 20px 0; }
.wpcf7-form label { display: block; font-weight: 600; font-size: 14px; color: var(--color-navy); margin-bottom: 8px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color .2s ease;
}
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus {
  outline: none;
  border-color: var(--color-navy);
}
.wpcf7-form textarea { resize: vertical; min-height: 120px; }
.wpcf7-form .wpcf7-file {
  font-size: 14px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--color-surface);
}
.wpcf7-form input[type="submit"] {
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 36px;
  cursor: pointer;
  transition: filter .2s ease;
}
.wpcf7-form input[type="submit"]:hover { filter: brightness(0.92); }
.wpcf7-form .wpcf7-not-valid-tip { color: #c0392b; font-size: 13px; margin-top: 6px; }
.wpcf7-form .wpcf7-response-output { border-radius: var(--radius-sm); font-size: 14px; margin-top: 16px; }
.wpcf7-form .wpcf7-spinner { margin-left: 12px; }

/* ==========================================================================
   Breadcrumb (used by every inner-page template)
   ========================================================================== */
/* Sits between the dark hero and the next (white) content section, so it
   needs top+bottom breathing room and a hairline to close off the hero
   band, rather than just the top padding it had when it sat above the hero. */
.breadcrumb-bar {
  padding-block: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb { font-size: 14px; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-navy); }
.breadcrumb__sep { margin: 0 8px; color: var(--color-border); }
.breadcrumb__current { color: var(--color-navy); font-weight: 600; }

/* ==========================================================================
   Product hero (product-detail & product-category templates)
   ========================================================================== */
.product-hero {
  position: relative;
  padding: 56px var(--space-2xl) 70px;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--color-navy-dark) 0%, var(--color-navy) 60%, var(--color-navy-mid) 100%);
}
.product-hero__panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 38%;
  background: transparent;
}
.product-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  width: 100%;
}
.product-hero__main { max-width: 920px; }
.product-hero__eyebrow {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.product-hero__title,
.product-hero__title a,
.product-hero__title:link,
.product-hero__title:visited {
  font-size: 48px;
  line-height: 1.08;
  color: var(--color-bg) !important;
  margin: 0 0 20px 0;
  text-decoration: none !important;
  border-bottom: none !important;
  -webkit-text-decoration-line: none !important;
}
.product-hero__title::after, .product-hero__title::before { display: none !important; content: none !important; }
.product-hero--photo {
  background-size: cover;
  background-position: center;
  min-height: 380px;
}
.product-hero__desc { font-size: 18px; line-height: 1.6; color: var(--color-nav-text); max-width: 640px; margin: 0 0 36px 0; }
.product-hero__desc p:last-child { margin-bottom: 0; }
.product-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.product-hero__actions .btn { padding: 16px 32px; font-size: 15px; }
.product-hero__badges { display: flex; flex-direction: column; gap: 14px; }
.hero-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  text-align: right;
  min-width: 200px;
}
.hero-badge__value { font-family: var(--font-mono); font-weight: 500; font-size: 26px; color: var(--color-gold); }
.hero-badge__label { font-size: 12px; color: var(--color-nav-text); letter-spacing: 0.5px; margin-top: 4px; }

/* ---- Generic inner-page content section ---- */
.product-section { padding: var(--space-3xl) var(--space-2xl) 0; }
.page-content {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
}
.page-content h2, .page-content h3 { margin-top: var(--space-lg); }
.page-content p { margin: 0 0 var(--space-md) 0; }
.page-content img { border-radius: var(--radius-md); margin: var(--space-md) 0; }
.page-content ul, .page-content ol { list-style: disc; padding-left: 1.4em; margin: 0 0 var(--space-md) 0; }
.page-content ul { list-style-type: disc; }
.page-content ol { list-style-type: decimal; }
.page-content iframe { width: 100%; max-width: 100%; border: 0; border-radius: var(--radius-md); aspect-ratio: 16/9; height: auto; }
.page-content a img { display: inline-block; max-width: 120px; }
.product-section:last-of-type { padding-bottom: var(--space-3xl); }
.product-section__eyebrow {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.product-section h2 { font-size: 36px; margin: 0 0 32px 0; }

/* ---- Spec table ---- */
.spec-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.spec-table { min-width: 640px; }
.spec-table th, .spec-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--color-border); }
.spec-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--color-navy);
  background: var(--color-chip-bg);
  white-space: nowrap;
}
.spec-table td { font-size: 15px; color: var(--color-text); }
.spec-table td.mono { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; }
.spec-table tbody tr:last-child td { border-bottom: none; }

/* ---- Cross-standard equivalents ---- */
.equivalent-chips { display: flex; gap: 16px; flex-wrap: wrap; }
.equivalent-chip {
  background: var(--color-navy);
  color: var(--color-bg);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}
.equivalent-chip__standard { font-family: var(--font-mono); font-size: 11px; color: var(--color-gold); letter-spacing: 1px; }
.equivalent-chip__grade { font-family: var(--font-mono); font-size: 20px; font-weight: 500; }

/* ---- Available forms ---- */
.forms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-card:hover { border-color: var(--color-gold); box-shadow: var(--shadow-form-hover); }
.form-card__name { font-size: 20px; margin-bottom: 8px; }
.form-card__desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }

/* ---- Related links ---- */
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.related-links { display: flex; flex-direction: column; gap: 10px; }
.related-links a { font-size: 15px; font-weight: 500; color: var(--color-navy); }
.related-links--mono a { font-family: var(--font-mono); }

/* ---- Product category hub: 3-column card grid ---- */
.product-cards--3 { grid-template-columns: repeat(3, 1fr); }

/* ==========================================================================
   Grade single (single-steel_grade.php) + grade hub/equivalents pages
   ========================================================================== */
.grade-hero {
  position: relative;
  padding: 56px var(--space-2xl) 60px;
  margin-top: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, var(--color-navy-dark) 0%, var(--color-navy) 60%, var(--color-navy-mid) 100%);
}
.grade-hero__panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 34%;
  background: repeating-linear-gradient(100deg, var(--color-hero-diagram) 0px, var(--color-hero-diagram) 18px, #24466c 18px, #24466c 36px);
  opacity: 0.4;
}
.grade-hero__inner { position: relative; z-index: 2; max-width: 1100px; }
.grade-hero__eyebrow {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.grade-hero__title { font-size: 52px; line-height: 1.06; color: var(--color-bg); margin: 0 0 20px 0; }
.grade-hero__title .accent { color: var(--color-gold); }
.grade-hero__subtitle { font-size: 18px; line-height: 1.6; color: var(--color-nav-text); max-width: 680px; margin: 0; }

.grade-section { padding: 80px var(--space-2xl) 0; }
.grade-section--first { padding-top: 70px; }
.grade-section:last-of-type { padding-bottom: var(--space-3xl); }
.grade-back-link { padding: 60px var(--space-2xl) 0; }
.grade-back-link a { font-size: 15px; font-weight: 600; }

.spec-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.spec-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 26px 24px; text-align: center; }
.spec-card__value { font-family: var(--font-mono); font-weight: 500; font-size: 34px; color: var(--color-gold); }
.spec-card__label { font-size: 13px; color: var(--color-text-muted); margin-top: 10px; letter-spacing: 0.3px; }

.grade-eq-table-wrap { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow-x: auto; }
.grade-eq-table { min-width: 520px; }
.grade-eq-table th, .grade-eq-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--color-border); }
.grade-eq-table th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--color-bg); background: var(--color-navy); white-space: nowrap; }
.grade-eq-table td { font-family: var(--font-mono); font-size: 17px; font-weight: 500; color: var(--color-navy); }
.grade-eq-table tbody tr:nth-child(even) td { background: var(--color-card-alt); }
.grade-eq-table tbody tr:last-child td { border-bottom: none; }
.grade-eq-table td a { font-weight: 500; }

/* Generic asymmetric two-column layout (main content + sidebar card) —
   used by the grade page, quote/contact forms, and anywhere else a wider
   left column needs a narrower supporting card on the right. */
.split-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.pill-group-label {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 12px;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.pill-group-label--spaced { margin-top: 36px; }
.pill-group { display: flex; gap: 12px; flex-wrap: wrap; }
.pill--buyer { background: var(--color-chip-bg); border: 1px solid var(--color-border); color: var(--color-navy); font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: var(--radius-pill); }
.pill--form { background: var(--color-navy); color: var(--color-bg); font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: var(--radius-md); }

.grade-quote-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.grade-quote-card__title { font-size: 24px; margin: 0; }
.grade-quote-card__desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }
.btn--block { width: 100%; justify-content: center; padding: 16px; font-size: 15px; }

/* ---- Grade hub / equivalents chart ---- */
.grade-standard-group { margin-bottom: var(--space-xl); }
.grade-standard-group:last-child { margin-bottom: 0; }
.grade-standard-group__title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}
.grade-pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.grade-pill {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  transition: border-color .2s ease, color .2s ease;
}
.grade-pill:hover { border-color: var(--color-gold); color: var(--color-gold); }
.grade-empty-note { font-size: 14px; color: var(--color-text-muted); font-style: italic; }

/* ==========================================================================
   Application detail (page-application.php)
   ========================================================================== */
.requirement-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}
.requirement-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}
.requirement-item__mark {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.1);
  border: 1.5px solid var(--color-badge-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.requirement-item__mark::before {
  content: '';
  width: 9px; height: 6px;
  border-left: 2px solid var(--color-badge-green);
  border-bottom: 2px solid var(--color-badge-green);
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ==========================================================================
   Certifications (page-certifications.php)
   ========================================================================== */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.cert-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cert-card__thumb {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--color-chip-bg);
}
.cert-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(39, 174, 96, 0.1);
  border: 1.5px solid var(--color-badge-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-card__name { font-size: 20px; margin: 0; }
.cert-card__issuer { font-size: 13px; color: var(--color-text-muted); }
.cert-card__desc { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }
.cert-card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--color-gold); letter-spacing: 0.3px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--color-border); }

/* ==========================================================================
   Conversion pages: quote / contact / downloads / faq
   ========================================================================== */

/* ---- Value chips (in the dark hero, e.g. quote page) ---- */
.value-chip-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.value-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: var(--color-bg);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
}
.value-chip__mark { color: var(--color-gold); font-family: var(--font-mono); }

/* ---- Contact Form 7 placeholder (shown until a form ID is configured) ---- */
.form-placeholder {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  background: var(--color-chip-bg);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.form-placeholder p { margin: 0 0 8px 0; }
.form-placeholder p:last-child { margin-bottom: 0; }
.form-placeholder__hint { font-family: var(--font-mono); font-size: 12px; }

/* ---- Contact info card ---- */
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-card__row { display: flex; flex-direction: column; gap: 4px; }
.info-card__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.5px; color: var(--color-gold); }
.info-card__value { font-size: 15px; color: var(--color-navy); font-weight: 500; }
.info-card__value a { color: var(--color-navy); }

/* ---- Downloads list ---- */
.download-group { margin-bottom: var(--space-xl); }
.download-group:last-child { margin-bottom: 0; }
.download-group__title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}
.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 10px;
}
.download-row:last-child { margin-bottom: 0; }
.download-row__name { font-weight: 600; font-size: 15px; color: var(--color-navy); }
.download-row__desc { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }
.download-row__action { flex-shrink: 0; font-size: 14px; font-weight: 600; color: var(--color-navy); white-space: nowrap; }
.download-row--pending { opacity: 0.6; }
.download-row--pending .download-row__action { color: var(--color-text-muted); font-style: italic; font-weight: 400; }

/* ---- FAQ accordion ---- */
.faq-group { margin-bottom: var(--space-xl); }
.faq-group:last-child { margin-bottom: 0; }
.faq-group__title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 20px;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-item__answer { padding: 4px 24px 20px; font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

/* ==========================================================================
   Blog: article body (single.php), index/archive cards, pagination
   ========================================================================== */
.article-narrow { max-width: 760px; margin: 0 auto; }

.blog-article__header { padding-top: 56px; }
.blog-article__title { font-size: 44px; margin: 12px 0 16px 0; }
.blog-article__meta { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-muted); }
.blog-article__thumb { margin-top: 32px; }
.blog-article__thumb img { width: 100%; border-radius: var(--radius-lg); }
.blog-article__body { padding: 40px 0 var(--space-3xl); }

.article-content { font-size: 16px; line-height: 1.75; color: var(--color-text); }
.article-content h2 { font-size: 30px; margin: 48px 0 20px 0; }
.article-content h3 { font-size: 22px; margin: 36px 0 14px 0; }
.article-content p { margin: 0 0 20px 0; }
.article-content ul, .article-content ol { margin: 0 0 20px 0; padding-left: 22px; }
.article-content li { margin-bottom: 8px; }
.article-content a { color: var(--color-navy); text-decoration: underline; text-decoration-color: var(--color-border); }
.article-content a:hover { color: var(--color-gold); }
.article-content blockquote { border-left: 3px solid var(--color-gold); margin: 24px 0; padding: 4px 24px; color: var(--color-text-muted); font-style: italic; }
.article-content img { border-radius: var(--radius-lg); margin: 24px 0; }
.article-content iframe { width: 100%; max-width: 100%; border: 0; border-radius: var(--radius-lg); aspect-ratio: 16/9; height: auto; margin: 24px 0; }
.article-content code { font-family: var(--font-mono); background: var(--color-chip-bg); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }

.article-faq { margin-top: 56px; }
.article-faq h2 { font-size: 26px; margin-bottom: 20px; }
.article-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--color-border); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.blog-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.blog-card__thumb-wrap { height: 180px; overflow: hidden; }
.blog-card__thumb { width: 100%; height: 100%; object-fit: cover; }
.blog-card__thumb--placeholder { width: 100%; height: 100%; background: linear-gradient(120deg, var(--color-navy-dark), var(--color-navy)); }
.blog-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card__cat { font-family: var(--font-mono); font-size: 11px; color: var(--color-gold); letter-spacing: 1px; text-transform: uppercase; }
.blog-card__title { font-size: 19px; margin: 0; }
.blog-card__excerpt { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; flex: 1; }
.blog-card__meta { font-family: var(--font-mono); font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 600;
  background: var(--color-surface);
}
.pagination .page-numbers.current { background: var(--color-navy); color: var(--color-bg); border-color: var(--color-navy); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--color-gold); color: var(--color-gold); }
.pagination .page-numbers.dots { border: none; background: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .home-hero, .home-products, .home-stats, .home-applications, .home-trust, .home-testimonials, .home-cta,
  .product-hero, .product-section {
    padding-inline: 40px;
  }
  .home-hero__title { font-size: 60px; }
  .product-cards, .app-cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-lg); }
  .stat:nth-child(2) { border-right: none; }
  .trust-grid { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-md); }
  .cert-photo-grid { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-md); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .home-section__header { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .home-section__lede { text-align: left; max-width: none; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-article__title { font-size: 36px; }

  .product-hero__panel { display: none; }
  .product-hero__inner { flex-direction: column; align-items: flex-start; }
  .product-hero__badges { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .hero-badge { flex: 1; min-width: 160px; }
  .forms-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

  .grade-hero, .grade-section, .grade-back-link { padding-inline: 40px; }
  .grade-hero__panel { display: none; }
  .grade-hero__title { font-size: 40px; }
  .spec-cards { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; gap: var(--space-lg); }

  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .home-hero { padding: 72px 20px; min-height: 620px; }
  .home-hero__title { font-size: 38px; }
  .home-hero__subtitle { font-size: 17px; }
  .home-products, .home-stats, .home-applications, .home-trust, .home-testimonials, .home-cta {
    padding-inline: 20px;
    padding-block: 56px;
  }
  .product-cards, .app-cards, .trust-grid { grid-template-columns: 1fr; }
  .cert-photo-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(245, 247, 250, 0.15); padding-bottom: var(--space-md); }
  .home-cta { flex-direction: column; align-items: flex-start; text-align: left; }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-article__title { font-size: 28px; }
  .article-content h2 { font-size: 24px; }
  .article-content h3 { font-size: 19px; }

  .product-hero { padding: 40px 20px 48px; margin-top: 0; }
  .product-hero__title { font-size: 32px; }
  .product-section { padding-inline: 20px; }
  .hero-badge { text-align: left; min-width: 0; }
  .forms-grid { grid-template-columns: 1fr; }

  .grade-hero { padding: 40px 20px 44px; margin-top: 0; }
  .grade-hero__title { font-size: 30px; }
  .grade-section, .grade-back-link { padding-inline: 20px; }
  .spec-cards { grid-template-columns: 1fr 1fr; gap: 12px; }

  .cert-grid { grid-template-columns: 1fr; }

  .download-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
