/* =====================================================================
   JaatCloud jc-pro.css — v90 professional polish layer (additive only)
   Focus states, selection, scrollbars, smooth scroll, hover depth,
   print stylesheet. Nothing here overrides existing layout.
   ===================================================================== */

/* 1) Keyboard focus rings — accessibility = professionalism */
:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .18);
}

/* 2) Brand selection colour */
::selection {
  background: rgba(96, 165, 250, .32);
  color: #fff;
}

/* 3) Slim dark scrollbars (Chromium/Safari/Edge + Firefox) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 165, 250, .35) rgba(15, 23, 42, .6);
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, .6);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(96, 165, 250, .5), rgba(37, 99, 235, .5));
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(96, 165, 250, .8), rgba(37, 99, 235, .8));
}

/* 4) Smooth in-page scrolling (never for reduced-motion users) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
  }
}

/* 5) Modern heading wrapping — no orphan last words */
h1, h2, h3, .premium-hero__title {
  text-wrap: balance;
}

/* 6) Crisp media + disciplined media boxes */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* 7) Text links inside legal/long-form pages — professional underline */
.legal-content p a,
.privacy-content p a,
.tos-content p a,
.page-content p a {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.legal-content p a:hover,
.privacy-content p a:hover,
.tos-content p a:hover,
.page-content p a:hover {
  color: #93c5fd;
}

/* 8) Hover depth — shadow-only lift (safe with reveal animations) */
.service-card,
.plan-card,
.premium-card,
.post-card,
.cg-card {
  will-change: box-shadow;
}
.service-card:hover,
.plan-card:hover,
.premium-card:hover,
.post-card:hover,
.cg-card:hover {
  box-shadow: 0 18px 48px -18px rgba(37, 99, 235, .38),
              0 0 0 1px rgba(96, 165, 250, .22);
}

/* 9) Buttons — unified cursor + no accidental text selection */
button,
.premium-button,
.sv-btn {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

/* 10) Cookie settings footer link */
#jcCookieSettingsLink {
  display: inline-block;
  margin-top: 4px;
  opacity: .9;
}

/* 11) Print stylesheet — clean printable legal pages */
@media print {
  nav,
  header,
  footer,
  .floating-dock,
  .jc-dock,
  #jcUpTop,
  .jcw-btn,
  #jcCookieBar,
  button,
  .premium-button,
  .jc-hero-fx,
  canvas {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #0f172a !important;
  }
  .legal-content,
  .privacy-content,
  .tos-content,
  .page-content,
  p, h1, h2, h3, li, td, th, span {
    color: #0f172a !important;
  }
  a {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
  }
}
