/* ========================================================================
   FRIESEN PLASTICS — Design System & Styles
   ======================================================================== */

/* --- CSS Custom Properties / Design Tokens --- */
:root {
  /* Brand Colors */
  --navy: #000099;
  --navy-light: #1a1aff;
  --navy-hover: #0000cc;
  --navy-dark: #000066;
  --text-primary: #363636;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-light: #f5f5f5;
  --bg-lighter: #f8f8ff;
  --border-light: #efefef;
  --border: #e5e5e5;
  --footer-bg: #191923;
  --footer-text: #cccccc;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --accent-teal: #0097a7;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', 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;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);

  /* 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"] {
  --text-primary: #e8e8e8;
  --text-secondary: #b0b0b0;
  --text-light: #888888;
  --bg-white: #1a1a2e;
  --bg-light: #16213e;
  --bg-lighter: #1a1a3e;
  --border-light: #2a2a4a;
  --border: #333355;
  --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,
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #000033 0%, #000066 50%, #000044 100%);
}

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

[data-theme="dark"] .main-header {
  background: rgba(26, 26, 46, 0.95);
}

[data-theme="dark"] .mega-menu {
  background: #1a1a2e;
  border-color: var(--border);
}

[data-theme="dark"] .mega-menu a {
  color: var(--text-primary);
}

[data-theme="dark"] .mega-menu a:hover {
  background: rgba(0, 0, 153, 0.2);
}

[data-theme="dark"] .mega-col__header {
  color: #8888ff !important;
  border-bottom-color: #8888ff;
}

[data-theme="dark"] .mega-col__cat-link {
  color: #8888ff !important;
}

[data-theme="dark"] .mega-col__sub-items {
  border-left-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .mega-col__overview {
  border-top-color: rgba(255,255,255,0.1);
  color: #8888ff !important;
}

/* --- Reset / Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

/* --- Utility Classes --- */
.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: clamp(48px, 8vw, 96px) 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-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: var(--space-4);
  text-align: center;
}

.section-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.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: 12px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--navy-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
  background: var(--navy);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.btn--white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 14px;
}

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

/* --- Utility Bar --- */
.utility-bar {
  background: var(--navy);
  color: #ffffff;
  font-size: 13px;
  height: var(--utility-height);
  display: flex;
  align-items: center;
}

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

.utility-bar a {
  color: #ffffff;
  font-weight: 500;
}

.utility-bar a:hover {
  color: rgba(255,255,255,0.8);
}

.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 rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-family: var(--font-body);
  transition: all var(--duration-fast);
}

.dark-toggle:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Main Header --- */
.main-header {
  background: rgba(255, 255, 255, 0.97);
  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-light);
}

.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: 44px;
  height: 44px;
  flex-shrink: 0;
}

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

.logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: 0.5px;
}

.logo-tagline {
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.2px;
  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 16px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  cursor: pointer;
  white-space: nowrap;
}

.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);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  display: none;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  min-width: 600px;
  z-index: 200;
}

.nav-item:hover > .mega-menu:not(.mega-menu--food):not(.mega-menu--industrial) {
  display: grid;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mega-menu--food.mega-open,
.mega-menu--industrial.mega-open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Full-width mega menus for food & industrial */
.nav-item--mega {
  position: static;
}

.mega-menu--food,
.mega-menu--industrial {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: 0;
  right: 0;
  transform: none;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  position: fixed;
  top: auto;
  margin-top: 8px;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-8) var(--space-10);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.mega-menu--packaging {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  min-width: 680px;
}

.mega-menu--signs {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  min-width: 580px;
}

/* Column headers */
.mega-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  border-bottom: 2px solid var(--navy);
}

.mega-col__header {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: var(--space-2) !important;
  margin-bottom: var(--space-2);
  border-bottom: 2px solid var(--navy);
  text-decoration: none;
}

.mega-col__header:hover {
  color: var(--primary) !important;
  background: none !important;
  padding-left: 0 !important;
}

.mega-col__header--label {
  cursor: default;
}

.mega-col__items {
  max-height: 380px;
  overflow-y: auto;
}

.mega-col__items::-webkit-scrollbar {
  width: 4px;
}
.mega-col__items::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.mega-col__cat-link {
  font-weight: 600 !important;
  color: var(--navy) !important;
  padding: 8px !important;
  margin-top: var(--space-2);
}

.mega-col__cat-link:hover {
  color: var(--primary) !important;
}

.mega-col__sub-items {
  padding-left: var(--space-4);
  border-left: 2px solid var(--border);
  margin-left: var(--space-2);
  margin-bottom: var(--space-2);
}

.mega-col__sub-items a {
  font-size: 13px !important;
  padding: 4px 8px !important;
  color: var(--text-secondary) !important;
}

.mega-col__sub-items a:hover {
  color: var(--navy) !important;
}

.mega-col__overview {
  display: block;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy) !important;
}

.mega-col a {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.mega-col a:hover {
  background: var(--bg-light);
  color: var(--navy);
  padding-left: 12px;
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--text-primary);
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all var(--duration-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--header-height));
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-white);
  z-index: 99;
  overflow-y: auto;
  padding: var(--space-6);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-section {
  margin-bottom: var(--space-6);
}

.mobile-menu-section h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  border-bottom: 2px solid var(--navy);
}

.mobile-menu-section a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu-section a:hover {
  color: var(--navy);
}

/* Mobile accordion */
.mobile-accordion-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.mobile-arrow {
  font-size: 12px;
  transition: transform 0.2s;
}

.mobile-accordion-toggle.active .mobile-arrow {
  transform: rotate(180deg);
}

.mobile-accordion-content {
  display: none;
}

.mobile-accordion-content.active {
  display: block;
}

.mobile-sub-section {
  margin: var(--space-2) 0;
}

.mobile-sub-header {
  font-weight: 600 !important;
  color: var(--navy) !important;
  padding: 8px 0 !important;
  font-size: 14px !important;
}

.mobile-sub-items {
  padding-left: var(--space-4);
  border-left: 2px solid var(--border-light);
  margin-left: var(--space-2);
}

.mobile-sub-items a {
  font-size: 13px !important;
  padding: 6px 0 !important;
  color: var(--text-secondary) !important;
}

.mobile-sub-items a:hover {
  color: var(--navy) !important;
}

.mobile-overview-link {
  font-weight: 500;
  color: var(--navy) !important;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: var(--space-4) 0;
  font-size: 13px;
  color: var(--text-secondary);
}

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

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

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

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, #000044 0%, #000099 50%, #000077 100%);
  color: #ffffff;
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-white), transparent);
  pointer-events: none;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: #ffffff;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  line-height: 1.6;
  max-width: 560px;
}

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

/* Geometric patterns in hero */
.hero-pattern {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.07;
  pointer-events: none;
}

/* --- Page Hero (interior pages) --- */
.page-hero {
  background: linear-gradient(135deg, #000044 0%, #000099 50%, #000077 100%);
  color: #ffffff;
  padding: clamp(48px, 6vw, 80px) 0;
  position: relative;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.page-hero p {
  font-size: clamp(16px, 2vw, 18px);
  opacity: 0.85;
  max-width: 600px;
}

/* --- 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-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.division-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.division-card__visual {
  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, #e8eaf6, #c5cae9);
  color: var(--navy);
}

.division-card__visual--signs {
  background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
  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;
  margin-bottom: var(--space-3);
}

.division-card__desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

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

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

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

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

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Category Grid --- */
.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-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.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: var(--space-5);
}

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

.category-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.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);
}

/* --- Customer Logos --- */
.logo-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-8) 0;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  transition: all var(--duration-fast);
  min-width: 140px;
  text-align: center;
}

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

/* --- 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-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  position: relative;
}

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

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

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

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

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
  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-light);
  color: var(--text-primary);
}

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

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

[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-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

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

.calc-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  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(--text-primary);
  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(--text-primary);
  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(--text-secondary);
  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(--text-light);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
  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-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal);
}

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

.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);
}

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

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

.event-card__desc {
  font-size: 14px;
  color: var(--text-primary);
  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: 2px;
  background: var(--navy);
  opacity: 0.2;
  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-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.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: 16px;
  height: 16px;
  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(--text-secondary);
  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(--text-primary);
}

.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(--text-primary);
  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-lg);
  padding: var(--space-8);
}

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

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

.contact-info-item p {
  font-size: 14px;
  color: var(--text-secondary);
  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-lg);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  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;
  margin-bottom: var(--space-2);
}

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

/* Process arrow connectors */
.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -20px;
  width: 40px;
  height: 2px;
  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-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal);
}

.capability-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy);
}

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

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

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

/* --- BRC Badge --- */
.brc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px solid #a5d6a7;
  border-radius: var(--radius-lg);
  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 {
  font-size: 14px;
  font-weight: 700;
  color: #2e7d32;
}

.brc-badge__text p {
  font-size: 13px;
  color: #388e3c;
}

/* --- Sustainability Section --- */
.sustainability-callout {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

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

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

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

[data-theme="dark"] .sustainability-callout {
  background: linear-gradient(135deg, #1b3d1b, #1b2e1b);
}

/* --- 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-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal);
}

.gallery-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.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: 600;
  margin-bottom: var(--space-1);
}

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

/* --- 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-lg);
  padding: var(--space-8) var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.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: 600;
  margin-bottom: 2px;
}

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

/* --- 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-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.admin-card h3 {
  font-size: 18px;
  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: #e3f2fd;
  color: #1565c0;
}

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

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

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

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

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #000044 0%, #000099 100%);
  color: #ffffff;
  padding: clamp(48px, 8vw, 80px) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(24px, 4vw, 36px);
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--space-16) 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 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-5);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--footer-text);
}

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

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

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

.footer-logo .logo-mark {
  width: 40px;
  height: 40px;
}

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

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

.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social a {
  display: inline-flex;
  padding: 0;
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  font-size: 14px;
  font-family: var(--font-body);
}

.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.newsletter-form input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
}

.newsletter-form button {
  padding: 10px 20px;
  background: var(--navy);
  color: #ffffff;
  border: 1px solid var(--navy-light);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.newsletter-form button:hover {
  background: var(--navy-hover);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* --- 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 for sub-pages --- */
.content-section {
  padding: var(--space-10) 0;
}

.content-section h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: var(--space-4);
}

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

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

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

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

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

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

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

/* --- Signs accent color on Signs pages --- */
.signs-accent { color: var(--accent-teal); }
.signs-accent-bg { background: var(--accent-teal); }

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

  .mobile-toggle {
    display: block;
  }

  .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;
  }
}

@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;
  }
}

@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 */
.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 Section */
.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(--text-secondary);
  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;
}

.mining-stat-callout p {
  font-size: 14px;
  color: var(--text-secondary);
  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-lg);
  box-shadow: var(--shadow-lg);
}

/* Mining Solutions */
.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-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.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(--text-secondary);
  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(--text-primary);
  line-height: 1.5;
}

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

/* Mining Deploy */
.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-light);
  border-radius: var(--radius-lg);
  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;
  margin-bottom: var(--space-3);
}

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

/* Mining Partnership */
.mining-partnership {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mining-partnership__header {
  background: linear-gradient(135deg, #000066, #000099);
  color: #fff;
  padding: var(--space-8) 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(--text-secondary);
  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-light);
}

.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(--text-secondary);
  margin-top: 4px;
}

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

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

/* Mining Environmental */
.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-lg);
  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-lg);
  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(--text-secondary);
  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, .mobile-menu, .site-footer, .dark-toggle {
    display: none;
  }
  
  .page {
    display: block !important;
  }
}

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

/* Spec Table */
.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.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-light);
  color: var(--text-primary);
}

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

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

[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-dark, #333);
}

/* Produce Sub-Navigation Grid */
.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-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-primary);
  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 page section spacing */
.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-light);
  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);
}

.produce-variety-card p {
  font-size: 13px;
  color: var(--text-secondary);
  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-lighter);
}

.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-light);
  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 {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.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(--text-primary);
  line-height: 1.3;
}

.logo-wall__industry {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  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(--text-secondary);
  font-style: italic;
}

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

/* Responsive: mobile */
@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;
  }
}

/* ===== FLYOUT MEGA MENU ===== */
.mega-menu--food.mega-open {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  padding: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  left: 0 !important;
  position: absolute !important;
}
.mega-menu__categories {
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 12px 0;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.mega-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.mega-cat:hover,
.mega-cat.active {
  background: rgba(0,0,153,0.06);
  color: #000099;
}
.mega-cat__arrow {
  font-size: 10px;
  opacity: 0.4;
  margin-left: 8px;
}
.mega-cat--overview {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 13px;
  color: #000099;
  font-weight: 600;
}
.mega-menu__flyout {
  display: none;
  flex-direction: column;
  min-width: 200px;
  padding: 12px 0;
  max-height: 420px;
  overflow-y: auto;
}
.mega-menu__flyout.visible {
  display: flex;
}
.flyout__header {
  padding: 8px 20px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000099;
  border-bottom: 2px solid #000099;
  margin: 0 12px 8px;
}
.mega-menu__flyout a {
  padding: 7px 20px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.mega-menu__flyout a:hover {
  background: rgba(0,0,153,0.06);
  color: #000099;
}
