/* ==========================================================
   Phenx site fixes (Oct 2026)
   1. Contrast fixes (WCAG AA) for small text on the dark theme
   2. Home page announcement banner
   3. Contact / RFQ form: status messages, file input, honeypot
   Loaded after each page's inline styles so these rules win.
   ========================================================== */

/* ---------- 1. Contrast ---------- */
:root {
  --steel-2: #8E939B;      /* was #6A6F78 (3.5 to 4.0:1 on dark panels) */
  --text-3: #8E939B;       /* home page tertiary text */
  --steel-tint: #8E939B;
  --red-text: #F2464E;     /* red used for small text on dark (4.7:1+) */
  --red-btn: #D01E26;      /* red button background, white text 5.4:1 */
}
.footer-bottom,
.footer-dk .footer-bottom { color: #8E939B; }
.footer-dk h4, .footer h4 { color: #8E939B; }

.nav-links a.active,
.section-tag .red,
.leader-body-dk .section-tag .red,
.pillar .num,
.mat-cell .label,
.gal-item .g-tag,
.leader-meta-dk .cell .v .red,
.leader-award a { color: var(--red-text); }
.leader-award a:hover { color: #FF6B71; }

.btn-primary:not(:hover) {
  background-color: var(--red-btn) !important;
  border-color: var(--red-btn) !important;
  color: #FFFFFF !important;
}
.btn-primary:hover { color: #FFFFFF !important; }

/* Anchored sections should not hide under the sticky nav */
section[id], .ind-pane[id], div[id="rfq"] { scroll-margin-top: 96px; }

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

/* ---------- 2. Announcement banner (home page) ---------- */
.award-banner {
  position: relative;
  z-index: 61;
  background: #0E0F12;
  border-top: 3px solid #E5232C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: #F5F5F4;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.award-banner[hidden] { display: none; }
.award-banner .award-banner-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 11px clamp(20px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.award-banner .award-banner-badge {
  flex: 0 0 auto;
  background: #D01E26;
  color: #FFFFFF;
  padding: 5px 9px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}
.award-banner .award-banner-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #F5F5F4;
}
.award-banner .award-banner-text a {
  color: #FF5A61;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  margin-left: 6px;
}
.award-banner .award-banner-text a:hover,
.award-banner .award-banner-text a:focus-visible { color: #FFFFFF; }
.award-banner .award-banner-close {
  flex: 0 0 auto;
  margin-left: 4px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #C9CCD1;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.award-banner .award-banner-close:hover,
.award-banner .award-banner-close:focus-visible { color: #FFFFFF; border-color: #E5232C; }
@media (max-width: 720px) {
  .award-banner .award-banner-inner {
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 10px; padding-bottom: 12px;
    padding-right: 56px;
  }
  .award-banner .award-banner-text { font-size: 14px; flex-basis: 100%; }
  .award-banner .award-banner-close { position: absolute; top: 8px; right: 12px; margin: 0; }
}

/* ---------- 3. Contact form ---------- */
.rfq-form .field label { cursor: pointer; }
.rfq-form .field .hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #9CA1A8;
}
.rfq-form input[type="file"] {
  width: 100%;
  padding: 10px 0;
  color: #C9CCD1;
  font: inherit;
  font-size: 14px;
  background: transparent;
  border: 0;
}
.rfq-form input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 9px 14px;
  background: #16181C;
  color: #F5F5F4;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.rfq-form input[type="file"]::file-selector-button:hover { border-color: #E5232C; }
.rfq-form [aria-invalid="true"] { border-color: #F2464E !important; }

/* Honeypot: hidden from people, visible to naive bots */
.rfq-form .hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status {
  display: none;
  margin: 0 0 22px 0;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid #F2464E;
  background: #16181C;
  color: #F5F5F4;
}
.form-status.is-visible { display: block; }
.form-status strong { display: block; margin-bottom: 4px; color: #FFFFFF; }
.form-status a { color: #FF6B71; text-decoration: underline; text-underline-offset: 3px; }
.form-status.is-info { border-left-color: #9CA1A8; }

.rfq-form button[disabled] { opacity: 0.65; cursor: progress; }
.rfq-form .field .hint a { color: #FF6B71; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 4. Equipment list (capabilities page) ---------- */
.equip-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.equip-group {
  background: #0E0F12;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 3px solid #E5232C;
  padding: 22px 22px 8px;
}
.equip-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #F5F5F4;
}
.equip-group-head .equip-count {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-text, #F2464E);
  white-space: nowrap;
}
.equip-group ul { list-style: none; margin: 0; padding: 0; }
.equip-group li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name qty" "note note";
  column-gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.equip-group li:first-child { border-top: 0; }
.equip-group .eq-name { grid-area: name; font-size: 15.5px; line-height: 1.4; color: #F5F5F4; }
.equip-group .eq-note { grid-area: note; margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: #9CA1A8; }
.equip-group .eq-note:empty { display: none; }
.equip-group .eq-qty {
  grid-area: qty;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C9CCD1;
  white-space: nowrap;
  padding-top: 3px;
}
@media (max-width: 980px) { .equip-list { grid-template-columns: 1fr; } }

/* ---------- 5. Certifications & registrations (quality page + footer) ---------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0 0 0;
}
.cert-item {
  background: #0E0F12;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left: 3px solid #E5232C;
  padding: 18px 20px;
  margin: 0;
}
.cert-item.cert-wide { grid-column: 1 / -1; }
.cert-item dt {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9CA1A8;
  margin-bottom: 8px;
}
.cert-item dd { margin: 0; }
.cert-item .cert-main { display: block; font-size: 18px; line-height: 1.35; color: #F5F5F4; }
.cert-item .cert-code { font-size: 16px; font-family: "Geist Mono", ui-monospace, monospace; letter-spacing: 0.06em; }
.cert-item .cert-sub { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: #C9CCD1; }
@media (max-width: 980px) { .certs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .certs-grid { grid-template-columns: 1fr; } }

.footer-regs {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8E939B;
}
.footer-regs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-regs a:hover { color: #F5F5F4; }

/* ---------- 6. Trusted-by line + stat strip (home page) ---------- */
.trust-dk {
  background: #0E0F12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(40px, 6vw, 72px) 0;
  text-align: center;
}
.trust-dk .trust-line {
  max-width: 44ch;
  margin: 0 auto;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #F5F5F4;
}
.trust-dk .trust-stats {
  list-style: none;
  margin: 28px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 0;
}
.trust-dk .trust-stats li {
  display: inline-flex;
  align-items: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #C9CCD1;
  white-space: nowrap;
}
.trust-dk .trust-stats li + li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 18px;
  background: #E5232C;
  border-radius: 50%;
}
@media (max-width: 640px) {
  .trust-dk .trust-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 420px;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.10);
  }
  .trust-dk .trust-stats li {
    justify-content: center;
    padding: 14px 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: normal;
    text-align: center;
    border-top: 3px solid #E5232C;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
  }
  .trust-dk .trust-stats li:nth-child(2n) { border-right: 0; }
  .trust-dk .trust-stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.10); }
  .trust-dk .trust-stats li + li::before { display: none; }
}

/* ---------- 7. How we work (home page) ---------- */
.hww-dk {
  background: #08090A;
  padding: clamp(64px, 9vw, 120px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hww-dk .h-section { max-width: none; }
.hww-grid {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: none;
}
.hww-card {
  position: relative;
  background: #0E0F12;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top: 3px solid #E5232C;
  padding: 28px 26px 30px;
  transition: border-color .2s ease, transform .2s ease;
}
.hww-card:hover { border-color: rgba(255, 255, 255, 0.22); border-top-color: #E5232C; transform: translateY(-2px); }
.hww-card .hww-num {
  display: block;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--red-text, #F2464E);
  margin-bottom: 18px;
}
.hww-card h3 {
  margin: 0 0 12px 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #F5F5F4;
}
.hww-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #B4B8BE; }
@media (max-width: 900px) { .hww-grid { grid-template-columns: 1fr; } }

/* ---------- 8. Final hero headline (longer, so slightly smaller) + strip-only band ---------- */
.hero-dk h1.hero-h1-long {
  font-size: clamp(38px, 4.3vw, 66px);
  line-height: 1;
  max-width: none;
}
@media (max-width: 980px) {
  .hero-dk h1.hero-h1-long { font-size: clamp(34px, 7.4vw, 52px); }
  .hero-dk h1.hero-h1-long .stack { display: inline; }
}
@media (max-width: 480px) {
  .hero-dk h1.hero-h1-long { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.02; letter-spacing: -0.03em; }
}
.trust-dk.trust-strip-only { padding: 22px 0; }
.trust-dk.trust-strip-only .trust-stats { margin-top: 0; }
@media (max-width: 640px) {
  .trust-dk.trust-strip-only { padding: 24px 0 28px; }
}

/* ---------- 9. Hero subhead with industry links ---------- */
.hero-side p.hero-trust-line {
  margin: 0;
  max-width: none;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.45;
  color: #C9CCD1;
}
.hero-trust-line a {
  color: var(--red-text, #F2464E);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.hero-trust-line a:hover,
.hero-trust-line a:focus-visible { text-decoration-color: currentColor; color: #FF5A61; }
@media (max-width: 480px) {
  .hero-side p.hero-trust-line { font-size: 18px; }
}
/* Tighter hero so the subhead and buttons sit above the fold */
@media (min-width: 981px) {
  .hero-body { padding-top: clamp(40px, 4.5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px); }
  .hero-body .wrap { gap: 32px; }
  .hero-body .hero-wordmark { width: 260px !important; margin-bottom: 28px; }
  .hero-body .hero-side { max-width: 920px; }
  .hero-dk { min-height: 0; }
}
@media (max-width: 480px) {
  .hero-body .hero-wordmark { width: 56% !important; margin-bottom: 18px; }
  .hero-body { padding-top: 36px; }
}

/* ---------- 10. One typeface: Helvetica Neue for headlines and body ----------
   Geist Mono is kept only for small all-caps labels, tags, numbers/codes and the stat strip.
   These mixed-case text runs used the mono face and now use the sans. */
.ind-pane ul li,
.mat-cell li,
.form-actions .note,
.contact-side .info-block .sub,
.as9100-block .meta {
  font-family: var(--sans, "Helvetica Neue", Helvetica, Arial, sans-serif);
  letter-spacing: 0;
}
.ind-pane ul li { font-size: 14px; }
.mat-cell li { font-size: 14px; }
.form-actions .note { font-size: 13px; }
.contact-side .info-block .sub { font-size: 13px; }
.as9100-block .meta { font-size: 13px; line-height: 1.6; }
.award-banner { font-family: var(--sans, "Helvetica Neue", Helvetica, Arial, sans-serif); }
