/* ------------------------------------------------------------------
   Joe Wanjara — small global additions on top of the Webfolio theme.
   Kept deliberately light: the template still owns the design system.
------------------------------------------------------------------ */

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

section[id] {
  scroll-margin-top: 86px;
}

::selection {
  background: rgba(253, 91, 56, 0.5);
  color: #fff;
}

:focus-visible {
  outline: 2px solid #fd5b38;
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #fd5b38 !important;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* The nav wordmark carries the links, so no underline is wanted. */
.navbar .nav-link {
  text-decoration: none;
}

.rolling-text .block {
  display: block;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100000;
  padding: 12px 18px;
  border-radius: 30px;
  background: #fd5b38;
  color: #0f0f0f;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #0f0f0f;
}

/* Keep native anchors from fighting the template's fixed nav. */
#home {
  scroll-margin-top: 0;
}

/* Small refinement for the legal pages. */
.legal-page .legal-content h2 {
  font-size: 24px;
  margin-top: 45px;
  margin-bottom: 15px;
}

.legal-page .legal-content h2:first-child {
  margin-top: 0;
}

.legal-page .legal-content p {
  margin-bottom: 18px;
}

.legal-page .legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 20px;
}

.legal-page .legal-content li {
  color: #c6c8c9;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* The template's pointer-following cursor has no meaning on touch screens. */
@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .cursor {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Admin is a light-only workspace on top of the public theme. */
.admin-body {
  background: #f3efe8 !important;
}

/* Keep decoration behind content and preserve ordinary page navigation. */
.product-hero::after { display: none; }
.product-hero .container { position: relative; z-index: 3; }
.app-card .cont > div + div { margin-top: 28px; }
.app-art .app-preview { border-radius: 0 !important; }
html[data-theme='light'] .product-hero .hero-app h2 { color: #fff; }
html[data-theme='light'] .product-hero .hero-app p { color: #bcb7b2; }
html[data-theme='light'] .product-hero .hero-description { color: #bab8b5; }
