:root {
  /* Palette from Nitrogen Safety logo */
  --nf-red: #d12127;
  --nf-red-dark: #a0151a;
  --nf-red-soft: #f8e8e9;
  --nf-black: #000000;
  --nf-navy: #0a0a0a;
  --nf-ink: #111111;
  --nf-muted: #5c5c5c;
  --nf-line: #e8e8e8;
  --nf-bg: #f7f7f7;
  --nf-white: #ffffff;
  --nf-silver: #cfcfcf;
  --font-display: "Roboto Slab", "Rockwell", "Times New Roman", serif;
  --font-body: "Montserrat", Arial, Helvetica, sans-serif;
  --container: 1140px;
  --radius: 4px;
  --shadow: 0 12px 40px rgba(209, 33, 39, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--nf-ink);
  background: var(--nf-white);
  line-height: 1.65;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--nf-ink);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nf-red);
  text-decoration: none;
}

a:hover {
  color: var(--nf-red-dark);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.top-bar {
  background: var(--nf-red);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-bottom: 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.top-emails {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.top-bar a {
  color: #fff;
}

.top-bar a:hover {
  color: #ffe0e1;
}

.top-phone {
  font-weight: 700;
}

.icon-mail::before {
  content: "✉";
  margin-right: 0.35rem;
}

.site-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--nf-red);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 96px;
}

.site-brand .custom-logo-link,
.site-brand .custom-logo,
.site-logo,
.custom-logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(420px, 58vw);
  object-fit: contain;
}

.site-brand .custom-logo-link {
  line-height: 0;
}

.primary-nav .nav-menu,
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.primary-nav a {
  color: var(--nf-ink);
  display: block;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--nf-red);
}

.menu-item-has-children {
  position: relative;
}

.primary-nav .sub-menu,
.menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 300px;
  width: max-content;
  max-width: 360px;
  background: #ffffff;
  border: 1px solid var(--nf-line);
  border-top: 2px solid var(--nf-red);
  box-shadow: var(--shadow);
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start;
  gap: 0;
  z-index: 50;
  text-align: left !important;
  padding: 0.35rem 0;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu {
  display: flex;
}

.primary-nav .sub-menu li {
  width: 100%;
  display: block;
  text-align: left;
}

.primary-nav .sub-menu a,
.sub-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-transform: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.1rem;
  color: var(--nf-ink);
  border-bottom: 1px solid var(--nf-line);
  text-align: left !important;
}

.primary-nav .sub-menu li:last-child > a {
  border-bottom: 0;
}

.primary-nav .sub-menu a:hover,
.sub-menu a:hover {
  background: #fff5f5;
  color: var(--nf-red);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--nf-ink);
  margin: 6px 0;
}

/* —— Hero slider (admin-editable) —— */
.hero-slider {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(209, 33, 39, 0.06), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(0, 0, 0, 0.04), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  overflow: hidden;
  border-bottom: 0;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
  pointer-events: none;
}

.hero-slider-track {
  position: relative;
  min-height: clamp(420px, 68vh, 640px);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  padding: 2.5rem 0 4.5rem;
  transform: translateX(0);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide.is-enter-left {
  animation: nfSlideInLeft 0.5s ease forwards;
}

.hero-slide.is-enter-right {
  animation: nfSlideInRight 0.5s ease forwards;
}

.hero-slide.is-exit-right {
  animation: nfSlideOutRight 0.5s ease forwards;
  z-index: 1;
}

.hero-slide.is-exit-left {
  animation: nfSlideOutLeft 0.5s ease forwards;
  z-index: 1;
}

@keyframes nfSlideInLeft {
  from { transform: translateX(-100%); opacity: 0.2; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes nfSlideInRight {
  from { transform: translateX(100%); opacity: 0.2; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes nfSlideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes nfSlideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-100%); opacity: 0; }
}

.hero-slide-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
  width: min(100% - 2rem, var(--container));
}

.hero-slide-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--nf-ink);
  line-height: 1.15;
}

.hero-slide-text {
  color: #333;
  font-size: 1.02rem;
  max-width: 36rem;
}

.hero-slide-text p {
  margin: 0 0 0.85rem;
}

.hero-slide-slogan {
  margin: 0.5rem 0 1.25rem;
  color: var(--nf-red);
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
}

.hero-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-slide-actions .btn-outline {
  background: #fff;
}

.hero-slide-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slide-media img {
  width: auto;
  max-width: min(100%, 520px);
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.18));
}

.hero-slider-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--nf-red);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.hero-slider-prev { left: 0.75rem; }
.hero-slider-next { right: 0.75rem; }

.hero-slider-nav:hover {
  background: var(--nf-red);
  color: #fff;
}

.hero-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.6rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 5;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #c9c9c9;
  cursor: pointer;
  padding: 0;
}

.hero-slider-dot.is-active,
.hero-slider-dot:hover {
  background: var(--nf-red);
}

.hero-slider-bar {
  background: var(--nf-red);
  color: #fff;
  position: relative;
  z-index: 2;
}

.hero-slider-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.hero-slider-bar a {
  color: #fff;
}

.hero-slider-bar a:hover {
  color: #ffe0e1;
}

.hero-slider--fallback {
  padding: 4rem 0 0;
}

.hero-slider--fallback .hero-slide-inner {
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--nf-red);
  color: #fff;
  border-color: var(--nf-red);
}

.btn-primary:hover {
  background: var(--nf-red-dark);
  border-color: var(--nf-red-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--nf-red);
  border-color: var(--nf-red);
}

.btn-outline:hover {
  background: var(--nf-red);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--nf-red);
  border-color: #fff;
}

.btn-light:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.nf-icon {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.15em;
}

.nf-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.icon-with-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.info-card-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

.info-card-icon .nf-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: #fff;
}

.icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--nf-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.icon-badge .nf-icon {
  width: 28px;
  height: 28px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (max-width: 820px) {
  .service-cards--two {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #fff;
  border: 1px solid var(--nf-line);
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(209, 33, 39, 0.14);
  border-color: rgba(209, 33, 39, 0.35);
  color: inherit;
}

.service-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a1a, #3a0a0c);
  overflow: hidden;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.05);
}

.service-card-icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--nf-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.service-card-icon .nf-icon {
  width: 22px;
  height: 22px;
}

.service-card-body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: grid;
  gap: 0.65rem;
  flex: 1;
  align-content: start;
}

.service-card-body strong {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--nf-ink);
  line-height: 1.25;
}

.service-card-body em {
  font-style: normal;
  color: var(--nf-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.service-card-body .btn {
  justify-self: start;
  margin-top: auto;
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.78rem;
}

.products-teaser .section-head {
  margin-bottom: 2rem;
}

.products-intro {
  margin: -0.75rem 0 2rem;
  max-width: 720px;
  color: var(--nf-muted);
}

.products-intro.home-rich-text p {
  color: var(--nf-muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.value-card {
  background: var(--nf-bg);
  border-top: 3px solid var(--nf-red);
  padding: 1.25rem;
}

.value-icon {
  color: var(--nf-red);
  margin-bottom: 0.5rem;
}

.value-icon .nf-icon {
  width: 22px;
  height: 22px;
}

.value-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--nf-red);
}

.value-card p {
  margin: 0;
  color: #444;
  font-size: 0.92rem;
}

.experience-copy {
  flex: 1;
  max-width: 40rem;
}

.experience-copy .btn {
  margin-top: 1rem;
}

.page-hero-icon {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
  color: var(--nf-red);
  margin-right: 0.35rem;
}

.page-hero .icon-with-text {
  display: inline-flex;
  align-items: center;
}

.product-featured-image {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nf-bg);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
}

.product-featured-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  display: block;
}

/* In-content images (Gutenberg Image / Gallery / Media & Text) */
.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content :where(h2, h3, h4) {
  margin: 1.75rem 0 0.65rem;
}

.entry-content :where(p, ul, ol) {
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.entry-content .wp-block-image,
.entry-content figure {
  margin: 1.5rem 0;
}

.entry-content .wp-block-image img,
.entry-content figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  display: block;
  margin-inline: auto;
}

.entry-content .wp-block-image figcaption,
.entry-content figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--nf-muted);
  text-align: center;
}

.entry-content .wp-block-image.alignleft,
.entry-content .alignleft {
  float: left;
  margin: 0.35rem 1.25rem 1rem 0;
  max-width: 45%;
}

.entry-content .wp-block-image.alignright,
.entry-content .alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.25rem;
  max-width: 45%;
}

.entry-content .wp-block-image.aligncenter,
.entry-content .aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.entry-content .wp-block-image.alignleft img,
.entry-content .wp-block-image.alignright img,
.entry-content .alignleft img,
.entry-content .alignright img {
  width: auto;
  max-width: 100%;
}

.entry-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.entry-content .wp-block-gallery .wp-block-image,
.entry-content .wp-block-gallery figure {
  margin: 0;
}

.entry-content .wp-block-media-text {
  margin: 1.75rem 0;
  gap: 1.25rem;
  align-items: center;
}

.entry-content .wp-block-media-text img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  display: block;
  margin-inline: auto;
}

.product-detail-wrap {
  max-width: 1040px;
}

.product-entry-content > .wp-block-paragraph:first-child {
  max-width: 46rem;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.product-entry-content .wp-block-media-text {
  margin: 0 0 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--nf-line);
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: center;
}

.product-entry-content .wp-block-media-text:last-of-type {
  border-bottom: 0;
}

.product-entry-content .wp-block-media-text .wp-block-heading {
  margin: 0 0 0.65rem;
  color: var(--nf-red);
  font-size: 1.25rem;
}

.product-entry-content .wp-block-media-text__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nf-bg);
  border-radius: var(--radius);
  padding: 0.75rem;
  min-height: 220px;
  height: 100%;
  overflow: hidden;
}

.product-entry-content .wp-block-media-text__media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
}

/* Symmetric product section rows (text | image) */
.product-entry-content .product-section-row {
  margin: 0 0 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--nf-line);
  gap: 1.75rem !important;
  align-items: center !important;
}

.product-entry-content .product-section-row:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

.product-entry-content .product-section-row > .wp-block-column {
  margin: 0;
}

.product-entry-content .product-section-copy .wp-block-heading {
  margin: 0 0 0.65rem;
  color: var(--nf-red);
  font-size: 1.25rem;
}

.product-entry-content .product-section-copy p {
  margin: 0;
}

.product-entry-content .product-section-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-entry-content .product-section-media .wp-block-image,
.product-entry-content .product-section-media figure,
.product-entry-content .product-media-slot {
  width: 100%;
  margin: 0;
  background: var(--nf-bg);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.75rem;
  box-sizing: border-box;
}

.product-entry-content .product-section-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.product-entry-content .product-media-slot.is-empty {
  background: var(--nf-bg);
  border: 0;
}

.entry-content::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 640px) {
  .entry-content .wp-block-image.alignleft,
  .entry-content .wp-block-image.alignright,
  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    max-width: 100%;
    margin: 1.25rem 0;
  }

  .entry-content .wp-block-media-text,
  .product-entry-content .wp-block-media-text {
    grid-template-columns: 1fr !important;
  }

  .product-entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
    order: -1;
  }

  .product-entry-content .product-section-row {
    flex-direction: column;
  }

  .product-entry-content .product-section-media {
    order: -1;
    width: 100%;
  }
}

.icon-mail::before {
  content: none;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
}

.contact-line .nf-icon {
  color: var(--nf-red);
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.hero-slider-bar .nf-icon,
.top-bar .nf-icon {
  color: inherit;
}

.top-bar .icon-with-text .nf-icon {
  width: 1em;
  height: 1em;
}

@media (max-width: 900px) {
  .hero-slide-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-slide-text {
    margin-inline: auto;
  }

  .hero-slide-actions {
    justify-content: center;
  }

  .hero-slide-media img {
    max-height: 280px;
  }

  .hero-slider-track {
    min-height: 0;
  }

  .hero-slide {
    padding: 2rem 0 4rem;
  }

  .hero-slide.is-active {
    position: relative;
  }

  .hero-slide[hidden]:not(.is-exit-left):not(.is-exit-right) {
    display: none !important;
  }

  .hero-slider-nav {
    top: auto;
    bottom: 4.2rem;
    transform: none;
  }

  .hero-slider-prev { left: 1rem; }
  .hero-slider-next { right: 1rem; }
}

@media (max-width: 560px) {
  .hero-slider-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
  }

  .hero-slide-title {
    font-size: 1.55rem;
  }
}

.section {
  padding: 4.5rem 0;
}

.section-label {
  color: var(--nf-red);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin: 0 0 0.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
  min-height: 0;
}

.who-we-are .split-media img,
.turnkey .split-media img {
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.who-we-are {
  background: var(--nf-bg);
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.info-card {
  background: var(--nf-red);
  color: #fff;
  padding: 2rem;
  border-top: 4px solid var(--nf-black);
}

.info-card h3 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  color: #fff;
  font-weight: 800;
}

.info-card h3.icon-with-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.home-rich-text > *:first-child {
  margin-top: 0;
}

.home-rich-text > *:last-child {
  margin-bottom: 0;
}

.home-rich-text p {
  margin: 0 0 0.85rem;
}

.home-rich-text ul,
.home-rich-text ol {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.home-rich-text li {
  margin: 0.25rem 0;
}

.home-rich-text strong,
.home-rich-text b {
  font-weight: 700;
}

.info-card .home-rich-text,
.info-card .home-rich-text p,
.info-card .home-rich-text li {
  color: #fff;
}

.info-card .home-rich-text a {
  color: #fff;
  text-decoration: underline;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.service-subhead {
  margin: 1.75rem 0 0.5rem;
  color: var(--nf-red);
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.values-list {
  columns: 1;
  max-width: 820px;
}

.icon-grid.five {
  grid-template-columns: repeat(5, 1fr);
}

.icon-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.icon-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--nf-line);
  border-bottom: 3px solid var(--nf-red);
  padding: 1.4rem 0.75rem;
  display: block;
  transition: 0.2s ease;
}

.icon-item:hover {
  box-shadow: var(--shadow);
  color: inherit;
}

.icon-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--nf-red);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.icon-item h4 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nf-red);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 1;
}

.check-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  break-inside: avoid;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--nf-red);
  border-radius: 1px;
}

.experience-band {
  background: var(--nf-red);
  color: #fff;
  padding: 3rem 0;
}

.experience-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.years {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.years-label {
  margin: 0;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--nf-red);
  color: #fff;
  padding: 1.4rem 1.2rem;
  border-left: 4px solid var(--nf-black);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  transition: 0.2s ease;
}

.product-card:hover {
  background: var(--nf-red-dark);
  color: #fff;
  border-left-color: #fff;
}

.product-card.tall {
  min-height: 160px;
}

.product-card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-card span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
}

.page-hero {
  background: linear-gradient(120deg, var(--nf-black) 0%, #2a0a0c 45%, var(--nf-red) 100%);
  color: #fff;
  padding: 3.5rem 0 2.75rem;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.page-hero p {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb {
  margin: 0 0 0.5rem !important;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--nf-silver);
}

.content-narrow {
  max-width: 820px;
}

.page-content :where(p, ul, ol) {
  font-size: 1.02rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

.contact-block {
  margin-bottom: 1.5rem;
}

.contact-block h4 {
  margin: 0 0 0.35rem;
  color: var(--nf-red);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 700;
}

.contact-form-wrap {
  background: var(--nf-bg);
  padding: 1.75rem;
  border-top: 4px solid var(--nf-red);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--nf-line);
  padding: 0.75rem 0.85rem;
  font: inherit;
  border-radius: var(--radius);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(227, 6, 19, 0.25);
  border-color: var(--nf-red);
}

.contact-form .captcha-field input {
  max-width: 8rem;
}

.form-success {
  background: #e8fff0;
  border: 1px solid #8fd6a8;
  padding: 0.9rem 1rem;
}

.form-error {
  background: #ffecec;
  border: 1px solid #f0a0a0;
  padding: 0.9rem 1rem;
}

.mt-lg {
  margin-top: 2rem;
}

.site-footer {
  position: relative;
  background-color: #f5f6f8;
  background-image: url("../images/footer-pattern.svg");
  background-size: 120px 120px;
  background-position: center;
  background-repeat: repeat;
  color: #1a1a1a;
  padding-top: 3.5rem;
  border-top: 3px solid var(--nf-red);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(209, 33, 39, 0.06), transparent 42%),
    radial-gradient(circle at bottom right, rgba(209, 33, 39, 0.05), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.35));
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-logo,
.footer-about .custom-logo-link,
.footer-about .custom-logo {
  height: 70px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
}

.footer-about .custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-about p {
  color: #333;
}

.footer-col h3 {
  color: var(--nf-red);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--nf-red);
  display: inline-block;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
  color: #1a1a1a;
}

.footer-col a {
  color: #1a1a1a;
}

.footer-col a:hover {
  color: var(--nf-red);
}

.footer-contact .contact-line .nf-icon {
  color: var(--nf-red);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #1a1a1a;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit a {
  color: var(--nf-red);
  font-weight: 700;
}

.footer-credit a:hover {
  color: var(--nf-red-dark);
}

@media (max-width: 700px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .split,
  .split.reverse,
  .cards-2,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .icon-grid.five {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #ffffff;
    border-bottom: 3px solid var(--nf-red);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 1rem 1rem;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .nav-menu,
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-item-has-children > .sub-menu,
  .primary-nav .sub-menu {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    max-width: none;
    box-shadow: none;
    align-items: stretch !important;
    text-align: left !important;
  }

  .menu-item-has-children.is-open > .sub-menu {
    display: flex;
  }

  .primary-nav .sub-menu a {
    text-align: left !important;
    padding-left: 1.5rem;
  }

  .site-header {
    position: relative;
  }

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

@media (max-width: 560px) {
  .hero {
    min-height: 70vh;
  }

  .split-media img {
    max-height: 360px;
  }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #1ebe57;
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float .nf-icon {
  width: 30px;
  height: 30px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 560px) {
  .whatsapp-float {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }
}

/* —— Site-wide responsive hardening —— */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom);
}

img,
video,
iframe,
embed,
object,
svg {
  max-width: 100%;
  height: auto;
}

.entry-content table,
.page-content table,
.content-editable table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content iframe,
.page-content iframe,
.content-editable iframe {
  max-width: 100%;
}

.wp-block-group[class*="is-layout-grid"],
.wp-block-group.is-layout-grid,
.entry-content .wp-block-group {
  max-width: 100%;
}

.product-detail-wrap,
.content-narrow,
.page-content .container {
  max-width: 100%;
}

@media (max-width: 980px) {
  .section {
    padding: 3.25rem 0;
  }

  .page-hero {
    padding: 2.5rem 0 2rem;
  }

  .experience-inner {
    flex-direction: column;
    text-align: center;
  }

  .years {
    font-size: clamp(2.75rem, 12vw, 4rem);
  }

  .section-head {
    align-items: flex-start;
  }

  .section-head .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 76px;
    gap: 0.75rem;
  }

  .site-brand .custom-logo-link,
  .site-brand .custom-logo,
  .site-logo,
  .custom-logo {
    height: 52px;
    max-width: min(240px, 62vw);
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .info-card {
    padding: 1.5rem;
  }

  .info-card h3 {
    font-size: 1.25rem;
  }

  .product-featured-image img {
    max-height: 280px;
  }

  .contact-form-wrap {
    padding: 1.25rem;
  }

  .hero-slider-dots {
    bottom: 3.4rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2.5rem 0;
  }

  .page-hero {
    padding: 2rem 0 1.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.2;
  }

  .page-hero .icon-with-text {
    align-items: flex-start;
    gap: 0.4rem;
  }

  .top-bar {
    font-size: 0.75rem;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
    gap: 0.35rem 1rem;
  }

  .icon-grid,
  .icon-grid.four,
  .icon-grid.five {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

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

  .service-cards,
  .service-cards--two {
    grid-template-columns: 1fr;
  }

  .product-detail-wrap {
    max-width: 100%;
  }

  .product-entry-content > .wp-block-paragraph:first-child {
    max-width: 100%;
  }

  .btn {
    max-width: 100%;
  }

  .hero-slide-actions {
    width: 100%;
  }

  .hero-slide-actions .btn {
    flex: 1 1 auto;
    min-width: min(100%, 160px);
    text-align: center;
  }

  .site-wrapper {
    padding-bottom: 4.5rem; /* room for WhatsApp float */
  }
}

@media (max-width: 420px) {
  .icon-grid,
  .icon-grid.four,
  .icon-grid.five {
    grid-template-columns: 1fr;
  }

  .primary-nav a {
    padding: 0.85rem 0.5rem;
  }

  .container {
    width: min(100% - 1.25rem, var(--container));
  }
}
