/* Just Chill — global styles */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: #23415B;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* keeps sticky header working — do not change to overflow-x:hidden */
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Scroll reveal — initial hidden state */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal="scale"] {
  transform: scale(0.94);
}
[data-reveal="left"] {
  transform: translateX(-28px);
}
[data-reveal].jc-revealed {
  opacity: 1;
  transform: none;
}

/* Count-up number pulse on reveal */
@keyframes jcCountIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
[data-count].jc-counted {
  animation: jcCountIn 0.5s ease forwards;
}

/* Hover utility — applied via JS but defined here for transition support */
.jc-hover-lift {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.jc-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -20px rgba(8, 35, 61, 0.35);
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #57CBE6;
  outline-offset: 3px;
}

/* Skip link for accessibility */
.jc-skip-link {
  position: absolute;
  top: -60px;
  left: 14px;
  background: #08233D;
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.jc-skip-link:focus {
  top: 0;
}

/* Print */
@media print {
  [data-noprint] { display: none !important; }
  [data-printhead] { display: block !important; }
  body { background: #fff !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  .jc-doc-card { break-inside: avoid; page-break-inside: avoid; }
}

/* Responsive helpers */
@media (max-width: 640px) {
  .jc-hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .jc-hide-desktop { display: none !important; }
}
