/* ==========================================================================
   Landing page — Overview (#nsrl-overview) + "What you can do here" bento (.nsrl-offer)
   Title and paragraphs come from Overview Management (overview-display.js).
   The bento cards are static content in the Elementor widget.
   ========================================================================== */

#nsrl-overview {
  position: relative;
  width: 100%;
  margin: 0;
  /* bottom is shorter so Overview -> News & events leaves the same gap as Hero -> Overview
     (this padding + the News section's top padding = about 1.3 x --nsrl-section-y) */
  padding: var(--nsrl-section-y) var(--nsrl-gutter) calc(var(--nsrl-section-y) * 0.66);
  background: var(--nsrl-color-surface);
}

#nsrl-overview .nsrl-ov__inner {
  max-width: var(--nsrl-container-wide);
  margin: 0 auto;
}

/* ---------- Statement ---------- */
#nsrl-overview .nsrl-ov__statement {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
#nsrl-overview .nsrl-ov-title { max-width: 13ch; }

#nsrl-overview .nsrl-ov-description {
  font-family: var(--nsrl-font-body);
  font-size: var(--nsrl-fs-body);
  line-height: var(--nsrl-lh-body);
  color: var(--nsrl-color-text);
}
#nsrl-overview .nsrl-ov-description p {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
#nsrl-overview .nsrl-ov-description p:first-child {
  font-family: var(--nsrl-font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--nsrl-color-green-900);
}
#nsrl-overview .nsrl-ov-description p:last-child { margin-bottom: 0; }

/* ---------- Bento ---------- */
.nsrl-offer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "feature a b"
    "feature wide wide";
  gap: 16px;
}
.nsrl-offer__card--feature { grid-area: feature; }
.nsrl-offer__card:nth-child(2) { grid-area: a; }
.nsrl-offer__card:nth-child(3) { grid-area: b; }
.nsrl-offer__card--wide { grid-area: wide; }

html body #nsrl-overview a.nsrl-offer__card:is(:link, :visited, :hover, :focus, :active) {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 260px;
  padding: clamp(24px, 2.6vw, 36px);
  overflow: hidden;
  isolation: isolate;
  color: var(--nsrl-color-text);
  text-decoration: none;
  background: var(--nsrl-color-card);
  border: 1px solid rgba(11, 61, 36, 0.08);
  border-radius: var(--nsrl-radius-xl);
  transition: transform var(--nsrl-dur-base) var(--nsrl-ease-out), box-shadow var(--nsrl-dur-base) ease, border-color var(--nsrl-dur-base) ease;
}
html body #nsrl-overview a.nsrl-offer__card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--nsrl-shadow-lg);
}
html body #nsrl-overview a.nsrl-offer__card:focus-visible {
  outline: 2px solid var(--nsrl-color-accent);
  outline-offset: 3px;
}

/* Feature card: dark green, tall */
html body #nsrl-overview a.nsrl-offer__card--feature:is(:link, :visited, :hover, :focus, :active) {
  justify-content: flex-end;
  color: var(--nsrl-color-on-dark-muted);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(8, 127, 135, 0.5) 0%, rgba(8, 127, 135, 0) 70%),
    linear-gradient(170deg, var(--nsrl-color-green-800) 0%, var(--nsrl-color-green-950) 100%);
  border-color: transparent;
}
html body #nsrl-overview a.nsrl-offer__card--feature::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.2px);
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 60%);
}
#nsrl-overview .nsrl-offer__card--feature .nsrl-offer__icon {
  margin-bottom: auto;
  background-color: var(--nsrl-color-gold-500);
}
#nsrl-overview .nsrl-offer__card--feature .nsrl-offer__tag { margin-top: 32px; }
#nsrl-overview .nsrl-offer__card--feature .nsrl-offer__title {
  color: #ffffff;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}
#nsrl-overview .nsrl-offer__card--feature .nsrl-offer__link { color: var(--nsrl-color-gold-300); }

.nsrl-offer__tag {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: var(--nsrl-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nsrl-color-gold-300);
  border: 1px solid rgba(232, 207, 122, 0.4);
  border-radius: var(--nsrl-radius-pill);
}

/* Wide card: horizontal */
html body #nsrl-overview a.nsrl-offer__card--wide:is(:link, :visited, :hover, :focus, :active) {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  min-height: 0;
  background: var(--nsrl-color-sage);
}
.nsrl-offer__wide-text { flex: 1 1 auto; min-width: 0; }
#nsrl-overview .nsrl-offer__card--wide .nsrl-offer__link { margin-top: 0; flex: 0 0 auto; }

/* Icons */
.nsrl-offer__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background-color: var(--nsrl-color-green-50);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  transition: transform var(--nsrl-dur-base) var(--nsrl-ease-out);
}
#nsrl-overview a.nsrl-offer__card:hover .nsrl-offer__icon { transform: rotate(-8deg) scale(1.05); }
.nsrl-offer__card--wide .nsrl-offer__icon { background-color: #ffffff; }
.nsrl-offer__icon--calendar {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062818' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4M8 14h3'/%3E%3C/svg%3E");
}
.nsrl-offer__icon--flask {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6M10 3v6l-5.5 9.2A2 2 0 0 0 6.2 21h11.6a2 2 0 0 0 1.7-2.8L14 9V3'/%3E%3Cpath d='M7.5 15h9'/%3E%3C/svg%3E");
}
.nsrl-offer__icon--receipt {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E");
}
.nsrl-offer__icon--microscope {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d24' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18h8M3 21h18M14 21a7 7 0 0 0-1-13.9'/%3E%3Cpath d='M9 14h2M10 3l3 1-3 8-3-1z'/%3E%3C/svg%3E");
}

#nsrl-overview h3.nsrl-offer__title {
  margin: 4px 0 0;
  font-family: var(--nsrl-font-display);
  font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--nsrl-color-green-900);
  text-transform: none;
}
#nsrl-overview p.nsrl-offer__text {
  margin: 0;
  font-size: var(--nsrl-fs-sm);
  line-height: 1.6;
  color: inherit;
}
.nsrl-offer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-size: var(--nsrl-fs-sm);
  font-weight: var(--nsrl-fw-bold);
  color: var(--nsrl-color-green-900);
}
.nsrl-offer__link::after {
  content: "\2192";
  transition: transform var(--nsrl-dur-base) var(--nsrl-ease-out);
}
#nsrl-overview a.nsrl-offer__card:hover .nsrl-offer__link::after { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nsrl-offer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "feature a"
      "feature b"
      "wide wide";
  }
}
@media (max-width: 860px) {
  #nsrl-overview .nsrl-ov__statement { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  #nsrl-overview .nsrl-ov-title { max-width: none; }
}
@media (max-width: 640px) {
  .nsrl-offer {
    grid-template-columns: 1fr;
    grid-template-areas: "feature" "a" "b" "wide";
  }
  html body #nsrl-overview a.nsrl-offer__card:is(:link, :visited, :hover, :focus, :active) { min-height: 0; }
  html body #nsrl-overview a.nsrl-offer__card--feature:is(:link, :visited, :hover, :focus, :active) { min-height: 340px; }
  html body #nsrl-overview a.nsrl-offer__card--wide:is(:link, :visited, :hover, :focus, :active) { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html body #nsrl-overview a.nsrl-offer__card,
  .nsrl-offer__icon,
  .nsrl-offer__link::after { transition: none; }
  html body #nsrl-overview a.nsrl-offer__card:hover { transform: none; }
}

/* ---------- Hover detail panel (same effect as the About Us cards) ----------
   .nsrl-offer__default = the card's normal content; .nsrl-offer__overlay slides up over it
   on hover / keyboard focus. Touch screens (no hover) keep the normal card as a plain link. */
#nsrl-overview .nsrl-offer__default {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  -webkit-box-align: start;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  -webkit-box-flex: 1;
  flex: 1 1 auto;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}
#nsrl-overview .nsrl-offer__card--feature .nsrl-offer__default { -webkit-box-pack: end; justify-content: flex-end; }
#nsrl-overview .nsrl-offer__card--wide .nsrl-offer__default {
  -webkit-box-orient: horizontal;
  flex-direction: row;
  -webkit-box-align: center;
  align-items: center;
  gap: 24px;
}

#nsrl-overview .nsrl-offer__hint {
  -webkit-box-flex: 0;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: var(--nsrl-fw-bold);
  color: var(--nsrl-color-green-900);
  background: var(--nsrl-color-green-50);
  border-radius: 4px;
}
#nsrl-overview .nsrl-offer__card--feature .nsrl-offer__hint {
  margin-top: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
#nsrl-overview .nsrl-offer__card--wide .nsrl-offer__hint { margin-top: 0; background: #ffffff; }

#nsrl-overview .nsrl-offer__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: start;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 36px);
  color: #ffffff;
  background: rgba(13, 56, 44, 0.96);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: inherit;
  opacity: 0;
  -webkit-transform: translateY(100%);
  transform: translateY(100%);
  -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}
#nsrl-overview .nsrl-offer__overlay-tag {
  font-size: 0.75rem;
  font-weight: var(--nsrl-fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nsrl-color-gold-300);
}
#nsrl-overview .nsrl-offer__overlay-title {
  display: block;
  font-family: var(--nsrl-font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
}
#nsrl-overview p.nsrl-offer__overlay-text {
  margin: 0;
  font-size: var(--nsrl-fs-sm);
  line-height: 1.6;
  color: #e2e8f0;
}
#nsrl-overview ul.nsrl-offer__overlay-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: nsrl-step;
}
#nsrl-overview .nsrl-offer__overlay-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 34px;
  font-size: var(--nsrl-fs-sm);
  line-height: 1.5;
  color: #e2e8f0;
  counter-increment: nsrl-step;
}
#nsrl-overview .nsrl-offer__overlay-list li::before {
  content: counter(nsrl-step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: var(--nsrl-fw-bold);
  line-height: 22px;
  text-align: center;
  color: var(--nsrl-color-green-950);
  background: var(--nsrl-color-gold-400);
}
#nsrl-overview .nsrl-offer__overlay .nsrl-offer__link { margin-top: 6px; color: var(--nsrl-color-gold-300); }

@media (hover: hover) {
  html body #nsrl-overview a.nsrl-offer__card:hover { -webkit-transform: none; transform: none; }
  #nsrl-overview a.nsrl-offer__card:is(:hover, :focus-visible) .nsrl-offer__overlay {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  #nsrl-overview a.nsrl-offer__card:is(:hover, :focus-visible) .nsrl-offer__default { opacity: 0; }
}
@media (hover: none) {
  #nsrl-overview .nsrl-offer__hint,
  #nsrl-overview .nsrl-offer__overlay { display: none; }
}
@media (max-width: 640px) {
  #nsrl-overview .nsrl-offer__card--wide .nsrl-offer__default { -webkit-box-orient: vertical; flex-direction: column; -webkit-box-align: start; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  #nsrl-overview .nsrl-offer__overlay,
  #nsrl-overview .nsrl-offer__default { -webkit-transition: opacity 0.2s linear; transition: opacity 0.2s linear; -webkit-transform: none; transform: none; }
}

/* Wide card: its hover panel is laid out side by side (text left, link right) so it fits the
   card's shorter height instead of spilling over the top and bottom edges. */
#nsrl-overview .nsrl-offer__card--wide .nsrl-offer__overlay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  -webkit-box-align: center;
  align-items: center;
  align-content: center;
  gap: 4px 32px;
  padding: 20px clamp(24px, 2.6vw, 36px);
}
#nsrl-overview .nsrl-offer__card--wide .nsrl-offer__overlay-tag   { grid-column: 1; grid-row: 1; }
#nsrl-overview .nsrl-offer__card--wide .nsrl-offer__overlay-title { grid-column: 1; grid-row: 2; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
#nsrl-overview .nsrl-offer__card--wide .nsrl-offer__overlay-text  { grid-column: 1; grid-row: 3; }
#nsrl-overview .nsrl-offer__card--wide .nsrl-offer__overlay .nsrl-offer__link {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
@media (max-width: 760px) {
  #nsrl-overview .nsrl-offer__card--wide .nsrl-offer__overlay { grid-template-columns: 1fr; }
  #nsrl-overview .nsrl-offer__card--wide .nsrl-offer__overlay .nsrl-offer__link { grid-column: 1; grid-row: 4; }
}