/* ==========================================================================
   GREENLYTES — CATEGORIES HUB
   Page-specific styles for /categories.

   Scope:
   1. Categories hero
   2. Use-case navigation
   3. Interactive category atlas
   4. Reassurance section
   5. Responsive layout safeguards

   Dependencies:
   Load after base.css and components.css.
   ========================================================================== */


/* ==========================================================================
   01. HERO
   ========================================================================== */

.categories-hero {
  padding: 18px 0 82px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 15%,
      rgba(144, 183, 128, 0.14),
      transparent 34%
    ),
    #f7f9f5;
}


.categories-hero__inner {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}


.categories-hero__breadcrumb {
  margin-bottom: 34px;
}


.categories-hero__layout {
  display: grid;
  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(480px, 1.08fr);
  gap: clamp(52px, 7vw, 96px);
  align-items: center;
}


.categories-hero__content {
  min-width: 0;
}


/* --------------------------------------------------------------------------
   Hero eyebrow
   -------------------------------------------------------------------------- */

.categories-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 23px;
  color: #657965;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


.categories-hero__eyebrow::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}


/* --------------------------------------------------------------------------
   Hero title
   -------------------------------------------------------------------------- */

.categories-hero h1 {
  max-width: 690px;
  margin: 0;
  color: #172219;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4rem, 6vw, 6.7rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}


.categories-hero h1 span {
  display: block;
  color: #476a4c;
  font-style: italic;
}


/* --------------------------------------------------------------------------
   Hero introduction
   -------------------------------------------------------------------------- */

.categories-hero__lead {
  max-width: 590px;
  margin: 31px 0 0;
  color: #5f6c61;
  font-size: 1.03rem;
  line-height: 1.8;
}


/* --------------------------------------------------------------------------
   Hero actions
   -------------------------------------------------------------------------- */

.categories-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 35px;
}


.categories-hero__secondary {
  display: inline-flex;
  min-height: 54px;
  padding: 0 23px;
  align-items: center;
  justify-content: center;
  gap: 11px;

  border: 1px solid rgba(46, 76, 54, 0.17);
  border-radius: 999px;

  color: #294a32;
  background: rgba(255, 255, 255, 0.58);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
}


/* --------------------------------------------------------------------------
   Hero trust line
   -------------------------------------------------------------------------- */

.categories-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  color: #778179;
  font-size: 0.72rem;
}


.categories-hero__trust span {
  position: relative;
}


.categories-hero__trust span:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -12px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: #9aa79b;
}


/* ==========================================================================
   02. HERO VISUAL
   ========================================================================== */

.categories-hero__visual {
  min-width: 0;
}


.categories-hero__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 38px;
  background:
    linear-gradient(
      145deg,
      #dfe7db,
      #bbc9b8
    );
  box-shadow:
    0 28px 70px rgba(30, 54, 37, 0.14);
}


.categories-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.categories-hero__image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      transparent 48%,
      rgba(16, 34, 22, 0.42) 100%
    );
}


.categories-hero__visual-label {
  position: absolute;
  left: 30px;
  bottom: 29px;
  z-index: 2;
  color: #fff;
}


.categories-hero__visual-label span,
.categories-hero__visual-label strong {
  display: block;
}


.categories-hero__visual-label span {
  margin-bottom: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.78;
}


.categories-hero__visual-label strong {
  max-width: 320px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.02;
}


.categories-hero__visual-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(45, 70, 50, 0.08);
  border-radius: 19px;
  background: rgba(45, 70, 50, 0.08);
}


.categories-hero__visual-details > span {
  padding: 17px 18px;
  background: rgba(255, 255, 255, 0.82);
}


.categories-hero__visual-details small,
.categories-hero__visual-details strong {
  display: block;
}


.categories-hero__visual-details small {
  margin-bottom: 5px;
  color: #8a958b;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


.categories-hero__visual-details strong {
  color: #233c2a;
  font-size: 0.8rem;
}


/* ==========================================================================
   03. HERO RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {

  .categories-hero {
    padding-bottom: 68px;
  }

  .categories-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
  }

  .categories-hero__content {
    width: 100%;
    max-width: 760px;
  }

  .categories-hero h1 {
    max-width: 760px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .categories-hero__visual {
    width: min(100%, 680px);
    justify-self: center;
  }
}

@media (max-width: 620px) {

  .categories-hero {
    padding: 10px 0 52px;
  }

  .categories-hero__inner {
    width: min(100% - 24px, 540px);
  }

  .categories-hero__breadcrumb {
    margin-bottom: 24px;
  }

  .categories-hero__eyebrow {
    margin-bottom: 17px;
    font-size: 0.64rem;
  }

  .categories-hero h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(2.8rem, 13vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .categories-hero h1 span {
    display: block;
  }

  .categories-hero__lead {
    margin-top: 23px;
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .categories-hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
  }

  .categories-hero__secondary {
    width: 100%;
  }

  .categories-hero__trust {
    gap: 7px 15px;
    margin-top: 22px;
  }

  .categories-hero__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .categories-hero__visual {
    width: 100%;
  }

  .categories-hero__image {
    border-radius: 24px;
  }

  .categories-hero__visual-label {
    left: 21px;
    bottom: 21px;
  }

  .categories-hero__visual-details {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   04. CATEGORY NEEDS
   Quick navigation by real-world use case.
   ========================================================================== */

.category-needs {
  padding: 76px 0 82px;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(147, 181, 134, 0.12),
      transparent 30%
    ),
    #f3f7ef;
}

.category-needs__inner {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.category-needs__header {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 360px);
  gap: 72px;
  align-items: end;
  margin-bottom: 34px;
}

.category-needs__eyebrow {
  grid-column: 1 / -1;
  display: block;
  margin-bottom: -18px;
  color: #52715a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.category-needs__header h2 {
  max-width: 860px;
  margin: 0;
  color: #172219;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.8rem, 4vw, 4.45rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.category-needs__header h2 span {
  display: block;
  color: #476a4c;
  font-style: italic;
}

/* Shared section summary: typography is defined in components.css. */
.category-needs__header > .section-summary {
  justify-self: end;
}

/* --------------------------------------------------------------------------
   Choices
   -------------------------------------------------------------------------- */

.category-needs__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(43, 68, 49, 0.09);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 22px 55px rgba(30, 53, 36, 0.05);
}

.category-needs__item {
  position: relative;
  min-width: 0;
  min-height: 168px;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  color: #26382b;
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.category-needs__item:nth-child(2),
.category-needs__item:nth-child(3),
.category-needs__item:nth-child(5),
.category-needs__item:nth-child(6) {
  border-left: 1px solid rgba(43, 68, 49, 0.08);
}

.category-needs__item:nth-child(n + 4) {
  border-top: 1px solid rgba(43, 68, 49, 0.08);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

.category-needs__number {
  margin-bottom: 24px;
  color: rgba(62, 104, 69, 0.28);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.category-needs__item strong {
  display: block;
  color: #1b2d20;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  font-weight: 500;
  line-height: 1.05;
}


/* --------------------------------------------------------------------------
   Card action
   -------------------------------------------------------------------------- */

.category-needs__action {
  margin-top: auto;
  padding-top: 18px;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: #315d3a;

  font-size: 0.63rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-needs__action::after {
  content: "→";

  display: inline-block;

  transition:
    transform 180ms ease;
}


.category-needs__item:focus-visible {
  background: #edf5e9;
  box-shadow:
    inset 0 0 0 1px rgba(57, 101, 67, 0.08);
}

.category-needs__item:focus-visible strong {
  color: #315d3a;
}

/* --------------------------------------------------------------------------
   Interactive cards
   -------------------------------------------------------------------------- */

.category-needs__item {
  cursor: pointer;

  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.category-needs__item strong {
  transition:
    color 180ms ease;
}


@media (hover: hover) and (pointer: fine) {

  .category-needs__item:hover {
    background: #edf5e9;

    box-shadow:
      inset 0 0 0 1px rgba(57, 101, 67, 0.08);
  }

  .category-needs__item:hover strong {
    color: #315d3a;
  }

  .category-needs__item:hover
  .category-needs__action::after {
    transform: translateX(4px);
  }

}

/* ==========================================================================
   05. CATEGORY NEEDS — RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {

  .category-needs__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-needs__eyebrow {
    grid-column: auto;
    margin-bottom: 0;
  }

  .category-needs__header > .section-summary {
    justify-self: start;
  }

  .category-needs__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-needs__item:nth-child(2),
  .category-needs__item:nth-child(3),
  .category-needs__item:nth-child(5),
  .category-needs__item:nth-child(6) {
    border-left: 0;
  }

  .category-needs__item:nth-child(even) {
    border-left: 1px solid rgba(43, 68, 49, 0.08);
  }

  .category-needs__item:nth-child(n + 3) {
    border-top: 1px solid rgba(43, 68, 49, 0.08);
  }
}

@media (max-width: 620px) {

  .category-needs {
    padding: 56px 0 60px;
  }

  .category-needs__inner {
    width: min(100% - 24px, 560px);
  }

  .category-needs__header {
    margin-bottom: 28px;
  }

  .category-needs__header h2 {
    font-size: clamp(2.65rem, 12vw, 3.8rem);
  }

  .category-needs__choices {
    grid-template-columns: 1fr;
    border-radius: 21px;
  }

  .category-needs__item {
    min-height: 144px;
    padding: 21px 21px 19px;
    border-left: 0 !important;
  }

  .category-needs__item + .category-needs__item {
    border-top: 1px solid rgba(43, 68, 49, 0.08);
  }

  .category-needs__number {
    margin-bottom: 18px;
    font-size: 1.55rem;
  }
}


/* ==========================================================================
   06. CATEGORY ATLAS
   Interactive category map with six peripheral cards, HTML/CSS connectors,
   and artwork-aligned light glows.
   ========================================================================== */

.category-atlas {
  padding: 92px 0 96px;
  overflow: hidden;
  background: #ffffff;
}

.category-atlas__inner {
  width: min(100% - 40px, 1460px);
  margin-inline: auto;
}


/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.category-atlas__header {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(320px, 470px);
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.category-atlas__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #52715a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.category-atlas__header h2 {
  max-width: 760px;
  margin: 0;
  color: #172219;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.15rem, 5vw, 5.7rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.category-atlas__header h2 span {
  display: block;
  color: #476a4c;
  font-style: italic;
}

/* Shared section summary: typography is defined in components.css. */
.category-atlas__header > .section-summary {
  justify-self: end;
}


/* --------------------------------------------------------------------------
   Stage
   -------------------------------------------------------------------------- */

.category-atlas__stage {
  --atlas-card-width: 210px;
  --atlas-card-height: 172px;
  --atlas-edge-y: 18px;

  position: relative;
  isolation: isolate;

  width: 100%;
  aspect-ratio: 1800 / 873;

  display: grid;
  grid-template-columns:
    var(--atlas-card-width)
    minmax(0, 1fr)
    var(--atlas-card-width);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: center;

  box-sizing: border-box;
  padding: var(--atlas-edge-y) 0;
}


/* --------------------------------------------------------------------------
   Artwork
   -------------------------------------------------------------------------- */

.category-atlas__art {
  position: absolute;
  inset: 0;
  z-index: 0;

  display: block;
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  pointer-events: none;
  user-select: none;

  filter:
    drop-shadow(0 18px 32px rgba(30, 55, 36, 0.035));
}


/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.category-atlas__item {
  position: relative;
  z-index: 4;

  box-sizing: border-box;
  width: var(--atlas-card-width);
  height: var(--atlas-card-height);
  padding: 16px 17px 20px;

  display: flex;
  flex-direction: column;

  overflow: visible;

  border: 1px solid rgba(52, 84, 59, 0.10);
  border-radius: 19px;

  color: #26382b;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.95),
      rgba(247, 250, 245, 0.89)
    );

  box-shadow:
    0 12px 30px rgba(29, 51, 35, 0.05),
    0 2px 7px rgba(29, 51, 35, 0.022);

  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.category-atlas__item::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;

  width: 3px;

  content: "";

  border-radius: 0 999px 999px 0;

  background:
    linear-gradient(
      180deg,
      rgba(75, 126, 83, 0),
      rgba(75, 126, 83, 0.72),
      rgba(75, 126, 83, 0)
    );

  opacity: 0;
  transform: scaleY(0.55);

  transition:
    opacity 220ms ease,
    transform 220ms ease;
}


/* --------------------------------------------------------------------------
   Card content
   -------------------------------------------------------------------------- */

.category-atlas__link {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  color: inherit;
  text-decoration: none;
}

.category-atlas__topline {
  min-height: 28px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 2px;
}

.category-atlas__number {
  margin: 0;
  color: rgba(61, 103, 68, 0.38);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 500;
  line-height: 1;

  transition:
    color 220ms ease,
    transform 220ms ease;
}

.category-atlas__icon {
  flex: 0 0 auto;

  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: -2px;

  border: 1px solid rgba(90, 137, 82, 0.16);
  border-radius: 50%;

  color: #628b59;
  background: rgba(237, 245, 232, 0.88);

  transition:
    color 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.category-atlas__icon svg {
  width: 15px;
  height: 15px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-atlas__label {
  margin: 0 0 6px;
  color: #5c795f;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.category-atlas__item h3 {
  min-height: 24px;
  margin: 0;
  color: #172219;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.03rem;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;

  transition:
    color 220ms ease;
}

.category-atlas__item p {
  margin: 7px 0 0;
  color: #69746b;
  font-size: 0.57rem;
  line-height: 1.43;
}

.category-atlas__footer {
  margin-top: auto;
  padding-top: 9px;

  display: flex;
  align-items: flex-end;
}

.category-atlas__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 0.48rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}


.category-atlas__action {
  color: #315d3a;
}


.category-atlas__link:focus-visible {
  border-radius: 14px;
}

.category-atlas__item:focus-within::before {
  opacity: 1;
  transform: scaleY(1);
}

.category-atlas__item:focus-within h3 {
  color: #2d5835;
}

/* --------------------------------------------------------------------------
   Desktop card placement
   -------------------------------------------------------------------------- */

.category-atlas__item--spot,
.category-atlas__item--post,
.category-atlas__item--parking {
  grid-column: 1;
  justify-self: start;
}

.category-atlas__item--flood,
.category-atlas__item--security,
.category-atlas__item--flagpole {
  grid-column: 3;
  justify-self: end;
}

.category-atlas__item--spot,
.category-atlas__item--flood {
  grid-row: 1;
}

.category-atlas__item--post,
.category-atlas__item--security {
  grid-row: 2;
}

.category-atlas__item--parking,
.category-atlas__item--flagpole {
  grid-row: 3;
}


/* ==========================================================================
   HTML/CSS CONNECTORS
   ========================================================================== */

.category-atlas__card-connector {
  --connector-line-length: 100px;
  --connector-diagonal-length: 110px;
  --connector-angle: 18deg;
  --connector-color: rgba(105, 181, 79, 0.82);
  --connector-dot-color: #72bd59;

  position: absolute;
  top: 34%;
  z-index: 6;

  display: flex;
  align-items: center;

  pointer-events: none;
  transform: translateY(-50%);
}

.category-atlas__card-connector--right {
  left: calc(100% - 5px);
}

.category-atlas__card-connector--left {
  right: calc(100% - 5px);
  left: auto;
  flex-direction: row-reverse;
}

.category-atlas__card-connector-dot {
  position: relative;
  z-index: 2;

  width: 12px;
  height: 12px;
  flex: 0 0 12px;

  box-sizing: border-box;

  border: 3px solid var(--connector-dot-color);
  border-radius: 50%;

  background: #ffffff;

  transition:
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.category-atlas__card-connector-line,
.category-atlas__card-connector-diagonal {
  height: 2px;

  background:
    repeating-linear-gradient(
      90deg,
      var(--connector-color) 0 5px,
      transparent 5px 10px
    );

  transition:
    opacity 220ms ease,
    filter 220ms ease;
}

.category-atlas__card-connector-line {
  width: var(--connector-line-length);
  flex: 0 0 var(--connector-line-length);
}

.category-atlas__card-connector--right
.category-atlas__card-connector-line {
  margin-left: 5px;
}

.category-atlas__card-connector--left
.category-atlas__card-connector-line {
  margin-right: 5px;
}

.category-atlas__card-connector-diagonal {
  width: var(--connector-diagonal-length);
  flex: 0 0 var(--connector-diagonal-length);
}

.category-atlas__card-connector--right
.category-atlas__card-connector-diagonal {
  transform: rotate(var(--connector-angle));
  transform-origin: left center;
}

.category-atlas__card-connector--left
.category-atlas__card-connector-diagonal {
  transform: rotate(var(--connector-angle));
  transform-origin: right center;
}


/* --------------------------------------------------------------------------
   Per-card connector geometry
   -------------------------------------------------------------------------- */

.category-atlas__item--spot
.category-atlas__card-connector {
  --connector-angle: 18deg;
}

.category-atlas__item--flood
.category-atlas__card-connector {
  --connector-angle: -24deg;
}

.category-atlas__item--post
.category-atlas__card-connector {
  --connector-line-length: 55px;
  --connector-diagonal-length: 50px;
  --connector-angle: 18deg;
}

.category-atlas__item--security
.category-atlas__card-connector {
  --connector-line-length: 55px;
  --connector-diagonal-length: 50px;
  --connector-angle: -18deg;
}

.category-atlas__item--parking
.category-atlas__card-connector {
  --connector-diagonal-length: 95px;
  --connector-angle: 18deg;
}

.category-atlas__item--flagpole
.category-atlas__card-connector {
  --connector-diagonal-length: 95px;
  --connector-angle: -18deg;
}


/* ==========================================================================
   LIGHT GLOWS
   ========================================================================== */

.category-atlas__light-glow,
.category-atlas__light-glow-flood,
.category-atlas__light-glow-post-left,
.category-atlas__light-glow-post-right,
.category-atlas__light-glow-security,
.category-atlas__light-glow-parking-left,
.category-atlas__light-glow-parking-right,
.category-atlas__light-glow-flagpole {
  position: absolute;
  z-index: 3;

  width: 90px;
  height: 90px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 244, 174, 0.72) 0%,
      rgba(255, 229, 112, 0.42) 28%,
      rgba(255, 220, 80, 0.18) 52%,
      rgba(255, 220, 80, 0) 76%
    );

  opacity: 0.32;

  transform: translate(-50%, -50%);
  filter: blur(5px);

  pointer-events: none;

  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
}


/* 01 — Spot light */

.category-atlas__light-glow {
  left: 34.5%;
  top: 29%;
}


/* 02 — Flood light */

.category-atlas__light-glow-flood {
  left: 62%;
  top: 25%;

  background:
    radial-gradient(
      circle,
      rgba(255, 250, 205, 1) 0%,
      rgba(255, 235, 125, 0.85) 24%,
      rgba(255, 216, 70, 0.48) 48%,
      rgba(255, 205, 45, 0.18) 68%,
      rgba(255, 205, 45, 0) 82%
    );

  filter:
    blur(5px)
    drop-shadow(0 0 14px rgba(255, 220, 90, 0.55));
}


/* 03 — Post lights: two light sources */

.category-atlas__light-glow-post-left {
  left: 25.5%;
  top: 45%;
}

.category-atlas__light-glow-post-right {
  left: 33.7%;
  top: 45%;
}

.category-atlas__light-glow-post-left,
.category-atlas__light-glow-post-right {
  width: 48px;
  height: 48px;

  background:
    radial-gradient(
      circle,
      rgba(255, 250, 205, 1) 0%,
      rgba(255, 235, 125, 0.92) 22%,
      rgba(255, 216, 70, 0.58) 46%,
      rgba(255, 205, 45, 0.22) 66%,
      rgba(255, 205, 45, 0) 82%
    );

  filter:
    blur(4px)
    drop-shadow(0 0 12px rgba(255, 220, 90, 0.62));
}


/* 04 — Security light */

.category-atlas__light-glow-security {
  left: 70%;
  top: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 250, 205, 1) 0%,
      rgba(255, 235, 125, 0.92) 22%,
      rgba(255, 216, 70, 0.60) 46%,
      rgba(255, 205, 45, 0.22) 66%,
      rgba(255, 205, 45, 0) 82%
    );

  filter:
    blur(4px)
    drop-shadow(0 0 14px rgba(255, 220, 90, 0.66));
}


/* 05 — Parking lot lights: two light sources */

.category-atlas__light-glow-parking-left {
  left: 37%;
  top: 73%;
}

.category-atlas__light-glow-parking-right {
  left: 43%;
  top: 73%;
}

.category-atlas__light-glow-parking-left,
.category-atlas__light-glow-parking-right {
  background:
    radial-gradient(
      circle,
      rgba(255, 250, 205, 0.92) 0%,
      rgba(255, 235, 125, 0.82) 22%,
      rgba(255, 216, 70, 0.52) 46%,
      rgba(255, 205, 45, 0.18) 66%,
      rgba(255, 205, 45, 0) 82%
    );

  filter:
    blur(4px)
    drop-shadow(0 0 11px rgba(255, 220, 90, 0.52));
}


/* 06 — Flagpole light */

.category-atlas__light-glow-flagpole {
  left: 63%;
  top: 74%;
}


/* ==========================================================================
   DESKTOP HOVER INTERACTIONS
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {

  .category-atlas__item:hover {
    transform:
      translateY(-4px)
      scale(1.015);

    border-color: rgba(61, 108, 70, 0.20);

    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.995),
        rgba(241, 247, 238, 0.97)
      );

    box-shadow:
      0 20px 42px rgba(28, 55, 35, 0.09),
      0 4px 14px rgba(28, 55, 35, 0.04);
  }

  .category-atlas__item:hover::before {
    opacity: 1;
    transform: scaleY(1);
  }

  .category-atlas__item:hover
  .category-atlas__icon {
    color: #3f7746;
    border-color: rgba(71, 119, 78, 0.22);
    background: #edf6e9;

    transform:
      translateY(-2px)
      rotate(-3deg);

    box-shadow:
      0 6px 14px rgba(53, 92, 59, 0.08);
  }

  .category-atlas__item:hover
  .category-atlas__number {
    color: #47744e;
    transform: translateX(3px);
  }

  .category-atlas__item:hover h3 {
    color: #2d5835;
  }

  .category-atlas__item:hover
  .category-atlas__card-connector-line,
  .category-atlas__item:hover
  .category-atlas__card-connector-diagonal {
    opacity: 1;

    filter:
      drop-shadow(0 0 4px rgba(112, 202, 82, 0.42));
  }

  .category-atlas__item:hover
  .category-atlas__card-connector-dot {
    border-color: #67b74e;

    box-shadow:
      0 0 0 2px rgba(120, 201, 95, 0.12),
      0 0 8px rgba(112, 202, 82, 0.34);
  }

  .category-atlas__stage:has(.category-atlas__item--spot:hover)
  .category-atlas__light-glow,
  .category-atlas__stage:has(.category-atlas__item--flood:hover)
  .category-atlas__light-glow-flood,
  .category-atlas__stage:has(.category-atlas__item--post:hover)
  .category-atlas__light-glow-post-left,
  .category-atlas__stage:has(.category-atlas__item--post:hover)
  .category-atlas__light-glow-post-right,
  .category-atlas__stage:has(.category-atlas__item--security:hover)
  .category-atlas__light-glow-security,
  .category-atlas__stage:has(.category-atlas__item--parking:hover)
  .category-atlas__light-glow-parking-left,
  .category-atlas__stage:has(.category-atlas__item--parking:hover)
  .category-atlas__light-glow-parking-right,
  .category-atlas__stage:has(.category-atlas__item--flagpole:hover)
  .category-atlas__light-glow-flagpole {
    opacity: 1;

    transform:
      translate(-50%, -50%)
      scale(1.16);

    filter:
      blur(6px)
      drop-shadow(0 0 18px rgba(255, 226, 118, 0.55));
  }

  .category-atlas__stage:has(.category-atlas__item--spot:hover)
  .category-atlas__light-glow {
    filter:
      blur(6px)
      drop-shadow(0 0 18px rgba(255, 226, 118, 0.38));
  }

}


/* --------------------------------------------------------------------------
   Card action
   -------------------------------------------------------------------------- */

.category-atlas__item {
  cursor: pointer;
}

.category-atlas__action::after {
  display: inline-block;
  content: "→";
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .category-atlas__item:hover .category-atlas__action::after {
    transform: translateX(4px);
  }
}


/* ==========================================================================
   07. CATEGORY ATLAS — RESPONSIVE
   ========================================================================== */

@media (max-width: 1120px) {

  .category-atlas__stage {
    --atlas-card-width: 180px;
    --atlas-card-height: 158px;
  }

  .category-atlas__item {
    padding: 13px 14px 17px;
  }

  .category-atlas__topline {
    min-height: 25px;
  }

  .category-atlas__icon {
    width: 27px;
    height: 27px;
  }

  .category-atlas__icon svg {
    width: 13px;
    height: 13px;
  }

  .category-atlas__number {
    font-size: 1.18rem;
  }

  .category-atlas__item h3 {
    min-height: 30px;
    font-size: 0.9rem;
  }

  .category-atlas__item p {
    font-size: 0.5rem;
  }

  .category-atlas__action {
    font-size: 0.43rem;
  }

}

@media (max-width: 980px) {

  .category-atlas__header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .category-atlas__header > .section-summary {
    justify-self: start;
  }

}


/* --------------------------------------------------------------------------
   Tablet and mobile
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {

  .category-atlas {
    padding: 64px 0 68px;
    overflow: visible;
  }

  .category-atlas__inner {
    width: min(100% - 28px, 680px);
  }

  .category-atlas__header {
    margin-bottom: 32px;
  }

  .category-atlas__header h2 {
    font-size: clamp(2.7rem, 10.8vw, 4rem);
  }

  .category-atlas__stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;

    aspect-ratio: auto;

    gap: 14px;
    padding: 0;
  }

  .category-atlas__art {
    position: relative;
    inset: auto;

    grid-column: 1 / -1;
    grid-row: 1;

    width: 100%;
    height: auto;

    margin: 0 auto 20px;

    filter:
      drop-shadow(
        0 13px 24px
        rgba(30, 55, 36, 0.035)
      );
  }

  .category-atlas__card-connector,
  .category-atlas__light-glow,
  .category-atlas__light-glow-flood,
  .category-atlas__light-glow-post-left,
  .category-atlas__light-glow-post-right,
  .category-atlas__light-glow-security,
  .category-atlas__light-glow-parking-left,
  .category-atlas__light-glow-parking-right,
  .category-atlas__light-glow-flagpole {
    display: none;
  }

  .category-atlas__item,
  .category-atlas__item--spot,
  .category-atlas__item--flood,
  .category-atlas__item--post,
  .category-atlas__item--security,
  .category-atlas__item--parking,
  .category-atlas__item--flagpole {
    grid-column: auto;
    grid-row: auto;

    justify-self: stretch;

    width: 100%;
    height: auto;
    min-height: 178px;

    padding: 18px;

    overflow: hidden;

    border-radius: 19px;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .category-atlas__item--spot {
    order: 2;
  }

  .category-atlas__item--flood {
    order: 3;
  }

  .category-atlas__item--post {
    order: 4;
  }

  .category-atlas__item--security {
    order: 5;
  }

  .category-atlas__item--parking {
    order: 6;
  }

  .category-atlas__item--flagpole {
    order: 7;
  }

  .category-atlas__topline {
    min-height: 32px;
  }

  .category-atlas__icon {
    width: 32px;
    height: 32px;
  }

  .category-atlas__icon svg {
    width: 16px;
    height: 16px;
  }

  .category-atlas__number {
    font-size: 1.35rem;
  }

  .category-atlas__label {
    margin-bottom: 7px;
    font-size: 0.52rem;
  }

  .category-atlas__item h3 {
    min-height: 38px;
    font-size: 1.15rem;
  }

  .category-atlas__item p {
    font-size: 0.66rem;
  }

  .category-atlas__footer {
    padding-top: 15px;
  }
}

@media (max-width: 540px) {

  .category-atlas {
    padding: 56px 0 60px;
  }

  .category-atlas__inner {
    width: min(100% - 24px, 520px);
  }

  .category-atlas__header {
    margin-bottom: 28px;
  }

  .category-atlas__header h2 {
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .category-atlas__stage {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-atlas__art {
    grid-column: 1;

    width: 122%;
    max-width: none;

    margin:
      0
      0
      15px
      50%;

    transform: translateX(-50%);
  }

  .category-atlas__item,
  .category-atlas__item--spot,
  .category-atlas__item--flood,
  .category-atlas__item--post,
  .category-atlas__item--security,
  .category-atlas__item--parking,
  .category-atlas__item--flagpole {
    grid-column: 1;

    min-height: 0;
    padding: 19px 20px;

    border-radius: 19px;
  }

  .category-atlas__item h3 {
    min-height: 0;
    font-size: 1.28rem;
  }

  .category-atlas__item p {
    max-width: 420px;
    font-size: 0.72rem;
    line-height: 1.52;
  }

  .category-atlas__footer {
    margin-top: 17px;
  }

  .category-atlas__action {
    font-size: 0.57rem;
  }

}

/* ==========================================================================
   09. GREENLYTES LAB — CATEGORIES PAGE VARIANT
   ========================================================================== */

/*
 * Final decision-support path. The main category-selection journey comes first;
 * this section is intentionally secondary.
 */

.guide-related--categories .guide-related-card h3 {
  min-height: 2.24em;
}

.guide-related--categories__all {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #315d3a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.guide-related--categories__all span {
  transition: transform 180ms ease;
}

.guide-related--categories__all:focus-visible {
  outline: 2px solid rgba(49, 93, 58, 0.34);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .guide-related--categories__all:hover span {
    transform: translateX(4px);
  }
}

@media (max-width: 720px) {
  .guide-related--categories .guide-related-card h3 {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-related--categories__all span {
    transition: none;
  }
}


/* ==========================================================================
   08. EDITORIAL TRUST
   Compact authority signal after category selection.
   ========================================================================== */

.categories-trust {
  padding: 72px 0 76px;
  background: #ffffff;
}

.categories-trust__inner {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(320px, 0.92fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: end;
  border-top: 1px solid rgba(43, 68, 49, 0.10);
  border-bottom: 1px solid rgba(43, 68, 49, 0.10);
}

.categories-trust__eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #52715a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.categories-trust h2 {
  max-width: 720px;
  margin: 0;
  color: #172219;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 3.9vw, 4.5rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.categories-trust h2 span {
  display: block;
  color: #476a4c;
  font-style: italic;
}

.categories-trust__body {
  max-width: 470px;
  justify-self: end;
}

.categories-trust__body p {
  margin: 0;
  color: #5f6c61;
  font-size: 0.92rem;
  line-height: 1.72;
}

.categories-trust__body a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
  color: #315d3a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.categories-trust__body a span {
  transition: transform 180ms ease;
}

.categories-trust__body a:focus-visible {
  outline: 2px solid rgba(49, 93, 58, 0.34);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .categories-trust__body a:hover span {
    transform: translateX(4px);
  }
}

@media (max-width: 900px) {
  .categories-trust__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .categories-trust__body {
    max-width: 680px;
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .categories-trust {
    padding: 52px 0 56px;
  }

  .categories-trust__inner {
    width: min(100% - 24px, 560px);
    padding: 28px 0;
  }

  .categories-trust h2 {
    font-size: clamp(2.45rem, 11.5vw, 3.55rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .categories-trust__body a span {
    transition: none;
  }
}


/* ==========================================================================
   10. GLOBAL MOBILE SAFETY
   ========================================================================== */

@media (max-width: 620px) {

  .categories-hero,
  .category-needs,
  .category-atlas,
  .categories-trust {
    max-width: 100%;
    overflow-x: clip;
  }

  .categories-hero__inner,
  .category-needs__inner,
  .category-atlas__inner,
  .categories-trust__inner {
    min-width: 0;
  }

  .categories-hero__layout,
  .category-needs__header,
  .category-atlas__header,
  .categories-trust__inner {
    min-width: 0;
  }
}

/* ==========================================================================
   11. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .category-needs__item,
  .category-needs__item strong,
  .category-needs__action::after,
  .category-atlas__item,
  .category-atlas__item::before,
  .category-atlas__number,
  .category-atlas__icon,
  .category-atlas__item h3,
  .category-atlas__action::after,
  .category-atlas__card-connector-dot,
  .category-atlas__card-connector-line,
  .category-atlas__card-connector-diagonal,
  .category-atlas__light-glow,
  .category-atlas__light-glow-flood,
  .category-atlas__light-glow-post-left,
  .category-atlas__light-glow-post-right,
  .category-atlas__light-glow-security,
  .category-atlas__light-glow-parking-left,
  .category-atlas__light-glow-parking-right,
  .category-atlas__light-glow-flagpole {
    transition: none;
  }

  .category-atlas__item:hover,
  .category-atlas__item:focus-within,
  .category-atlas__item:hover .category-atlas__icon,
  .category-atlas__item:hover .category-atlas__number,
  .category-needs__item:hover .category-needs__action::after,
  .category-atlas__item:hover .category-atlas__action::after {
    transform: none;
  }
}