/* ==========================================================================
   MASA EXPORTS – COMPONENTS STYLESHEET
   Interactive UI components, cards, forms, buttons & modals
   ========================================================================== */

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.85rem;
  border-radius: var(--border-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-pure-white);
  box-shadow: 0 4px 16px rgba(22, 140, 137, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-dark-teal);
  color: var(--color-pure-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(22, 140, 137, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-champagne-gold), var(--color-gold-dark));
  color: var(--color-deep-navy);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(197, 164, 109, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-light-gold), var(--color-champagne-gold));
  color: var(--color-deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(197, 164, 109, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-pure-white);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--color-teal);
  color: var(--color-teal-light);
  background-color: rgba(22, 140, 137, 0.1);
  transform: translateY(-2px);
}

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

.btn-outline-dark:hover {
  background-color: var(--color-deep-navy);
  color: var(--color-pure-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}

.btn-icon-right svg {
  transition: transform var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   BADGES & CHIPS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-teal {
  background: rgba(22, 140, 137, 0.12);
  color: var(--color-dark-teal);
  border: 1px solid rgba(22, 140, 137, 0.25);
}

.badge-gold {
  background: rgba(197, 164, 109, 0.15);
  color: var(--color-gold-dark);
  border: 1px solid rgba(197, 164, 109, 0.35);
}

.badge-available {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.badge-request {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-verified {
  background: rgba(22, 140, 137, 0.1);
  color: var(--color-teal);
  border: 1px solid rgba(22, 140, 137, 0.25);
}

/* --------------------------------------------------------------------------
   COMMODITY CATEGORY CARDS (Asymmetric Interactive Layout)
   -------------------------------------------------------------------------- */
.division-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.division-card {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: var(--color-pure-white);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(22, 140, 137, 0.4);
}

.division-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  background-color: var(--color-deep-navy);
}

.division-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.division-card:hover .division-image {
  transform: scale(1.08);
}

.division-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(8, 28, 50, 0.1) 0%, rgba(8, 28, 50, 0.75) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.division-code {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-light-gold);
  text-transform: uppercase;
}

.division-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.division-title {
  margin-bottom: 0.75rem;
  color: var(--color-deep-navy);
}

.division-desc {
  font-size: 0.95rem;
  color: var(--color-slate-grey);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.division-sublist {
  list-style: none;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--color-border-light);
  padding-top: 1rem;
}

.division-sublist li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #334155;
  margin-bottom: 0.5rem;
}

.division-sublist li svg {
  color: var(--color-teal);
  flex-shrink: 0;
}

.division-footer {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   TRUST HIGHLIGHT PILLARS (Under Hero)
   -------------------------------------------------------------------------- */
.trust-bar {
  position: relative;
  margin-top: -3.5rem;
  z-index: 20;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--color-pure-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
}

.trust-item {
  padding: 2.25rem 1.75rem;
  border-right: 1px solid var(--color-border-light);
  transition: background-color var(--transition-fast);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item:hover {
  background-color: var(--color-off-white);
}

.trust-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-md);
  background: rgba(22, 140, 137, 0.1);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform var(--transition-fast);
}

.trust-item:hover .trust-icon-box {
  transform: scale(1.08);
  background-color: var(--color-teal);
  color: var(--color-pure-white);
}

.trust-item-title {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--color-deep-navy);
}

.trust-item-desc {
  font-size: 0.88rem;
  color: var(--color-slate-grey);
  line-height: 1.55;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   CANADIAN COMPLIANCE WORKFLOW
   -------------------------------------------------------------------------- */
.compliance-workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  margin-top: 3rem;
}

.compliance-step-card {
  background-color: var(--color-pure-white);
  border-radius: var(--border-radius-md);
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-smooth);
}

.compliance-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-teal);
  box-shadow: var(--shadow-md);
}

.step-num-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-deep-navy);
  color: var(--color-light-gold);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--color-deep-navy);
}

.step-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--color-slate-grey);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   INTERACTIVE SUPPLY CHAIN STAGES
   -------------------------------------------------------------------------- */
.supply-chain-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.sc-stage-card {
  background: var(--color-pure-white);
  border-radius: var(--border-radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-smooth);
}

.sc-stage-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-teal);
  box-shadow: var(--shadow-xl);
}

.sc-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.sc-stage-letter {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-champagne-gold);
  background: rgba(197, 164, 109, 0.15);
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
}

.sc-stage-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  background: rgba(22, 140, 137, 0.1);
  color: var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   B2B PRODUCT CATALOG CARDS & FILTERING
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  background-color: var(--color-pure-white);
  padding: 1.25rem 1.75rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  background: transparent;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-slate-grey);
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--color-deep-navy);
  background-color: var(--color-off-white);
}

.filter-tab.active {
  background-color: var(--color-deep-navy);
  color: var(--color-pure-white);
}

.search-box {
  position: relative;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-pill);
  background-color: var(--color-off-white);
  color: var(--color-deep-navy);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--color-teal);
  background-color: var(--color-pure-white);
  box-shadow: 0 0 0 3px rgba(22, 140, 137, 0.15);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: var(--color-slate-grey);
  pointer-events: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background-color: var(--color-pure-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 140, 137, 0.3);
}

.product-img-box {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-color: var(--color-deep-navy);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.product-badge-float {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.product-category-tag {
  position: absolute;
  bottom: 0.85rem;
  right: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(8, 28, 50, 0.85);
  color: var(--color-light-gold);
  backdrop-filter: blur(4px);
}

.product-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--color-slate-grey);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-spec-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.product-spec-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.product-spec-table td {
  padding: 0.45rem 0;
}

.product-spec-table td.spec-key {
  color: #64748B;
  width: 45%;
}

.product-spec-table td.spec-val {
  color: var(--color-deep-navy);
  font-weight: 600;
}

.product-card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.product-card-actions .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   MULTI-STEP RFQ FORM SYSTEM
   -------------------------------------------------------------------------- */
.rfq-wizard-card {
  background-color: var(--color-pure-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.wizard-steps-header {
  background-color: var(--color-deep-navy);
  padding: 2rem 2.5rem;
  color: var(--color-pure-white);
  border-bottom: 1px solid rgba(22, 140, 137, 0.25);
}

.wizard-progress-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.completed {
  opacity: 0.85;
}

.step-badge-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-pure-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-indicator.active .step-badge-num {
  background-color: var(--color-teal);
  border-color: var(--color-teal-light);
  box-shadow: 0 0 12px rgba(22, 140, 137, 0.6);
}

.step-indicator.completed .step-badge-num {
  background-color: var(--color-champagne-gold);
  color: var(--color-deep-navy);
}

.step-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wizard-body {
  padding: 3rem 2.5rem;
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.active {
  display: block;
}

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

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

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-deep-navy);
  margin-bottom: 0.5rem;
}

.form-label .req {
  color: #DC2626;
  margin-left: 2px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-pure-white);
  color: var(--color-deep-navy);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(22, 140, 137, 0.15);
}

.form-input.error, .form-select.error, .form-textarea.error {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

.form-error-msg {
  display: none;
  font-size: 0.78rem;
  color: #DC2626;
  margin-top: 0.35rem;
}

.form-group.has-error .form-error-msg {
  display: block;
}

/* Incoterms Selector Cards */
.incoterms-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.incoterm-chip {
  cursor: pointer;
}

.incoterm-chip input {
  display: none;
}

.incoterm-chip-label {
  display: block;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--color-off-white);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-deep-navy);
  transition: all var(--transition-fast);
}

.incoterm-chip:hover .incoterm-chip-label {
  border-color: var(--color-teal);
}

.incoterm-chip input:checked + .incoterm-chip-label {
  background-color: rgba(22, 140, 137, 0.1);
  border-color: var(--color-teal);
  color: var(--color-dark-teal);
  box-shadow: 0 0 0 2px rgba(22, 140, 137, 0.2);
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

/* Submission Confirmation Box */
.rfq-success-box {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.success-check-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

/* --------------------------------------------------------------------------
   MODAL DRAWER (Spec Sheet View)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 23, 41, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--color-pure-white);
  border-radius: var(--border-radius-lg);
  max-width: 640px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: all var(--transition-fast);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  background-color: var(--color-deep-navy);
  color: var(--color-pure-white);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  color: var(--color-pure-white);
  font-size: 1.25rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--color-pure-white);
}

.modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

/* --------------------------------------------------------------------------
   FLOATING BUSINESS CONTACT WIDGET
   -------------------------------------------------------------------------- */
.floating-contact-widget {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 999;
}

.contact-widget-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal), var(--color-blue-teal));
  color: var(--color-pure-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
}

.contact-widget-trigger:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-glow-teal);
}

.contact-widget-menu {
  position: absolute;
  bottom: 64px;
  left: 0;
  width: 260px;
  background-color: var(--color-deep-navy);
  border: 1px solid rgba(22, 140, 137, 0.35);
  border-radius: var(--border-radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  backdrop-filter: blur(16px);
}

.floating-contact-widget.open .contact-widget-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.widget-menu-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-light-gold);
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 0.4rem;
}

.widget-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: #E2E8F0;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.widget-menu-item:hover {
  background-color: rgba(22, 140, 137, 0.15);
  color: var(--color-teal-light);
}

.widget-menu-item svg {
  flex-shrink: 0;
  color: var(--color-champagne-gold);
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-deep-navy);
  color: var(--color-pure-white);
  padding: 1rem 1.75rem;
  border-radius: var(--border-radius-pill);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-teal);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
