/* ========================================
   INTERCOUNTY SUPPLIES - TRADE FOAM PAGE
   Location: assets/css/trade-foam.css
   Description: Matching homepage style
   Dependencies: global.css (must load first)
   ======================================== */

/* ============ VARIABLES - MATCHING HOMEPAGE ============ */
#ics-trade-page {
  --text: #1A202C;
  --text-light: #4A5568;
  --text-muted: #718096;
  --bg: #FFFFFF;
  --bg-secondary: #F7FAFC;
  --bg-tertiary: #EDF2F7;
  --border: #E2E8F0;
  --border-light: #EDF2F7;
  --accent: #FF6B35;
  --accent-dark: #E55A28;
  --accent-light: #FFF5F2;
  --shadow-xs: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  line-height: 1.7;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ PAGE WRAPPER ============ */
#ics-trade-page .ics-main {
  background: var(--bg);
  min-height: 100vh;
}

/* ============ PAGE HEADER (SIMPLE) ============ */
.icsT-page-header {
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 50px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.icsT-page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.icsT-page-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-light);
  margin: 0;
  font-weight: 400;
}

/* ============ TYPOGRAPHY ============ */
.icsT-h3 {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.icsT-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 12px auto 0;
  max-width: 800px;
  line-height: 1.7;
}

.icsT-section-header {
  text-align: center;
  margin-bottom: 40px;
}

/* ============ FOAM GRADES SECTION ============ */
.icsT-foam-grades-section {
  padding: 80px 20px;
  background: var(--bg);
}

.icsT-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg);
}

.icsT-desktop-table {
  display: block;
}

.icsT-mobile-cards {
  display: none;
}

.icsT-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.icsT-table thead th {
  background: var(--bg-tertiary);
  color: var(--text);
  font-weight: 600;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.icsT-table tbody tr {
  transition: background 0.2s;
  border-bottom: 1px solid var(--border-light);
}

.icsT-table tbody tr:last-child {
  border-bottom: none;
}

.icsT-table tbody tr:hover {
  background: var(--bg-secondary);
}

.icsT-table td {
  padding: 18px 20px;
  color: var(--text-light);
}

.icsT-table td strong {
  color: var(--text);
  font-weight: 600;
}

/* ============ BADGES ============ */
.icsT-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--text);
}

.icsT-badge-x { background: #2C3E50; }
.icsT-badge-v { background: #546E7A; }
.icsT-badge-s { background: #78909C; }
.icsT-badge-a { background: #90A4AE; }

/* ============ MOBILE FOAM CARDS ============ */
.icsT-foam-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
  transition: all 0.3s;
}

.icsT-foam-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.icsT-foam-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.icsT-foam-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.icsT-foam-detail {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.icsT-foam-detail:last-child {
  margin-bottom: 0;
}

.icsT-label {
  font-weight: 600;
  color: var(--text);
}

.icsT-foam-detail span:last-child {
  color: var(--text-light);
}

/* ============ CAPABILITIES SECTION ============ */
.icsT-capabilities-section {
  padding: 80px 20px;
  background: var(--bg-secondary);
}

.icsT-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.icsT-capability-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: var(--shadow-xs);
}

.icsT-capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.icsT-cap-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 16px;
  background: var(--bg-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.icsT-capability-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.icsT-capability-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* ============ MACHINERY SECTION ============ */
.icsT-machinery-section {
  padding: 80px 20px;
  background: var(--bg);
}

.icsT-machinery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.icsT-machine-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.icsT-machine-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.icsT-machine-image {
  background: var(--bg-tertiary);
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icsT-machine-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.icsT-machine-content {
  padding: 28px;
  background: var(--bg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.icsT-machine-content p {
  color: var(--text-light);
  margin: 0 0 16px;
  line-height: 1.7;
  flex: 1;
}

.icsT-machine-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.icsT-spec {
  display: inline-block;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}

/* ============ BUTTON ============ */
.icsT-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: 2px solid var(--text);
  text-align: center;
}

.icsT-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ============ ABOUT SECTION ============ */
.icsT-about {
  padding: 80px 20px;
  background: var(--bg-secondary);
  text-align: center;
}

.icsT-about .ics-h2 {
  margin-bottom: 20px;
}

.icsT-about p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto;
}

/* ============ PAYMENT SECTION ============ */
.icsT-payment {
  padding: 80px 20px 40px;
  background: var(--bg);
  text-align: center;
}

.icsT-payment p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.icsT-payment img {
  display: inline-block;
  max-width: 200px;
  height: auto;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 900px) {
  .icsT-machinery-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .icsT-page-header {
    padding: 40px 20px;
    margin-bottom: 32px;
  }

  .icsT-foam-grades-section,
  .icsT-capabilities-section,
  .icsT-machinery-section,
  .icsT-about,
  .icsT-payment {
    padding: 60px 20px;
  }

  /* Show mobile cards, hide desktop table */
  .icsT-desktop-table {
    display: none;
  }

  .icsT-mobile-cards {
    display: block;
  }

  .icsT-foam-detail {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .icsT-capabilities-grid {
    grid-template-columns: 1fr;
  }

  .icsT-machinery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .icsT-machine-image {
    height: 220px;
  }

  .icsT-machine-content {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .icsT-table td,
  .icsT-capability-card p,
  .icsT-machine-content p {
    font-size: 0.9rem;
  }
}

/* ============ ACCESSIBILITY ============ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ PRINT STYLES ============ */
@media print {
  .icsT-foam-grades-section,
  .icsT-capabilities-section,
  .icsT-machinery-section,
  .icsT-about {
    page-break-inside: avoid;
  }
}

/* ========================================
   END OF TRADE FOAM STYLES
   Matching homepage design! ✨
   ======================================== */