/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #a81c1c;       /* WearWell Red */
  --primary-dark: #821212;
  --secondary: #1e293b;     /* Navy / Slate Dark */
  --light-bg: #f8fafc;      /* Soft Light Gray */
  --text-main: #334155;
  --text-muted: #64748b;
  --white: #ffffff;
  --border: #cbd5e1;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Edge-to-edge container for wide layouts */
.container-border-to-border,
.container.team-container {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 3rem;
  margin: 0 auto;
}

/* ==========================================================================
   2. HEADER & ANIMATED BURGER DRAWER
   ========================================================================== */
.top-bar {
  background-color: var(--secondary);
  color: #cbd5e1;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 10rem;
  padding-right: 10rem;
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
}

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

/* Pushes logo and menu button to the outer edges */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 10rem;
  padding-right: 10rem;
}

.brand-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Logo resizing control */
.brand-logo img {
  height: auto;
  max-height: 65px; /* Adjust logo height here */
  width: auto;
  display: block;
}

/* Burger Toggle Button resizing and styling */
.nav-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem; /* Adjust button text & icon size here */
  padding: 0.55rem 1.15rem; /* Adjust button padding here */
  cursor: pointer;
  color: var(--secondary);
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background-color: #e2e8f0;
  border-color: var(--secondary);
}

/* Off-Canvas Navigation Drawer */
.nav-menu {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: var(--white);
  padding: 2rem 1.5rem;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  align-items: flex-start;
  overflow-y: auto;
  gap: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}

.nav-close {
  display: block;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-end;
  color: var(--secondary);
  padding: 0.25rem 0.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-item {
  width: 100%;
}

.dropdown-menu {
  display: flex;
  flex-direction: column;
  background-color: var(--light-bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
  padding: 0.5rem 0;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
  background-color: #e2e8f0;
  color: var(--primary);
}

/* ==========================================================================
   3. ASSET PLACEHOLDERS
   ========================================================================== */
.asset-placeholder {
  border: 2px dashed var(--primary);
  background-color: #fef2f2;
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}

.asset-placeholder-inline {
  border: 2px dashed var(--primary);
  background-color: #fef2f2;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  display: inline-block;
}

.asset-line-indicator {
  font-family: monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin: 0;
}

/* ==========================================================================
   4. BUTTONS & UI COMPONENTS
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-align: center;
}

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

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

.btn-outline {
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.nav-btn {
  width: 100%;
  margin-top: 1rem;
}

.full-width {
  width: 100%;
}

/* ==========================================================================
   5. PAGE SECTIONS & LAYOUT GRIDS
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 5rem 0;
}

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

.badge {
  display: inline-block;
  background-color: #fee2e2;
  color: var(--primary);
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.section {
  padding: 4.5rem 0;
}

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

.bg-dark {
  background-color: var(--secondary);
}

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

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

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.section-header.mt-4 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-header.light h2,
.section-header.light p {
  color: var(--white);
}

.check-list {
  list-style: none;
  margin-top: 1rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.card-link:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-4px);
}

.card-link:hover h3,
.card-link:hover p {
  color: var(--white);
}

.card-img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tag {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  text-decoration: none;
  color: var(--text-main);
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

/* Client Logo Marquee Animation */
.logo-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: var(--white);
  padding: 1.5rem 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.logo-slide-track {
  display: flex;
  width: calc(200px * 10);
  animation: scrollLogos 20s linear infinite;
}

.logo-slide {
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
}

.logo-slide img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-200px * 5));
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 1rem;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #f87171;
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: #cbd5e1;
  margin-top: 0.5rem;
}

/* ==========================================================================
   6. PRODUCT DETAIL & GALLERY STYLES
   ========================================================================== */
.product-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

/* Shifts the entire gallery container down to align with product title */
.gallery-section {
  padding-top: 1.5rem;
}

/* Main gallery container: locked height to preserve full-size photo scale */
.main-image-container {
  position: relative;
  width: 100%;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
}

/* Full-height photo rendering without auto-scaling collapse */
.main-image-container img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(30, 41, 59, 0.65);
  color: #ffffff;
  border: none;
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  user-select: none;
}

.gallery-arrow:hover {
  background-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.arrow-prev {
  left: 12px;
}

.arrow-next {
  right: 12px;
}

/* Pushes thumbnails further down beneath the main image */
.thumbnail-grid {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  justify-content: flex-start;
}

.thumb-btn {
  width: 75px;
  height: 90px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-btn.active {
  border-color: var(--primary);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.quote-container {
  background: var(--light-bg);
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
}

.quote-text {
  font-weight: 600;
  color: var(--secondary);
}

.quote-subtext {
  font-size: 0.85rem;
}

.option-group {
  margin: 1.5rem 0;
}

.option-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.selected-color-name {
  font-weight: 400;
  color: var(--text-muted);
}

.swatch-container {
  display: flex;
  gap: 0.75rem;
}

.swatch-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.2s;
}

.swatch-btn.active {
  border-color: var(--secondary);
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary);
}

.swatch-btn.navy {
  background-color: #1e293b;
}

.swatch-btn.orange {
  background-color: #ea580c;
}

.swatch-btn.khaki {
  background-color: #d97706;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--secondary);
}

.form-group select, 
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--white);
}

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

#productFormStatus {
  background-color: #16a34a;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: none; 
}

#productFormStatus:not(:empty) {
  display: block;
}

.form-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.info-box {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.info-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}
/* ==========================================================================
   7. QUOTE LIST & UTILITY CLASSES
   ========================================================================== */
.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.quote-table th,
.quote-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.quote-table th {
  font-weight: 600;
  color: var(--secondary);
  background-color: var(--light-bg);
}

.qty-input-sm {
  width: 60px;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  font-family: inherit;
}

.btn-remove {
  background-color: #fee2e2;
  color: var(--primary);
  border: 1px solid #fecaca;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-remove:hover {
  background-color: #fecaca;
}

.is-hidden {
  display: none !important;
}

.align-start {
  align-items: flex-start;
}

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

.gap-2 {
  gap: 2rem;
}

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

.column-divider {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}

.text-sub {
  font-size: 0.9rem;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-125 { margin-bottom: 1.25rem; }
.mb-15 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: #cbd5e1;
}

/* ==========================================================================
   9. MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .product-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .nav-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-video-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* ==========================================================================
   10. PRODUCT GRID & CARD STYLES
   ========================================================================== */
.product-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 8px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

/* Pop-up effect on hover across the entire card */
.product-card-link:hover {
  transform: translateY(-6px);
}

.product-card-link:hover .product-list-card {
  border-color: #cbd5e1;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Outer card frame with full border wrapping details and description */
.product-list-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  text-align: left;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden; /* Ensures inner elements follow the rounded corners */
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-list-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  background-color: var(--white);
  border: none;
  box-sizing: border-box;
}

/* Full card width container for text content on WearWell Red background */
.product-info-sm {
  display: flex;
  flex-direction: column;
  background-color: var(--primary);
  color: var(--white);
  padding: 1.25rem 1rem;
  gap: 0.35rem;
  flex-grow: 1;
}

.product-id {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin: 0;
}

.product-price {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin: 0;
}

.product-brand {
  font-size: 0.85rem;
  color: #f8fafc;
  opacity: 0.9;
  margin: 0;
}

/* Clean text block matching the reference graphic styling */
.product-desc {
  font-size: 0.9rem;
  color: var(--white);
  margin: 0.35rem 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.5em;
}

.product-swatch-container {
  display: flex;
  gap: 0.4rem;
  margin: 0.5rem 0 0.25rem 0;
}

/* Color swatch with crisp white outline */
.swatch-btn.sm {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid var(--white);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.swatch-btn.navy { background-color: #1b2a4a; }
.swatch-btn.orange { background-color: #f36c21; }
.swatch-btn.khaki { background-color: #c2b280; }

.product-sizes {
  font-size: 0.8rem;
  color: var(--white);
  opacity: 0.9;
  margin: 0;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .product-list-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .product-list-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .product-list-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   11. HERO & WORK-TOGETHER VIDEO BACKGROUNDS
   ========================================================================== */
.hero-video-section,
.work-together-section {
  position: relative;
  width: 100%;
  min-height: 550px; 
  display: flex;
  align-items: center;
  overflow: hidden;
}

.work-together-section {
  padding: 5rem 0;
}

.video-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.65); 
}

/* Positioned to the far left of the screen */
.hero-video-container {
  position: relative;
  z-index: 2;
  padding-top: 4rem;
  padding-bottom: 4rem;
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 15rem;
  padding-right: 2rem;
  margin: 0;
}

.hero-video-container .hero-content {
  max-width: 650px;
  margin-left: 0;
  text-align: left;
}

.hero-video-container h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-video-container p {
  font-size: 1.2rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

.btn-outline-light {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--secondary);
}

/* Work Together Section Content & Contact Card Layering */
.work-together-section .cta-content {
  position: relative;
  z-index: 2;
  width: 100%;
  color: white;
}

.contact-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  text-align: center;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card .btn-primary {
  color: var(--white);
  margin-top: 0.5rem;
}

.card-line {
  margin-bottom: 0.5rem;
}

.card-line-lg {
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   12. TEAM DIRECTORY STYLES (50/50 SPLIT, COMPACT & WIDER CARDS)
   ========================================================================== */
.container-border-to-border {
  max-width: 1750px !important;
  width: 100% !important;
  padding: 0 2rem;
  margin: 0 auto;
}

.team-directory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 0 auto 3rem auto;
  width: 100%;
}

.team-card {
  display: flex;
  flex-direction: row;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  min-height: 250px;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.team-photo {
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%; 
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-photo.asset-placeholder {
  border: none;
  border-radius: 0;
  border-right: 1px solid var(--border);
  padding: 0.5rem;
  height: 100%;
}

.team-details {
  padding: 1rem 0.85rem;
  width: 50%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}

.team-details h2 {
  color: var(--secondary);
  margin-bottom: 0.15rem;
  font-size: 1.15rem;
}

.team-details .position {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
}

.team-details .bio {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  flex-grow: 1;
}

.contact-info {
  margin-top: auto;
  border-top: 1px dashed var(--border);
  padding-top: 0.5rem;
  width: 100%;
}

.contact-info p {
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
  color: var(--text-main);
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-info a:hover {
  text-decoration: underline;
}

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

@media (max-width: 900px) {
  .team-directory {
    grid-template-columns: 1fr;
  }
  .team-card {
    flex-direction: column;
  }
  .team-photo {
    width: 100%;
    height: 240px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .team-details {
    width: 100%;
  }
  .container-border-to-border {
    padding: 0 1.25rem;
  }
}

.standards-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
}

.cards-wrapper {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.align-stretch {
  align-items: stretch !important;
}

.full-height {
  height: 100%;
}

.red-divider {
  border: none;
  height: 2px;
  background-color: var(--primary);
  margin: 1.5rem 0;
  border-radius: 2px;
  opacity: 0.85;
}

/* Services Layout */
.cards-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-full-width h2 {
  color: var(--secondary);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .cards-grid-2col {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HOVER LENS & SIDE ZOOM BOX
   ========================================================================== */
.gallery-zoom-wrapper {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  overflow: hidden;
  cursor: crosshair;
}

/* Hover Lens Container */
.zoom-lens {
  position: absolute;
  border: 2px solid var(--primary);
  border-radius: 8px;
  width: 140px;
  height: 140px;
  background-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: none;
  pointer-events: none; /* Allows cursor to interact with main element underneath */
  z-index: 20;
}

/* Side Zoom Output Result */
.zoom-result {
  display: none;
  width: 100%;
  height: 680px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-repeat: no-repeat;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: absolute;
  left: 103%;
  top: 0;
  z-index: 100;
}


/* Product Action Button Row (Size Guide & Spec Sheet) */
.action-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;       /* Reduced gap slightly for a tighter layout */
  margin-top: 0.75rem;
}

.action-buttons-row .btn {
  width: 100%;
  padding: 0.5rem 1rem; /* Reduces top/bottom vertical height */
  font-size: 0.875rem;  /* Reduces font size (14px equivalent) */
  font-weight: 600;     /* Keeps text crisp and bold */
  min-height: unset;    /* Overrides any global theme min-height */
  line-height: 1.25;
}





body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--white);
}

.btn-quote-list {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 10px;
  padding: 0.7rem 1rem; /* Controls the height and width padding */
  font-size: 0.875rem;  /* Keeps font size balanced */
  line-height: 1.25;
}

/* Color Swatches */
.swatch-btn.navy {
  background-color: #1b263b; /* Adjust to your navy shade */
}

.swatch-btn.orange {
  background-color: #f77f00; /* Adjust to your orange shade */
}

.swatch-btn.visual-orange {
  background-color: #f77f00; /* Bright hi-vis visual orange */
}

.swatch-btn.grey {
  background-color: #6c757d; /* Neutral grey */
}

.swatch-btn.khaki {
  background-color: #c3b091; /* Khaki shade */
}

/* new cards for catalog */

.catalog-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.catalog-cards-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-cards-grid .card .card-text {
  flex-grow: 1;
}

.catalog-cards-grid .card .btn {
  margin-top: auto;
}

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

@media (max-width: 640px) {
  .catalog-cards-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}


/* ==========================================
   Pagefind Search & Modal Overlay Styling
   ========================================== */

/* Header controls alignment */
.nav-right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-search-trigger {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
}

/* Hidden keyword helper for indexing */
.pagefind-hidden-keywords {
  display: none;
}

/* Modal Overlay Background */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
}

/* Class to toggle hidden state */
.search-modal-hidden {
  display: none !important;
}

/* White Modal Box */
.search-modal-content {
  position: relative;
  background: #ffffff;
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  margin: 4vh auto;
  padding: 40px;
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Close 'X' Button */
#search-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* 4-Column Product Results Grid */
.pagefind-ui__results {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px;
  margin-top: 25px;
}

/* Result Card */
.pagefind-ui__result {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.pagefind-ui__result-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.pagefind-ui__result-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.pagefind-ui__result-excerpt {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}

/* Responsive adjustment for mobile devices */
@media (max-width: 768px) {
  .pagefind-ui__results {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .pagefind-ui__results {
    grid-template-columns: 1fr !important;
  }
}

/* Search Button */

.btn-search-trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333; /* Matches your navbar text color */
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-search-trigger:hover {
  color: #a81c1c; /* Your primary brand hover color */
  transform: scale(1.08);
}

.btn-search-trigger svg {
  width: 20px;
  height: 20px;
}