@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@500;600;700&display=swap');

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

:root {
  --navy: #0f2d4a;
  --navy-mid: #1a3f5e;
  --navy-deep: #091e30;
  --blue: #2176b8;
  --blue-light: #7ab8e8;
  --blue-pale: #e6f1fb;
  --orange: #e8a020;
  --orange-hover: #d08f18; /* Standardized brand hover color */
  --white: #ffffff;
  --text: #1a2733;
  --text-secondary: #5a7a8a;
  --border: #e2eaf0;
  --bg: #f7fafc;
  --bg2: #eef3f7;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: all 0.2s ease-in-out; /* Global transition variable */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Forces footer to stay at bottom of short pages */
}

/* NAV BAR REFINEMENTS */
nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 70px; /* Slight bump for breathing room */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.nav-logo span { color: var(--blue-light); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #c8dff0;
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  transition: var(--transition);
}
.nav-cta:hover { 
  background: var(--orange-hover);
  transform: translateY(-1px);
}

/* BREADCRUMB */
.breadcrumb {
  background: var(--bg);
  padding: 0.8rem 2.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }

/* SERIES NAV CHIPS */
.series-nav { margin-top: 0.5rem; }
.series-nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.series-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  background: var(--white);
  text-decoration: none;
  transition: var(--transition);
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
}
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }
.chip.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* INDIVIDUAL PRODUCT PAGES */
.product-hero {
  background: var(--navy);
  padding: 4rem 2.5rem;
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}
.product-hero-text { flex: 1.5; min-width: 280px; }
.hero-badge {
  display: inline-block;
  background: rgba(232,160,32,0.15);
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(232,160,32,0.3);
  text-transform: uppercase;
  font-weight: 600;
}
.product-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--white);
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.product-hero h1 span { color: var(--blue-light); }
.product-hero p { color: #cbd5e1; font-size: 16px; line-height: 1.7; max-width: 500px; }

/* Dynamic Image Containers */
.hero-photo {
  flex: 1;
  min-width: 300px;
  background: var(--navy-mid);
  border-radius: var(--radius);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  color: #a8c8e0;
  font-size: 14px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures bleacher pictures fill box cleanly without warping */
}

/* PRODUCT BODY LAYOUT */
.product-body {
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.spec-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.spec-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: #334155;
  line-height: 1.5;
}
.spec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 6px;
}

.spec-highlight {
  background: var(--blue-pale);
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-weight: 500;
}

/* DATA TABLE DESIGN Optimization */
.config-table-wrapper {
  overflow-x: auto; /* Protects smaller devices from layout shattering */
  width: 100%;
}
.config-table { width: 100%; border-collapse: collapse; min-width: 400px; }
.config-table th {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  letter-spacing: 0.05em;
}
.config-table td {
  font-size: 14px;
  color: var(--text);
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.config-table tr:last-child td { border-bottom: none; }
.config-table tr:nth-child(even) td { background: var(--bg); }
.check { color: var(--blue); font-weight: 700; }

/* CALL TO ACTIONS AND SPEC SHEET BARS */
.spec-sheet-bar {
  grid-column: 1 / -1;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border: 1px solid rgba(122,184,232,0.2);
}
.spec-sheet-bar h3 { color: var(--white); font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.spec-sheet-bar p { color: #cbd5e1; font-size: 14px; }

.btn-orange, .btn-blue {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  white-space: nowrap;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-hover); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #185fa5; transform: translateY(-1px); }

.photos-section { grid-column: 1 / -1; }
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}
.photo-ph {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  transition: var(--transition);
  overflow: hidden;
}
.photo-ph:hover { border-color: var(--blue); transform: scale(1.02); }
.photo-ph img { width: 100%; height: 100%; object-fit: cover; }

.full-width { grid-column: 1 / -1; }

.cta-bar {
  grid-column: 1 / -1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cta-bar p { font-size: 16px; font-weight: 600; color: var(--text); }

/* FOOTER SETUP */
footer {
  background: var(--navy-deep);
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}
footer span { color: #64748b; font-size: 14px; }


/* 📱 RESPONSIVE MEDIA QUERIES (THE MOBILE FIX) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  font-family: sans-serif;
  line-height: 1;
}

.mobile-cta-link {
  display: none;
}

@media (max-width: 850px) {
  nav { padding: 0 1.5rem; }
  
  .nav-cta { 
    display: none; /* Hide desktop button on mobile */
  }
  
  .mobile-menu-btn { 
    display: block; /* Show hamburger button on mobile */
  }
  
  .nav-links { 
    display: none; /* Hide links by default on mobile */
    flex-direction: column;
    position: absolute;
    top: 70px; /* Aligns perfectly with your nav height */
    left: 0;
    width: 100%;
    background-color: var(--navy);
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 999;
    gap: 0; /* Resets desktop spacing for clean vertical stacking */
  } 
  
  .nav-links.active { 
    display: flex; /* Dropdown shows up when active */
  }
  
  .nav-links li {
    margin: 12px 0;
    text-align: center;
  }
  
  .mobile-cta-link {
    display: inline-block;
    color: var(--orange) !important; /* Uses your exact orange brand color */
    font-weight: 700;
  }
  
  .product-hero { padding: 3rem 1.5rem; gap: 2rem; }
  .product-body { padding: 2rem 1.5rem; grid-template-columns: 1fr; } /* Stacks components safely */
  
  .breadcrumb { padding: 0.8rem 1.5rem; }
  footer { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
}

/* --- UNIVERSAL LIGHTBOX STYLES --- */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  color: #cbd5e1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--blue-light);
}

/* Makes images look clickable */
.clickable-image {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.clickable-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
/* --- COMMERCIAL PRICING MATRIX STYLES --- */
.buy-now-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
}
.buy-now-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.buy-now-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.shipping-notice-box {
  background: rgba(232, 160, 32, 0.1);
  border: 1px solid rgba(232, 160, 32, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.shipping-notice-box strong { color: var(--orange); font-size: 14px; }
.shipping-notice-box p { font-size: 13px; color: var(--text); margin: 0; }

/* Table Categories */
.matrix-cat-header {
  background: linear-gradient(180deg, #707070 0%, #4a4a4a 100%);
  color: var(--white);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}
.pricing-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: var(--white);
}
.pricing-matrix-table th {
  background: #f1f5f9;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.pricing-matrix-table td {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #f1f5f9;
}
.pricing-matrix-table tr:hover {
  background-color: #f8fafc;
}
.model-num-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.model-num-link:hover { text-decoration: underline; }

/* Form Controls */
.matrix-qty-input {
  width: 55px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}
.matrix-qty-input:focus {
  border-color: var(--blue);
  outline: none;
}
.matrix-actions-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Center Procurement Grids - Forced Override */
.buy-now-section {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Forces all internal elements to the center */
}

.buy-now-title, 
.buy-now-subtitle,
.shipping-notice-box {
  text-align: center !important;
  width: 100% !important;
  max-width: 900px !important;
}

.matrix-cat-header, 
.pricing-matrix-table,
.matrix-actions-bar {
  width: 100% !important;
  max-width: 900px !important; 
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 20px !important;
}