/* =============================================================
   industry-page.css — shared styles for all /industries/[trade] pages
   ============================================================= */

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #122840;
  --orange:     #e07b1a;
  --white:      #ffffff;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --transition: 0.18s ease;
  --grid-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M 20 0 L 20 80 M 40 0 L 40 80 M 60 0 L 60 80 M 0 20 L 80 20 M 0 40 L 80 40 M 0 60 L 80 60' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='0' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23g)'/%3E%3C/svg%3E");
}

/* ── Shared button helpers ── */
.btn-ghost-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost-light:hover { border-color: rgba(255,255,255,0.60); color: white; }
.btn-lg { padding: 13px 28px !important; font-size: 16px !important; }

/* ── Hero ── */
.ip-hero {
  position: relative;
  background: var(--navy-dark);
  padding: 72px 0 64px;
  overflow: hidden;
}
.ip-hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--grid-svg);
  pointer-events: none;
}
.ip-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
}
.ip-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.ip-breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.ip-breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.ip-breadcrumb span { margin: 0 6px; }
.ip-page-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.10);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.ip-hero-heading {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.ip-hero-sub {
  font-size: 16.5px;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 520px;
}
.ip-hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Hero mock card */
.ip-hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
}
.ip-hero-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.ip-hero-card-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.20); }
.ip-hero-card-title { font-size: 11.5px; color: rgba(255,255,255,0.45); margin-left: 4px; }
.ip-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
}
.ip-card-row:last-of-type { border-bottom: none; }
.ip-card-row-price { font-weight: 700; color: white; }
.ip-card-row-margin { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.ip-card-row-margin--good { background: rgba(74,175,100,0.25); color: #7dd99a; }
.ip-card-row-margin--warn { background: rgba(224,123,26,0.25); color: #f5a557; }
.ip-card-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ip-card-total-label { font-size: 12px; color: rgba(255,255,255,0.55); font-weight: 600; }
.ip-card-total-value { font-size: 20px; font-weight: 800; color: white; }
.ip-card-margin-badge {
  display: inline-block;
  background: rgba(74,175,100,0.25);
  color: #7dd99a;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── Quick wins strip ── */
.ip-wins-section {
  background: var(--white);
  padding: 56px 0;
  border-bottom: 1px solid var(--gray-200);
}
.ip-wins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ip-win-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ip-win-icon {
  width: 42px;
  height: 42px;
  background: #edf1f7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.ip-win-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.ip-win-copy h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 5px; line-height: 1.3; }
.ip-win-copy p  { font-size: 13.5px; color: var(--gray-500); line-height: 1.55; }

/* ── Feature sections ── */
.ip-feat-section {
  padding: 72px 0;
}
.ip-feat-section--white { background: var(--white); }
.ip-feat-section--gray  { background: #edf1f7; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }

.ip-feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ip-feat-row--flip .ip-feat-copy { order: 2; }
.ip-feat-row--flip .ip-feat-mock { order: 1; }

.ip-feat-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange); display: inline-block; margin-bottom: 10px;
}
.ip-feat-heading {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.ip-feat-body {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}
.ip-feat-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.ip-feat-bullets li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; color: var(--gray-700); line-height: 1.5;
}
.ip-check { width: 17px; height: 17px; flex-shrink: 0; color: #4a7fa5; margin-top: 1px; }

/* ── Mock panel ── */
.ip-feat-mock {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ip-feat-section--gray .ip-feat-mock { border-color: #d0dae6; }
.ip-mock-bar {
  background: var(--navy);
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.ip-mock-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.22); flex-shrink: 0; }
.ip-mock-title { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-left: 5px; font-weight: 500; }
.ip-mock-body { padding: 16px 18px 18px; }
.ip-mock-row-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gray-400);
  padding-bottom: 5px; border-bottom: 1px solid var(--gray-200);
  margin-bottom: 4px; margin-top: 10px;
}
.ip-mock-row-label:first-child { margin-top: 0; }
.ip-mock-line {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 0; border-bottom: 1px solid #f3f4f6;
  font-size: 12.5px; color: var(--gray-700);
}
.ip-mock-line:last-child { border-bottom: none; }
.ip-mock-line-name { flex: 1; }
.ip-mock-line-cost { width: 50px; text-align: right; color: var(--gray-400); font-size: 11.5px; }
.ip-mock-line-price { width: 58px; text-align: right; font-weight: 600; color: var(--navy); font-size: 12px; }
.ip-mock-line-margin { width: 42px; text-align: right; font-weight: 700; font-size: 11.5px; border-radius: 4px; padding: 1px 5px; }
.ip-mock-line-margin--good { color: #3a7d44; background: #e8f5e9; }
.ip-mock-line-margin--warn { color: #9a5700; background: #fff3e0; }
.ip-mock-total {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0 2px; border-top: 1px solid var(--gray-200); margin-top: 6px;
}
.ip-mock-total-label { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--navy); }
.ip-mock-total-value { font-size: 14px; font-weight: 800; color: var(--navy); }
.ip-mock-margin-pill {
  background: #e8f5e9; color: #3a7d44; font-size: 11px;
  font-weight: 700; padding: 2px 9px; border-radius: 20px;
}

/* Catalog rows */
.ip-mock-catalog-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 12.5px;
}
.ip-mock-catalog-row:last-child { border-bottom: none; }
.ip-mock-cat-icon {
  width: 28px; height: 28px; background: #edf1f7; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 13px; flex-shrink: 0;
}
.ip-mock-cat-info { flex: 1; min-width: 0; }
.ip-mock-cat-name { font-weight: 600; color: var(--navy); font-size: 12.5px; }
.ip-mock-cat-meta { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.ip-mock-cat-cost { font-size: 11.5px; color: var(--gray-400); width: 36px; text-align: right; }
.ip-mock-cat-price { font-size: 12.5px; font-weight: 700; color: var(--navy); width: 40px; text-align: right; }
.ip-mock-cat-add {
  width: 24px; height: 24px; border-radius: 6px; background: var(--navy);
  color: white; border: none; font-size: 16px; cursor: default;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Template rows */
.ip-mock-template-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #f3f4f6;
}
.ip-mock-template-row:last-child { border-bottom: none; }
.ip-mock-tmpl-icon {
  width: 30px; height: 30px; background: #edf1f7; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 14px; flex-shrink: 0;
}
.ip-mock-tmpl-info { flex: 1; }
.ip-mock-tmpl-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.ip-mock-tmpl-meta { font-size: 11px; color: var(--gray-400); margin-top: 2px; }
.ip-mock-tmpl-use {
  background: #edf1f7; border: 1px solid var(--gray-200);
  color: var(--navy); font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 6px; cursor: default;
}

/* Invoice rows */
.ip-mock-invoice-header {
  text-align: center; padding: 10px 0 12px;
  border-bottom: 1px solid var(--gray-200); margin-bottom: 12px;
}
.ip-mock-inv-amount { font-size: 24px; font-weight: 800; color: var(--navy); }
.ip-mock-inv-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #e07b1a; margin-bottom: 4px; }
.ip-mock-inv-due { font-size: 11.5px; color: var(--gray-400); margin-top: 4px; }
.ip-mock-pay-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--navy); color: white; font-size: 12.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px; margin-bottom: 12px; cursor: default;
}

/* ── Related industries ── */
.ip-related-section {
  background: #edf1f7;
  border-top: 1px solid var(--gray-200);
  padding: 56px 0;
}
.ip-related-heading {
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 20px; text-align: center;
}
.ip-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.ip-related-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.ip-related-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: rgba(26,58,92,0.2); }
.ip-related-card svg { width: 18px; height: 18px; stroke-width: 1.75; flex-shrink: 0; color: var(--navy); }

/* ── CTA ── */
.ip-cta-section {
  position: relative; background: var(--navy-dark);
  padding: 72px 0; text-align: center; overflow: hidden;
}
.ip-cta-bg { position: absolute; inset: 0; background-image: var(--grid-svg); pointer-events: none; }
.ip-cta-inner { position: relative; z-index: 1; }
.ip-cta-heading { font-size: clamp(24px, 3.5vw, 38px); font-weight: 800; color: white; letter-spacing: -0.3px; margin-bottom: 10px; }
.ip-cta-sub { font-size: 16px; color: rgba(255,255,255,0.65); margin-bottom: 30px; }
.ip-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ip-hero-inner { grid-template-columns: 1fr; }
  .ip-hero-card { display: none; }
  .ip-feat-row { grid-template-columns: 1fr; gap: 36px; }
  .ip-feat-row--flip .ip-feat-copy { order: 1; }
  .ip-feat-row--flip .ip-feat-mock { order: 2; }
  .ip-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ip-wins-grid { grid-template-columns: 1fr; gap: 20px; }
  .ip-related-grid { grid-template-columns: repeat(2, 1fr); }
}
