/* =========================================================================
   template-parts/sections/section-industries.php
   Moved out of the partial's inline <style id="es-industries-css"> on the owner's
   instruction, 10 Sep 2026. en_print_css() (inc/css-loader.php) prints this
   file's <link> where the <style> used to be, once per page, so every page
   that renders this section shares this one file.
   ========================================================================= */

/* Author-controlled line breaks, same rule the other sections follow: a
   wrap pinned against the desktop column width strands words on a phone,
   so breaks only apply from 992px up. */
.es-ind br { display: none; }

@media (min-width: 992px) {
  .es-ind br { display: inline; }
}

/* ── Pill eyebrow ──────────────────────────────────────────
   Same chip as section-feature-grid, with one change: this
   section sits on the brand tint, where that component's
   brand-50 fill would disappear into the background. The chip
   takes the surface colour instead and keeps the brand-100
   hairline, which is the form the supplied design draws.

   brand-700 ink, not brand-600: this is 12px uppercase text and
   brand-600 misses AA at that size. */
.es-ind__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  box-shadow: var(--shadow-xs);
  color: var(--brand-700);
  font-family: var(--font-label);
  font-size: var(--fs-eyebrow);
  font-weight: var(--font-bold);
  letter-spacing: 1.8px;
  line-height: var(--lh-subhead);
  text-transform: uppercase;
}

.es-ind__head--center .es-ind__eyebrow { margin-inline: auto; }

/* ── Grid ──────────────────────────────────────────────────
   One up on a phone, two up from 576px, the full count from
   992px. Eight tiles single-file on a phone is a very long
   scroll for what is a scannable list, so the two-up step is
   deliberately early. */
.es-ind__grid {
  display: grid;
  gap: var(--gap-fluid-xs);
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .es-ind__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .es-ind__grid--3 { grid-template-columns: repeat(3, 1fr); }
  .es-ind__grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Tile ──────────────────────────────────────────────────
   Its own stacking context, so nothing outside the tile can
   reorder the image, the scrim and the label. The gray-900
   base is what the label sits on before the image decodes,
   and under a transparent one.

   16 / 10 on a phone, where the tile runs the full column
   width and a taller box would push the next one off screen.
   7 / 6 from the two-up step, which is the proportion the
   design draws. */
.es-ind__card {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--gray-900);
  text-decoration: none;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

@media (min-width: 576px) {
  .es-ind__card { aspect-ratio: 7 / 6; }
}

.es-ind__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

/* ── Tile with no artwork yet ──────────────────────────────
   A brand-tinted panel with a faint diagonal rule field, the
   same texture the brand card in section-feature-grid uses.
   Reads as a designed placeholder rather than a failure, and
   is replaced the moment an image is set. */
.es-ind__card--blank { background: linear-gradient(155deg, var(--brand-700) 0%, var(--gray-900) 78%); }

.es-ind__card--blank .es-ind__veil { background: none; }

.es-ind__card--blank::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.10) 0 2px,
    transparent 2px 16px
  );
}

/* ── Scrim ─────────────────────────────────────────────────
   Guarantees the label reads over any photograph, including a
   white studio shot. Weighted to the bottom third so the top
   of the storefront render stays legible. */
.es-ind__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(22, 20, 16, 0.88) 0%,
    rgba(22, 20, 16, 0.62) 22%,
    rgba(22, 20, 16, 0.18) 52%,
    rgba(22, 20, 16, 0) 78%
  );
  transition: opacity var(--duration-normal) var(--ease-out);
}

.es-ind__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-5);
  color: var(--text-inverse);
  font-size: var(--fs-title-sm);
  font-weight: var(--font-bold);
  line-height: var(--lh-subhead);
  letter-spacing: var(--tracking-normal);
  transition: transform var(--duration-normal) var(--ease-out);
}

/* ── Hover ─────────────────────────────────────────────────
   Same lift, brand-tinted shadow and slow image push the case
   study tiles use, so the two image walls behave identically.
   Gated on a real pointer: on a touch screen the tile is
   simply at rest, and nothing is hidden behind the hover. */
@media (hover: hover) {
  .es-ind__card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-300);
  }

  .es-ind__card:hover .es-ind__img { transform: scale(1.05); }
  .es-ind__card:hover .es-ind__label { transform: translateY(-2px); }
}

/* Only a linked tile is focusable, so the ring is scoped to the
   anchor form rather than drawn on every figure. */
a.es-ind__card:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
}

.es-ind__cta {
  display: flex;
  justify-content: center;
  margin-top: var(--gap-fluid-lg);
}

@media (prefers-reduced-motion: reduce) {
  .es-ind__card,
  .es-ind__img,
  .es-ind__label,
  .es-ind__veil { transition: none; }

  .es-ind__card:hover { transform: none; }
  .es-ind__card:hover .es-ind__img,
  .es-ind__card:hover .es-ind__label { transform: none; }
}
