/**
 * Brand Nomination Program (scode=139) — premium B2B layout
 * Palette aligned with layout.css: #0076c0, #30332D, #ECEDEB
 */
.nom-page {
  --nom-blue: #0076c0;
  --nom-blue-dark: #005a94;
  --nom-ink: #1a1f24;
  --nom-muted: #5c6470;
  --nom-surface: #f4f7fa;
  --nom-card: #ffffff;
  --nom-accent: #00a3e0;
  --nom-radius: 16px;
  --nom-shadow: 0 12px 40px rgba(0, 30, 60, 0.08);
  color: var(--nom-ink);
}

/* —— Hero —— */
.nom-hero {
  position: relative;
  background: linear-gradient(135deg, #0a1628 0%, #0d2842 45%, #0a3d5c 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}
.nom-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0, 163, 224, 0.25), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(0, 118, 192, 0.2), transparent 55%);
  pointer-events: none;
}
.nom-hero .container {
  position: relative;
  z-index: 1;
}
.nom-hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
}
.nom-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.nom-hero__lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: 2rem;
}
.nom-hero__lead p {
  margin: 0;
}
.nom-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.nom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "BasierSquare", "Open Sans", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none !important;
}
.nom-btn--primary {
  background: var(--nom-accent);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 163, 224, 0.45);
}
.nom-btn--primary:hover {
  background: #33b5e8;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 163, 224, 0.5);
}
.nom-btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.nom-btn--ghost:hover {
  border-color: #fff;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}
.nom-hero__visual {
  position: relative;
  min-height: 280px;
  border-radius: var(--nom-radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 992px) {
  .nom-hero__visual {
    margin-top: 0;
    min-height: 320px;
  }
}
.nom-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--nom-radius) - 4px);
  position: absolute;
  inset: 0;
}

/* —— Trust stats —— */
.nom-stats {
  background: var(--nom-card);
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding: 0 0 3rem;
}
.nom-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border-radius: var(--nom-radius);
  overflow: hidden;
  box-shadow: var(--nom-shadow);
}
@media (min-width: 768px) {
  .nom-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.nom-stat {
  background: var(--nom-card);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.nom-stat__num {
  display: block;
  font-family: "BasierSquare", sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  color: var(--nom-blue);
  margin-bottom: 0.35rem;
}
.nom-stat__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nom-muted);
  line-height: 1.35;
}

/* —— Section shells —— */
.nom-section {
  padding: 4rem 0;
}
.nom-section--alt {
  background: var(--nom-surface);
}
.nom-section__head {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.nom-section__head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: var(--nom-ink);
}
.nom-section__head p {
  color: var(--nom-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0;
}

/* —— Why block —— */
.nom-why {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--nom-muted);
}
.nom-why p {
  margin: 0;
}

/* —— Audience cards (Brands / Factories / Docs) —— */
.nom-audience {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .nom-audience {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}
.nom-card {
  background: var(--nom-card);
  border-radius: var(--nom-radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--nom-shadow);
  border: 1px solid rgba(0, 118, 192, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 30, 60, 0.12);
}
.nom-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f4fc, #d4ebf9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--nom-blue);
}
.nom-card__icon svg {
  width: 28px;
  height: 28px;
}
.nom-card__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nom-blue);
  margin-bottom: 0.5rem;
}
.nom-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--nom-ink);
}
.nom-card .richtext,
.nom-card .richtext ul {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--nom-muted);
  margin-bottom: 0;
}
.nom-card .richtext ul {
  padding-left: 1.15rem;
  margin-top: 0.5rem;
}
.nom-card .richtext li {
  margin-bottom: 0.4rem;
}
.nom-card .richtext strong {
  color: var(--nom-ink);
}

/* —— Process flow —— */
.nom-flow {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .nom-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
  }
  .nom-flow::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--nom-blue), var(--nom-accent));
    opacity: 0.35;
    z-index: 0;
  }
}
.nom-flow__step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1rem;
}
.nom-flow__num {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--nom-blue);
  color: #fff;
  font-family: "BasierSquare", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 3rem;
  box-shadow: 0 4px 16px rgba(0, 118, 192, 0.35);
}
.nom-flow__step h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--nom-ink);
}
.nom-flow__step p {
  font-size: 0.875rem;
  color: var(--nom-muted);
  margin: 0;
  line-height: 1.5;
}

/* —— Doc chips —— */
.nom-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.nom-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #e8f4fc;
  color: var(--nom-blue-dark);
  letter-spacing: 0.02em;
}

/* —— CTA band —— */
.nom-cta {
  background: linear-gradient(135deg, var(--nom-blue) 0%, var(--nom-blue-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.nom-cta h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}
.nom-cta__sub {
  font-size: 1.0625rem;
  opacity: 0.9;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}
.nom-cta__sub p {
  margin: 0;
}
.nom-cta__sub a {
  color: #fff !important;
  text-decoration: underline;
  font-weight: 600;
}
.nom-cta .nom-btn--primary {
  background: #fff;
  color: var(--nom-blue-dark) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}
.nom-cta .nom-btn--primary:hover {
  color: var(--nom-blue) !important;
  background: #f0f9ff;
}

/* CMS content normalization inside nom-page */
.nom-page .richtext p:last-child {
  margin-bottom: 0;
}
/* CMS: hide only broken image-default placeholders (never use :empty on <img>) */
.nom-page img.image-default[src=""],
.nom-page img.image-default:not([src]) {
  display: none;
}
