/* ============================================================
   INDUSTRIES PAGE
   ============================================================ */

/* ---------- Screen-reader only ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Search / toolbar ---------- */
.industries-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(11, 37, 69, 0.08);
}

.industries-toolbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.industries-search {
  position: relative;
  flex: 1;
  max-width: 560px;
  display: flex;
  align-items: center;
}

.industries-search__icon {
  position: absolute;
  left: 16px;
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: #6b7280;
  pointer-events: none;
}

.industries-search__icon svg {
  width: 100%;
  height: 100%;
}

.industries-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  color: #0b2545;
  background: #f8fafc;
  border: 1px solid rgba(11, 37, 69, 0.12);
  border-radius: 100px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.industries-search input::placeholder {
  color: #94a3b8;
}

.industries-search input:focus {
  border-color: #d4a72c;
  box-shadow: 0 0 0 4px rgba(212, 167, 44, 0.15);
  background: #ffffff;
}

.industries-toolbar__count {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #4a5568;
  white-space: nowrap;
}

.industries-toolbar__count strong {
  color: #0b2545;
  font-weight: 600;
}

/* ---------- Groups ---------- */
.industries-section {
  padding-top: 56px;
}

.industry-group {
  margin-bottom: 64px;
}

.industry-group:last-child {
  margin-bottom: 0;
}

.industry-group__head {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(11, 37, 69, 0.1);
}

.industry-group__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  color: #0b2545;
  margin: 0 0 6px;
  line-height: 1.25;
}

.industry-group__sub {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  color: #4a5568;
  margin: 0;
  max-width: 640px;
}

/* ---------- Grid ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- Card ---------- */
.industry-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  background: #ffffff;
  border: 1px solid rgba(11, 37, 69, 0.08);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.industry-card:hover {
  border-color: rgba(212, 167, 44, 0.5);
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.08);
  transform: translateY(-2px);
}

.industry-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.industry-card__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(11, 37, 69, 0.06);
  color: #0b2545;
  transition: background 0.2s ease, color 0.2s ease;
}

.industry-card:hover .industry-card__icon {
  background: #0b2545;
  color: #d4a72c;
}

.industry-card__icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.industry-card__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0b2545;
  margin: 0;
  line-height: 1.25;
}

.industry-card__text {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #4a5568;
  margin: 0 0 18px;
  flex: 1;
}

/* ---------- Related service links ---------- */
.industry-card__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px dashed rgba(11, 37, 69, 0.1);
}

.industry-card__links a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  color: #0b2545;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.industry-card__links a span {
  font-weight: 500;
}

.industry-card__links a small {
  font-size: 0.72rem;
  color: #94a3b8;
  white-space: nowrap;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.industry-card__links a:hover {
  color: #d4a72c;
  border-bottom-color: #d4a72c;
}

.industry-card__links a:hover small {
  color: #b88b16;
}

/* ---------- Empty state ---------- */
.industries-empty {
  padding: 60px 20px;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #6b7280;
}

.industries-empty a {
  color: #0b2545;
  border-bottom: 1px solid #d4a72c;
  text-decoration: none;
  font-weight: 500;
}

/* ---------- Search: hidden cards ---------- */
.industry-card.is-hidden,
.industry-group.is-hidden {
  display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .industries-toolbar__inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .industries-search { max-width: none; }

  .industry-grid { grid-template-columns: 1fr; }

  .industry-card { padding: 20px 18px; }

  .industry-group { margin-bottom: 48px; }

  .industry-card__links a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .industry-card__links a small {
    margin-top: 2px;
    font-size: 0.7rem;
  }
}