/* ==========================================================================
   Organ Donor Justice
   styles.css
   --------------------------------------------------------------------------
   Palette
     Primary Blue   #0B4F73   trust, stability, credibility
     Purple         #7B2E4F   justice, compassion, strength
     Slate          #324B5C   balance, depth, support
     Background     #F5F7FA   clean, light, minimal

   Type
     Display        Bebas Neue        (wordmark, big numbers)
     Utility        Oswald            (eyebrows, nav, buttons, meta)
     Body           Source Serif 4    (headlines, paragraphs)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Base
   -------------------------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #324B5C;
  font-family: 'Source Serif 4', Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #0B4F73;
  text-decoration: none;
}

a:hover {
  color: #7B2E4F;
}

::selection {
  background: #F5F7FA;
  color: #0B4F73;
}

img {
  max-width: 100%;
  height: auto;
}

/* Offset anchor targets so the sticky header doesn't cover them. */
[id] {
  scroll-margin-top: 90px;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #7B2E4F;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* --------------------------------------------------------------------------
   2. Layout helpers
   -------------------------------------------------------------------------- */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.wrap--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.wrap--mid {
  max-width: 880px;
  margin: 0 auto;
}

.wrap--wide {
  max-width: 1240px;
  margin: 0 auto;
}

.section {
  padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 40px);
}

.section--tall {
  padding: clamp(56px, 9vw, 96px) clamp(20px, 5vw, 40px);
}

.section--open-bottom {
  padding-bottom: 0;
}

.section--tint {
  background: #F5F7FA;
}

.section--center {
  text-align: center;
}

.section--policy {
  padding-top: 44px;
}

.rule {
  height: 1px;
  background: rgba(11, 79, 115, 0.14);
}

.rule--top {
  margin: 44px 0 0;
}

.rule--gap {
  margin-bottom: 60px;
}


/* --------------------------------------------------------------------------
   3. Wordmark
   -------------------------------------------------------------------------- */

.wordmark {
  display: inline-grid;
  line-height: 1;
  color: #0B4F73;
}

.wordmark__top {
  display: flex;
  justify-content: space-between;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.wordmark__gap {
  width: 5px;
}

.wordmark__main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 65px;
  letter-spacing: 0.005em;
}

/* Footer variant — white, larger */
.wordmark--footer {
  color: #fff;
}

.wordmark--footer .wordmark__top {
  font-size: 11.5px;
  margin-bottom: 6px;
}

.wordmark--footer .wordmark__gap {
  width: 7px;
}

.wordmark--footer .wordmark__main {
  font-size: 56px;
}


/* --------------------------------------------------------------------------
   4. Header + navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a {
  color: #5A7284;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #7B2E4F;
}

.site-nav a.site-nav__cta {
  color: #7B2E4F;
}

.site-nav a.site-nav__cta:hover {
  color: #0B4F73;
}

/* Mobile menu button — hidden on desktop.
   Remove this block plus the @media rule at the bottom of section 4
   if you'd rather the nav simply wrap onto a second line. */
.nav-toggle {
  display: none;
  border: 1px solid rgba(11, 79, 115, 0.3);
  background: transparent;
  border-radius: 2px;
  padding: 9px 14px;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0B4F73;
}
@media (min-width: 900px) {
.site-nav {font-size: 15px;}
}
@media (max-width: 700px) {
  
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 12px;
    border-top: 1px solid rgba(11, 79, 115, 0.14);
    margin-top: 4px;
  }
  .site-nav.is-open {
    display: flex;
  }
  /* Solid background while the menu is open, so page content
     doesn't show through the translucent header. */
  .site-header.is-nav-open {
    background: #fff;
  }
  .site-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(11, 79, 115, 0.09);
  }
}


/* --------------------------------------------------------------------------
   5. Type scale
   -------------------------------------------------------------------------- */

.eyebrow {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7B2E4F;
}

.eyebrow--center {
  text-align: center;
}

.eyebrow--spaced {
  margin-bottom: 34px;
}

.page-title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.24;
  letter-spacing: -0.012em;
  color: #0B4F73;
  text-wrap: pretty;
}

.page-title--sub {
  margin: 26px 0 0;
  font-size: clamp(30px, 5.4vw, 46px);
}

.subhead {
  margin: 48px auto 0;
  max-width: 720px;
  font-weight: 300;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.42;
  color: #0B4F73;
  text-wrap: pretty;
}

.lede {
  margin: 30px auto 0;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.7;
  color: #5A7284;
}

.lede--flush {
  margin: 22px 0 0;
  max-width: none;
  font-size: 17px;
}

.statement {
  margin: 34px 0 26px;
  font-size: 24px;
  line-height: 1.6;
  color: #0B4F73;
  font-weight: 400;
}

.statement--mission {
  margin: 34px 0 24px;
}

.body-text {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.78;
  color: #4A6274;
}

.body-text:last-child {
  margin-bottom: 0;
}

.body-text--gap {
  margin-bottom: 40px;
}

.pull-quote {
  margin: 0;
  text-align: center;
  font-family: Oswald, sans-serif;
  font-weight: 300;
  font-size: 27px;
  line-height: 1.4;
  color: #7B2E4F;
}


/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 2px;
  font-family: Oswald, sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: #0B4F73;
  color: #fff;
}

.btn--primary:hover {
  background: #7B2E4F;
  color: #fff;
}

.btn--ghost {
  border: 1px solid rgba(11, 79, 115, 0.3);
  color: #0B4F73;
}

.btn--ghost:hover {
  border-color: #0B4F73;
  color: #0B4F73;
}

.btn--purple {
  margin-top: 34px;
  background: #7B2E4F;
  color: #fff;
  padding: 16px 34px;
  letter-spacing: 0.18em;
}

.btn--purple:hover {
  background: #0B4F73;
  color: #fff;
}

.btn-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}


/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero__image {
  max-width: 1240px;
  margin: clamp(44px, 7vw, 72px) auto 0;
  height: clamp(220px, 34vw, 420px);
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center 42%;
  border-radius: 3px;
}


/* --------------------------------------------------------------------------
   8. What We Do — pillars
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px 64px;
  margin-top: 52px;
}

.pillar__mark {
  width: 28px;
  height: 2px;
  background: #7B2E4F;
}

.pillar__title {
  margin: 18px 0 12px;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0B4F73;
}

.pillar__body {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: #4A6274;
}


/* --------------------------------------------------------------------------
   9. In the News
   -------------------------------------------------------------------------- */

.news {
  margin-top: 44px;
}

.news__item {
  border-top: 1px solid rgba(11, 79, 115, 0.14);
  padding: 20px 0;
}

.news__title {
  display: block;
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  color: #0B4F73;
}

a.news__title:hover {
  color: #7B2E4F;
}

.news__meta {
  margin-top: 7px;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7A93A3;
}

.news__end {
  border-top: 1px solid rgba(11, 79, 115, 0.14);
}


/* --------------------------------------------------------------------------
   10. Why It Matters — stat
   -------------------------------------------------------------------------- */

.stat {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(64px, 12vw, 118px);
  line-height: 0.9;
  color: #0B4F73;
}

.stat__note {
  margin: 20px auto 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: #4A6274;
}


/* --------------------------------------------------------------------------
   11. Privacy policy
   -------------------------------------------------------------------------- */

.policy {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.policy__heading {
  margin: 0 0 14px;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0B4F73;
}

.policy__body {
  margin: 0;
  font-size: 18px;
  line-height: 1.78;
  color: #4A6274;
}

.policy ul {
  margin: 0 0 0 40px;
  padding: 0;
}

.policy ul li {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.78;
  color: #4A6274;
}

.policy__body ul li:last-child {
  margin-bottom: 0;
}

.policy__body + .policy__body {
  margin-top: 12px;
}

.policy__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 18px;
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #0B4F73;
  color: #fff;
  padding: clamp(48px, 7vw, 72px) clamp(20px, 5vw, 40px) 36px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 56px;
  align-items: start;
}

.site-footer__label {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9DC3DA;
  margin-bottom: 18px;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  color: #E6EDF2;
}

.site-footer__contact a {
  color: #E6EDF2;
}

.site-footer__contact a:hover {
  color: #fff;
}

.site-footer__bar {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: Oswald, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9DC3DA;
}

.site-footer__bar a {
  color: #9DC3DA;
}

.site-footer__bar a:hover {
  color: #fff;
}


/* --------------------------------------------------------------------------
   13. Social links — hidden for testing; remove display:none to show
   -------------------------------------------------------------------------- */

.site-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-social.site-social--header a:hover img {filter: hue-rotate(133deg) saturate(100) contrast(.7) brightness(0.5);}


.site-social.site-social--footer a:hover img {opacity:0.7;}
.site-social a {
  display: inline-flex;
  line-height: 0;
}

.site-social img {
  display: block;
  width: 32px;
  height: 32px;
}

.site-social--header {
  margin-left: 6px;
}

.site-social--footer {
  margin-top: 4px;
}

@media (max-width: 640px) {
  .site-nav .site-social--header {
    width: 100%;
    margin-left: 0;
    padding: 14px 0;
    border-bottom: 1px solid rgba(11, 79, 115, 0.09);
    justify-content: flex-start;
  }
}
