/* =========================
   Local OpenDyslexic faces
   ========================= */
/* Regular (optional if you have it)
@font-face {
  font-family: "OpenDyslexic";
  src: url("assets/fonts/OpenDyslexic-Regular.woff2") format("woff2"),
       url("assets/fonts/OpenDyslexic-Regular.woff") format("woff"),
       url("assets/fonts/OpenDyslexic-Regular.otf") format("opentype"),
       url("assets/fonts/OpenDyslexic-Regular.eot");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

@font-face {
  font-family: "OpenDyslexic";
  src: url("assets/fonts/OpenDyslexic-Bold.woff2") format("woff2"),
       url("assets/fonts/OpenDyslexic-Bold.woff") format("woff"),
       url("assets/fonts/OpenDyslexic-Bold.otf") format("opentype"),
       url("assets/fonts/OpenDyslexic-Bold.eot");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("assets/fonts/OpenDyslexic-Italic.woff2") format("woff2"),
       url("assets/fonts/OpenDyslexic-Italic.woff") format("woff"),
       url("assets/fonts/OpenDyslexic-Italic.otf") format("opentype"),
       url("assets/fonts/OpenDyslexic-Italic.eot");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "OpenDyslexic";
  src: url("assets/fonts/OpenDyslexic-Bold-Italic.woff2") format("woff2"),
       url("assets/fonts/OpenDyslexic-Bold-Italic.woff") format("woff"),
       url("assets/fonts/OpenDyslexic-Bold-Italic.otf") format("opentype"),
       url("assets/fonts/OpenDyslexic-Bold-Italic.eot");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Brand tokens */
:root {
  --brand-orange: #ff7a00;
  --brand-pink:   #ff2eb8;
  --brand-dark:   #1c1c1c;
  --brand-light:  #ffffff;
}

body {
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}


/* Toggle font when user opts in */
.font-dyslexic,
.font-dyslexic body {
  font-family: "OpenDyslexic", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
}

/* High-contrast focus */
:focus-visible {
  outline: 3px solid var(--brand-pink);
  outline-offset: 2px;
}

/* Large text mode */
.large-text,
.large-text body {
  font-size: 1.25rem !important;
  line-height: 1.6 !important;
}

.large-text h1,
.large-text h2,
.large-text h3,
.large-text h4,
.large-text h5 {
  line-height: 1.3 !important;
}

.btn[aria-pressed="true"] {
  background-color: var(--brand-pink);
  color: #fff;
  border-color: var(--brand-pink);
}

/* accessibility focus for buttons */
#accessibility-toolbar {
  position: sticky;
  top: 0;
  z-index: 1030; /* above content but below modals */
  background-color: #f8f9fa;
}

#accessibility-toolbar .btn {
  font-size: 0.9rem;
  border-radius: 50px;
}

/* Utilities */
.bg-brand { background: var(--brand-orange) !important; }
.text-brand { color: var(--brand-orange) !important; }
.btn-brand {
  background-color: #d31a91 !important; /* accessible pink */
  color: #ffffff !important;
  border: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus {
  background-color: #b2167f !important; /* darker hover pink */
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-brand:active {
  background-color: #9e126f !important; /* pressed state */
  transform: translateY(0);
}
.badge-eco { background: #0d6efd; }

/* Header */
.navbar-brand img { height: 40px; width: auto; }
/* Add breathing room so the logo isn't flush left */
.navbar-brand { margin-left: 0.5rem; }
@media (min-width: 992px) {
  .navbar-brand { margin-left: 0.75rem; }
}

/* Hero */
.hero { background: linear-gradient(180deg, #fff 0%, #fff 60%, #fff5ec 100%); }

/* Cards */
.card { border-radius: 1rem; }

/* Section-specific card polish */
#about .card,
#audiences .card,
#poster .card,
#connect .card { border-radius: 1rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); }

/* Poster thumbnail: consistent, readable crop */
#poster .card-img-top {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Gentle float animation (respects reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 6s ease-in-out infinite; }
  @keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
  }
}

/* Skip link */
.skip-link {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: static; width: auto; height: auto; padding: .5rem 1rem; background: #000; color: #fff; z-index: 10000;
}

/* Footer */
footer a { color: inherit; }

/* Improve mobile navbar spacing */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .navbar-nav .nav-link {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .navbar-collapse .d-flex {
    margin-top: 1rem;
  }
}

/* Adjust mobile hamburger icon spacing */
.navbar-toggler {
  margin-right: 0.75rem; /* space from screen edge */
}

@media (min-width: 992px) {
  .navbar-toggler {
    margin-right: 1rem; /* slightly more for desktop */
  }
}

/* text-brand - this is to match the icons to match the brand colors more consistently */

.text-brand {
  color: var(--brand-pink) !important;
}

/* =============================
   ACCESSIBLE HIGH CONTRAST MODE
   ============================= */
.high-contrast,
.high-contrast body {
  color: #000 !important;
  background: #fff !important;
}

/* Make links and brand button very clear in high contrast */
.high-contrast a,
.high-contrast .btn-brand {
  color: #000 !important;
  background: #ffed00 !important; /* bright yellow highlight */
  border-color: #000 !important;
}

/* Keep outlines very visible in high contrast */
.high-contrast :focus-visible {
  outline: 3px solid #000 !important;
  outline-offset: 2px !important;
}

/* Cards and navbar/footers stay readable */
.high-contrast .card {
  background: #fff !important;
  color: #000 !important;
  border-color: #000 !important;
}

.high-contrast .navbar,
.high-contrast footer {
  background: #fff !important;
  color: #000 !important;
}

/* Badges remain distinct */
.high-contrast .badge-eco,
.high-contrast .badge,
.high-contrast .text-bg-success,
.high-contrast .text-bg-secondary {
  background: #000 !important;
  color: #fff !important;
}

/* Work in Progress banner */
#wip {
  background: linear-gradient(180deg, #fff9e6 0%, #fff3cd 100%);
  border-color: #ffecb5 !important;
}
#wip h2 i {
  color: var(--brand-pink);
}

#inclusion {
  background: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
  border-color: #eaeaea !important;
}
#inclusion h2 i {
  color: var(--brand-pink);
}