/* ---------- DESIGN TOKENS ---------- */
/* One palette for the whole site: navy for ink, cyan as the single accent, */
/* plus neutral grays. No third color — shades of these two do the rest. */

:root {
  /* Colors */
  --color-primary: #0a2540;      /* navy — headings, ink, buttons */
  --color-accent: #1aa8c9;       /* cyan — the one accent color */
  --color-accent-soft: rgba(26, 168, 201, 0.1);
  --color-accent-strong: #0f88a6; /* darker cyan for hover/pressed states */
  --color-text: #1c2b36;
  --color-text-muted: #5b6b76;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f6f8;
  --color-line: rgba(10, 37, 64, 0.08);
  --color-line-strong: rgba(10, 37, 64, 0.16);
  --color-surface: #ffffff;

  /* Typography — unchanged families, only sizes/weights are tuned per section */
  --font-main: "Poppins", "Montserrat", sans-serif;
  --font-heading: "Quicksand", sans-serif;

  /* Motion */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- BASE / RESET ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

html {
  scroll-behavior: smooth;
  background: var(--color-bg);
  overflow-x: hidden;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul,
ol {
  list-style: none;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

/* ---------- ACCESSIBILITY UTILITIES ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  z-index: 2000;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- SCROLL PROGRESS BAR ---------- */
/* thin fixed line that fills with scroll position */

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--color-accent);
  z-index: 1200;
  transition: width 0.1s linear;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
/* driven by IntersectionObserver in js/scroll-effects.js */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.fade-left {
  transform: translateX(-24px);
}
.reveal.fade-left.active {
  transform: translateX(0);
}

.reveal.fade-right {
  transform: translateX(24px);
}
.reveal.fade-right.active {
  transform: translateX(0);
}

.reveal.zoom {
  transform: scale(0.94);
}
.reveal.zoom.active {
  transform: scale(1);
}

/* stagger children inside a revealed group via inline --delay */
.reveal[style*="--delay"] {
  transition-delay: var(--delay);
}

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

  .reveal,
  .reveal.active,
  .reveal.fade-left,
  .reveal.fade-right,
  .reveal.zoom {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}