/* ShipPlus Group — service rates page
   (Figma "logistics-comparison-page" 774:1981, mobile 785:8806 / expanded 783:2058) */

html { scroll-behavior: smooth; }

/* ---------- Page header ---------- */
.lc-header {
  padding: 80px 0;
  background: linear-gradient(180deg, #e7f3fb, #ffffff 80%);
  text-align: center;
}
.lc-header h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 700;
  color: var(--slate);
}
.lc-header p {
  margin-top: 8px;
  font-size: 18px;
  line-height: 28px;
  color: #737373;
}

/* ---------- Mobile hero banner ---------- */
.lc-hero {
  padding: 32px 16px;
  background: linear-gradient(160deg, #091a41, #01a497);
}
.lc-hero h1 {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  color: #fff;
  max-width: 300px;
}
.lc-hero p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;
  color: #fff;
}

/* ---------- Filter chips ---------- */
.lc-filters { padding: 24px 0 32px; }
.lc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lc-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: #f1f5f9;
  color: var(--slate);
  font-family: var(--font-thai);
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
}
.lc-chip.active {
  background: #e0f7f5;
  border-color: var(--teal);
  color: var(--teal);
}

/* ---------- Courier card grid ---------- */
.lc-grid-section { padding: 16px 0 48px; }
.lc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.lc-card {
  background: #fff;
  border: 1px solid #ebedf1;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.lc-card.active {
  border: 2px solid var(--teal);
  padding: 23px; /* keep content aligned with 1px-border cards */
  box-shadow: 0 8px 16px rgba(0, 181, 168, 0.1);
}
.lc-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lc-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}
.lc-logo.contain { object-fit: contain; }
.lc-logo.lg {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}
.lc-card-head h3 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--slate);
}
.lc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.lc-tag {
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 17px;
  font-weight: 600;
  white-space: nowrap;
}
.lc-tag.blue { background: #eff6ff; color: #1e3a8a; }
.lc-tag.teal { background: #e0f7f5; color: #007a6e; }
.lc-tag.green { background: #f0fdf4; color: #15803d; }
.lc-more {
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
  color: var(--teal);
}
.lc-more:hover { text-decoration: underline; }

/* ---------- Courier overview ---------- */
.lc-overview { padding: 32px 0 48px; scroll-margin-top: 80px; }
.lc-overview-panel {
  border: 2px solid var(--teal);
  border-radius: 20px;
  background: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.02);
}
.lc-overview-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lc-overview-head h2 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  color: var(--slate);
}
.lc-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.lc-spec {
  background: #f8fafc;
  border: 1px solid #eff2f5;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lc-spec-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lc-spec-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #e6f8f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lc-spec-icon img { width: 28px; height: 28px; object-fit: contain; }
.lc-spec-head h4 {
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  color: var(--slate);
}
.lc-spec p {
  font-size: 18px;
  line-height: 28px;
  color: #404040;
}
.lc-overview-cta { text-align: center; }
.lc-cta {
  padding: 16px 32px;
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(25, 181, 165, 0.2);
}

@media (max-width: 1100px) {
  .lc-grid { grid-template-columns: repeat(2, 1fr); }
  .lc-specs { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile (Figma 785:8806 / 783:2058, 390px) ---------- */
@media (max-width: 767px) {
  .lc-hero { display: block; }

  .lc-header {
    padding: 32px 0 16px;
    background: #fff;
    text-align: left;
  }
  .lc-header h1 { font-size: 22px; line-height: 30px; }
  .lc-header p { font-size: 14px; line-height: 20px; color: #64748b; }

  .lc-filters { padding: 8px 0 16px; }
  .lc-chips { gap: 8px; }
  .lc-chip { padding: 8px 16px; font-size: 12px; line-height: 18px; }
  .lc-chip.active { font-weight: 700; }

  .lc-grid-section { padding: 8px 0 32px; }
  .lc-grid { grid-template-columns: 1fr; gap: 16px; }
  .lc-card { padding: 16px; gap: 16px; border-width: 2px; }
  .lc-card.active { padding: 15px; }
  /* Collapsed mobile state (785:8806): first card looks like the rest;
     teal border only while its inline detail is expanded (783:2058) */
  .lc-card.active:has(.lc-detail-m[hidden]) {
    border-color: #ebedf1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  }
  .lc-card-head h3 { font-size: 18px; line-height: 27px; }
  .lc-logo { object-fit: contain; }
  .lc-tag { font-size: 10px; line-height: 15px; }
  .lc-card.active .lc-more.expanded { color: #78839d; }

  /* Inline detail accordion inside the active card */
  .lc-detail-m {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 16px;
  }
  .lc-detail-m[hidden] { display: none; }
  .lc-detail-m .lc-overview-head { align-items: flex-start; gap: 12px; }
  .lc-detail-m .lc-overview-head h2 { font-size: 18px; line-height: 26px; }
  .lc-detail-m .lc-overview-head p {
    margin-top: 2px;
    font-size: 12px;
    line-height: 18px;
    color: #64748b;
  }
  .lc-detail-m .lc-specs { grid-template-columns: 1fr; gap: 12px; }
  .lc-detail-m .lc-spec { padding: 12px; gap: 8px; }
  .lc-detail-m .lc-spec-icon { width: 36px; height: 36px; }
  .lc-detail-m .lc-spec-head h4 { font-size: 16px; line-height: 24px; }
  .lc-detail-m .lc-spec p { font-size: 12px; line-height: 18px; }
  .lc-detail-m .lc-cta {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    line-height: 21px;
  }
  .lc-detail-m .btn-arrow { width: 16px; height: 16px; }
}
