/* --- Page shell: footer pinned to bottom, reduced height, no background --- */
html,
body {
  min-height: 100%;
  min-height: 100svh; /* dynamic mobile viewport */
}
body {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* no scrolling on this page */
}
main.page-404 {
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex: 1;
  min-height: 0;
  background: none;
}

/* Navbar link colour (match Gallery) */
.navbar a,
.navbar .navbar-logo {
  color: black;
}
.navbar a:hover {
  color: #f4c430;
}

/* Integrated 404 content (no card) */
.page-404 .page-title {
  font-size: clamp(2rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 8px;
}
.page-404 .page-title mark {
  background: linear-gradient(45deg, #f4c430, #f49f30);
  color: #000;
  border-radius: 10px;
  padding: 0 12px;
}

.page-404 .oops {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: #444;
  margin: 8px 0 18px;
  line-height: 1.5;
  transition: opacity 0.6s ease;
}

/* Inline actions under the heading */
.inline-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
}

/* Tooltip */
.tooltip-mode {
  position: relative;
}
.tooltip-mode::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -32px; left: 50%;
  transform: translateX(-50%);
  background: #383838;
  color: #fff; font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.tooltip-mode:hover::after {
  opacity: 1;
}

/* ===== Hold-to-confirm base (kept for all variants) ===== */
.home-cta.hold{
  --g1: #f4c430; --g2: #f49f30;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  text-decoration:none;
  font-weight:800;
  color:#000;
  background:linear-gradient(135deg,var(--g1),var(--g2));
  background-size:200% 100%;
  border-radius:999px;
  padding:14px 22px;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  touch-action:manipulation;
  overflow:hidden;
  font-size:clamp(1rem,2.3vw,1.15rem);
  transition:transform .15s ease, box-shadow .2s ease, background-position .5s ease;
}
.home-cta.hold .label { display:inline-block; min-width:12ch; text-align:center; position: relative; z-index:2; }
.home-cta.hold .ring  { position:absolute; inset:-6px; border-radius:inherit; pointer-events:none; z-index:1;
  --p:0;
  background:
    conic-gradient(#000 calc(var(--p)*1turn), transparent 0) content-box,
    radial-gradient(transparent 12px, rgba(0,0,0,.12) 13px, transparent 14px);
  -webkit-mask:
    radial-gradient(#000 60%, transparent 61%) content-box,
    linear-gradient(#000,#000);
  mask:
    radial-gradient(#000 60%, transparent 61%) content-box,
    linear-gradient(#000,#000);
  -webkit-mask-composite:xor; mask-composite:exclude;
  opacity:.18; transition:opacity .2s ease;
  filter: hue-rotate(calc(var(--p,0) * 45deg));
}
.home-cta.hold.holding { filter: saturate(1.05); }
.home-cta.hold.holding .ring{ opacity:.35; }

/* Desktop nicety */
@media (pointer:fine) {
  .home-cta.hold:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(0,0,0,.18);
    background-position:right center;
  }
}

/* ===== Variant: Gradient Outline ===== */
.home-cta--outline {
  background: transparent;
  color: #000;
  box-shadow: none;
}
.home-cta--outline::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: linear-gradient(45deg, var(--g1), var(--g2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
@media (pointer:fine) {
  .home-cta--outline:hover {
    background: linear-gradient(45deg, var(--g1), var(--g2));
    color: #000;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
  }
}
body.dark-mode .home-cta--outline:hover { color: #000; }

/* Light sheen during hover/hold */
.home-cta::after{
  content:"";
  position:absolute; inset:-2px; border-radius:inherit;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .6s ease;
  pointer-events:none; mix-blend-mode: screen;
}
@media (pointer:fine){ .home-cta:hover::after { transform: translateX(120%); } }
.home-cta.hold.holding::after { transform: translateX(120%); }

/* ===== Edge-to-edge on mobile ===== */
@media (max-width: 480px) {
  .inline-actions { flex-direction: column; gap: 14px; align-items: center; }

  .page-404 .page-title { font-size: 1.9rem; margin-bottom: 6px; }
  .page-404 .oops { font-size: 0.9rem; line-height: 1.4; color: #555; }

  .home-cta--banner-mobile {
    width: 80vw; max-width: 80vw;
    border-radius: 12px;
    padding: 14px 0;
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* Footer compact */
footer { margin-top: 0; padding-top: 8px; }

/* Hide page-height adders on 404 */
#cookie-popup, #cookie-settings, .cookie-preferences-btn { display: none !important; }
.floating-widget-stack { display: none !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .home-cta.hold, .home-cta::after, .home-cta.hold .ring { transition: none; }
}