/* Task 32E: presentation only for the three homepage hero links. */
.home .hero-copy .hero-actions a.button,
.home .hero-copy > a.button.counselling-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--hero-glass-border);
  border-radius: 13px;
  color: var(--hero-glass-text);
  background: var(--hero-glass-surface);
  box-shadow: inset 0 1px 0 #ffffff61, inset 0 -1px 0 #ffffff10,
    0 9px 24px #07152559, 0 0 16px var(--hero-glass-ambient);
  text-shadow: none;
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  transition: transform .24s ease, border-color .24s ease,
    box-shadow .24s ease, background-color .24s ease;
}
.home .hero-copy .hero-actions a.button::before,
.home .hero-copy > a.button.counselling-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(160deg, #ffffff32 0%, #ffffff0a 36%, transparent 70%);
}
.home .hero-copy .hero-actions a.button.primary {
  --hero-glass-border: #9ddaff9c;
  --hero-glass-border-hover: #caedff;
  --hero-glass-ambient: #3ea8ef32;
  --hero-glass-ambient-hover: #46b7f064;
  --hero-glass-text: #f7fcff;
  --hero-glass-surface: linear-gradient(135deg, #427caaad, #2272aa99 53%, #d3e9f35c);
}
.home .hero-copy .hero-actions a.button.secondary {
  --hero-glass-border: #ffc586a6;
  --hero-glass-border-hover: #ffe0b5;
  --hero-glass-ambient: #eb7f3340;
  --hero-glass-ambient-hover: #ef884d69;
  --hero-glass-text: #fff8ef;
  --hero-glass-surface: linear-gradient(135deg, #a7592cbb, #c573389e 54%, #f0b47270);
}
.home .hero-copy > a.button.counselling-button {
  --hero-glass-border: #8bdcb5a8;
  --hero-glass-border-hover: #c4f2dc;
  --hero-glass-ambient: #36b58235;
  --hero-glass-ambient-hover: #42c59765;
  --hero-glass-text: #f2fff8;
  --hero-glass-surface: linear-gradient(135deg, #267d68b8, #3d988294 55%, #d1f0dc56);
}
.home .hero-copy .hero-actions a.button:hover,
.home .hero-copy .hero-actions a.button:focus-visible,
.home .hero-copy > a.button.counselling-button:hover,
.home .hero-copy > a.button.counselling-button:focus-visible {
  color: var(--hero-glass-text);
  border-color: var(--hero-glass-border-hover);
  background: var(--hero-glass-surface);
  box-shadow: inset 0 1px 0 #ffffff7d, inset 0 -1px 0 #ffffff20,
    0 13px 28px #07152570, 0 0 27px var(--hero-glass-ambient-hover);
  transform: translateY(-2px);
}
.home .hero-copy .hero-actions a.button:focus-visible,
.home .hero-copy > a.button.counselling-button:focus-visible {
  outline: 2px solid var(--hero-glass-border-hover);
  outline-offset: 3px;
}
.home .hero-copy .hero-actions a.button:active,
.home .hero-copy > a.button.counselling-button:active { transform: translateY(0); }

/* Light mode keeps the same color identity with dark, legible lettering. */
:root[data-sl-theme="light"] .home .hero-copy .hero-actions a.button,
:root[data-sl-theme="light"] .home .hero-copy > a.button.counselling-button {
  box-shadow: inset 0 1px 0 #fff9, 0 8px 20px #23436826,
    0 0 15px var(--hero-glass-ambient);
}
:root[data-sl-theme="light"] .home .hero-copy .hero-actions a.button.primary {
  --hero-glass-border: #4188c09e;
  --hero-glass-border-hover: #226fae;
  --hero-glass-text: #102d4c;
  --hero-glass-surface: linear-gradient(135deg, #d6edfad9, #b6d9f1c5 55%, #fffdf9ab);
}
:root[data-sl-theme="light"] .home .hero-copy .hero-actions a.button.secondary {
  --hero-glass-border: #c46e31aa;
  --hero-glass-border-hover: #a95c22;
  --hero-glass-text: #48250f;
  --hero-glass-surface: linear-gradient(135deg, #ffe7d0e8, #f6be87c4 55%, #fff5e5b5);
}
:root[data-sl-theme="light"] .home .hero-copy > a.button.counselling-button {
  --hero-glass-border: #439c75ad;
  --hero-glass-border-hover: #277d5a;
  --hero-glass-text: #103e35;
  --hero-glass-surface: linear-gradient(135deg, #d7f6e8e8, #b8e4d4c7 55%, #fffdf5b5);
}
:root[data-sl-theme="light"] .home .hero-copy > a.button.counselling-button svg { color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .home .hero-copy .hero-actions a.button,
  .home .hero-copy > a.button.counselling-button { transition: none; }
  .home .hero-copy .hero-actions a.button:hover,
  .home .hero-copy .hero-actions a.button:focus-visible,
  .home .hero-copy > a.button.counselling-button:hover,
  .home .hero-copy > a.button.counselling-button:focus-visible { transform: none; }
}
