/* ==========================================================================
   Q TECH PRODUCTS - LIGHT THEME COMPONENTS STYLING
   Clean White Cards, Dropzones, Tables, Modals, Forms
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4.5rem 0 4rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 1.25rem;
}

.hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  color: var(--accent-gold);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 1.85rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-gold);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
}

/* Quick RFQ Hero Form Card */
.rfq-form-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Universal Form Architecture */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.15rem;
  text-align: left;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.form-label .req {
  color: #dc2626;
  font-weight: 800;
  margin-left: 0.2rem;
}

/* Universal Form Controls (supports .form-control, .form-input, .form-select, .form-textarea) */
.form-control,
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #0f172a;
  font-size: 0.875rem;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
  transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.form-control:hover,
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: #94a3b8;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
  background-color: #ffffff;
}

.form-control::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* Custom Select Dropdown Arrow */
select.form-control,
select.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Professional Dropzone File Upload System */
.dropzone-area {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.dropzone-area:hover,
.dropzone-area.dragover {
  border-color: var(--accent-gold);
  background: #fffbeb;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
  transform: translateY(-1px);
}

.dropzone-icon {
  font-size: 2rem;
  margin-bottom: 0.35rem;
  transition: transform 0.2s ease;
  display: block;
}

.dropzone-area:hover .dropzone-icon {
  transform: translateY(-2px);
}

.dropzone-title,
.dropzone-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.dropzone-hint {
  font-size: 0.725rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.dropzone-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Live File Selected Preview Chip */
.file-preview,
.dynamic-preview {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.file-preview-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #0f172a;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-preview-size {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 400;
}

.file-preview-remove {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.15s ease;
}

.file-preview-remove:hover {
  background: #fee2e2;
}

/* RFQ Feedback & Success States */
.rfq-feedback-box {
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Product Cards & Category Cards */
.category-grid, .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.category-card, .product-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.category-card:hover, .product-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.category-card-badge, .product-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #ffffff;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.category-card-img, .product-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}


.category-card-body, .product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.category-card-title, .product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.category-card-desc, .product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.product-specs-list {
  list-style: none;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.product-specs-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.product-specs-list li span:first-child {
  color: var(--text-muted);
}

.product-specs-list li span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

/* Customer Tiles */
.customer-tile {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.customer-tile:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.customer-tile strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.customer-tile span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Capability Cards */
.capability-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.capability-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Case Cards & Infrastructure Feature Cards */
.case-card, .infra-machine-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.case-card:hover, .infra-machine-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.case-card h3, .infra-machine-card h3, .case-card .case-title {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.case-card p, .infra-machine-card p {
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.case-card ul, .infra-machine-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-card ul li, .infra-machine-card ul li {
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.75;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.case-card ul li:last-child, .infra-machine-card ul li:last-child {
  border-bottom: none;
}

.case-card ul li strong, .infra-machine-card ul li strong {
  color: #0f172a;
  font-weight: 700;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.case-client-logo {
  height: 36px;
  object-fit: contain;
  max-width: 140px;
}

.case-tag {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.case-metrics-badge {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.case-metric-highlight {
  font-size: 1.85rem;
  font-weight: 800;
  color: #b45309;
  line-height: 1.1;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
}

.case-metric-text {
  font-size: 0.8125rem;
  color: #334155;
  font-weight: 600;
}

.problem-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #b91c1c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.solution-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

/* Machine Infrastructure Card with Media */
.infra-card-media {
  width: 100%;
  height: 220px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infra-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.infra-machine-card:hover .infra-card-media img {
  transform: scale(1.04);
}

.infra-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.infra-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.infra-specs-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.infra-specs-table tr:last-child td {
  border-bottom: none;
}

.infra-specs-table td.spec-label {
  color: #64748b;
  font-weight: 500;
  width: 45%;
}

.infra-specs-table td.spec-val {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  width: 55%;
}


/* Problem -> Solution Components */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-top: 1.5rem;
}

.solution-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gold);
}

.solution-problem-badge {
  display: inline-block;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.solution-success-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Article Cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.article-meta {
  font-size: 0.75rem;
  color: #b45309;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-summary {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Navigation Dropdowns */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 999;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.8125rem;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  color: #b45309;
  background: #fef3c7;
  padding-left: 1.5rem;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

/* Spec Tables */
.spec-table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.spec-table th {
  background: #f8fafc;
  padding: 0.85rem 1.25rem;
  color: #0f172a;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.spec-table tr:hover td {
  background: #fef3c7;
}

/* Call to Action Banner */
.cta-drawing-banner {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.cta-banner-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.cta-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #b45309;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cta-banner-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.cta-banner-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.cta-banner-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}

.feat-icon {
  color: var(--accent-gold);
  font-weight: 700;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.cta-box-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.cta-box-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Modals & RFQ Dialogs */
.modal-overlay,
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  display: none;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active,
.modal-overlay.open,
.modal-backdrop.active,
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  padding: 2.5rem;
  box-sizing: border-box;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container,
.modal-overlay.open .modal-container,
.modal-backdrop.active .modal-container,
.modal-backdrop.open .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: var(--text-muted);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  color: #0f172a;
  background: #e2e8f0;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-grid, .cta-banner-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cta-drawing-banner, .rfq-form-card, .modal-container {
    padding: 1.75rem 1.25rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ==========================================================================
   CONTINUOUS CLIENT LOGO MARQUEE (LEFT-TO-RIGHT INFINITE SCROLL)
   ========================================================================== */
.client-marquee-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0;
}

.client-marquee-container::before,
.client-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 140px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.client-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 15%, rgba(255, 255, 255, 0) 100%);
}

.client-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 15%, rgba(255, 255, 255, 0) 100%);
}

.marquee-track-ltr {
  display: flex;
  width: max-content;
  animation: marqueeScrollLtr 32s linear infinite;
  will-change: transform;
}

.marquee-track-ltr:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  flex-shrink: 0;
}

.client-marquee-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1.75rem;
  height: 72px;
  min-width: 180px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.client-marquee-card:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.15);
  transform: translateY(-3px);
}

.client-marquee-card img {
  max-height: 42px;
  max-width: 135px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none !important;
  opacity: 1 !important;
  transition: all 0.25s ease;
}

.client-marquee-card:hover img {
  transform: scale(1.06);
}

@keyframes marqueeScrollLtr {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* ==========================================================================
   DEDICATED SUBPAGE HERO BANNER COMPONENT
   ========================================================================== */
.page-hero-banner {
  position: relative;
  padding: 3.5rem 0 3rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.page-hero-grid.no-media {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.page-hero-grid.no-media .page-hero-breadcrumb,
.page-hero-grid.no-media .page-hero-pills,
.page-hero-grid.no-media .page-hero-ctas {
  justify-content: center;
}

.page-hero-grid.no-media .page-hero-desc {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-breadcrumb {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.page-hero-breadcrumb a {
  color: var(--accent-gold);
  text-decoration: none;
}

.page-hero-breadcrumb a:hover {
  text-decoration: underline;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 30px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b45309;
  margin-bottom: 1rem;
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.page-hero-title span {
  color: var(--accent-gold);
}

.page-hero-desc {
  font-size: 1rem;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.page-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.page-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.page-hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-hero-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  background: #ffffff;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.page-hero-media:hover img {
  transform: scale(1.03);
}

.page-hero-media.media-document {
  aspect-ratio: auto;
  height: 480px;
  max-height: 520px;
  background: #f8fafc;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  cursor: pointer;
}

.page-hero-media.media-document img {
  width: 100%;
  height: 100%;
  max-height: 490px;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.12));
}

.page-hero-media.media-document:hover img {
  transform: scale(1.02);
}

.page-hero-media-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .page-hero-title {
    font-size: 2.1rem;
  }
  .page-hero-media {
    max-height: 380px;
  }
}

@media (max-width: 640px) {
  .page-hero-banner {
    padding: 2.5rem 0 2rem 0;
  }
  .page-hero-title {
    font-size: 1.75rem;
  }
  .page-hero-desc {
    font-size: 0.9375rem;
  }
  .page-hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .page-hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
  .page-hero-media {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }
  .page-hero-media.media-document {
    aspect-ratio: auto;
    max-height: 400px;
    height: 380px;
  }
}

/* Customer card highlight when anchored from marquee */
.case-card {
  scroll-margin-top: 100px;
  transition: all 0.3s ease;
}

.case-card:target {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35), 0 12px 28px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-4px);
}

/* ==========================================================================
   HOMEPAGE MULTI-IMAGE HERO BANNER SLIDER
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  background: #0f172a;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .hero-slider-container {
    height: 500px;
  }
}

@media (max-width: 991px) {
  .hero-slider-container {
    height: auto;
    min-height: 480px;
  }
  .hero-slide-title {
    font-size: 2.1rem;
  }
  .hero-slide-desc {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

@media (max-width: 768px) {
  .hero-slider-container {
    height: auto;
    min-height: 500px;
  }
  .hero-slide-content {
    padding: 0 1.5rem;
  }
  .hero-slide-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  .hero-slide-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }
  .hero-slide-overlay {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(15, 23, 42, 0.55) 100%);
  }
}

@media (max-width: 480px) {
  .hero-slider-container {
    min-height: 530px;
  }
  .hero-slide-content {
    padding: 0 1rem;
  }
  .hero-slide-badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.6rem;
  }
  .hero-slide-title {
    font-size: 1.4rem;
    line-height: 1.25;
  }
  .hero-slide-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .hero-slide-ctas .btn {
    width: 100%;
    text-align: center;
    font-size: 0.8125rem;
    padding: 0.65rem 1rem;
  }
  .hero-slider-nav {
    display: none;
  }
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
  transform: scale(1.03);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide-1 .hero-slide-img {
  object-fit: cover;
  object-position: center left;
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.15) 100%);
  display: flex;
  align-items: center;
  z-index: 3;
}

.hero-slide-content {
  max-width: 680px;
  padding: 0 2.5rem;
  color: #ffffff;
}

.hero-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-slide-title {
  font-size: 2.65rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-slide-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-slide-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Slider Navigation Controls */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0f172a;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.hero-slider-nav:hover {
  background: #f59e0b;
  color: #ffffff;
  border-color: #f59e0b;
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-prev {
  left: 1.5rem;
}

.hero-slider-next {
  right: 1.5rem;
}

.hero-slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
}

.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-slider-dot.active {
  width: 28px;
  border-radius: 10px;
  background: #f59e0b;
}

@media (max-width: 768px) {
  .hero-slide-title {
    font-size: 1.6rem;
  }
  .hero-slide-desc {
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slide-content {
    padding: 0 1.25rem;
  }
  .hero-slider-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .hero-slider-prev {
    left: 0.5rem;
  }
  .hero-slider-next {
    right: 0.5rem;
  }
}


