/* =====================================================================
   Eralux ARIA — /aria landing page

   Only what is particular to this page. The shell it sits in — gutters,
   heading, type scale, links and the product tiles — is in the shared
   assets/css/landing.css, which is enqueued before this file.
   ===================================================================== */

/* ---- Heading -------------------------------------------------------- */

.eralux-aria-subtitle {
  font-size: clamp(17px, 1.5vw, 23px);
  letter-spacing: 0.04em;
}

/* ---- Section headings ----------------------------------------------- */

.eralux-aria-content h3 {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: var(--ews-weight-semibold);
}

/* ---- Intro ---------------------------------------------------------- */

.eralux-aria-intro {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-bottom: clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--ews-line);
}

/* No logo picked yet: the copy takes the whole row rather than sitting in
   a column beside an empty one. */
.eralux-aria-intro:not(:has(.eralux-aria-logo)) {
  grid-template-columns: 1fr;
}

.eralux-aria-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.eralux-aria-intro-copy p:last-child {
  margin-bottom: 0;
}

/* ---- The two solutions ---------------------------------------------- */

.eralux-aria-solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
}

.eralux-aria-solution {
  display: flex;
  flex-direction: column;
  background: var(--ews-card);
  border: 1px solid var(--ews-line);
  border-radius: 18px;
  padding: clamp(24px, 2.8vw, 40px);
}

.eralux-aria-solution-media {
  display: block;
  margin: calc(-1 * clamp(24px, 2.8vw, 40px))
    calc(-1 * clamp(24px, 2.8vw, 40px)) clamp(20px, 2vw, 28px);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: var(--ews-cool-media);
}

.eralux-aria-solution-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.eralux-aria-solution-text {
  color: var(--ews-muted-ink);
}

/* A tick per feature: the list is the product's case, and a bullet reads
   as filler where a check reads as a promise. */
.eralux-aria-ticks {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.eralux-aria-ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.5;
}

.eralux-aria-ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ews-accent);
  font-weight: var(--ews-weight-bold);
}

.eralux-aria-ideal {
  margin: auto 0 0 !important;
  padding-top: 18px;
  border-top: 1px solid var(--ews-line);
  font-size: 15px !important;
  color: var(--ews-muted-ink);
}

/* ---- Comparison table ----------------------------------------------- */

/* The WRAPPER scrolls, never the page. */
.eralux-aria-table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ews-line);
  border-radius: 16px;
  background: var(--ews-card);
}

.eralux-aria-table-wrap:focus-visible {
  outline: 2px solid var(--ews-accent);
  outline-offset: 2px;
}

.eralux-aria-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
}

.eralux-aria-table th,
.eralux-aria-table td {
  /* The containing block for the screen-reader words below: an absolutely
     positioned element with no positioned ancestor is laid out against the
     page, and one sitting inside a table wider than the phone screen then
     pushes the DOCUMENT sideways — the exact thing the scrolling wrapper
     exists to prevent. */
  position: relative;
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--ews-line);
}

.eralux-aria-table thead th {
  background: var(--ews-paper-2);
  font-size: 13px;
  font-weight: var(--ews-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.eralux-aria-table tbody th {
  font-weight: var(--ews-weight-medium);
}

.eralux-aria-table thead th:not(:first-child),
.eralux-aria-table td {
  text-align: center;
}

.eralux-aria-table tbody tr:last-child th,
.eralux-aria-table tbody tr:last-child td {
  border-bottom: 0;
}

.eralux-aria-mark {
  font-size: 18px;
  line-height: 1;
}

.eralux-aria-mark.is-yes {
  color: var(--ews-accent-dark);
  font-weight: var(--ews-weight-bold);
}

.eralux-aria-mark.is-no {
  color: var(--ews-muted);
}

/* A column of bare "✓" and "–" is meaningless read aloud, so each mark
   carries its word for assistive technology. Own class rather than the
   theme's .screen-reader-text: this page cannot rely on a theme it does
   not ship with, and the theme's version is not always overflow-safe. */
.eralux-aria-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- Why ARIA Plus -------------------------------------------------- */

.eralux-aria-why {
  display: grid;
  gap: clamp(24px, 3vw, 44px);
}

.eralux-aria-why-media {
  margin: 0;
}

.eralux-aria-why-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(280px, 32vw, 440px);
  object-fit: cover;
  border-radius: 16px;
  background: var(--ews-cool-media);
}

.eralux-aria-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.eralux-aria-why-item {
  padding: clamp(20px, 2.2vw, 30px);
  background: var(--ews-card);
  border: 1px solid var(--ews-line);
  border-top: 3px solid var(--ews-accent);
  border-radius: 14px;
}

.eralux-aria-why-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.eralux-aria-why-item p {
  margin: 0;
  font-size: 15px;
  color: var(--ews-muted-ink);
}

/* ---- Scalable architecture ------------------------------------------ */

.eralux-aria-scale-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.eralux-aria-scale-list li {
  padding: 18px 20px;
  background: var(--ews-cool-panel);
  border: 1px solid var(--ews-cool-line);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ews-cool-ink);
}

.eralux-aria-scale-note {
  font-size: 15px !important;
  color: var(--ews-muted-ink);
  margin: 0 !important;
}

/* ---- Closing band --------------------------------------------------- */

.eralux-aria-closing {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(28px, 3.4vw, 52px);
  border-radius: 18px;
  background: var(--ews-dark);
  color: var(--ews-contrast-ink);
}

.eralux-aria-closing-heading {
  margin: 0 !important;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: var(--ews-weight-light);
  letter-spacing: 0.12em;
}

.eralux-aria-closing-subtitle {
  margin: 6px 0 0 !important;
  font-size: 14px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--ews-contrast-ink-rgb, 255, 255, 255), 0.7);
}

.eralux-aria-closing-text {
  margin: 0 !important;
  font-size: clamp(16px, 1.3vw, 19px) !important;
  font-weight: var(--ews-weight-light);
  color: rgba(var(--ews-contrast-ink-rgb, 255, 255, 255), 0.9);
}

/* ---- Sensor & Dimming spec table -------------------------------------

   The sheet this section comes from is a grid, not a table: each row is a
   line of specs with a second, full-width line of compatible fixtures
   underneath it. A <table> can only do that with a second <tr>, which reads
   aloud as a row of its own — so every strip here (the power-pack header,
   the column headings, each row) is its own CSS grid sharing one column
   list, published by PHP as --elx-spec-template because CSS cannot repeat()
   a track a variable number of times.

   Type uses the design system's three steps and nothing in between:
     body   var(--ews-body-size)  names and values
     small  14px                  subtitles, fixtures, notes (body small)
     label  12px caps, tracked    every heading-like label (.ews-landing-label)
   Selectors are scoped under .elx-aria-spec so the landing page's own
   "p { font-size }" rule cannot resize a line here, which is how the sizes
   drifted apart before.                                                   */

.elx-aria-spec .elx-aria-spec-group-view + .elx-aria-spec-group-view {
  margin-top: 46px;
}

/* The standard h3 step; only the colour is the sheet's. */
.elx-aria-spec .elx-aria-spec-group-view h3 {
  margin: 0 0 14px;
  color: var(--ews-accent);
}

/* The wrapper scrolls, never the page. */
.elx-aria-spec-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ews-line);
  border-radius: 16px;
  background: var(--ews-card);
}

.elx-aria-spec-scroll:focus-visible {
  outline: 2px solid var(--ews-accent);
  outline-offset: 2px;
}

.elx-aria-spec-grid {
  min-width: 760px;
  padding: 18px 20px 6px;
}

.elx-aria-spec-packs,
.elx-aria-spec-head,
.elx-aria-spec-row-view {
  display: grid;
  grid-template-columns: var(--elx-spec-template);
  align-items: end;
  column-gap: 12px;
}

/* ---- the three type steps ---- */

.elx-aria-spec .elx-aria-spec-packs-label,
.elx-aria-spec .elx-aria-spec-col,
.elx-aria-spec .elx-aria-spec-fixtures-label,
.elx-aria-spec .elx-aria-spec-cell-label {
  font-size: 12px;
  font-weight: var(--ews-weight-semibold);
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ews-muted-ink);
}

.elx-aria-spec .elx-aria-spec-name,
.elx-aria-spec .elx-aria-spec-cell-value {
  font-size: var(--ews-body-size);
  line-height: 1.35;
}

.elx-aria-spec .elx-aria-spec-sub,
.elx-aria-spec .elx-aria-spec-pack-name,
.elx-aria-spec .elx-aria-spec-pack-note,
.elx-aria-spec .elx-aria-spec-fixtures-line,
.elx-aria-spec .elx-aria-spec-note {
  font-size: 14px;
  line-height: 1.5;
}

/* ---- power packs across the top ---- */

.elx-aria-spec-packs-label {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ews-line);
  text-align: center;
}

.elx-aria-spec-pack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 12px;
  text-align: center;
}

.elx-aria-spec-pack-item img {
  width: 100%;
  max-width: 48px;
  height: 48px;
  margin-bottom: 6px;
  object-fit: contain;
}

.elx-aria-spec .elx-aria-spec-pack-name {
  font-weight: var(--ews-weight-semibold);
  line-height: 1.25;
}

.elx-aria-spec .elx-aria-spec-pack-note {
  line-height: 1.3;
  color: var(--ews-muted-ink);
}

/* font-weight too: the site's link rule is lighter than the name it sits
   in, so a linked name would read as a different name. */
.elx-aria-spec-pack-name a,
.elx-aria-spec-name a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.elx-aria-spec-pack-name a:hover,
.elx-aria-spec-name a:hover {
  color: var(--ews-accent);
  text-decoration: underline;
}

/* ---- column headings ---- */

.elx-aria-spec-head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ews-line-strong);
}

.elx-aria-spec .elx-aria-spec-col.is-pack {
  text-align: center;
}

/* ---- one sensor ---- */

.elx-aria-spec-row-view {
  padding: 16px 0 12px;
  align-items: center;
  border-bottom: 1px dashed var(--ews-line);
}

.elx-aria-spec-row-view:last-child {
  border-bottom: 0;
}

.elx-aria-spec-cell-label {
  display: none; /* the column heading says it on a wide screen */
}

.elx-aria-spec-cell.is-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.elx-aria-spec-thumb {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.elx-aria-spec-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.elx-aria-spec-names {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.elx-aria-spec .elx-aria-spec-name {
  font-weight: var(--ews-weight-semibold);
  line-height: 1.25;
}

.elx-aria-spec .elx-aria-spec-sub {
  line-height: 1.35;
  color: var(--ews-muted-ink);
}

/* ---- the power-pack dots ---- */

.elx-aria-spec-cell.is-pack {
  /* The containing block for the screen-reader words, which are absolutely
     positioned and would otherwise be laid out against the page. */
  position: relative;
  display: flex;
  justify-content: center;
}

.elx-aria-spec-dotmark {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ews-line-strong);
}

.elx-aria-spec-dotmark.is-yes {
  width: 15px;
  height: 15px;
  background: var(--ews-accent);
}

/* ---- the fixtures line under each row ----
   Indented to the product name rather than the thumbnail, so it reads as
   belonging to the sensor above it. */

.elx-aria-spec .elx-aria-spec-fixtures-line {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-left: 68px;
  color: var(--ews-muted-ink);
}

.elx-aria-spec-fixtures-label {
  margin-right: 10px;
}

.elx-aria-spec-fixtures-line a {
  color: var(--ews-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ews-line);
}

.elx-aria-spec-fixtures-line a:hover {
  color: var(--ews-accent);
  border-bottom-color: var(--ews-accent);
}

/* A fixture name never breaks in the middle: the line wraps between names,
   at the spaces around each separator. */
.elx-aria-spec-fixtures-line a,
.elx-aria-spec-fixtures-line > span:not(.elx-aria-spec-dot) {
  white-space: nowrap;
}

.elx-aria-spec-dot {
  color: var(--ews-muted);
}

.elx-aria-spec .elx-aria-spec-note {
  max-width: none;
  margin: 22px 0 0;
  color: var(--ews-muted-ink);
}

/* ---- Narrow screens -------------------------------------------------- */

@media (max-width: 900px) {
  .eralux-aria-intro,
  .eralux-aria-closing,
  .eralux-aria-solution-grid {
    grid-template-columns: 1fr;
  }

  /* The spec table stops being a table: each sensor becomes a card, and the
     column heading that named each cell moves into the cell itself, because
     a heading row 700px to the left of its values helps nobody. */
  .elx-aria-spec-grid {
    min-width: 0;
    padding: 4px 16px 12px;
  }

  .elx-aria-spec-packs,
  .elx-aria-spec-head {
    display: none;
  }

  .elx-aria-spec-row-view {
    display: block;
    padding: 18px 0 14px;
  }

  .elx-aria-spec-cell {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
  }

  .elx-aria-spec-cell.is-product {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 10px;
  }

  .elx-aria-spec .elx-aria-spec-fixtures-line {
    padding-left: 0;
  }

  .elx-aria-spec-cell-label {
    display: block;
    flex: 0 0 auto;
  }

  .elx-aria-spec-cell-value {
    text-align: right;
  }

  .elx-aria-spec-cell.is-pack {
    justify-content: space-between;
    align-items: center;
  }
}

/* ---- Phones ---------------------------------------------------------- */

@media (max-width: 600px) {
  .eralux-aria-subtitle {
    font-size: 16px;
  }

  .eralux-aria-logo {
    max-width: 150px;
  }

  .eralux-aria-table {
    font-size: 15px;
    min-width: 440px;
  }

  .eralux-aria-table th,
  .eralux-aria-table td {
    padding: 12px 14px;
  }

  .eralux-aria-scale-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .eralux-aria-scale-list li {
    padding: 14px 16px;
  }

  .eralux-aria-solution {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .eralux-aria-solution-media {
    margin: -22px -20px 18px;
    border-radius: 14px 14px 0 0;
  }
}
