/* ==========================================================================
   Spectrum Enterprises - Common & Global Utility CSS (common.css)
   Contains shared component styles, helper utilities, and layout classes.
   ========================================================================== */

/* Utility Text Colors */
.text-white {
  color: #ffffff !important;
}

.text-slate-300,
.text-light-sub {
  color: #cbd5e1 !important;
}

.text-navy {
  color: var(--navy-dark, #0f172a) !important;
}

.text-primary {
  color: var(--primary, #1e3a8a) !important;
}

.text-dark {
  color: var(--text-dark, #1e293b) !important;
}

.text-muted {
  color: var(--text-muted, #64748b) !important;
}

/* Utility Font Styles & Weights */
.font-bold {
  font-weight: 700 !important;
}

.font-semibold {
  font-weight: 600 !important;
}

.uppercase {
  text-transform: uppercase !important;
}

.tracking-wide {
  letter-spacing: 0.6px !important;
}

.nowrap {
  white-space: nowrap !important;
}

.leading-relaxed {
  line-height: 1.7 !important;
}

.font-105 {
  font-size: 1.05rem !important;
}

.font-110 {
  font-size: 1.1rem !important;
}

.font-220 {
  font-size: 2.2rem !important;
}

.text-xs-bold {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
}

.text-caption {
  font-size: 0.8rem !important;
}

.text-sm {
  font-size: 0.9rem !important;
}

.text-base-sm {
  font-size: 0.95rem !important;
}

/* Alignment & Sizing */
.text-left {
  text-align: left !important;
}

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

.text-right {
  text-align: right !important;
}

.w-100,
.w-full {
  width: 100% !important;
}

.container-fluid {
  width: 100%;
  padding-right: 36px;
  padding-left: 36px;
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 1200px) {
  .container-fluid {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 768px) {
  .container-fluid {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.inline-flex {
  display: inline-flex !important;
}

.flex-1-center {
  flex: 1 !important;
  justify-content: center !important;
}

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

/* Spacing Helpers - Margins */
.m-0 {
  margin: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-4 {
  margin-bottom: 4px !important;
}

.mb-8 {
  margin-bottom: 8px !important;
}

.mb-12 {
  margin-bottom: 12px !important;
}

.mb-15 {
  margin-bottom: 15px !important;
}

.mb-16 {
  margin-bottom: 16px !important;
}

.mb-18 {
  margin-bottom: 18px !important;
}

.mb-24 {
  margin-bottom: 24px !important;
}

.mb-30 {
  margin-bottom: 30px !important;
}

.mt-10 {
  margin-top: 10px !important;
}

.mt-20 {
  margin-top: 20px !important;
}

.mt-24 {
  margin-top: 24px !important;
}

.mt-60 {
  margin-top: 60px !important;
}

.mt-2rem {
  margin-top: 2rem !important;
}

.mt-auto {
  margin-top: auto !important;
}

.mr-2 {
  margin-right: 0.5rem !important;
}

.ml-6 {
  margin-left: 6px !important;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Spacing Helpers - Max Widths */
.max-w-650 {
  max-width: 650px !important;
}

.max-w-760 {
  max-width: 760px !important;
}

.max-w-780 {
  max-width: 780px !important;
}

.max-w-800 {
  max-width: 800px !important;
}

.max-w-820 {
  max-width: 820px !important;
}

/* Padding Helpers */
.pad-14 {
  padding: 14px !important;
}

.pad-10-16 {
  padding: 10px 16px !important;
}

.btn-pad-lg {
  padding: 14px 28px !important;
}

.btn-pad-sm {
  padding: 8px 16px !important;
  font-size: 0.85rem !important;
}

/* Background & Border Helpers */
.bg-white {
  background: #ffffff !important;
}

.bg-slate-50 {
  background: #f8fafc !important;
}

.bg-primary {
  background: var(--primary, #1e3a8a) !important;
}

.border-light {
  border: 1px solid var(--border-light, #e2e8f0) !important;
}

.border-t-primary {
  border-top: 3px solid var(--primary, #1e3a8a) !important;
}

/* Flex & Grid Helpers */
.flex-gap-10-wrap {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.flex-gap-14-wrap {
  display: flex !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

.flex-gap-12-wrap {
  display: flex !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
}

.grid-auto-320 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
}

/* Icon Feature Wrappers */
.icon-box-blue {
  background: #eff6ff !important;
  color: #2563eb !important;
}

.icon-box-red {
  background: #fef2f2 !important;
  color: #dc2626 !important;
}

.icon-box-green {
  background: #f0fdf4 !important;
  color: #16a34a !important;
}

.icon-box-amber {
  background: #fffbeb !important;
  color: #d97706 !important;
}

.icon-box-purple {
  background: #f5f3ff !important;
  color: #7c3aed !important;
}

.icon-box-cyan {
  background: #ecfeff !important;
  color: #0891b2 !important;
}

/* Button & Component Variants */
.btn-light-secondary {
  background: #f1f5f9 !important;
  color: var(--text-dark, #1e293b) !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  padding: 10px 16px !important;
}

.btn-outline-white {
  white-space: nowrap !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-full-width {
  width: 100% !important;
  justify-content: center !important;
}

.brand-logo-inline {
  margin-bottom: 12px !important;
  display: inline-flex !important;
}

.feature-card-soft {
  background: #f8fafc !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
}

.boq-banner {
  margin-top: 50px !important;
  background: linear-gradient(135deg, #0b1324 0%, #172442 100%) !important;
  border-radius: var(--radius-lg, 12px) !important;
  padding: 36px !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  box-shadow: var(--shadow-lg, 0 10px 25px -5px rgba(0, 0, 0, 0.1)) !important;
}

.btn-whatsapp-pad {
  padding: 12px 24px !important;
}

.btn-primary-pad {
  padding: 12px 26px !important;
}

.font-140 {
  font-size: 1.4rem !important;
}

.leading-normal {
  line-height: 1.6 !important;
}

.flex-gap-12-wrap {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.drawer-quote-btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 12px !important;
}

.drawer-action-group {
  display: flex !important;
  gap: 10px !important;
  margin-top: 10px !important;
  width: 100% !important;
}

.drawer-call-btn {
  flex: 1 !important;
  justify-content: center !important;
  background: #0f1726 !important;
  border-color: #334155 !important;
  padding: 10px !important;
  font-size: 0.82rem !important;
}

.drawer-wa-btn {
  flex: 1 !important;
  justify-content: center !important;
  padding: 10px !important;
  font-size: 0.82rem !important;
}

/* RFQ and Detail Page Helpers */
.title-hero-white {
  color: #ffffff !important;
  margin-bottom: 12px !important;
}

.subtitle-hero-slate {
  color: #cbd5e1 !important;
  max-width: 800px !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
}

.title-card-dark {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--text-dark, #1e293b) !important;
  margin-bottom: 8px !important;
}

.subtext-card-muted {
  color: var(--text-muted, #64748b) !important;
  font-size: 0.92rem !important;
  margin-bottom: 28px !important;
}

.flex-actions-gap {
  display: flex !important;
  gap: 16px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: 1.5rem !important;
}

.badge-b2b-tag {
  display: inline-block !important;
  background: rgba(214, 30, 21, 0.2) !important;
  color: #ff8a80 !important;
  padding: 4px 12px !important;
  border-radius: var(--radius-full, 9999px) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
}

.title-sidebar-white {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  margin-bottom: 12px !important;
  color: #ffffff !important;
}

.subtext-sidebar-slate {
  color: #cbd5e1 !important;
  font-size: 0.92rem !important;
  line-height: 1.65 !important;
  margin-bottom: 24px !important;
}

.flex-col-gap-18 {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  margin-bottom: 28px !important;
}

.flex-gap-12-start {
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
}

.icon-text-lg {
  font-size: 1.3rem !important;
}

.strong-title-white {
  display: block !important;
  font-size: 0.95rem !important;
  color: #ffffff !important;
}

.sub-span-slate {
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
}

.border-t-white-light {
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding-top: 20px !important;
}

.text-ask-direct {
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  margin-bottom: 6px !important;
}

.link-phone-white {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: block !important;
  margin-bottom: 4px !important;
}

.link-phone-white-2 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  display: block !important;
}

/* Section Banner Helpers */
.section-cta-primary {
  background: var(--primary, #1e3a8a) !important;
  color: #ffffff !important;
  text-align: center !important;
}

.title-cta-lg {
  font-size: 2.2rem !important;
  margin-bottom: 15px !important;
}

.subtitle-cta-slate {
  color: #cbd5e1 !important;
  max-width: 650px !important;
  margin: 0 auto 30px !important;
  font-size: 1.1rem !important;
}

/* Dark Card & Image Utilities */
.calc-grid-center {
  align-items: center !important;
}

.feature-card-dark {
  background: #0f1726 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Dedicated Sectors Page Styling (sectors.php) */
.sector-filter-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  justify-content: center !important;
  margin-bottom: 36px !important;
}

.sector-filter-btn {
  background: #ffffff !important;
  color: var(--text-dark, #1e293b) !important;
  border: 1px solid var(--border-light, #cbd5e1) !important;
  padding: 10px 22px !important;
  border-radius: 30px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.sector-filter-btn:hover,
.sector-filter-btn.active {
  background: var(--primary, #d61e15) !important;
  color: #ffffff !important;
  border-color: var(--primary, #d61e15) !important;
  box-shadow: 0 4px 14px rgba(214, 30, 21, 0.25) !important;
}

.sector-page-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 36px !important;
}

.sector-full-card {
  display: grid !important;
  grid-template-columns: 380px 1fr !important;
  background: #ffffff !important;
  border-radius: var(--radius-lg, 12px) !important;
  border: 1px solid var(--border-light, #e2e8f0) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  scroll-margin-top: 110px !important;
}

.sector-full-card:target {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(214, 30, 21, 0.22), 0 14px 34px rgba(0, 0, 0, 0.12) !important;
}

.sector-full-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
  border-color: #cbd5e1 !important;
}

.sector-full-card .sector-full-media {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 320px !important;
  background: #0f1726 !important;
}

.sector-full-card .sector-full-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.sector-full-card .sector-body {
  padding: 32px !important;
  display: flex !important;
  flex-direction: column !important;
}

.sector-full-card .sector-title {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: var(--text-dark, #0f172a) !important;
  margin-bottom: 2px !important;
}

.sector-full-card .sector-desc {
  font-size: 0.95rem !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  margin-bottom: 20px !important;
}

.sector-specs-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px 24px !important;
  background: #f8fafc !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  margin-bottom: 20px !important;
}

.sector-spec-item {
  font-size: 0.88rem !important;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.sector-spec-item strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.sector-materials-label {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--primary, #d61e15) !important;
  margin-bottom: 10px !important;
}

.sector-materials-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
}

.sector-materials-list li {
  background: #f1f5f9 !important;
  color: #334155 !important;
  padding: 5px 12px !important;
  border-radius: 6px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border: 1px solid #e2e8f0 !important;
}

.sector-actions {
  display: flex !important;
  gap: 14px !important;
  align-items: center !important;
  margin-top: auto !important;
  padding-top: 18px !important;
  border-top: 1px solid #f1f5f9 !important;
}

@media (max-width: 900px) {
  .sector-full-card {
    grid-template-columns: 1fr !important;
  }

  .sector-full-card .sector-full-media {
    height: 230px !important;
    min-height: auto !important;
  }

  .sector-specs-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Call To Action Banner Image Thumb & B2B Calculator Background */
.catalog-explore-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
  background: linear-gradient(135deg, #0b1324 0%, #172442 100%) !important;
  border-radius: var(--radius-lg, 12px) !important;
  padding: 36px 40px !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-lg) !important;
}

.catalog-explore-text {
  flex: 1 !important;
  max-width: 620px !important;
}

.banner-right-media {
  flex-shrink: 0 !important;
}

.banner-img-thumb {
  max-width: 413px !important;
  height: 230px !important;
  object-fit: cover !important;
  border-radius: var(--radius-md, 8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 768px) {
  .catalog-explore-banner {
    flex-direction: column !important;
    padding: 24px !important;
  }

  .banner-img-thumb {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* B2B Estimator / Requirement Builder Section Background */
.b2b-calculator-section {
  position: relative !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(11, 19, 36, 0.96) 100%), url('../assets/images/b2b_procurement_banner.jpg') center/cover no-repeat !important;
  color: #ffffff !important;
  padding: 80px 0 !important;
}

.b2b-calculator-section .calc-info h3 {
  color: #ffffff !important;
}

.b2b-calculator-section .calc-info p {
  color: #cbd5e1 !important;
}

.b2b-calculator-section .calc-highlight-text h4 {
  color: #ffffff !important;
}

.b2b-calculator-section .calc-highlight-text p {
  color: #94a3b8 !important;
}

/* ==========================================================================
   Global High-Contrast Light Form Controls (quote.php, contact.php, etc.)
   ========================================================================== */
.form-label {
  display: block !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.form-control,
.form-select,
select.form-control,
textarea.form-control {
  width: 100% !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: var(--radius-md, 8px) !important;
  color: #0f172a !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}

::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.form-control::placeholder,
textarea.form-control::placeholder,
input.form-control::placeholder {
  color: #94a3b8 !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus,
textarea.form-control:focus {
  background: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  color: #0f172a !important;
}

/* Quote Page Specific Checkbox Grids */
.quote-checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #ffffff !important;
  padding: 11px 15px !important;
  border-radius: var(--radius-md, 8px) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease !important;
}

.quote-checkbox-label:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1e3a8a !important;
}

.quote-checkbox-label input[type="checkbox"]:checked+span {
  color: #1e3a8a !important;
  font-weight: 700 !important;
}

.mobile-nav-header,
.mobile-nav-cta {
  display: none;
}

@media (max-width: 868px) {
  .mobile-nav-header {
    display: flex;
  }
  .mobile-nav-cta {
    display: block;
  }
}

/* Disable sticky product media on mobile/tablets */
@media (max-width: 992px) {

  .product-gallery-box,
  .product-gallery,
  .product-gallery-main {
    position: static !important;
    top: auto !important;
    align-self: auto !important;
  }
}