/* The Echo No More Foundation — single stylesheet.
   Palette: navy #16232F, off-white #F7F4EE, teal #2F6F6F, light teal #8FB9B3. */

:root {
  --navy: #16232f;
  --paper: #f7f4ee;
  --teal: #2f6f6f;
  --teal-light: #8fb9b3;
  --ink: #16232f;
  --ink-soft: #3f4d59;
  --white: #ffffff;
  --max: 68ch;
  --bar-h: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 0.6em;
  font-weight: 650;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
  max-width: var(--max);
}

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: #1f5252;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.safety-bar a:focus-visible,
.safety-bar button:focus-visible,
.footer a:focus-visible {
  outline-color: var(--teal-light);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--white);
  color: var(--navy);
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Sticky top: safety bar + header ---------- */

.site-top {
  position: sticky;
  top: 0;
  z-index: 100;
}

.safety-bar {
  background: var(--navy);
  color: #e8eef0;
  font-size: 0.9rem;
  border-bottom: 1px solid #2a3a48;
}

.safety-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.safety-bar p {
  margin: 0;
  max-width: none;
}

.quick-exit {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.1rem;
  background: var(--teal-light);
  color: #10202a;
  border: 2px solid var(--teal-light);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
}

.quick-exit:hover {
  background: var(--white);
  border-color: var(--white);
  color: #10202a;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--teal-light);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
  padding: 0.35rem 0;
  max-width: 15ch;
}

.wordmark:hover {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--teal-light);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.85rem;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--teal-light);
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle .bars {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle .bars::before,
.menu-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.menu-toggle .bars::before {
  top: -5px;
}

.menu-toggle .bars::after {
  top: 5px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 0.7rem 0.25rem;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(143, 185, 179, 0.5);
}

.nav-list a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.nav-list a[aria-current="page"] {
  color: var(--teal);
  box-shadow: inset 3px 0 0 var(--teal);
  padding-left: 0.6rem;
}

/* JS-enabled mobile: collapse the list until toggled. */
.js .menu-toggle {
  display: inline-flex;
}

.js .nav-list[data-collapsed="true"] {
  display: none;
}

@media (min-width: 960px) {
  .js .nav-list[data-collapsed="true"] {
    display: flex;
  }
}

/* ---------- Layout helpers ---------- */

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow {
  max-width: 46rem;
}

.section {
  padding: 2.5rem 0;
}

.section + .section {
  border-top: 1px solid rgba(143, 185, 179, 0.6);
}

.section-intro {
  color: var(--ink-soft);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 6px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: #255a5a;
  border-color: #255a5a;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--teal-light);
}

.btn-secondary:hover {
  background: rgba(247, 244, 238, 0.14);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 0;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  background-color: var(--navy);
  background-image: linear-gradient(
      180deg,
      rgba(22, 35, 47, 0.82) 0%,
      rgba(22, 35, 47, 0.72) 55%,
      rgba(22, 35, 47, 0.88) 100%
    ),
    url("../images/hero-path.jpg");
  background-size: cover;
  background-position: center 60%;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1rem 3.75rem;
}

.hero h1 {
  color: var(--white);
  max-width: 30ch;
}

.hero p {
  color: #e6edee;
  font-size: 1.0625rem;
}

.hero .btn-row {
  margin-top: 1.75rem;
}

/* ---------- Mission statement ---------- */

p.mission-statement {
  font-size: 1.125rem;
  line-height: 1.72;
  max-width: 62ch;
}

.hero .hero-facts {
  margin-top: 1rem;
  color: #cddadc;
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  p.mission-statement {
    font-size: 1.1875rem;
  }
}

/* ---------- Cards & grids ---------- */

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--teal-light);
  border-radius: 8px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  flex: 1 1 auto;
  color: var(--ink-soft);
}

.card .card-link {
  font-weight: 650;
  margin-top: 0.5rem;
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Bands ---------- */

.band {
  background: var(--white);
  border-top: 1px solid var(--teal-light);
  border-bottom: 1px solid var(--teal-light);
}

.band-navy {
  background: var(--navy);
  color: #e6edee;
}

.band-navy h2,
.band-navy h3 {
  color: var(--white);
}

.band-navy p {
  color: #d9e2e4;
}

.band-navy a {
  color: var(--teal-light);
}

/* ---------- Definition list (facts) ---------- */

.facts {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.facts div {
  border-left: 3px solid var(--teal-light);
  padding-left: 0.9rem;
}

.facts dt {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.facts dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--navy);
}

.credibility-strip {
  background: var(--white);
  border: 1px solid var(--teal-light);
  border-radius: 8px;
  padding: 1.35rem;
  margin-top: 1.75rem;
}

.credibility-strip .facts {
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

/* ---------- Notice boxes ---------- */

.notice {
  border-radius: 8px;
  padding: 1.35rem;
  margin: 1.75rem 0;
  background: var(--white);
  border: 1px solid var(--teal-light);
  border-left: 6px solid var(--teal);
}

.notice h2,
.notice h3 {
  margin-top: 0;
}

.notice p:last-child {
  margin-bottom: 0;
}

.notice-emergency {
  background: #f2f6f4;
}

.notice-emergency a {
  font-weight: 650;
}

/* ---------- Program sections ---------- */

.program {
  background: var(--white);
  border: 1px solid var(--teal-light);
  border-radius: 8px;
  padding: 1.4rem;
  margin: 1.25rem 0;
}

.program h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.program h3 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 1rem 0 0.35rem;
}

.program p:last-child {
  margin-bottom: 0;
}

/* ---------- Placeholder / donate card ---------- */

.placeholder-card {
  background: var(--white);
  border: 1px dashed var(--teal);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.placeholder-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: #eef2f0;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  display: inline-block;
  margin: 0.9rem 0 0;
}

.fee-line {
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: #d9e2e4;
  margin-top: 3rem;
  padding: 2.25rem 0 1.5rem;
  font-size: 0.95rem;
}

.site-footer h2 {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.site-footer p {
  color: #d9e2e4;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d9e2e4;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid #2f4150;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: #c6d2d6;
}

.footer-legal p {
  max-width: 62ch;
  color: #c6d2d6;
}

.footer-safety {
  color: #b9c7cb;
  font-size: 0.9rem;
}

/* Links inside footer text (contact email and phone) need light, readable colour
   against the navy background — the global teal is too dark there. */
.site-footer p a,
.footer-legal a {
  color: #a9d6ce;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer p a:hover,
.footer-legal a:hover,
.site-footer p a:focus,
.footer-legal a:focus {
  color: var(--white);
}

/* ---------- Founder note ---------- */
.founder-note {
  background: var(--white);
  border: 1px solid var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 1.4rem 1.15rem 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

.founder-note h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.founder-note p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.founder-signature {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--teal-light);
  color: var(--ink);
}

.founder-signature strong {
  font-weight: 700;
}

@media (min-width: 640px) {
  .founder-note {
    padding: 2rem 1.9rem 1.7rem;
  }

  .founder-note h2 {
    font-size: 1.5rem;
  }
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner {
    padding: 4.5rem 1rem 5rem;
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (min-width: 960px) {
  .header-inner {
    flex-wrap: nowrap;
    padding: 0.75rem 1rem;
  }

  .wordmark {
    font-size: 1.1rem;
    max-width: none;
  }

  .menu-toggle,
  .js .menu-toggle {
    display: none;
  }

  .nav-list,
  .js .nav-list[data-collapsed="true"] {
    display: flex;
    width: auto;
    gap: 1.5rem;
    align-items: center;
  }

  .nav-list a {
    border-bottom: none;
    padding: 0.6rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .nav-list a[aria-current="page"] {
    box-shadow: inset 0 -3px 0 var(--teal);
    padding-left: 0;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .credibility-strip .facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* No-JS: always show the list, hide the button. */
html:not(.js) .menu-toggle {
  display: none;
}

html:not(.js) .nav-list {
  display: block;
}

@media (min-width: 960px) {
  html:not(.js) .nav-list {
    display: flex;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Subtle fade for content; disabled under reduced motion above. */
.fade-in {
  animation: fadeIn 0.4s ease-out both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Zeffy donation form embed */
.zeffy-frame {
  display: block;
  width: 100%;
  min-height: 780px;
  border: 1px solid var(--teal-light);
  border-radius: 14px;
  background: var(--white);
  margin: 1.75rem 0 1.5rem;
}

.zeffy-fallback {
  border-top: 1px solid var(--teal-light);
  padding-top: 1.25rem;
}

@media (max-width: 640px) {
  .zeffy-frame {
    min-height: 900px;
  }
}

@media print {
  .site-top,
  .site-footer {
    position: static;
  }

  .zeffy-frame {
    display: none;
  }
}
