/* ==================================================
   INDUSTRIES & LOCATIONS
   Purpose:
   Industry cards and the sector detail blocks, plus the
   location coverage map, area cards and local business
   context blocks used by the West Bengal location pages.
================================================== */

/* ==================================================
   INDUSTRY CARD
================================================== */

.industry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--surface);
  overflow: hidden;
  transition: transform var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

/* Brand wash that reveals on hover. */
.industry-card::before {
  content: "";
  position: absolute;
  inset: auto auto -60% -20%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 104, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-lg);
}

.industry-card:hover::before { opacity: 1; }

.industry-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--s-3);
}

.industry-card__text {
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-500);
  flex-grow: 1;
}

.industry-card__systems {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--ink-400);
}

.industry-card__systems strong {
  display: block;
  margin-bottom: var(--s-1);
  color: var(--ink-600);
  font-weight: var(--fw-semibold);
}

/* ==================================================
   SECTOR DETAIL
   Alternating rows on an industry page describing the
   systems that sector actually runs on.
================================================== */

.sector-row {
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-8);
  border-bottom: 1px solid var(--color-border);
}

.sector-row:last-child { border-bottom: none; }

@media (min-width: 820px) {
  .sector-row { grid-template-columns: 280px 1fr; gap: var(--s-10); }
}

.sector-row__label {
  font-size: var(--fs-h4);
  color: var(--ink-800);
}

.sector-row__label span {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand-600);
}

.sector-row__body {
  font-size: var(--fs-sm);
  line-height: 1.68;
  color: var(--ink-500);
}

.sector-row__body > * + * { margin-top: var(--s-4); }

/* ==================================================
   LOCATION COVERAGE
   Grouped list of the districts and neighbourhoods the
   team serves, shown on the homepage and locations index.
================================================== */

.coverage {
  display: grid;
  gap: var(--gap-grid);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.coverage-group {
  padding: var(--s-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--surface);
}

.section--dark .coverage-group {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.coverage-group__title {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-h4);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--color-border);
}

.section--dark .coverage-group__title { border-bottom-color: rgba(255, 255, 255, 0.12); }

.coverage-group__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.coverage-group__link {
  display: inline-flex;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background-color: var(--surface-muted);
  font-size: var(--fs-xs);
  color: var(--ink-600);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.coverage-group__link:hover {
  background-color: var(--brand-500);
  color: #FFFFFF;
}

.section--dark .coverage-group__link {
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--color-on-dark-muted);
}

.section--dark .coverage-group__link:hover {
  background-color: var(--brand-500);
  color: #FFFFFF;
}

/* ==================================================
   LOCATION CARD
   Entry on the locations index.
================================================== */

.location-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--surface);
  transition: transform var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.location-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
}

.location-card__district {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--s-2);
}

.location-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--s-3);
}

.location-card__text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--ink-500);
  flex-grow: 1;
}

/* ==================================================
   LOCAL CONTEXT PANEL
   Genuine local detail on a location page — the economic
   character of the area and what that means for the
   software local businesses need.
================================================== */

.local-context {
  display: grid;
  gap: var(--gap-grid);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.local-fact {
  padding: var(--s-5);
  border-radius: var(--radius-md);
  background-color: var(--surface-muted);
  border-left: 3px solid var(--brand-400);
}

.local-fact__label {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: var(--s-2);
}

.local-fact__text {
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-600);
}

/* ==================================================
   NEARBY AREAS
   Cross-links between neighbouring location pages.
================================================== */

.nearby {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.nearby__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--ink-600);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.nearby__link:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}

/* ==================================================
   MAP EMBED
   Google Business Profile map. Kept in a fixed-ratio
   frame so it never causes layout shift while loading.
================================================== */

.map-embed {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--surface-sunken);
  aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
  .map-embed { aspect-ratio: 16 / 7; }
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================================================
   DISTRICT DIRECTORY
   Purpose:
   The index of all twenty-three West Bengal districts
   on locations/, each block listing the service pages
   written for that district.

   Deliberately a plain link list rather than cards.
   Two hundred and thirty cards would read as a wall of
   noise; grouped text links are what a directory of
   this size is actually for, and they stay scannable.
================================================== */

.district-grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.district-block {
  min-width: 0;
  padding: var(--s-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

.district-block__header {
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--color-border);
}

.district-block__title {
  font-size: var(--fs-h5);
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
}

.district-block__note {
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.district-block__links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.district-block__links a {
  display: block;
  padding: 4px 0;
  font-size: var(--fs-sm);
  color: var(--color-text);
  text-decoration: none;
}

.district-block__links a:hover,
.district-block__links a:focus-visible {
  color: var(--brand-600);
  text-decoration: underline;
}
