/* ========================================================================
   FRIESEN PLASTICS — PackTrack One Design System
   ======================================================================== */

/* --- CSS Custom Properties / Design Tokens --- */
:root {
  /* Brand Colors */
  --navy: #000099;
  --navy-hover: #000077;
  --navy-dark: #000066;
  --navy-deep: #000044;
  --heading: #0A1628;
  --body: #5F6673;
  --muted: #666E7B;
  --bg-white: #ffffff;
  --bg-light: #F4F6FF;
  --border: #E5E7EB;
  --footer-bg: #000044;
  --success: #28a745;
  --accent-teal: #0097a7;

  /* Legacy aliases (used by inner-page components) */
  --text-primary: #0A1628;
  --text-secondary: #5F6673;
  --text-light: #666E7B;
  --bg-lighter: #F4F6FF;
  --border-light: #E5E7EB;
  --footer-text: rgba(255,255,255,0.7);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.12);
  --warning: #ffc107;
  --danger: #dc3545;

  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Container */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 900px;

  /* Header height */
  --header-height: 72px;
  --utility-height: 36px;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --heading: #e8e8f0;
  --body: #9CA3AF;
  --text-primary: #e8e8e8;
  --text-secondary: #b0b0b0;
  --text-light: #888888;
  --bg-white: #0f172a;
  --bg-light: #1e2a4a;
  --bg-lighter: #162040;
  --border: #334155;
  --border-light: #1e3a5f;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

[data-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #0a1628 0%, #0f2040 100%);
}

[data-theme="dark"] .utility-bar {
  background: #000033;
}

[data-theme="dark"] .main-header {
  background: rgba(15, 23, 42, 0.97);
  border-bottom-color: #1e3a5f;
}

/* ========================================================================
   BASE
   ======================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  margin: 0 0 var(--space-4);
  line-height: 1.1;
}

p { margin: 0 0 var(--space-4); }
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 100px 0;
}

.section--light {
  background: var(--bg-light);
}

.section--navy {
  background: var(--navy);
  color: #ffffff;
}

.section--navy h2,
.section--navy h3,
.section--navy p {
  color: #ffffff;
}

.section-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy);
  margin-bottom: var(--space-4);
  text-align: center;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: var(--space-4);
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 17px;
  color: var(--body);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.font-heading { font-family: var(--font-heading); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-hover);
  border-color: var(--navy-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn--secondary,
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--secondary:hover,
.btn--ghost:hover {
  background: rgba(0, 0, 153, 0.05);
  transform: translateY(-1px);
}

/* On dark backgrounds */
.btn--white {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}

.btn--white:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}

/* Ghost on dark bg */
.btn--ghost-dark {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.6);
}

.btn--ghost-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: #ffffff;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* ========================================================================
   UTILITY BAR
   ======================================================================== */

.utility-bar {
  background: var(--bg-light);
  color: var(--body);
  font-size: 13px;
  height: var(--utility-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-bar a {
  color: var(--body);
  font-weight: 500;
  transition: color var(--duration-fast);
}

.utility-bar a:hover {
  color: var(--navy);
}

.utility-bar__left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.utility-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.dark-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--body);
  cursor: pointer;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: var(--font-body);
  transition: all var(--duration-fast);
}

.dark-toggle:hover {
  background: var(--border);
}

/* ========================================================================
   MAIN HEADER
   ======================================================================== */

.main-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  border-bottom: 1px solid var(--border);
}

.main-header--hidden {
  transform: translateY(-100%);
}

.main-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--heading);
  letter-spacing: 0.3px;
}

.logo-tagline {
  font-size: 10px;
  color: var(--body);
  font-weight: 400;
  letter-spacing: 0.1px;
  margin-top: 2px;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--heading);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
}

.nav-link:hover {
  color: var(--navy);
  background: var(--bg-light);
}

.nav-link .arrow {
  font-size: 10px;
  transition: transform var(--duration-fast);
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ========================================================================
   BREADCRUMB
   ======================================================================== */

.breadcrumb {
  padding: var(--space-4) 0;
  font-size: 13px;
  color: var(--body);
}

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

.breadcrumb a:hover {
  color: var(--navy);
}

.breadcrumb span {
  margin: 0 var(--space-2);
  color: var(--muted);
}

/* ========================================================================
   HERO SECTION — PackTrack One Light Hero
   ======================================================================== */

.hero-section {
  background: #ffffff;
  color: var(--heading);
  padding: 120px 0 120px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Facility image as very subtle watermark background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/hero-facility.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  pointer-events: none;
}

/* Clean white fade at bottom */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
}

[data-theme="dark"] .hero-section::before {
  opacity: 0.04;
}

[data-theme="dark"] .hero-section::after {
  background: linear-gradient(to top, var(--bg-white), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-8);
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: var(--heading);
}

.hero-desc {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--body);
  margin-bottom: var(--space-10);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-10);
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

/* Hide old pattern SVG (not visible anyway due to light hero) */
.hero-pattern {
  display: none;
}

/* ========================================================================
   PAGE HERO (interior pages) — Clean, compact
   ======================================================================== */

.page-hero {
  background: var(--bg-light);
  color: var(--heading);
  padding: 60px 0 48px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.page-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--navy);
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.page-hero p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--body);
  max-width: 600px;
  line-height: 1.7;
}

[data-theme="dark"] .page-hero {
  background: var(--bg-light);
  border-bottom-color: var(--border);
}

/* ========================================================================
   DIVISION CARDS
   ======================================================================== */

.divisions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.division-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--border);
}

.division-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,153,0.2);
  box-shadow: 0 4px 20px rgba(0,0,153,0.08);
}

.division-card--two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
}

.division-card__visual {
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.division-card__visual--packaging {
  background: linear-gradient(135deg, #eef0ff, #dde0ff);
  color: var(--navy);
}

.division-card__visual--signs {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  color: var(--accent-teal);
}

.division-card__visual svg {
  width: 80px;
  height: 80px;
  opacity: 0.6;
}

.division-card__body {
  padding: var(--space-8);
}

.division-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-3);
}

.division-card__desc {
  color: var(--body);
  margin-bottom: var(--space-6);
  line-height: 1.7;
  font-size: 15px;
}

.division-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.division-card__links a,
.division-card__links span {
  font-size: 13px;
  padding: 4px 12px;
  background: var(--bg-light);
  border-radius: var(--radius-full);
  color: var(--body);
  transition: all var(--duration-fast);
  border: 1px solid var(--border);
}

.division-card__links a:hover {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* ========================================================================
   STATS
   ======================================================================== */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
  padding: var(--space-8) 0;
}

.stat-item {
  padding: var(--space-6);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 13px;
  color: var(--body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================================================
   CATEGORY GRID — Image-backed cards
   ======================================================================== */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,153,0.2);
  box-shadow: 0 4px 20px rgba(0,0,153,0.08);
}

.category-card__icon {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: var(--bg-light);
  position: relative;
}

.category-card__body {
  padding: 24px;
}

.category-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-2);
}

.category-card__desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 0;
}

.category-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-top: var(--space-3);
}

/* Image-backed category card */
.category-card--img .category-card__img-wrap {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.category-card--img .category-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,80,0.5) 100%);
}

.category-card--img .category-card__img-label {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-4);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  z-index: 1;
}

/* ========================================================================
   CUSTOMER LOGOS
   ======================================================================== */

.logo-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding: var(--space-6) 0;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--body);
  letter-spacing: 0.3px;
  transition: all var(--duration-fast);
  min-width: 130px;
  text-align: center;
}

.client-logo:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ========================================================================
   TESTIMONIALS
   ======================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 60px;
  color: var(--navy);
  opacity: 0.12;
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--body);
  font-style: italic;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--heading);
}

.testimonial-card__role {
  font-size: 13px;
  color: var(--body);
}

/* ========================================================================
   TABLES
   ======================================================================== */

.table-wrapper {
  overflow-x: auto;
  margin: var(--space-6) 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
}

.data-table tbody tr:nth-child(even) {
  background: var(--bg-light);
}

.data-table tbody tr:hover {
  background: #eef0ff;
}

[data-theme="dark"] .data-table tbody tr:hover {
  background: rgba(0, 0, 153, 0.15);
}

/* ========================================================================
   CALCULATORS
   ======================================================================== */

.calculators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

.calc-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.calc-card h3, .calc-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--navy);
}

.calc-card__desc {
  font-size: 14px;
  color: var(--body);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.calc-field {
  margin-bottom: var(--space-4);
}

.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: var(--space-1);
  font-family: var(--font-heading);
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--heading);
  background: var(--bg-white);
  transition: border-color var(--duration-fast);
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 0, 153, 0.1);
}

.calc-result {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
  border-left: 4px solid var(--navy);
}

.calc-result__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--body);
  margin-bottom: 2px;
}

.calc-result__value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.calc-formula {
  font-size: 12px;
  color: var(--muted);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-family: monospace;
}

/* ========================================================================
   EVENTS
   ======================================================================== */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.event-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--duration-normal);
}

.event-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.event-card__header {
  background: var(--navy);
  color: #ffffff;
  padding: var(--space-5);
}

.event-card__date {
  font-size: 13px;
  opacity: 0.8;
  font-weight: 500;
}

.event-card__name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-top: var(--space-1);
  color: #ffffff;
}

.event-card__body {
  padding: var(--space-5);
}

.event-card__location {
  font-size: 14px;
  color: var(--body);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.event-card__desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.event-card__booth {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: var(--space-3);
}

/* ========================================================================
   TIMELINE
   ======================================================================== */

.timeline {
  position: relative;
  padding: var(--space-8) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-10);
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item__content {
  width: 45%;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.timeline-item:nth-child(odd) .timeline-item__content {
  margin-right: auto;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-item__content {
  margin-left: auto;
}

.timeline-item__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--navy);
  z-index: 1;
}

.timeline-item__year {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.timeline-item__text {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* ========================================================================
   CONTACT FORM
   ======================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-10);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--heading);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--heading);
  background: var(--bg-white);
  transition: border-color var(--duration-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 0, 153, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.contact-info-card {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--border);
}

.contact-info-item {
  margin-bottom: var(--space-6);
}

.contact-info-item h4, .contact-info-item h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-1);
}

.contact-info-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.contact-info-item a {
  color: var(--navy);
  font-weight: 500;
}

/* Map Placeholder */
.map-placeholder {
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--border);
  margin-top: var(--space-6);
}

/* ========================================================================
   PROCESS STEPS
   ======================================================================== */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

.process-step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  margin: 0 auto var(--space-4);
}

.process-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--heading);
}

.process-step p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -20px;
  width: 40px;
  height: 1px;
  background: var(--border);
}

/* ========================================================================
   CAPABILITY GRID
   ======================================================================== */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.capability-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--duration-normal);
}

.capability-card:hover {
  border-color: rgba(0,0,153,0.2);
  transform: translateY(-1px);
}

.capability-card__icon {
  font-size: 32px;
  margin-bottom: var(--space-4);
}

.capability-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--heading);
}

.capability-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* ========================================================================
   BRC BADGE
   ======================================================================== */

.brc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: #f0faf0;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
}

.brc-badge__icon {
  width: 40px;
  height: 40px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
}

.brc-badge__text h4, .brc-badge__text h3 {
  font-size: 14px;
  font-weight: 700;
  color: #2e7d32;
}

.brc-badge__text p {
  font-size: 13px;
  color: #2e7d32;
}

/* ========================================================================
   SUSTAINABILITY SECTION
   ======================================================================== */

.sustainability-callout {
  background: #f0faf0;
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-10);
  border: 1px solid #c8e6c9;
}

.sustainability-callout__icon {
  font-size: 64px;
  flex-shrink: 0;
}

.sustainability-callout h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: var(--space-3);
}

.sustainability-callout p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
}

[data-theme="dark"] .sustainability-callout {
  background: #1b3d1b;
  border-color: #2e5d2e;
}

/* ========================================================================
   SIGNS/GRAPHICS GALLERY
   ======================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.gallery-item {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--duration-normal);
}

.gallery-item:hover {
  border-color: rgba(0,0,153,0.2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.gallery-item__image {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--bg-light);
}

.gallery-item__body {
  padding: var(--space-5);
}

.gallery-item__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-1);
}

.gallery-item__desc {
  font-size: 14px;
  color: var(--body);
}

/* ========================================================================
   TEAM GRID
   ======================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-6);
}

.team-card {
  text-align: center;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-light);
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
}

.team-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2px;
}

.team-card__role {
  font-size: 14px;
  color: var(--body);
}

/* ========================================================================
   ADMIN PAGE
   ======================================================================== */

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

.admin-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.admin-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.admin-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.admin-card__tag--recommended {
  background: #e8f5e9;
  color: #2e7d32;
}

.admin-card__tag--upgrade {
  background: #fff3e0;
  color: #e65100;
}

.admin-card__tag--integrate {
  background: #e8eaff;
  color: var(--navy);
}

.admin-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.admin-card ul {
  list-style: none;
  margin-top: var(--space-3);
  padding: 0;
}

.admin-card ul li {
  font-size: 14px;
  color: var(--heading);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.admin-card ul li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}

/* ========================================================================
   CTA SECTION
   ======================================================================== */

.cta-section {
  background: linear-gradient(135deg, rgba(0,0,68,0.92) 0%, rgba(0,0,153,0.88) 100%), url('img/about-facility.webp') center/cover no-repeat;
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================================================
   FOOTER
   ======================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-col h4, .footer-col .footer-heading {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-5);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  padding: 4px 0;
  transition: color var(--duration-fast);
  text-decoration: none;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer-logo .logo-name {
  color: #ffffff;
  font-size: 14px;
}

.footer-logo .logo-tagline {
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.8);
}

/* ========================================================================
   SCROLL REVEAL
   ======================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== FULL-SCREEN OVERLAY MENU ===================== */

/* --- Hamburger Button --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy, #000099);
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
[data-theme="dark"] .hamburger span {
  background: #e0e0e0;
}

/* --- Products Toggle Button --- */

/* --- Overlay Base --- */
[data-theme="dark"] 
/* --- Overlay Header --- */
[data-theme="dark"] [data-theme="dark"] [data-theme="dark"] 
/* --- Overlay Body --- */

/* --- Overlay Grid --- */

/* --- Overlay Columns --- */
[data-theme="dark"] 
[data-theme="dark"] 
/* --- Category Toggles --- */
[data-theme="dark"] [data-theme="dark"] [data-theme="dark"] 
/* --- Category Direct Links --- */
[data-theme="dark"] [data-theme="dark"] 
/* --- Expanded Sub-Items --- */
[data-theme="dark"] [data-theme="dark"] [data-theme="dark"] 
/* --- Quick Links (Column 3) --- */
[data-theme="dark"] [data-theme="dark"] 
/* --- CTA Box --- */

/* --- Overlay Responsive --- */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .hamburger {
    display: block;
  }
          [data-theme="dark"] }

@media (max-width: 768px) {
            }

@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }
}

/* ========================================================================
   BAG STYLES GRID
   ======================================================================== */

.bag-styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.bag-style-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.bag-style-card:hover {
  transform: translateY(-2px);
  border-color: #c0c4cc;
}
.bag-style-card__img {
  background: #F8F9FA;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.bag-style-card__img img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}
.bag-style-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0A1628;
  padding: 20px 20px 8px;
  margin: 0;
}
.bag-style-card p {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  padding: 0 20px 20px;
  margin: 0;
}
@media (max-width: 1024px) {
  .bag-styles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .bag-styles-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   STOCK BAGS PAGE
   ======================================================================== */

/* Stock Bags Page */
.stock-category { border: 1px solid #E5E7EB; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.stock-category__header { display: flex; align-items: center; gap: 12px; width: 100%; background: white; border: none; padding: 16px 20px; cursor: pointer; text-align: left; font-family: inherit; transition: background 0.15s; }
.stock-category__header:hover { background: #F4F6FF; }
.stock-category__header.active { background: #F4F6FF; }
.stock-category__header h3, .stock-category__header h2 { font-size: 18px; font-weight: 700; color: #0A1628; margin: 0; }
.stock-category__badge { background: #e8f5e9; color: #2e7d32; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stock-category__subtitle { color: var(--muted); font-size: 13px; }
.stock-category__count { margin-left: auto; color: #6B7280; font-size: 13px; }
.stock-category__header svg { transition: transform 0.2s; flex-shrink: 0; }
.stock-category__header.active svg { transform: rotate(180deg); }
.stock-category__body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.stock-category__body.active { max-height: 2000px; }
.stock-table { width: 100%; border-collapse: collapse; }
.stock-table thead { background: #F9FAFB; }
.stock-table th { padding: 10px 16px; font-size: 12px; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: 0.5px; text-align: left; border-bottom: 1px solid #E5E7EB; }
.stock-table td { padding: 10px 16px; font-size: 14px; color: #0A1628; border-bottom: 1px solid #f0f0f0; }
.stock-table tr:hover { background: #FAFBFF; }
.stock-table th:last-child, .stock-table td:last-child { text-align: right; width: 90px; }
.stock-add-btn { background: #000099; color: white; border: none; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s, transform 0.1s; }
.stock-add-btn:hover { background: #000077; transform: scale(1.02); }

.stock-add-btn__count { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.25); min-width: 20px; height: 20px; border-radius: 10px; font-size: 12px; font-weight: 700; padding: 0 4px; margin-right: 2px; }
.stock-add-btn--added { background: #16a34a; cursor: pointer; pointer-events: auto; }
.stock-add-btn--added:hover { background: #15803d; }


/* Floating cart button */
.stock-cart-fab { display: none !important; position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; background: #000099; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,153,0.3); z-index: 9998; transition: transform 0.2s; }
.stock-cart-fab:hover { transform: scale(1.08); }
.stock-cart-fab__count { position: absolute; top: -4px; right: -4px; background: #dc2626; color: white; font-size: 12px; font-weight: 700; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Quote summary */
.stock-quote-summary { background: #F4F6FF; border: 2px solid #000099; border-radius: 16px; padding: 32px; margin-top: 48px; }
.stock-quote-summary h3, .stock-quote-summary h2 { font-size: 20px; font-weight: 700; color: #0A1628; margin: 0 0 16px 0; }
.stock-quote-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: white; border-radius: 8px; margin-bottom: 8px; font-size: 14px; border: 1px solid #E5E7EB; }
.stock-quote-remove { background: none; border: none; color: #dc2626; font-size: 20px; cursor: pointer; padding: 0 4px; }
.stock-quote-actions { display: flex; gap: 12px; margin-top: 16px; }

@media (max-width: 768px) {
  .stock-category__header { flex-wrap: wrap; }
  .stock-category__subtitle { display: none; }
  .stock-table td, .stock-table th { padding: 8px 10px; font-size: 13px; }
}

/* ========================================================================
   PAGE TRANSITIONS
   ======================================================================== */

.page {
  display: none;
  animation: fadeIn 0.3s var(--ease-out);
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================================================
   SUCCESS MESSAGE
   ======================================================================== */

.success-message {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  color: #2e7d32;
  font-weight: 600;
  display: none;
}

.success-message.show {
  display: block;
}

/* ========================================================================
   CONTENT SECTIONS (sub-pages)
   ======================================================================== */

.content-section {
  padding: var(--space-10) 0;
}

.content-section h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.content-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--navy);
}

.content-section p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  max-width: 75ch;
}

.content-section ul {
  list-style: none;
  margin-bottom: var(--space-5);
  padding: 0;
}

.content-section ul li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.35;
}

/* Sub-section boxes */
.subsection-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.subsection-box h4, .subsection-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

/* ========================================================================
   SIGNS ACCENT
   ======================================================================== */

.signs-accent { color: var(--accent-teal); }
.signs-accent-bg { background: var(--accent-teal); }

/* ========================================================================
   RESPONSIVE — General
   ======================================================================== */

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

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

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

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

  .process-step:not(:last-child)::after {
    display: none;
  }

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

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 48px;
  }

  .timeline-item__content,
  .timeline-item:nth-child(odd) .timeline-item__content {
    width: 100%;
    text-align: left;
    margin: 0;
  }

  .timeline-item__dot {
    left: 20px;
  }

  .sustainability-callout {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .utility-bar__right {
    display: none;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

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

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

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

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .logo-carousel {
    gap: var(--space-4);
  }

  .client-logo {
    min-width: 120px;
    padding: 10px 20px;
    font-size: 13px;
  }

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

  .hero-title {
    font-size: clamp(36px, 8vw, 52px);
  }

  .hero-section {
    padding: 80px 0 80px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-bar {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

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

/* ========================================================================
   MINING DIVISION STYLES
   ======================================================================== */

.mining-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2a4a 40%, #000066 100%);
  color: #fff;
  padding: calc(var(--header-height) + var(--utility-height) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}

.mining-hero__content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.mining-hero__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.mining-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  color: #fff;
}

.mining-hero p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
}

.mining-hero__pattern {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  opacity: 0.6;
}

.mining-problem-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-12);
  align-items: start;
}

.mining-problem-text h2 {
  margin-bottom: var(--space-5);
}

.mining-problem-text > p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.mining-stat-callouts {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.mining-stat-callout {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--navy);
}

.mining-stat-callout__icon {
  font-size: 24px;
  flex-shrink: 0;
}

.mining-stat-callout strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--heading);
}

.mining-stat-callout p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
  margin: 0;
}

.mining-problem-visual {
  display: flex;
  justify-content: center;
}

.mining-diagram {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.mining-solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.mining-solution-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.mining-solution-card__header {
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: #fff;
}

.mining-solution-card__header--dry {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}

.mining-solution-card__header--wet {
  background: linear-gradient(135deg, #1a3a5c, #1e6091);
}

.mining-solution-card__header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.mining-solution-card__body {
  padding: var(--space-6);
}

.mining-solution-card__body > p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.mining-solution-card__body ul {
  list-style: none;
  padding: 0;
}

.mining-solution-card__body li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: var(--heading);
  line-height: 1.5;
}

.mining-solution-card__body li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
}

.mining-deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.mining-deploy-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.mining-deploy-card__icon {
  margin-bottom: var(--space-5);
}

.mining-deploy-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--heading);
}

.mining-deploy-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.mining-partnership {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mining-partnership__header {
  background: linear-gradient(135deg, #000066, #000099);
  color: #fff;
  padding: var(--space-8);
}

.mining-partnership__header h3 {
  font-size: 22px;
  color: #fff;
  margin-bottom: var(--space-2);
}

.mining-partnership__location {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.mining-partnership__body {
  padding: var(--space-8);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-8);
}

.mining-partnership__text p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.mining-partnership__results {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mining-result-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  border: 1px solid var(--border);
}

.mining-result-card__number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.mining-result-card__label {
  font-size: 13px;
  color: var(--body);
  margin-top: 4px;
}

.mining-partnership__footer {
  padding: var(--space-4) var(--space-8) var(--space-6);
  border-top: 1px solid var(--border);
}

.mining-partnership__footer p {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.mining-env-section {
  background: linear-gradient(135deg, #0d3b0d 0%, #145214 50%, #1a6b1a 100%);
  color: #fff;
}

.mining-env-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.mining-env-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
}

.mining-env-card__icon {
  font-size: 36px;
  margin-bottom: var(--space-3);
}

.mining-env-card h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: var(--space-2);
}

.mining-env-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ========================================================================
   QUALITY PAGE STYLES
   ======================================================================== */

.quality-brc-feature {
  display: flex;
  gap: var(--space-10);
  align-items: flex-start;
}

.quality-brc-badge {
  flex-shrink: 0;
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-light);
  border-radius: var(--radius-xl);
  border: 2px solid var(--navy);
}

.quality-brc-badge__rating {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-top: var(--space-3);
  letter-spacing: 2px;
}

.quality-brc-text h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: var(--space-5);
}

.quality-brc-text p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* ========================================================================
   MINING & QUALITY — RESPONSIVE
   ======================================================================== */

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

  .mining-problem-visual {
    order: -1;
  }

  .mining-solutions-grid {
    grid-template-columns: 1fr;
  }

  .mining-deploy-grid {
    grid-template-columns: 1fr;
  }

  .mining-partnership__body {
    grid-template-columns: 1fr;
  }

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

  .quality-brc-feature {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mining-hero__pattern {
    display: none;
  }
}

@media (max-width: 600px) {
  .mining-env-grid {
    grid-template-columns: 1fr;
  }

  .mining-partnership__header {
    padding: var(--space-5);
  }

  .mining-partnership__body {
    padding: var(--space-5);
  }
}

/* ========================================================================
   PRINT
   ======================================================================== */

@media print {
  .utility-bar, .main-header, .page {
    display: block !important;
  }
}

/* ========================================================================
   PRODUCE SUB-PAGES
   ======================================================================== */

.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}

.spec-table th {
  background: var(--navy);
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--body);
}

.spec-table tbody tr:nth-child(even) {
  background: var(--bg-light);
}

.spec-table tbody tr:hover {
  background: #eef0ff;
}

[data-theme="dark"] .spec-table tbody tr:hover {
  background: rgba(0, 0, 153, 0.15);
}

[data-theme="dark"] .spec-table-wrap {
  border-color: var(--border);
}

.produce-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.produce-nav-item {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.15s;
}

.produce-nav-item:hover {
  border-color: var(--navy);
  background: rgba(0, 0, 153, 0.04);
  color: var(--navy);
  transform: translateY(-1px);
}

.produce-nav-item .produce-nav-icon {
  margin-right: 10px;
  font-size: 20px;
}

.produce-variety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.produce-variety-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  text-align: center;
}

.produce-variety-card h4 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: var(--space-1);
  font-weight: 700;
}

.produce-variety-card p {
  font-size: 13px;
  color: var(--body);
  margin: 0;
}

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

  .spec-table {
    font-size: 13px;
  }

  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
  }
}

/* ========================================================================
   CUSTOMER LOGO WALL
   ======================================================================== */

.logo-wall-section {
  background: var(--bg-light);
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: var(--space-10);
}

.logo-wall__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
  min-height: 90px;
}

.logo-wall__card:hover {
  border-color: rgba(0,0,153,0.2);
}

.logo-wall__card--major {
  padding: 28px 20px;
  min-height: 100px;
}

.logo-wall__card--major .logo-wall__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-wall__name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.3;
}

.logo-wall__industry {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logo-wall__tagline {
  text-align: center;
  margin-top: var(--space-8);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--body);
  font-style: italic;
}

@media (max-width: 900px) {
  .logo-wall {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .logo-wall {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .logo-wall__card {
    padding: 16px 12px;
    min-height: 70px;
  }

  .logo-wall__card--major {
    padding: 20px 14px;
  }

  .logo-wall__card--major .logo-wall__name {
    font-size: 14px;
  }

  .logo-wall__name {
    font-size: 13px;
  }
}

/* ========================================================================
   AUDIT FIXES
   ======================================================================== */

/* Trust Bar */
.trust-bar { background: #F4F6FF; border-top: 1px solid #dde3f5; border-bottom: 1px solid #dde3f5; padding: 1.25rem 2rem; }
.trust-bar__inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust-bar__item { display: flex; flex-direction: column; padding: 0.5rem 2rem; font-size: 0.87rem; color: #1a2e5a; flex: 1; min-width: 220px; text-align: center; }
.trust-bar__item strong { font-weight: 700; color: #000099; margin-bottom: 0.15rem; }
.trust-bar__item span { color: #4b5a7a; font-size: 0.82rem; }
.trust-bar__divider { width: 1px; height: 40px; background: #c5d0e8; flex-shrink: 0; }
@media (max-width: 700px) { .trust-bar__divider { display: none; } .trust-bar__item { padding: 0.5rem; min-width: 100%; } }

/* Skip Link */
.skip-link { position: absolute; top: -100%; left: 1rem; background: #000099; color: #fff; padding: 0.5rem 1rem; border-radius: 0 0 8px 8px; font-weight: 700; text-decoration: none; z-index: 99999; transition: top 0.1s; }
.skip-link:focus { top: 0; }

/* Focus Visible */
:focus-visible { outline: 2px solid #000099; outline-offset: 2px; }

/* Back to Top */
.back-to-top { display: inline-block; margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.6); text-decoration: none; }
.back-to-top:hover { color: #fff; }

/* Nav Phone Pill */
.nav-phone { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; color: #000099; text-decoration: none; padding: 0.35rem 0.75rem; border: 1.5px solid rgba(0,0,153,0.2); border-radius: 100px; transition: background 0.15s; margin-right: 0.5rem; }
.nav-phone:hover { background: rgba(0,0,153,0.06); }
@media (max-width: 768px) { .nav-phone { display: none; } }

/* ========================================================================
   INDUSTRIES BAR
   ======================================================================== */

.industries-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6) 0;
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  min-width: 120px;
  transition: all var(--duration-normal) var(--ease-out);
}

.industry-item:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,153,0.2);
  box-shadow: 0 4px 16px rgba(0,0,153,0.08);
}

.industry-item__icon {
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(0,0,153,0.06);
  border-radius: 50%;
}

.industry-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--heading);
  text-align: center;
}

/* ========================================================================
   WHY FRIESEN PLASTICS GRID
   ======================================================================== */

.why-fp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.why-fp-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  border: 1px solid var(--border);
  transition: all var(--duration-normal) var(--ease-out);
}

.why-fp-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0,0,153,0.2);
}

.why-fp-card__icon {
  margin-bottom: var(--space-5);
}

.why-fp-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--space-3);
}

.why-fp-card__desc {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
}

/* ========================================================================
   DIVISION CARD RESPONSIVE
   ======================================================================== */

@media (max-width: 640px) {
  .division-card--two-col {
    grid-template-columns: 1fr;
  }
}

.divisions-grid--single {
  grid-template-columns: 1fr;
}

/* ===================== DROPDOWN NAV ===================== */
.dd-wrap {
  position: relative;
}
.dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dd-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.dd-wrap:hover .dd-chevron {
  transform: rotate(180deg);
}
.dd-chevron--right {
  margin-left: auto;
}
.dd-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(4px);
  z-index: 9999;
  pointer-events: none;
}
.dd-wrap:hover > .dd-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dd-menu--food {
  min-width: 240px;
}
.dd-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #0A1628;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.dd-item:hover {
  background: #F4F6FF;
  color: #000099;
}
.dd-item--overview {
  color: #000099;
  font-weight: 600;
}
.dd-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 4px 12px;
}
/* Sub-menu (flyout) */
.dd-has-sub {
  position: relative;
}
.dd-sub-trigger {
  justify-content: space-between;
  width: 100%;
}
.dd-submenu {
  position: absolute;
  top: -8px;
  left: 100%;
  min-width: 200px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 10000;
  pointer-events: none;
  max-height: 400px;
  overflow-y: auto;
}
.dd-has-sub:hover > .dd-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dd-submenu .dd-item {
  font-size: 13.5px;
  padding: 7px 16px;
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E7EB;
}
.mobile-menu__header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.mobile-menu__header .logo-mark {
  width: 36px;
  height: 36px;
}
.mobile-menu__close {
  background: none;
  border: 1px solid #E5E7EB;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  line-height: 1;
}
.mobile-menu__body {
  padding: 16px 20px 32px;
}
.mobile-section {
  margin-bottom: 4px;
}
.mobile-acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #0A1628;
  cursor: pointer;
  border-bottom: 1px solid #E5E7EB;
}
.mobile-acc-btn svg {
  transition: transform 0.25s ease;
}
.mobile-acc-btn.active svg {
  transform: rotate(180deg);
}
.mobile-acc-btn--sub {
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0 12px 12px;
  border-bottom-color: #f0f0f0;
}
.mobile-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-acc-panel.active {
  max-height: 1200px;
}
.mobile-acc-panel--sub {
  padding-left: 12px;
}
.mobile-link {
  display: block;
  padding: 11px 0 11px 12px;
  font-size: 15px;
  color: #6B7280;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
}
.mobile-link:hover {
  color: #000099;
}
.mobile-link--overview {
  color: #000099;
  font-weight: 600;
}
.mobile-link--top {
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  color: #0A1628;
  border-bottom: 1px solid #E5E7EB;
}
.mobile-menu__cta {
  margin-top: 24px;
  text-align: center;
}
.mobile-menu__phone {
  display: block;
  margin-top: 12px;
  color: #6B7280;
  font-size: 14px;
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0A1628;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .hamburger { display: block; }
}
@media (min-width: 1025px) {
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}


/* Live Chat Button */
.btn-live-chat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #00a67e 0%, #00875a 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.3);
  cursor: pointer;
}
.btn-live-chat:hover {
  background: linear-gradient(135deg, #00c896 0%, #00a67e 100%);
  box-shadow: 0 6px 20px rgba(0, 135, 90, 0.45);
  transform: translateY(-2px);
  color: #fff;
}
.btn-live-chat:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 135, 90, 0.3);
}
.btn-live-chat__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  animation: chatPulse 2s ease-in-out infinite;
}
@keyframes chatPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* Dieline Gate Card */
.dieline-gate-card {
  background: var(--bg-white, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-8, 32px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.08));
}
.dieline-gate-card h2 {
  text-align: center;
}
.dieline-gate-card p {
  text-align: center;
}

/* Nav Search Button */
.nav-search-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm, 6px);
  display: flex;
  align-items: center;
  transition: background 0.2s;
}
.nav-search-btn:hover {
  background: var(--bg-subtle, #f3f4f6);
}

/* Site Search Overlay */
.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  backdrop-filter: blur(4px);
}
.site-search-overlay__inner {
  background: var(--bg-white, #fff);
  border-radius: var(--radius-lg, 12px);
  width: 100%;
  max-width: 600px;
  max-height: 70vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  margin: 0 16px;
}
.site-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light, #e5e7eb);
}
.site-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: var(--font-body, 'Inter', sans-serif);
  background: transparent;
  color: var(--text-primary);
}
.site-search-box input::placeholder {
  color: #999;
}
.site-search-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0 4px;
  line-height: 1;
}
.site-search-close:hover {
  color: var(--text-primary);
}
.site-search-results {
  overflow-y: auto;
  padding: 8px;
  max-height: 50vh;
}
.site-search-result {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.15s;
}
.site-search-result:hover {
  background: var(--bg-subtle, #f3f4f6);
}
.site-search-result__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.site-search-result__path {
  font-size: 13px;
  color: var(--text-secondary, #5F6673);
}
.site-search-hint {
  padding: 16px;
  text-align: center;
  color: var(--text-secondary, #5F6673);
  font-size: 14px;
}

/* Stock Search Bar */
.stock-search-bar {
  padding: 16px 0;
  background: var(--bg-white, #fff);
  border-bottom: 1px solid var(--border-light, #e5e7eb);
  position: sticky;
  top: 64px;
  z-index: 50;
}
.stock-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-subtle, #f3f4f6);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 10px 16px;
  max-width: 500px;
  transition: border-color 0.2s;
}
.stock-search-box:focus-within {
  border-color: var(--navy, #000099);
  box-shadow: 0 0 0 3px rgba(0,0,153,0.08);
}
.stock-search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-body, 'Inter', sans-serif);
  background: transparent;
  color: var(--text-primary);
}
.stock-search-box input::placeholder {
  color: #999;
}
.stock-search-clear {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 0 2px;
  line-height: 1;
}
.stock-search-clear:hover {
  color: var(--text-primary);
}

/* Roll OD Calculator Layout */
.roll-od-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8, 32px);
  align-items: start;
}
@media (max-width: 768px) {
  .roll-od-layout {
    grid-template-columns: 1fr;
  }
}
.roll-3d-container {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-6, 24px);
  background: var(--bg-subtle, #f8f9fa);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-light, #e5e7eb);
}

/* Roll 3D Wrap */
.roll-3d-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}
.roll-3d-controls {
  text-align: center;
  padding: 8px 0;
}
.roll-3d-controls input[type="range"] {
  accent-color: var(--navy, #000099);
  vertical-align: middle;
}

/* FPN Country Cards */
.fpn-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5, 20px);
}
.fpn-country-card {
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-light, #e5e7eb);
  border-radius: var(--radius-lg, 12px);
  padding: var(--space-6, 24px);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fpn-country-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.fpn-country-card__flag {
  font-size: 36px;
  margin-bottom: var(--space-3, 12px);
}
.fpn-country-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-2, 8px);
}
.fpn-country-card p {
  font-size: 14px;
  color: var(--text-secondary, #5F6673);
  line-height: 1.6;
}

/* Industries Image Grid */
.ind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-5, 20px);
}
@media (min-width: 768px) {
  .ind-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.ind-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  background: var(--bg-white, #fff);
  border: 1px solid var(--border-light, #e5e7eb);
  transition: transform 0.25s, box-shadow 0.25s;
}
.ind-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.ind-card__img {
  aspect-ratio: 1;
  overflow: hidden;
}
.ind-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.ind-card:hover .ind-card__img img {
  transform: scale(1.06);
}
.ind-card__label {
  display: block;
  text-align: center;
  padding: 12px 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-heading, 'Poppins', sans-serif);
}

/* Improved Process Steps - numbered circles with better layout */
.process-steps-enhanced {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-6, 24px);
}
.process-step-enhanced {
  counter-increment: step-counter;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-5, 20px);
  align-items: start;
  padding: var(--space-5, 20px);
  background: var(--bg-white, #fff);
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--border-light, #e5e7eb);
  transition: box-shadow 0.2s;
}
.process-step-enhanced:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.process-step-enhanced::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy, #000099);
  color: #fff;
  font-family: var(--font-heading, 'Poppins', sans-serif);
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}
.process-step-enhanced h3 {
  margin-bottom: var(--space-2, 8px);
  font-size: 18px;
}
.process-step-enhanced p {
  font-size: 14px;
  color: var(--text-secondary, #5F6673);
  line-height: 1.7;
}
.process-step-enhanced ul {
  margin-top: var(--space-3, 12px);
  font-size: 14px;
  color: var(--text-secondary, #5F6673);
  line-height: 1.7;
}
.process-step-enhanced ul li {
  margin-bottom: var(--space-2, 8px);
}
@media (max-width: 600px) {
  .process-step-enhanced {
    grid-template-columns: 44px 1fr;
    gap: var(--space-3, 12px);
  }
  .process-step-enhanced::before {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* === TOGGLE SWITCH === */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  min-width: 44px;
  height: 24px;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.25s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--navy, #1a2744);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* Intro text with a picture beside it (produce, bakery, buns, cauliflower) */
.intro-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.intro-split__text > :last-child { margin-bottom: 0; }
.intro-figure { margin: 0; }
.intro-figure img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(10, 22, 40, 0.10); background: #fff; }
.intro-figure figcaption { margin-top: var(--space-2); font-size: 13px; color: var(--muted); text-align: center; }
.intro-figure:not(.intro-figure--photo) { max-width: 300px; justify-self: center; }
@media (min-width: 900px) {
  .intro-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-12); }
}
.intro-figure--photo img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ========================================================================
   PHONES (under 640px only; desktop and tablet unchanged)
   ======================================================================== */
@media (max-width: 640px) {
  /* Long button labels wrap instead of pushing the page sideways */
  .btn {
    white-space: normal;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
  }

  /* Calculator layouts: let columns shrink to the screen */
  .roll-od-layout > * { min-width: 0; }
  .roll-od-layout input,
  .roll-od-layout select { max-width: 100%; }

  /* Phone-friendly tables: each row becomes a labelled card.
     Labels come from the column headings (scripts/table-labels.mjs). */
  .spec-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }
  .spec-table,
  .data-table { min-width: 0; }
  .spec-table thead,
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table td,
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }
  .spec-table tr,
  .data-table tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .spec-table tbody tr:nth-child(even),
  .data-table tbody tr:nth-child(even),
  .spec-table tbody tr:hover,
  .data-table tbody tr:hover { background: transparent; }
  .spec-table td,
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 14px;
    text-align: right;
  }
  .spec-table td:last-child,
  .data-table td:last-child { border-bottom: 0; }
  .spec-table td:first-child,
  .data-table td:first-child {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--navy);
  }
  .spec-table td[data-label]::before,
  .data-table td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 42%;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted, #6b7280);
  }
}
