
:root {
  /* Hidropex Core DNA (Anti-Generic Upgrade) */
  --color-primary: #3c5d9c; /* Deeper, industrial blue */
  --color-primary-hover: #324f86;
  --color-accent: #f4b81c; /* Stark industrial gold */
  
  --color-navy: #1f2d3d; /* Stark text color */
  --color-navy-dark: #121a24; /* Heavy footer / stats color */
  --color-gray-dark: #4a4f54; /* Subtext */
  
  --color-bg-white: #ffffff;
  --color-bg-gray: #f4f6f9; /* Subtle section separation, no noise */
  --color-border: #d3dce6; /* Sharp, high-contrast borders */
  
  --font-main: 'Montserrat', sans-serif;
  
  --radius-sm: 4px; /* Minimal, rigid rounding */
  --radius-md: 8px; /* Used sparingly, not everything is a pill */
  
  --shadow-rigid: 0 4px 0 rgba(18, 26, 36, 0.1); /* Sharp, flat shadow, no blur */
  --shadow-card: 0 2px 8px rgba(31, 45, 61, 0.05);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  --container-width: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-navy);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* LAYOUT UTILITIES */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 3rem 0;
}

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

.section-bg-dark {
  background-color: var(--color-navy-dark);
  color: var(--color-bg-white);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

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

.grid-footer {
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
}

.grid-map {
  grid-template-columns: 2fr 1fr;
}

.grid-plant {
  grid-template-columns: 250px 1fr 300px;
}

.plant-nav > button {
  justify-content: flex-start;
  border-radius: 0;
}
.plant-nav > button.btn-outline {
  border-top: none;
  border-color: var(--color-border);
}

.stat-block {
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-block:last-child {
  border-right: none;
}

.section-stats { padding: 4rem 0; }
.stats-grid { margin-bottom: 3rem; }
.stats-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; color: rgba(255,255,255,0.6); }

.timeline-line {
  position: absolute; 
  top: 7px; /* (16px circle / 2) - (2px line / 2) */
  left: 0; 
  right: 0; 
  height: 2px; 
  background: var(--color-border); 
  z-index: 0;
}
.timeline-nav > div { z-index: 1; }

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-4 { gap: 2rem; }

/* TYPOGRAPHY - Opinionated, strong hierarchy */
.text-xs { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; color: var(--color-gray-dark); }
.text-sm { font-size: 0.875rem; font-weight: 400; }
.text-base { font-size: 1rem; font-weight: 400; }
.text-lg { font-size: 1.125rem; font-weight: 400; }
.text-xl { font-size: 1.5rem; font-weight: 400; }
.text-2xl { font-size: 2rem; font-weight: 400; letter-spacing: -0.01em; }
.text-3xl { font-size: 3rem; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.text-4xl { font-size: 4rem; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }

.text-primary { color: var(--color-primary); }
.text-white { color: var(--color-bg-white); }
.text-muted { color: var(--color-gray-dark); }

/* COMPONENTS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

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

.btn-outline:hover {
  border-color: var(--color-navy);
  background-color: var(--color-navy);
  color: var(--color-bg-white);
}

.btn-ghost {
  padding: 0.5rem 0;
  color: var(--color-primary);
  background: transparent;
  border: none;
}
.btn-ghost:hover {
  color: var(--color-navy);
}

/* Rigid Card Style - Anti Glassmorphism */
.card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-card);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-rigid);
  border-color: var(--color-primary);
}

/* Topbar */
.topbar {
  background-color: var(--color-navy-dark);
  color: var(--color-bg-white);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.topbar .flex {
  justify-content: space-between;
}

.topbar-links {
  display: flex;
  gap: 1.5rem;
}

.topbar-links a:hover {
  color: var(--color-accent);
}

/* Header */
.header {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.logo {
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  background-color: var(--color-bg-gray);
  border-bottom: 1px solid var(--color-border);
}

.hero .grid {
  align-items: center;
}

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

.hero-image {
  aspect-ratio: 16/9;
  background-color: var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Product Quick Access */
.quick-access {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-white);
}

.quick-access-list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-access-list::-webkit-scrollbar {
  display: none;
}

.quick-access-item {
  padding: 1.5rem 2rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-gray-dark);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.quick-access-item:hover {
  color: var(--color-navy);
}

.quick-access-item.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.qa-number {
  font-size: 0.75rem;
  color: var(--color-border);
  margin-right: 0.5rem;
}
.quick-access-item.active .qa-number {
  color: var(--color-primary);
}

/* Generic Image Box for placeholders */
.img-box {
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-dark);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
  .grid-4, .grid-footer { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .grid-map, .grid-footer, .grid-plant { grid-template-columns: 1fr !important; }
  
  .nav-links, .topbar-links { display: none !important; }
  .header .btn-primary { display: none !important; } /* Hide Request Quote on mobile, replaced by hamburger */
  .mobile-menu-btn { display: flex !important; }

  .text-4xl { font-size: 2.25rem; line-height: 1.2; }
  .text-3xl { font-size: 1.75rem; }
  .text-2xl { font-size: 1.5rem; }
  
  .section { padding: 2rem 0; }
  .hero { padding: 0; min-height: 80vh !important; }
  .hero-container { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  
  .container { padding: 0 1rem; }
  
  .plant-nav {
    flex-direction: row !important;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    gap: 0.5rem;
  }
  .plant-nav::-webkit-scrollbar { display: none; }
  .plant-nav > button {
    justify-content: center !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-sm) !important;
    flex-shrink: 0;
  }
  .plant-nav > button.btn-primary {
    border-color: var(--color-primary) !important;
  }
  
  .grid-4-mobile { grid-template-columns: 1fr 1fr 1fr 1fr !important; gap: 0.5rem !important; }
  .grid-2-mobile { grid-template-columns: 1fr 1fr !important; }
  
  .grid-4-mobile .stat-block {
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    padding: 1rem 0;
  }
  .grid-4-mobile .stat-block:last-child {
    border-right: none;
  }
  .grid-4-mobile .text-4xl { font-size: 1.2rem; margin-bottom: 0.25rem !important; }
  .grid-4-mobile .text-xs { font-size: 0.55rem; text-align: center; line-height: 1.2; padding: 0 0.25rem; }
  
  .section-stats { padding: 1.5rem 0 !important; }
  .stats-grid { margin-bottom: 1.5rem !important; }
  .stats-footer { padding-top: 1rem !important; }
  
  /* Utilities to stack flex rows on mobile */
  .flex-col-mobile { flex-direction: column !important; align-items: flex-start !important; }
  .gap-mobile-2 { gap: 1rem !important; }
  .gap-mobile-sm { gap: 0.5rem !important; }
  .w-full-mobile { width: 100% !important; }
  
  .btn-sm-mobile {
    padding: 0.75rem 0.75rem !important;
    font-size: 0.65rem !important;
  }
  
  .timeline-nav { 
    padding-bottom: 1rem; 
    justify-content: space-between !important;
  }
  .timeline-nav > div { 
    flex-shrink: 1;
    min-width: 0;
    text-align: center;
  }
  .timeline-nav .text-sm {
    font-size: 0.65rem !important;
  }
  .timeline-nav .text-xs {
    font-size: 0.45rem !important;
    line-height: 1.1;
  }
  .timeline-nav > div > div {
    width: 12px !important;
    height: 12px !important;
  }
  .timeline-line {
    top: 5px !important; /* (12px circle / 2) - (2px line / 2) */
  }
  
  .slider-controls { flex-wrap: wrap; }
  .slider-nav-text {
    order: 3;
    width: 100%;
    margin: 1rem 0 0 0 !important;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
  }
  .slider-nav-text::-webkit-scrollbar { display: none; }
  
  .scroll-x-mobile {
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start !important;
  }
  .scroll-x-mobile::-webkit-scrollbar { display: none; }
  
  .mobile-slider {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 1rem;
    gap: 1rem !important;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-slider::-webkit-scrollbar { display: none; }
  .mobile-slider > * {
    width: 85vw !important;
    min-width: 85vw !important;
    max-width: 85vw !important;
    scroll-snap-align: start;
    flex-shrink: 0;
    white-space: normal;
  }
}

/* Mobile Menu Button - hidden on desktop */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 0.5rem;
}
