/*
Theme Name: ST Labs
Theme URI: https://sci-techlabs.com
Author: RestoMod
Author URI: https://restomod.co.za
Description: Premium scientific catalogue theme for ST. Bronze design system, molecular linework, no ecommerce.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: st-labs
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  --brand-bronze: #9A7958;
  --brand-bronze-dark: #6F543B;
  --brand-champagne: #C8B49B;

  --black: #111111;
  --graphite: #1C1C1B;
  --charcoal: #292725;

  --warm-white: #F7F5F1;
  --white: #FFFFFF;
  --warm-grey: #E7E2DB;
  --light-grey: #D8D2CA;

  --text-primary: #171615;
  --text-secondary: #68635D;
  --text-light: #918A82;

  --border: #DDD7CF;

  /* Derived surfaces used by badges, notices and tinted panels. */
  --tint-bronze: #EEE8E0;
  --tint-bronze-deep: #F0ECE6;

  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-technical: "IBM Plex Sans", "Inter", sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 4px 16px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 16px 50px rgba(17, 17, 17, 0.10);

  --container: 1280px;
  --container-narrow: 860px;

  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 64px;
  --spacing-xxl: 96px;

  --header-height: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  display: block;
}

a {
  color: var(--brand-bronze-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

hr {
  height: 1px;
  margin: var(--spacing-xl) 0;
  border: 0;
  background: var(--border);
}

/* Visible focus states — never removed. */
:focus-visible {
  outline: 2px solid var(--brand-bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--graphite);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

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

.container-narrow {
  width: min(100% - 48px, var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-tight {
  padding: var(--spacing-xl) 0;
}

.section-dark {
  background: var(--graphite);
  color: var(--warm-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark .eyebrow {
  color: var(--brand-champagne);
}

.section-dark p {
  color: rgba(247, 245, 241, 0.72);
}

.section-white {
  background: var(--white);
}

.section-header {
  max-width: 720px;
  margin-bottom: var(--spacing-xl);
}

.section-header .eyebrow {
  display: block;
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  margin-top: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 18px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.section-header-row .section-header {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-xl) 0;
  }

  .container,
  .container-narrow {
    width: min(100% - 32px, var(--container));
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 600;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-bronze-dark);
}

.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--text-secondary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-light);
}

.label-technical {
  font-family: var(--font-technical);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: var(--spacing-xl);
  font-size: clamp(26px, 3vw, 34px);
}

.prose h3 {
  margin-top: var(--spacing-lg);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li::marker {
  color: var(--brand-bronze);
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 180ms var(--ease), color 180ms var(--ease),
    border-color 180ms var(--ease), transform 180ms var(--ease);
  cursor: pointer;
}

.button-primary {
  background: var(--brand-bronze);
  color: #fff;
  border: 1px solid var(--brand-bronze);
}

.button-primary:hover {
  background: var(--brand-bronze-dark);
  border-color: var(--brand-bronze-dark);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--brand-bronze-dark);
  border: 1px solid var(--brand-bronze);
}

.button-secondary:hover {
  background: var(--brand-bronze);
  color: #fff;
}

.button-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.button-ghost:hover {
  border-color: var(--brand-bronze);
  color: var(--brand-bronze-dark);
}

.section-dark .button-secondary,
.cta-band .button-secondary {
  color: var(--brand-champagne);
  border-color: rgba(200, 180, 155, 0.5);
}

.section-dark .button-secondary:hover,
.cta-band .button-secondary:hover {
  background: var(--brand-bronze);
  border-color: var(--brand-bronze);
  color: #fff;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-bronze-dark);
}

.link-arrow svg {
  transition: transform 180ms var(--ease);
}

.link-arrow:hover svg,
a:hover .link-arrow svg,
.product-card:hover .link-arrow svg {
  transform: translateX(4px);
}

/* ==========================================================================
   6. HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 241, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  min-height: var(--header-height);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.site-brand img {
  width: auto;
  height: 44px;
}

.site-brand-mark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-bronze);
  line-height: 1;
}

.site-brand-text {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  display: inline-block;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-primary);
  transition: color 160ms var(--ease);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-parent > a {
  color: var(--brand-bronze-dark);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.header-search-toggle:hover {
  color: var(--brand-bronze-dark);
  border-color: var(--border);
}

.header-cta {
  min-height: 42px;
  font-size: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .primary-nav ul {
    gap: var(--spacing-sm);
  }

  .primary-nav a {
    font-size: 13px;
  }
}

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

  .primary-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    max-height: 0;
    overflow: hidden;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: max-height 260ms var(--ease);
  }

  .primary-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--spacing-sm) 24px var(--spacing-lg);
  }

  .primary-nav li {
    border-bottom: 1px solid var(--border);
  }

  .primary-nav a {
    padding: 16px 0;
    font-size: 16px;
  }

  .header-cta {
    display: none;
  }
}

/* Header search panel */
.header-search {
  display: none;
  padding: var(--spacing-md) 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.header-search.is-open {
  display: block;
}

.header-search form {
  display: flex;
  gap: var(--spacing-xs);
}

.header-search input[type="search"] {
  flex: 1;
}

/* ==========================================================================
   7. MOLECULAR LINEWORK
   ========================================================================== */

.molecular-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.molecular-backdrop svg {
  position: absolute;
  width: auto;
  color: var(--brand-bronze);
  opacity: 0.16;
}

.molecular-backdrop--hero svg {
  top: 50%;
  right: -6%;
  height: 148%;
  transform: translateY(-50%);
}

.molecular-backdrop--panel svg {
  top: -20%;
  right: -5%;
  height: 140%;
  opacity: 0.09;
}

.molecular-backdrop--dark svg {
  color: var(--brand-champagne);
  opacity: 0.12;
}

@media (max-width: 768px) {
  .molecular-backdrop svg {
    opacity: 0.09;
  }
}

.molecular-divider {
  display: block;
  width: 100%;
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(
    to right,
    transparent,
    var(--brand-champagne) 20%,
    var(--brand-champagne) 80%,
    transparent
  );
}

/* Fine technical grid, used very sparingly behind dark panels. */
.technical-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(154, 121, 88, 0.14) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(154, 121, 88, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 0%,
    transparent 72%
  );
}

/* ==========================================================================
   8. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 148px) 0 clamp(64px, 9vw, 120px);
  background: linear-gradient(180deg, var(--white) 0%, var(--warm-white) 100%);
  border-bottom: 1px solid var(--border);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 780px;
}

.hero-logo {
  width: auto;
  height: clamp(84px, 12vw, 132px);
  margin-bottom: var(--spacing-lg);
}

.hero h1 {
  margin-bottom: var(--spacing-md);
}

.hero .lede {
  max-width: 56ch;
  margin-bottom: var(--spacing-lg);
}

.hero-support {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin: 0 0 var(--spacing-lg);
  padding: 0;
  list-style: none;
}

.hero-support li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-support li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-bronze);
  flex-shrink: 0;
}

/* Page hero — interior pages */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: var(--spacing-md);
}

.page-hero .lede {
  max-width: 62ch;
}

/* ==========================================================================
   9. BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  margin-bottom: var(--spacing-md);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-light);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--light-grey);
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-bronze-dark);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-primary);
}

/* ==========================================================================
   10. CARDS & GRIDS
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
    border-color 180ms var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-champagne);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--warm-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.product-card-image img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  object-fit: contain;
  transition: transform 320ms var(--ease);
}

.product-card:hover .product-card-image img {
  transform: scale(1.03);
}

.product-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--brand-champagne);
}

.product-card-placeholder svg {
  width: 46%;
  height: auto;
  opacity: 0.75;
}

.product-card-category {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bronze-dark);
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.product-card h3 a {
  color: inherit;
  text-decoration: none;
}

/* Whole card is clickable, but the link text remains the accessible name. */
.product-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-card-excerpt {
  margin: var(--spacing-sm) 0 var(--spacing-md);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border);
}

.product-strength {
  display: inline-flex;
  padding: 6px 10px;
  background: var(--tint-bronze);
  color: var(--brand-bronze-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Feature / trust cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: var(--spacing-md) 0 0;
  border-top: 1px solid var(--border);
}

.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 32px;
  margin-bottom: var(--spacing-md);
  color: var(--brand-bronze);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 900px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: var(--spacing-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-champagne);
  box-shadow: var(--shadow-sm);
}

.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-size: 20px;
}

.category-card p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--text-secondary);
}

.category-card-count {
  position: relative;
  z-index: 1;
  margin-top: var(--spacing-md);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bronze-dark);
}

/* Research area chips */
.research-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.research-area-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 180ms var(--ease), color 180ms var(--ease);
}

.research-area-card:hover {
  border-color: var(--brand-bronze);
  color: var(--brand-bronze-dark);
}

.research-area-card svg {
  color: var(--brand-bronze);
  flex-shrink: 0;
}

/* ==========================================================================
   11. BADGES, NOTICES, TABLES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--tint-bronze);
  color: var(--brand-bronze-dark);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.badge-pending {
  background: transparent;
  border: 1px dashed var(--light-grey);
  color: var(--text-light);
}

.notice {
  padding: var(--spacing-md);
  background: var(--tint-bronze-deep);
  border-left: 3px solid var(--brand-bronze);
  border-radius: var(--radius-sm);
}

.notice p {
  font-size: 15px;
  color: var(--text-secondary);
}

.notice-title {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bronze-dark);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table th,
.spec-table td {
  padding: 18px 22px;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 35%;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.spec-table td {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.spec-table td.is-sequence {
  font-family: var(--font-technical);
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Stacked specification rows on small screens — no horizontal scroll. */
@media (max-width: 620px) {
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td {
    display: block;
    width: 100%;
  }

  .spec-table th {
    padding: 16px 18px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
  }

  .spec-table td {
    padding: 4px 18px 16px;
  }
}

/* ==========================================================================
   12. PRODUCT PAGE
   ========================================================================== */

.product-hero {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-lg) 0 var(--spacing-xl);
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
}

.product-hero .container {
  position: relative;
  z-index: 1;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.product-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--spacing-sm);
}

.product-hero h1 {
  margin-bottom: var(--spacing-sm);
  font-size: clamp(36px, 5vw, 60px);
}

.product-hero-strength {
  display: block;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-bronze);
}

.product-hero-summary {
  max-width: 52ch;
  margin-bottom: var(--spacing-lg);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.product-hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.product-hero-media img {
  max-width: 78%;
  max-height: 78%;
  width: auto;
  object-fit: contain;
}

.product-hero-media .product-card-placeholder svg {
  width: 40%;
}

.product-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 1024px) {
  .product-body {
    grid-template-columns: 1fr;
  }
}

.product-section {
  padding-bottom: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border);
}

.product-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.product-section > h2 {
  margin-bottom: var(--spacing-md);
  font-size: clamp(24px, 3vw, 32px);
}

.product-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: var(--spacing-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
  .product-aside {
    position: static;
  }
}

.product-aside h2 {
  margin-bottom: var(--spacing-sm);
  font-size: 18px;
}

.product-aside p {
  margin-bottom: var(--spacing-md);
  font-size: 14px;
  color: var(--text-secondary);
}

.product-aside .button {
  width: 100%;
}

.product-aside-divider {
  margin: var(--spacing-md) 0;
  height: 1px;
  background: var(--border);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.snapshot-item {
  padding: 20px 22px;
  background: var(--white);
}

.snapshot-item dt {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.snapshot-item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Evidence-level qualifiers on mechanism content */
.evidence-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.evidence-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.evidence-established {
  color: var(--brand-bronze-dark);
}

.evidence-preclinical {
  color: var(--text-secondary);
}

.evidence-proposed {
  color: var(--text-light);
}

/* Stack composition */
.composition-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.composition-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 20px 24px;
  background: var(--white);
}

.composition-item-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.composition-item-name a {
  color: inherit;
  text-decoration: none;
}

.composition-item-name a:hover {
  color: var(--brand-bronze-dark);
}

.composition-item-amount {
  font-family: var(--font-technical);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-bronze-dark);
  white-space: nowrap;
}

.composition-item.is-total {
  background: var(--tint-bronze-deep);
}

.composition-item.is-total .composition-item-name {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Documentation */
.doc-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 180ms var(--ease);
}

.doc-item:hover {
  border-color: var(--brand-bronze);
}

.doc-item svg {
  color: var(--brand-bronze);
  flex-shrink: 0;
}

.doc-item-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc-item-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0;
}

/* Regulatory status rows */
.regulatory-list {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.regulatory-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: var(--white);
}

.regulatory-item dt {
  font-size: 13px;
  font-weight: 600;
}

.regulatory-item dd {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   13. FORMS
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

@media (max-width: 680px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-field .required {
  color: var(--brand-bronze);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2368635D' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-bronze);
  box-shadow: 0 0 0 3px rgba(154, 121, 88, 0.14);
  outline: none;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #B3452F;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin-top: 3px;
  accent-color: var(--brand-bronze);
  flex-shrink: 0;
}

.form-consent label {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
}

.form-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.form-message-success {
  background: var(--tint-bronze-deep);
  border-left: 3px solid var(--brand-bronze);
  color: var(--text-primary);
}

.form-message-error {
  background: #F6EAE7;
  border-left: 3px solid #B3452F;
  color: #7A2E1F;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #B3452F;
}

/* Enquiry modal */
.enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--spacing-md);
  overflow-y: auto;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(3px);
}

.enquiry-modal.is-open {
  display: flex;
}

.enquiry-modal-panel {
  position: relative;
  width: min(100%, 720px);
  margin: var(--spacing-lg) 0;
  padding: clamp(24px, 4vw, 44px);
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.enquiry-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

.enquiry-modal-close:hover {
  border-color: var(--brand-bronze);
  color: var(--brand-bronze-dark);
}

body.modal-open {
  overflow: hidden;
}

/* ==========================================================================
   14. CATALOGUE FILTERS & SEARCH
   ========================================================================== */

.catalogue-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border);
}

.catalogue-search {
  display: flex;
  gap: var(--spacing-xs);
  flex: 1 1 300px;
  max-width: 420px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 160ms var(--ease), border-color 160ms var(--ease),
    color 160ms var(--ease);
}

.filter-pill:hover {
  border-color: var(--brand-bronze);
  color: var(--brand-bronze-dark);
}

.filter-pill.is-active {
  background: var(--brand-bronze);
  border-color: var(--brand-bronze);
  color: #fff;
}

.result-count {
  font-size: 13px;
  color: var(--text-light);
}

.no-results {
  padding: var(--spacing-xl);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Search results list */
.search-result {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border);
}

.search-result h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.search-result h2 a {
  color: inherit;
  text-decoration: none;
}

.search-result h2 a:hover {
  color: var(--brand-bronze-dark);
}

.search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-bronze-dark);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--spacing-xl);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-secondary);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--brand-bronze);
  border-color: var(--brand-bronze);
  color: #fff;
}

/* ==========================================================================
   15. CTA BAND & DISCLAIMER
   ========================================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 88px) 0;
  background: var(--graphite);
  color: var(--warm-white);
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
}

.cta-band h2 {
  max-width: 20ch;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.cta-band p {
  max-width: 46ch;
  color: rgba(247, 245, 241, 0.7);
}

.disclaimer-block {
  padding: var(--spacing-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.disclaimer-block p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-light);
}

.disclaimer-block .notice-title {
  color: var(--text-secondary);
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer {
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  background: var(--graphite);
  color: rgba(247, 245, 241, 0.68);
  font-size: 14px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid rgba(247, 245, 241, 0.12);
}

@media (max-width: 1024px) {
  .site-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

.site-footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: var(--spacing-md);
}

.site-footer-brand .site-brand-mark {
  display: block;
  margin-bottom: var(--spacing-md);
  font-size: 30px;
  color: var(--brand-champagne);
}

.site-footer-brand p {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
}

.site-footer h2 {
  margin-bottom: var(--spacing-md);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-champagne);
}

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

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(247, 245, 241, 0.68);
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer-contact address {
  font-style: normal;
  line-height: 1.7;
}

.site-footer-legal {
  padding-top: var(--spacing-md);
}

.site-footer-disclaimer {
  max-width: 92ch;
  margin-bottom: var(--spacing-md);
  font-size: 12px;
  line-height: 1.65;
  color: rgba(247, 245, 241, 0.42);
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  font-size: 12px;
  color: rgba(247, 245, 241, 0.42);
}

/* ==========================================================================
   17. ANIMATION
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.molecular-draw path,
.molecular-draw line,
.molecular-draw circle {
  stroke-dasharray: var(--draw-length, 1400);
  stroke-dashoffset: var(--draw-length, 1400);
  animation: st-draw 2800ms var(--ease) forwards;
}

@keyframes st-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .molecular-draw path,
  .molecular-draw line,
  .molecular-draw circle {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   18. EDITOR / GENERIC CONTENT
   ========================================================================== */

.entry-content img {
  border-radius: var(--radius-md);
}

.entry-content blockquote {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-md);
  border-left: 3px solid var(--brand-bronze);
  font-size: 19px;
  color: var(--text-secondary);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 12px 16px;
  border: 1px solid var(--border);
  text-align: left;
}

.reference-list {
  margin: 0;
  padding-left: 1.3em;
  font-size: 14px;
  color: var(--text-secondary);
}

.reference-list li {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.faq-item {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--brand-bronze);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item-answer {
  padding-top: var(--spacing-sm);
  color: var(--text-secondary);
}

/* Two-column editorial split used on About / Research pages */
.split-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

@media (max-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

.split-grid-sticky {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

@media (max-width: 900px) {
  .split-grid-sticky {
    position: static;
  }
}

/* Placeholder markers for information the client still needs to supply. */
.placeholder-value {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px dashed var(--light-grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-technical);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-light);
  background: var(--warm-white);
}

/* Card headings vary by context (h2 on the catalogue, h3 inside sections) so
   the heading outline stays valid — the visual size must not follow suit. */
.product-card h2,
.product-card h3,
.product-card h4 {
  margin-bottom: 10px;
  font-size: 21px;
}

.product-card h2 a,
.product-card h4 a {
  color: inherit;
  text-decoration: none;
}

.product-card h2 a::after,
.product-card h4 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
