/* =====================================================================
   INDUSTRIES PAGE — corporate / professional presentation layer
   Light palette built on the sitewide tokens (navy, blue, teal-green,
   soft greys). Scoped to elements that appear only on /industries, so
   nothing here affects other pages.
   ===================================================================== */

/* ---- shared local tokens -------------------------------------------- */
.industries-glance-grid,
.industry-quicknav,
.industry-deep-dive,
.industries-stats {
  --ind-blue: var(--primary-blue);
  --ind-green: #0f8a5f;
  --ind-ink: var(--primary-navy);
  --ind-line: #e2ebf3;
}

/* =====================================================================
   1. OVERVIEW — stats band + legend
   ===================================================================== */
.industries-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0 auto 2.5rem;
  max-width: 980px;
}
.industries-stats .ind-stat {
  background: linear-gradient(160deg, #ffffff 0%, #f1f7fd 100%);
  border: 1px solid var(--ind-line);
  border-radius: 14px;
  padding: 1.4rem 1.1rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(10, 37, 64, 0.06);
}
.industries-stats .ind-stat .ind-stat-num {
  display: block;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ind-blue);
  letter-spacing: -0.01em;
}
.industries-stats .ind-stat .ind-stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-medium);
  line-height: 1.45;
}

/* legend that explains the two card families */
.industries-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin: 1.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-medium);
}
.industries-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.industries-legend span::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.industries-legend .lg-core::before { background: var(--ind-blue); }
.industries-legend .lg-spec::before { background: var(--ind-green); }

/* =====================================================================
   2. INDUSTRIES-AT-A-GLANCE GRID — premium cards with icon medallions
   ===================================================================== */
.industries-glance-grid {
  gap: 1.1rem;
}
.industry-glance-card {
  position: relative;
  border: 1px solid var(--ind-line);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.25rem;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.05);
  overflow: hidden;
  isolation: isolate;
}
/* coloured rail rendered as an element so we can also tint the corner */
.industry-glance-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}
.industry-glance-card.core::before { background: linear-gradient(var(--ind-blue), #2f8fe0); }
.industry-glance-card.tier2::before { background: linear-gradient(var(--ind-green), #2bb583); }
.industry-glance-card.core,
.industry-glance-card.tier2 { border-left: 1px solid var(--ind-line); } /* drop the old flat 4px rule */

.industry-glance-card h4 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ind-ink);
}
.industry-glance-card h4 i {
  flex: none;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 1rem;
  margin: 0; /* override mr-6 */
}
.industry-glance-card.core h4 i {
  color: var(--ind-blue);
  background: linear-gradient(160deg, #e8f3fd, #d4e9fb);
}
.industry-glance-card.tier2 h4 i {
  color: var(--ind-green);
  background: linear-gradient(160deg, #e4f6ee, #d2f0e3);
}
.industry-glance-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-medium);
  margin: 0;
}
/* corner badge marking core vs specialised */
.industry-glance-card::after {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
}
.industry-glance-card.core::after {
  content: "Core";
  color: var(--ind-blue);
  background: #e8f3fd;
}
.industry-glance-card.tier2::after {
  content: "Specialised";
  color: var(--ind-green);
  background: #e4f6ee;
}
.industry-glance-card:hover {
  transform: translateY(-4px);
  border-color: #c7d8e8;
  box-shadow: 0 14px 30px rgba(10, 37, 64, 0.12);
}

/* =====================================================================
   3. QUICK-NAV — jump chips for the deep-dive sections
   ===================================================================== */
.industry-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0 auto 2.5rem;
  max-width: 900px;
}
.industry-quicknav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--ind-line);
  color: var(--ind-ink);
  font-size: 0.83rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.industry-quicknav a i { color: var(--ind-green); font-size: 0.85rem; }
.industry-quicknav a:hover {
  border-color: var(--ind-blue);
  color: var(--ind-blue);
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.14);
  transform: translateY(-2px);
}

/* =====================================================================
   4. DEEP-DIVE BLOCKS — each sector as a clean corporate card
   ===================================================================== */
.industry-deep-dive {
  background: #ffffff;
  border: 1px solid var(--ind-line);
  border-radius: 18px;
  padding: 2rem 2.1rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 8px 26px rgba(10, 37, 64, 0.06);
  scroll-margin-top: 90px; /* clears sticky header on anchor jump */
}
.industry-deep-dive:last-child { margin-bottom: 0; }

/* header row: medallion + title + tagline */
.industry-deep-dive > h2 {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ind-ink);
  margin: 0 0 0.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ind-line);
}
.industry-deep-dive > h2 i {
  flex: none;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.25rem;
  color: var(--ind-blue);
  background: linear-gradient(160deg, #e8f3fd, #d4e9fb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.dd-tagline {
  margin: -0.1rem 0 1.4rem;
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* two-column challenge / solution body */
.dd-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}

/* mini section heads inside the body */
.dd-body .dd-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}
.dd-challenges .dd-head { color: #b25b1e; }
.dd-solutions .dd-head { color: var(--ind-green); }

/* challenges panel (keeps the soft raised look from theme-light) */
.industry-deep-dive .dd-challenges {
  background: linear-gradient(160deg, #fffaf5 0%, #fdeede 100%);
  border: 1px solid #f3ddc6;
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  height: 100%;
}
.industry-deep-dive .dd-challenges ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.industry-deep-dive .dd-challenges ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-medium);
}
.industry-deep-dive .dd-challenges ul li i {
  flex: none;
  margin-top: 0.18rem;
  font-size: 0.82rem;
  color: var(--warning-orange);
}

/* solutions panel — light green, the “answer” to the challenges */
.industry-deep-dive .dd-solutions {
  background: linear-gradient(160deg, #f4fbf7 0%, #e6f6ee 100%);
  border: 1px solid #c9ecd9;
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  height: 100%;
}
.industry-deep-dive .dd-solutions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.industry-deep-dive .dd-solutions ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-medium);
  border-top: 1px solid rgba(15, 138, 95, 0.12);
}
.industry-deep-dive .dd-solutions ul li:first-child { border-top: none; }
.industry-deep-dive .dd-solutions ul li i {
  flex: none;
  margin-top: 0.18rem;
  font-size: 0.82rem;
  color: var(--ind-green);
}
.industry-deep-dive .dd-solutions ul li strong { color: var(--ind-ink); }

/* footer meta: key equipment + compliance side by side */
.dd-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ind-line);
}
.industry-deep-dive .key-equipment {
  margin: 0;
}
.industry-deep-dive .key-equipment h4 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ind-blue);
  margin: 0 0 0.5rem;
}
.industry-deep-dive .key-equipment h4::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0ad"; /* wrench */
  font-size: 0.85rem;
}
.industry-deep-dive .key-equipment p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-medium);
}
.industry-deep-dive .compliance-note {
  margin: 0;
  align-self: start;
  font-size: 0.84rem;
  line-height: 1.5;
}

/* =====================================================================
   4b. STANDARD TREATMENT TRAIN — corporate spec table
   ===================================================================== */
.treatment-train {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--ind-line, #e2ebf3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(10, 37, 64, 0.07);
}
.train-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.92rem;
}
.train-table thead th {
  background: linear-gradient(160deg, #0a2540 0%, #123a63 100%);
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
}
.train-table tbody td {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid #eef3f8;
  color: var(--text-medium);
  line-height: 1.5;
  vertical-align: middle;
}
.train-table tbody tr:nth-child(even) td {
  background: #f7fafd;
}
.train-table tbody tr:hover td {
  background: #eef6fd;
}
.train-table tbody td:first-child {
  width: 38%;
  white-space: nowrap;
}
.tt-stage {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--primary-navy);
}
.tt-stage i {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--primary-blue);
  background: linear-gradient(160deg, #e8f3fd, #d4e9fb);
}

/* =====================================================================
   5. RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
  .industries-stats { grid-template-columns: repeat(2, 1fr); }
  .dd-body { grid-template-columns: 1fr; }
  .dd-meta { grid-template-columns: 1fr; }
  .industry-deep-dive { padding: 1.5rem 1.35rem; }
  .industry-deep-dive > h2 { font-size: 1.25rem; }
  .industry-quicknav { justify-content: flex-start; }
  .train-table { font-size: 0.85rem; }
  .train-table thead th,
  .train-table tbody td { padding: 0.7rem 0.9rem; }
  .train-table tbody td:first-child { width: auto; white-space: normal; }
  .tt-stage { gap: 0.5rem; }
  .tt-stage i { width: 30px; height: 30px; font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .industries-stats { grid-template-columns: 1fr; }
}
