/* Shared page-level styling for Home, Products, and Contact */

/* Products page styles */
/* Specific Component Styling for Products Page */
body.products-page {
  overflow-x: hidden;
}

body.products-page .page-header {
  padding: 4rem 0 2rem;
  text-align: center;
  background-color: var(--bg-beige);
}

body.products-page .page-header h1 {
  font-size: var(--text-4xl);
  margin-bottom: 1rem;
  color: var(--qam-navy-dark);
  font-weight: 700;
  letter-spacing: -1.5px;
}

body.products-page .page-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: var(--text-base);
}

body.products-page .badge-trans {
  display: inline-flex;
  width: fit-content;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
  padding: 0.46rem 1.2rem;
  border-radius: var(--border-radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 1.15rem;
}

body.products-page .filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

body.products-page .product-hero {
  background:
    linear-gradient(90deg, rgba(10, 25, 49, 0.94) 0%, rgba(10, 25, 49, 0.78) 48%, rgba(10, 25, 49, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 25, 49, 0.76) 0%, rgba(10, 25, 49, 0) 42%),
    url('../images/product-catalog-hero.png') center / cover no-repeat,
    var(--qam-navy-dark);
  color: var(--text-light);
  min-height: 690px;
  padding: 1.25rem 0 7.25rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.products-page .product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 78% 16%, rgba(37, 99, 235, 0.24), transparent 24rem);
  pointer-events: none;
  z-index: -1;
}

body.products-page .product-hero-inner {
  display: flex;
  align-items: center;
  min-height: 430px;
}

body.products-page .product-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

body.products-page .product-hero-copy h1 {
  font-size: clamp(3.35rem, 7vw, 6.7rem);
  line-height: 0.91;
  color: var(--text-light);
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
  max-width: 10.5ch;
}

body.products-page .product-hero-copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 620px;
  font-size: var(--text-lg);
  line-height: 1.66;
}

body.products-page .product-page-shell {
  padding-bottom: 5rem;
}

body.products-page .category-explorer {
  margin: -4.25rem 0 4rem;
  padding: 0;
  position: relative;
  z-index: 2;
}

body.products-page .category-explorer-surface {
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(248, 246, 240, 0.28)),
    rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  box-shadow:
    0 28px 70px rgba(10, 25, 49, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.products-page .section-kicker {
  display: inline-block;
  color: var(--qam-blue-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

body.products-page .category-heading {
  margin-bottom: 1.35rem;
}

body.products-page .category-heading h2 {
  color: var(--qam-navy-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -1.2px;
  margin: 0;
}

body.products-page .category-heading p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0.85rem 0 0;
  font-size: var(--text-base);
  line-height: 1.55;
}

body.products-page .category-clusters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

body.products-page .category-cluster-card {
  border-radius: 26px;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.26)),
    rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  box-shadow:
    0 18px 44px rgba(10, 25, 49, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

body.products-page .category-cluster-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

body.products-page .category-cluster-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--qam-navy-dark);
  color: var(--text-light);
  flex: 0 0 auto;
  box-shadow: 0 12px 26px rgba(10, 25, 49, 0.2);
}

body.products-page .category-cluster-title {
  color: var(--qam-navy-dark);
  font-weight: 700;
  line-height: 1.2;
}

body.products-page .category-cluster-title h3 {
  color: var(--qam-navy-dark);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

body.products-page .category-cluster-title p {
  margin: 0.22rem 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 500;
}

body.products-page .category-button-list {
  display: grid;
  gap: 0.62rem;
}

body.products-page .category-filter-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.54)),
    rgba(255, 255, 255, 0.48);
  color: var(--text-dark);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 650;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body.products-page .category-btn-label {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  min-width: 0;
  line-height: 1.18;
}

body.products-page .category-icon-badge,
body.products-page .glyph-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--qam-blue-accent);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(219, 232, 255, 0.56)),
    rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow:
    0 10px 22px rgba(10, 25, 49, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

body.products-page .category-filter-btn:hover,
body.products-page .category-filter-btn.active {
  border-color: rgba(37, 99, 235, 0.42);
  color: var(--qam-blue-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(10, 25, 49, 0.09);
}

body.products-page .category-filter-btn.active {
  background: var(--qam-navy-dark);
  color: var(--text-light);
  border-color: var(--qam-navy-dark);
}

body.products-page .category-filter-btn.active .category-icon-badge {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body.products-page .glyph {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body.products-page .glyph .fill {
  fill: currentColor;
  stroke: none;
}

/* Products Grid (Vertical Cards modeled after Reference 3) */
body.products-page .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 6rem;
}

body.products-page .product-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100%;
}

body.products-page .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--qam-blue-accent);
  opacity: 0;
  transition: var(--transition-smooth);
}

body.products-page .product-image-wrapper {
  height: 230px;
  background: var(--bg-beige);
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.products-page .product-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
}

body.products-page .product-content {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.products-page .product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--qam-blue-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body.products-page .product-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--qam-navy-dark);
  margin: 0.5rem 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.products-page .product-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.4rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.products-page .product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-color);
}

body.products-page .product-sku {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Hover states */
body.products-page .product-card:hover {
  border-color: var(--qam-blue-accent);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(10, 25, 49, 0.03);
}

body.products-page .product-card:hover::before {
  opacity: 1;
}

body.products-page .product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

body.products-page .product-card-placeholder {
  justify-content: center;
  min-height: 280px;
  padding: 2rem;
  text-align: center;
  border-style: dashed;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 246, 240, 0.58)),
    var(--bg-card);
}

body.products-page .product-card-placeholder h3 {
  color: var(--qam-navy-dark);
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

body.products-page .product-card-placeholder p {
  max-width: 46ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

body.products-page .selector-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

body.products-page .selector-heading h2,
body.products-page .catalog-intro h2 {
  color: var(--qam-navy-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -1.2px;
  margin: 0;
}

body.products-page .selector-heading p,
body.products-page .catalog-intro p {
  max-width: 470px;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.55;
  margin: 0.75rem 0 0;
}

body.products-page .category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

body.products-page .category-tab {
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  text-align: left;
  color: var(--qam-navy-dark);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.4)),
    rgba(255, 255, 255, 0.4);
  box-shadow:
    0 15px 34px rgba(10, 25, 49, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: inherit;
}

body.products-page .category-tab:hover,
body.products-page .category-tab.active {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 22px 44px rgba(10, 25, 49, 0.12);
}

body.products-page .category-tab.active {
  color: var(--text-light);
  background: var(--qam-navy-dark);
  border-color: var(--qam-navy-dark);
}

body.products-page .tab-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--qam-blue-accent);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(219, 232, 255, 0.56)),
    rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.16);
}

body.products-page .category-tab.active .tab-icon {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.14);
}

body.products-page .tab-copy strong {
  display: block;
  color: inherit;
  font-size: var(--text-lg);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

body.products-page .tab-copy span {
  display: block;
  margin-top: 0.3rem;
  color: currentColor;
  opacity: 0.68;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

body.products-page .catalog-panel {
  display: none;
}

body.products-page .catalog-panel.active {
  display: block;
}

body.products-page .catalog-intro {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  margin-bottom: 2.75rem;
}

body.products-page .category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.4rem;
}

body.products-page .product-jump {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.58rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-pill);
  color: var(--qam-navy-dark);
  background: rgba(255, 255, 255, 0.78);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 650;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body.products-page .product-jump:hover,
body.products-page .product-jump.active {
  color: var(--text-light);
  background: var(--qam-navy-dark);
  border-color: var(--qam-navy-dark);
  transform: translateY(-1px);
}

body.products-page .subcategory-group {
  padding-top: 1.3rem;
  margin-top: 1.6rem;
  border-top: 1px solid rgba(10, 25, 49, 0.08);
  scroll-margin-top: 2rem;
}

body.products-page .subcategory-group.is-highlighted .subcategory-heading h3 {
  color: var(--qam-blue-accent);
}

body.products-page .subcategory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.35rem;
}

body.products-page .subcategory-heading h3 {
  color: var(--qam-navy-dark);
  font-size: clamp(1.42rem, 2.3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0;
}

body.products-page .subcategory-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: var(--border-radius-pill);
  color: var(--qam-blue-accent);
  background: rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.14);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

body.products-page .product-stack {
  display: grid;
  gap: 1.7rem;
}

body.products-page .catalog-product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, 2fr) minmax(170px, 1fr);
  gap: 0.95rem;
  padding: 1rem;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(248, 246, 240, 0.28)),
    rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 60px rgba(10, 25, 49, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  scroll-margin-top: 2rem;
}

body.products-page .catalog-product:focus-within,
body.products-page .catalog-product.is-highlighted {
  outline: 2px solid rgba(37, 99, 235, 0.38);
  outline-offset: 4px;
}

body.products-page .glass-tile {
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.55)),
    rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 14px 30px rgba(10, 25, 49, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

body.products-page .product-image-tile {
  aspect-ratio: 1 / 1;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
  align-self: start;
}

body.products-page .product-image-tile img {
  width: 100%;
  height: 100%;
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 16px 22px rgba(10, 25, 49, 0.12));
}

body.products-page .product-description-tile {
  min-height: 190px;
  padding: clamp(1.1rem, 2.2vw, 1.55rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

body.products-page .catalog-product .product-brand {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.55rem;
  padding: 0.32rem 0.72rem;
  border-radius: var(--border-radius-pill);
  color: var(--qam-blue-accent);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.13);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.products-page .product-description-tile h4 {
  color: var(--qam-navy-dark);
  font-size: clamp(1.32rem, 2vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0;
}

body.products-page .product-description-tile p {
  max-width: 72ch;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.58;
  margin: 0.75rem 0 0;
}

body.products-page .feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

body.products-page .feature-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.34rem 0.68rem;
  border-radius: var(--border-radius-pill);
  color: var(--qam-navy-dark);
  background: rgba(248, 246, 240, 0.72);
  border: 1px solid rgba(234, 230, 223, 0.9);
  font-size: 0.78rem;
  font-weight: 650;
}

body.products-page .packaging-tile {
  min-height: 190px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

body.products-page .packaging-tile h5 {
  color: var(--qam-navy-dark);
  font-size: var(--text-base);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.72rem;
}

body.products-page .pack-list {
  display: grid;
  gap: 0.52rem;
}

body.products-page .pack-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 38px;
  padding: 0.48rem 0.65rem;
  border-radius: 14px;
  color: var(--qam-navy-dark);
  background: rgba(248, 246, 240, 0.74);
  border: 1px solid rgba(234, 230, 223, 0.92);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
}

body.products-page .pack-list small {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

body.products-page .enquire-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.58rem 0.95rem;
  border-radius: var(--border-radius-pill);
  color: var(--text-light);
  background: var(--qam-navy-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: var(--transition-smooth);
}

body.products-page .enquire-link:hover {
  background: var(--qam-navy-brand);
  transform: translateY(-1px);
}

body.products-page .product-enquiry-section {
  margin: 5rem 0 0;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(248, 246, 240, 0.32)),
    rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 28px 70px rgba(10, 25, 49, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
}

body.products-page .enquiry-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

body.products-page .enquiry-copy h2 {
  color: var(--qam-navy-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -1.2px;
  margin: 0;
}

body.products-page .enquiry-copy p {
  max-width: 470px;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.6;
  margin: 0.85rem 0 0;
}

body.products-page .enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

body.products-page .form-field {
  display: grid;
  gap: 0.42rem;
}

body.products-page .form-field.full-width {
  grid-column: 1 / -1;
}

body.products-page .form-field label {
  color: var(--qam-navy-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

body.products-page .form-field input,
body.products-page .form-field select,
body.products-page .form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(234, 230, 223, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.54);
  color: var(--text-dark);
  font: inherit;
  font-size: var(--text-sm);
  padding: 0.75rem 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.products-page .form-field textarea {
  min-height: 124px;
  resize: vertical;
}

body.products-page .form-field input:focus,
body.products-page .form-field select:focus,
body.products-page .form-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

body.products-page .enquiry-submit {
  justify-self: start;
  min-height: 46px;
  padding: 0.75rem 1.45rem;
  border: 1px solid var(--qam-navy-dark);
  border-radius: var(--border-radius-pill);
  background: var(--qam-navy-dark);
  color: var(--text-light);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 750;
  cursor: pointer;
  transition: var(--transition-smooth);
}

body.products-page .enquiry-submit:hover {
  background: var(--qam-navy-brand);
  border-color: var(--qam-navy-brand);
  transform: translateY(-1px);
}

/* Footer styling (Standardized Dark Navy) */
body.products-page footer {
  background-color: var(--qam-navy-dark);
  color: var(--text-light);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

body.products-page .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

body.products-page .footer-logo img {
  height: 40px;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

body.products-page .footer-logo h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

body.products-page .footer-about p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
  font-size: var(--text-sm);
  line-height: 1.7;
}

body.products-page .footer-column h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

body.products-page .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.products-page .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  transition: var(--transition-smooth);
}

body.products-page .footer-links a:hover {
  color: var(--text-light);
  transform: translateX(3px);
}

body.products-page .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}

body.products-page .footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

body.products-page .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
}

body.products-page .footer-bottom-links a:hover {
  color: var(--text-light);
}

/* Responsive Layouts */
@media (max-width: 900px) {
  body.products-page .category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.products-page .catalog-intro {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  body.products-page .catalog-product {
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.45fr) minmax(150px, 0.85fr);
  }

  body.products-page .category-clusters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.products-page .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  body.products-page .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.products-page .product-hero {
    min-height: 640px;
    padding: 1rem 0 6.5rem;
  }

  body.products-page .product-hero-copy h1 {
    font-size: 3.05rem;
    letter-spacing: -1px;
  }

  body.products-page .category-explorer {
    margin-top: -4.5rem;
  }

  body.products-page .category-explorer-surface {
    padding: 0.9rem;
    border-radius: 28px;
  }

  body.products-page .category-clusters {
    grid-template-columns: 1fr;
  }

  body.products-page .selector-heading {
    display: block;
  }

  body.products-page .category-tabs,
  body.products-page .catalog-product {
    grid-template-columns: 1fr;
  }

  body.products-page .catalog-product {
    gap: 0.75rem;
    padding: 0.82rem;
    border-radius: 26px;
  }

  body.products-page .product-image-tile,
  body.products-page .product-description-tile,
  body.products-page .packaging-tile {
    min-height: 0;
  }

  body.products-page .product-image-tile {
    max-width: 280px;
    width: 100%;
    justify-self: center;
  }

  body.products-page .enquiry-layout,
  body.products-page .enquiry-form {
    grid-template-columns: 1fr;
  }

  body.products-page .enquiry-form {
    text-align: center;
  }

  body.products-page .form-field label,
  body.products-page .form-field input,
  body.products-page .form-field select,
  body.products-page .form-field textarea {
    text-align: center;
  }

  body.products-page .form-field select {
    text-align-last: center;
  }

  body.products-page .enquiry-submit {
    justify-self: center;
  }

  body.products-page .subcategory-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  body.products-page .product-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  body.products-page .footer-grid {
    text-align: center;
  }

  body.products-page .footer-logo {
    justify-content: center;
  }

  body.products-page .footer-about p {
    margin-left: auto;
    margin-right: auto;
  }

  body.products-page .footer-links {
    align-items: center;
  }

  body.products-page .footer-bottom-links {
    justify-content: center;
  }

  body.products-page .footer-bottom {
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Unified site navbar */
.hero-block,
body.products-page .product-hero,
.product-hero,
.contact-hero,
.legal-hero {
  min-height: 690px;
  padding: 1.25rem 0 7.25rem;
}

.hero-block>header,
.product-hero>.header-dark,
.contact-hero>.header-dark,
.legal-hero>.header-dark {
  background: transparent;
  padding: 0;
  margin: 0 0 3.25rem;
  position: relative;
  z-index: 6;
}

.nav-container-dark,
body.products-page .nav-container-dark {
  min-height: 64px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.65rem 2rem;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 46px rgba(3, 12, 28, 0.18);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo-wrapper img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
}

.logo-wrapper span {
  color: var(--text-light);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links-dark {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links-dark a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1;
  transition: var(--transition-smooth);
}

.nav-links-dark a:hover,
.nav-links-dark a.active {
  color: var(--text-light);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
}

.nav-container-dark .btn-sm-pill,
.hero-block .nav-menu-wrapper .btn-sm-pill,
.product-hero .nav-menu-wrapper .btn-sm-pill,
.contact-hero .nav-menu-wrapper .btn-sm-pill,
.legal-hero .nav-menu-wrapper .btn-sm-pill {
  width: 132px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.35rem;
  border-radius: var(--border-radius-pill);
  background: var(--qam-navy-brand);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light) !important;
  box-shadow: none;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.nav-container-dark .btn-sm-pill:hover {
  background: var(--qam-navy-dark);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

@media (max-width: 900px) {

  .nav-menu-wrapper,
  .nav-links-dark {
    gap: 1.55rem;
  }
}

@media (max-width: 1024px) {

  .hero-block,
  body.products-page .product-hero,
  .product-hero,
  .contact-hero,
  .legal-hero {
    min-height: 710px;
    padding-bottom: 7.5rem;
  }
}

@media (max-width: 768px) {

  .hero-block,
  body.products-page .product-hero,
  .product-hero,
  .contact-hero,
  .legal-hero {
    padding-top: 1rem;
  }

  .hero-block>header .container,
  .product-hero>.header-dark .container,
  .contact-hero>.header-dark .container,
  .legal-hero>.header-dark .container {
    padding: 0 1.25rem;
  }

  .hero-block>header,
  .product-hero>.header-dark,
  .contact-hero>.header-dark,
  .legal-hero>.header-dark {
    margin-bottom: 2.25rem;
  }

  .nav-container-dark,
  body.products-page .nav-container-dark {
    min-height: 58px;
    padding: 0.75rem 1.25rem;
    width: calc(100vw - 2.5rem);
    max-width: calc(100vw - 2.5rem);
    gap: 1rem;
  }

  .nav-container-dark .nav-menu-wrapper {
    border-radius: 32px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07)),
      rgba(10, 25, 49, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 18px 46px rgba(3, 12, 28, 0.24);
    backdrop-filter: blur(44.0px) saturate(1.1);
    -webkit-backdrop-filter: blur(44.0px) saturate(1.1);
  }

  .nav-container-dark .nav-menu-wrapper .nav-links-dark a {
    color: var(--text-light);
  }

  .nav-container-dark .nav-menu-wrapper .nav-links-dark a:hover,
  .nav-container-dark .nav-menu-wrapper .nav-links-dark a.active {
    color: var(--text-light);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.28);
  }

  .nav-toggle {
    display: flex !important;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 28px;
    height: 20px;
    flex: 0 0 28px;
    margin-left: auto;
  }

  .logo-wrapper span {
    font-size: var(--text-base);
  }

  .nav-container-dark .btn-sm-pill,
  .hero-block .nav-menu-wrapper .btn-sm-pill,
  .product-hero .nav-menu-wrapper .btn-sm-pill,
  .contact-hero .nav-menu-wrapper .btn-sm-pill,
  .legal-hero .nav-menu-wrapper .btn-sm-pill {
    width: 132px !important;
    min-height: 42px;
    background: var(--qam-navy-brand);
    color: var(--text-light) !important;
    border-color: rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 640px) {

  .hero-block,
  body.products-page .product-hero,
  .product-hero,
  .contact-hero,
  .legal-hero {
    min-height: 640px;
    padding: 1rem 0 6.5rem;
  }
}

/* Legal pages */
body.legal-page {
  overflow-x: hidden;
}

body.legal-page .legal-hero {
  background:
    linear-gradient(90deg, rgba(10, 25, 49, 0.95) 0%, rgba(10, 25, 49, 0.8) 50%, rgba(10, 25, 49, 0.52) 100%),
    url('../images/header-hero-wide.png') center / cover no-repeat,
    var(--qam-navy-dark);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body.legal-page .legal-hero>.container:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding-bottom: 3rem;
}

body.legal-page .legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 26%),
    linear-gradient(0deg, rgba(10, 25, 49, 0.48) 0%, rgba(10, 25, 49, 0) 38%);
  pointer-events: none;
  z-index: -1;
}

body.legal-page .legal-hero-copy {
  max-width: 760px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  text-align: center;
}

body.legal-page .legal-kicker {
  display: inline-flex;
  width: fit-content;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
  padding: 0.46rem 1.2rem;
  border-radius: var(--border-radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 1.15rem;
}

body.legal-page .legal-hero-copy h1 {
  color: var(--text-light);
  font-size: clamp(3.35rem, 7vw, 6.45rem);
  line-height: 0.92;
  letter-spacing: -2px;
  margin-bottom: 1.2rem;
}

body.legal-page .legal-hero-copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 660px;
  margin: 0 auto;
  font-size: var(--text-lg);
  line-height: 1.66;
}

body.legal-page .legal-main {
  margin-top: -4.25rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 2;
}

body.legal-page .legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 36px;
  box-shadow: 0 24px 60px rgba(10, 25, 49, 0.1);
  padding: clamp(2rem, 4vw, 4rem);
}

body.legal-page .legal-meta {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 2rem;
}

body.legal-page .legal-section+.legal-section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-color);
}

body.legal-page .legal-section h2 {
  color: var(--qam-navy-dark);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
  margin-bottom: 0.8rem;
}

body.legal-page .legal-section p,
body.legal-page .legal-section li {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
}

body.legal-page .legal-section ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

body.legal-page .legal-section a {
  color: var(--qam-navy-brand);
  font-weight: 700;
}

body.legal-page footer {
  background-color: var(--qam-navy-dark);
  color: var(--text-light);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}

body.legal-page .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

body.legal-page .footer-logo img {
  height: 40px;
  border-radius: 50%;
}

body.legal-page .footer-logo h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.5px;
}

body.legal-page .footer-about p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: 1.5rem;
}

body.legal-page .footer-column h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

body.legal-page .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.legal-page .footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

body.legal-page .footer-links a:hover {
  color: var(--text-light);
  transform: translateX(3px);
}

body.legal-page .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-sm);
}

body.legal-page .footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

body.legal-page .footer-bottom-links a {
  color: rgba(255, 255, 255, 0.4);
}

body.legal-page .footer-bottom-links a:hover {
  color: var(--text-light);
}

@media (max-width: 900px) {
  body.legal-page .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  body.legal-page .legal-hero>.container:last-child {
    min-height: 360px;
    padding-bottom: 2rem;
  }

  body.legal-page .legal-hero-copy h1 {
    font-size: 3.05rem;
    letter-spacing: -1px;
  }

  body.legal-page .legal-card {
    border-radius: 28px;
    padding: 1.5rem;
  }

  body.legal-page .footer-grid {
    text-align: center;
  }

  body.legal-page .footer-logo {
    justify-content: center;
  }

  body.legal-page .footer-about p {
    margin-left: auto;
    margin-right: auto;
  }

  body.legal-page .footer-links {
    align-items: center;
  }

  body.legal-page .footer-bottom-links {
    justify-content: center;
  }

  body.legal-page .footer-bottom {
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
