/* Cargonium — custom styles on top of Tailwind */

:root {
  --brand: #1c5bff;
  --brand-dark: #0b1b3f;
  --accent: #0ea5e9;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* offset for sticky header on anchor jumps */
}

body {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Decorative dotted/grid background helper */
.bg-grid {
  background-image: radial-gradient(rgba(28, 91, 255, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* Hero gradient mesh */
.hero-mesh {
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(14, 165, 233, 0.25) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(28, 91, 255, 0.30) 0%, transparent 55%),
    linear-gradient(160deg, #0b1b3f 0%, #0e2f8c 55%, #0f45e6 100%);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* FAQ <details> chevron rotation */
details[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 0.25s ease;
}
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Subtle card hover lift */
.lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lift:hover {
  transform: translateY(-4px);
}

/* Thin custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef2ff; }
::-webkit-scrollbar-thumb { background: #c3d0ff; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #9db4ff; }

/* Image graceful fallback (brand block if photo fails to load) */
.img-fallback {
  background: linear-gradient(135deg, #0e2f8c, #1c5bff);
}
