/* ==========================================================================
   Unity4Her — design tokens & custom styles
   Brand colors (fixed): primary #BC0C32, dark #333333
   Supporting palette derived below.
   ========================================================================== */

:root {
  /* Brand */
  --color-primary: #BC0C32;
  --color-primary-dark: #8C0924;
  --color-primary-light: #F3DFE3;
  --color-dark: #333333;

  /* Her Future pathway accent (deep teal — growth, land, resilience) */
  --color-future: #1C6B5E;
  --color-future-dark: #124A41;
  --color-future-light: #E4F0EC;

  /* Her Voice pathway accent (crimson — the brand primary) */
  --color-voice: var(--color-primary);
  --color-voice-dark: var(--color-primary-dark);
  --color-voice-light: var(--color-primary-light);

  /* Warm gold — sparing use, SDG / highlight accents */
  --color-gold: #B8860B;

  /* Neutrals */
  --color-ink: #262421;
  --color-body: #4A4744;
  --color-sand: #FAF7F1;
  --color-sand-deep: #F1ECE2;
  --color-line: #E4DDD0;
  --color-white: #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  background-color: var(--color-sand);
  color: var(--color-body);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.font-display {
  font-family: "Fraunces", ui-serif, Georgia, serif;
}

/* --------------------------- Signature motif ------------------------------
   Interlocking diamond / chevron line pattern — an abstract nod to woven
   textile geometry, used sparingly as a section divider and background
   texture. Pure geometric abstraction: no cultural or figurative claims. */
.motif-divider {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
      135deg,
      var(--color-primary) 0px,
      var(--color-primary) 2px,
      transparent 2px,
      transparent 10px
    ),
    repeating-linear-gradient(
      45deg,
      var(--color-future) 0px,
      var(--color-future) 2px,
      transparent 2px,
      transparent 10px
    );
  background-size: 20px 14px, 20px 14px;
  background-position: 0 0, 0 0;
  opacity: 0.35;
}

.motif-bg {
  position: relative;
  isolation: isolate;
}

.motif-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.05;
  background-image: repeating-linear-gradient(
      135deg,
      currentColor 0px,
      currentColor 1.5px,
      transparent 1.5px,
      transparent 22px
    ),
    repeating-linear-gradient(
      45deg,
      currentColor 0px,
      currentColor 1.5px,
      transparent 1.5px,
      transparent 22px
    );
}

/* ------------------------------ Focus states ------------------------------ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------- Nav ------------------------------------ */
[data-nav-menu] {
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

@media (max-width: 1023px) {
  [data-nav-menu][data-open="false"] {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }
  [data-nav-menu][data-open="true"] {
    max-height: 32rem;
    opacity: 1;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ------------------------------ Scroll reveal ------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* -------------------------------- Cards ------------------------------------ */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover,
.card-hover:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -16px rgba(38, 36, 33, 0.25);
}

/* ------------------------------- Timeline ---------------------------------- */
.timeline-line {
  background: linear-gradient(to bottom, var(--color-primary), var(--color-future));
}

/* ------------------------------ Filter buttons ------------------------------ */
.filter-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-body);
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* ------------------------------ Org chart ---------------------------------- */
.org-line-v {
  width: 2px;
  height: 28px;
  background: var(--color-line);
}
.org-line-v-short {
  width: 2px;
  height: 16px;
  background: var(--color-line);
}
.org-box {
  border-radius: 12px;
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}
.org-leaf {
  border-radius: 8px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  padding: 0.4rem 0.7rem;
  font-size: 0.72rem;
  color: var(--color-body);
  white-space: nowrap;
}

/* --------------------------- Skip link -------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}
