/* ==========================================================================
   ProShip Freight Management System — Technology Page
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --fms-dark: #1a1a2e;
  --fms-orange: #ea6425;
  --fms-orange-light: rgba(234, 100, 37, 0.08);
  --fms-orange-border: rgba(234, 100, 37, 0.25);
  --fms-white: #ffffff;
  --fms-gray-50: #f8f9fc;
  --fms-gray-100: #f3f4f6;
  --fms-gray-200: #e5e7eb;
  --fms-gray-400: #9ca3af;
  --fms-gray-600: #6b7280;
  --fms-gray-900: #111827;
}

/* ---------- Smooth Scroll for FMS Anchors ---------- */
[id^="fms-"] {
  scroll-margin-top: 100px;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.fms-hero {
  background: var(--fms-dark);
  padding: 120px 0 80px;
}

.fms-hero__eyebrow {
  color: var(--fms-orange);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
}

.fms-hero__title {
  color: var(--fms-white);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
}

.fms-hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  max-width: 540px;
  line-height: 1.6;
}

.fms-hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.fms-hero__btn-primary {
  background: var(--fms-orange);
  color: var(--fms-white);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.fms-hero__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 100, 37, 0.4);
}

.fms-hero__btn-outline {
  background: transparent;
  color: var(--fms-white);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1.5px solid var(--fms-white);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.fms-hero__btn-outline:hover {
  background: var(--fms-white);
  color: var(--fms-dark);
}

.fms-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.fms-hero__svg {
  max-width: 400px;
  width: 100%;
}

/* SVG dashed-line animation */
@keyframes fms-dash {
  0% {
    stroke-dashoffset: 200;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.fms-hero__svg .fms-line {
  stroke-dasharray: 8 6;
  animation: fms-dash 3s linear infinite;
}

/* ==========================================================================
   2. BRANDS BAR
   ========================================================================== */
.fms-brands {
  background: var(--fms-white);
  padding: 24px 0;
  border-bottom: 1px solid var(--fms-gray-200);
}

/* ==========================================================================
   3. METRICS
   ========================================================================== */
.fms-metrics {
  background: var(--fms-white);
  padding: 64px 0;
}

.fms-metrics__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--fms-gray-200);
  border-radius: 12px;
  overflow: hidden;
}

.fms-metrics__item {
  text-align: center;
  padding: 32px 16px;
  border-right: 1px solid var(--fms-gray-200);
}

.fms-metrics__item:last-child {
  border-right: none;
}

.fms-metrics__number {
  font-size: 36px;
  font-weight: 800;
  color: var(--fms-dark);
  font-variant-numeric: tabular-nums;
}

.fms-metrics__label {
  font-size: 13px;
  color: var(--fms-gray-600);
  margin-top: 4px;
}

/* ==========================================================================
   4. PACE
   ========================================================================== */
.fms-pace {
  background: var(--fms-white);
  padding: 80px 0;
}

.fms-pace__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--fms-dark);
  margin-bottom: 16px;
}

.fms-pace__body {
  font-size: 15px;
  color: var(--fms-gray-600);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
}

.fms-pace__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.fms-pace__card {
  background: var(--fms-white);
  border: 1px solid var(--fms-gray-200);
  border-left: 4px solid var(--fms-orange);
  border-radius: 8px;
  padding: 20px;
}

.fms-pace__card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--fms-dark);
  margin-bottom: 4px;
}

.fms-pace__card-text {
  font-size: 13px;
  color: var(--fms-gray-600);
}

.fms-pace__table-wrap {
  overflow-x: auto;
}

.fms-pace__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fms-pace__table th {
  background: var(--fms-gray-50);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--fms-dark);
  border-bottom: 2px solid var(--fms-gray-200);
}

.fms-pace__table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--fms-gray-100);
}

.fms-pace__table tr:hover td {
  background: var(--fms-gray-50);
}

.fms-pace__check {
  color: var(--fms-orange);
  font-weight: 700;
}

.fms-pace__cross {
  color: #d1d5db;
}

/* ==========================================================================
   5. CAPABILITIES
   ========================================================================== */
.fms-cap {
  background: var(--fms-gray-50);
  padding: 80px 0;
}

.fms-cap__header {
  text-align: center;
  margin-bottom: 48px;
}

.fms-cap__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--fms-dark);
}

.fms-cap__subtitle {
  font-size: 15px;
  color: var(--fms-gray-600);
  margin-top: 8px;
}

.fms-cap__container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.fms-cap__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fms-cap__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--fms-white);
  border: 1px solid var(--fms-gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: var(--fms-gray-600);
}

.fms-cap__tab:hover {
  border-color: var(--fms-orange);
  color: var(--fms-dark);
}

.fms-cap__tab--active {
  border-left: 4px solid var(--fms-orange);
  background: rgba(234, 100, 37, 0.05);
  color: var(--fms-dark);
  font-weight: 600;
  border-color: var(--fms-orange-border);
}

.fms-cap__tab-icon {
  font-size: 20px;
  color: var(--fms-orange);
  min-width: 24px;
}

.fms-cap__panel {
  background: var(--fms-white);
  border: 1px solid var(--fms-gray-200);
  border-radius: 12px;
  padding: 32px;
}

.fms-cap__panel-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--fms-dark);
  margin-bottom: 8px;
}

.fms-cap__panel-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fms-cap__badge {
  background: var(--fms-gray-100);
  color: var(--fms-gray-600);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.fms-cap__panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fms-cap__panel-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
}

.fms-cap__panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fms-orange);
}

.fms-cap__panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fms-orange);
  text-decoration: none;
}

.fms-cap__panel-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   6. INTEGRATIONS
   ========================================================================== */
.fms-int {
  background: var(--fms-white);
  padding: 80px 0;
}

.fms-int__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--fms-dark);
  text-align: center;
  margin-bottom: 48px;
}

.fms-int__col-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--fms-dark);
  margin-bottom: 8px;
}

.fms-int__col-subtitle {
  font-size: 14px;
  color: var(--fms-gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.fms-int__hub {
  max-width: 100%;
  height: auto;
}

/* Shared dashed-line animation for all SVG hub diagrams */
.fms-int__hub .fms-line {
  stroke-dasharray: 8 6;
  animation: fms-dash 3s linear infinite;
}

.fms-int__accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fms-int__accordion details {
  border: 1px solid var(--fms-gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.fms-int__accordion details[open] {
  border-color: rgba(234, 100, 37, 0.3);
}

.fms-int__accordion summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fms-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fms-int__accordion summary::-webkit-details-marker {
  display: none;
}

.fms-int__accordion summary::after {
  content: "+";
  font-size: 18px;
  color: var(--fms-gray-400);
  transition: transform 0.2s;
}

.fms-int__accordion details[open] summary::after {
  content: "\2212";
}

.fms-int__accordion-body {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fms-int__pill {
  background: var(--fms-gray-100);
  color: #374151;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ==========================================================================
   7. ADVANCED FEATURES
   ========================================================================== */
.fms-adv {
  background: var(--fms-dark);
  padding: 80px 0;
}

.fms-adv__title {
  color: var(--fms-white);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

.fms-adv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.fms-adv__card {
  background: var(--fms-white);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--fms-gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fms-adv__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.fms-adv__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(234, 100, 37, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  color: var(--fms-orange);
}

.fms-adv__card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--fms-dark);
  margin-bottom: 8px;
}

.fms-adv__card-text {
  font-size: 13px;
  color: var(--fms-gray-600);
  line-height: 1.6;
}

/* ==========================================================================
   8. COMPLIANCE BACKGROUND
   ========================================================================== */
.fms-compliance-bg {
  background: var(--fms-gray-50);
}

/* ==========================================================================
   9. CTA
   ========================================================================== */
.fms-cta {
  background: var(--fms-dark);
  padding: 80px 0;
  text-align: center;
}

.fms-cta__title {
  color: var(--fms-white);
  font-size: 32px;
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto 16px;
}

.fms-cta__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 32px;
}

.fms-cta__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fms-cta__btn-primary {
  background: var(--fms-orange);
  color: var(--fms-white);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.fms-cta__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 100, 37, 0.4);
}

.fms-cta__btn-outline {
  background: transparent;
  color: var(--fms-white);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1.5px solid var(--fms-white);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.fms-cta__btn-outline:hover {
  background: var(--fms-white);
  color: var(--fms-dark);
}

/* ==========================================================================
   10. FAQ
   ========================================================================== */
.fms-faq {
  background: var(--fms-gray-50);
  padding: 80px 0;
}

.fms-faq__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--fms-dark);
  text-align: center;
  margin-bottom: 48px;
}

.fms-faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fms-faq__item {
  background: var(--fms-white);
  border: 1px solid var(--fms-gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.fms-faq__item[open] {
  border-color: rgba(234, 100, 37, 0.3);
}

.fms-faq__question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  color: var(--fms-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fms-faq__question::-webkit-details-marker {
  display: none;
}

.fms-faq__question::after {
  content: "+";
  font-size: 20px;
  color: var(--fms-gray-400);
  font-weight: 400;
}

.fms-faq__item[open] .fms-faq__question::after {
  content: "\2212";
}

.fms-faq__answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--fms-gray-600);
  line-height: 1.7;
}

/* ==========================================================================
   11. CONTACT
   ========================================================================== */
.fms-contact {
  background: var(--fms-white);
  padding: 80px 0;
}

/* ==========================================================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .fms-hero {
    padding: 80px 0 60px;
  }

  .fms-hero__title {
    font-size: 36px;
  }

  .fms-metrics__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fms-cap__container {
    grid-template-columns: 1fr;
  }

  .fms-cap__tabs {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .fms-cap__tab {
    flex: 0 0 auto;
  }

  .fms-adv__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fms-pace__cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .fms-hero__title {
    font-size: 30px;
  }

  .fms-hero__subtitle {
    font-size: 14px;
  }

  .fms-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .fms-hero__btn-primary,
  .fms-hero__btn-outline {
    width: 100%;
    text-align: center;
  }

  .fms-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fms-pace__cards {
    grid-template-columns: 1fr;
  }

  .fms-adv__grid {
    grid-template-columns: 1fr;
  }

  .fms-cta__title {
    font-size: 24px;
  }

  .fms-int__hub,
  .col-lg-7:has(.fms-int__hub) {
    display: none;
  }
}

/* ==========================================================================
   RESPONSIVE — Small Mobile (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .fms-hero {
    padding: 60px 0 40px;
  }

  .fms-hero__title {
    font-size: 26px;
  }

  .fms-metrics__grid {
    grid-template-columns: 1fr;
  }

  .fms-metrics__item {
    border-right: none;
    border-bottom: 1px solid var(--fms-gray-200);
  }

  .fms-metrics__item:last-child {
    border-bottom: none;
  }
}
