:root {
  --content-max-width: 840px;
  --container-max-width: 1400px;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --pyrotech-product:
    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  /* Pill CTA (.pyrotech-cta) — site-wide; adjust here only */
  --pyrotech-cta-bg: #3474df;
  --pyrotech-cta-bg-hover: #1e40af;
  --pyrotech-cta-fg: #fff;
  --pyrotech-cta-padding: 6px 6px 6px 20px;
  --pyrotech-cta-gap: 12px;
  --pyrotech-cta-arrow: 24px;
  --pyrotech-cta-arrow-icon: 12px;
  /* Larger pill CTA (.pyrotech-cta-big) — same colors as .pyrotech-cta */
  --pyrotech-cta-big-height: 46px;
  --pyrotech-cta-big-padding: 8px 8px 8px 20px;
  --pyrotech-cta-big-arrow: 34px;
  --pyrotech-cta-big-arrow-icon: 17px;
  /* Text — primary body/titles vs supporting copy (captions, meta, de-emphasized) */
  --color-text-primary: #000000;
  --color-text-secondary: #8b99ad;
  /* Alias */
  --text-secondary: var(--color-text-secondary);
}

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

/* Native smooth scroll conflicts with GSAP ScrollSmoother (footer.php). */
html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family:
    "Noto Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, span, p {
  margin: 0 !important;
}

button,
input,
select,
textarea {
  font-family: "Product Sans", var(--pyrotech-product);
}

/* Primary pill CTAs — <a> or <button type="button">; optional .arrow-icon + SVG */
.pyrotech-cta,
.pyrotech-cta-big {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: var(--pyrotech-cta-gap);
  background: var(--pyrotech-cta-bg);
  color: var(--pyrotech-cta-fg);
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition:
    background-color 0.22s ease,
    color 0.22s ease;
}

.pyrotech-cta {
  padding: var(--pyrotech-cta-padding);
}

.pyrotech-cta-big {
  height: var(--pyrotech-cta-big-height);
  padding: var(--pyrotech-cta-big-padding);
}

.pyrotech-cta:hover,
.pyrotech-cta:focus-visible,
.pyrotech-cta-big:hover,
.pyrotech-cta-big:focus-visible {
  background: var(--pyrotech-cta-bg-hover);
  color: var(--pyrotech-cta-fg);
}

.pyrotech-cta .arrow-icon,
.pyrotech-cta-big .arrow-icon {
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1a232c;
}

.pyrotech-cta .arrow-icon {
  width: var(--pyrotech-cta-arrow);
  height: var(--pyrotech-cta-arrow);
}

.pyrotech-cta-big .arrow-icon {
  width: var(--pyrotech-cta-big-arrow);
  height: var(--pyrotech-cta-big-arrow);
}

.pyrotech-cta .arrow-icon svg {
  width: var(--pyrotech-cta-arrow-icon);
  height: var(--pyrotech-cta-arrow-icon);
  display: block;
}

.pyrotech-cta-big .arrow-icon svg {
  width: var(--pyrotech-cta-big-arrow-icon);
  height: var(--pyrotech-cta-big-arrow-icon);
  display: block;
}

/* .site-header,
.site-footer, */
/* .site-main {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: var(--space-2);
} */

.entry + .entry {
  margin-top: var(--space-3);
}

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

.product-card {
  padding: var(--space-2);
  border: 1px solid #ddd;
}

/* Shared section shell: title + description row (home industries, precision, etc.) */
.section-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}

/* Centered title + description stack (e.g. home solutions intro) */
.section-head.section-head--centered {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 6px;
}

.section-head.section-head--centered .heading-common,
.section-head.section-head--centered .heading-common-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.heading-common {
  font-size: 36px;
  text-transform: uppercase;
  margin: 0;
  max-width: 550px;
  color: #000;
  flex-shrink: 0;
}

.heading-common-light {
  font-weight: 300;
}

.heading-common-line--heavy {
  font-weight: 800;
}

.heading-common-desc {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  max-width: 560px;
  margin: 0;
  color: #000;
}

/* Full-bleed page hero lead (products / industries landing — centered under title) */
.section-hero-lead {
  font-weight: 200;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
  max-width: 440px;
}

@media (max-width: 768px) {
  .section-head {
    flex-direction: column;
    gap: 24px;
  }

  .heading-common {
    font-size: 28px;
  }
}

/* Small corner circle + arrow on cards (legacy, industries, solutions, precision) */
.pyrotech-card-corner-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 1px solid #fff;
  color: #fff;
  background-color: transparent;
  box-sizing: border-box;
  transition:
    border-color 0.28s ease,
    background-color 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease;
}

.pyrotech-card-corner-icon svg {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
}

.pyrotech-card-corner-icon path {
  stroke: currentColor;
}

.pyrotech-legacy__card:hover .pyrotech-card-corner-icon,
.pyrotech-industries__card:hover .pyrotech-card-corner-icon,
.pyrotech-solutions__card:hover .pyrotech-card-corner-icon,
.pyrotech-precision__card:hover .pyrotech-card-corner-icon {
  border-color: #fff;
  background-color: #fff;
  color: #000;
  transform: scale(1.06) translateY(-2px);
}

.common-max-width {
  max-width: 1280px;
  margin: 0 auto;
}

/*
 * GSAP ScrollSmoother — native scroll stays on <body>; wrapper only clips. Do not use
 * position:fixed on #smooth-wrapper or overflow:hidden on body (that blocks scrolling).
 * Wrappers: header.php → template-parts/layout/footer.php
 */
#smooth-wrapper {
  overflow: hidden;
}

#smooth-content {
  overflow: visible;
  width: 100%;
}

.common-product-card {
	background-color: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	gap: 8px;
}

.common-product-card__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	flex: 1 1 auto;
	min-height: 0;
	text-decoration: none;
	color: inherit;
}

.common-product-card__link:hover h3 {
	text-decoration: underline;
}

.common-product-card__link:focus-visible {
	outline: 2px solid var(--color-text-primary, #111);
	outline-offset: 2px;
}

.common-product-card-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
  border-radius: 12px;
}

.common-product-card h3 {
	font-size: 18px;
	font-weight: 500;
	color: #000;
	margin: 0;
  text-decoration: none !important;
}

.common-product-card p {
	color: var(--color-text-secondary);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 400;
	margin: 0;
}

.common-product-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--pyrotech-blue, #2563eb);
}

.common-product-card__cta-text {
	text-decoration: none;
}

.common-product-card__cta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	transform: rotate(-45deg);
	transform-origin: 50% 50%;
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.common-product-card__cta-arrow {
	display: block;
}

.product-card:hover .common-product-card__cta-icon,
.common-product-card__link:focus-visible .common-product-card__cta-icon {
	transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
	.common-product-card__cta-icon {
		transition: none;
	}
}