:root {
  --bg: #07100d;
  --bg-soft: #0d1713;
  --panel: #101b17;
  --panel-light: #15231d;
  --green: #8bc34a;
  --green-bright: #a4d65e;
  --green-dark: #416b32;
  --gold: #f4a62a;
  --white: #f5f8f6;
  --text: #d7dfda;
  --muted: #8c9a92;
  --border: rgba(255,255,255,.10);
  --shadow: 0 20px 50px rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  height: 78px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  gap: 38px;
  background: rgba(5, 12, 9, .97);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green-bright);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow:
    0 0 0 4px rgba(139,195,74,.08),
    0 0 20px rgba(139,195,74,.10);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  color: var(--green-bright);
  font-size: .92rem;
  letter-spacing: 1.5px;
}

.brand-name small {
  margin-top: 5px;
  color: var(--white);
  font-size: .68rem;
  letter-spacing: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: #c4cec8;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .5px;
}

.main-nav a:hover {
  color: var(--green-bright);
}

.header-apply {
  background: var(--green);
  color: #081008;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .5px;
  transition: .2s ease;
}

.header-apply:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
}


/* HERO */

.hero {
  min-height: 630px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;

  background-image:
    linear-gradient(
      90deg,
      rgba(5,12,9,.98) 0%,
      rgba(5,12,9,.88) 30%,
      rgba(5,12,9,.45) 60%,
      rgba(5,12,9,.15) 100%
    ),
    url("../assets/images/recovery-forward-hero.png");

  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(7,16,13,.82) 0%,
      transparent 30%
    );
}

.hero-content {
  width: min(1180px, 90%);
  margin: auto;
  position: relative;
  z-index: 2;
}

.hero-label {
  color: var(--green-bright);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  line-height: .88;
  letter-spacing: -4px;
  font-weight: 950;
  text-shadow: 0 6px 30px rgba(0,0,0,.4);
}

.hero h1 span {
  display: block;
  color: var(--green-bright);
}

.hero-description {
  max-width: 600px;
  margin-top: 28px;
  color: #dbe5df;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  border-radius: 5px;
  padding: 14px 24px;
  text-decoration: none;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .8px;
}

.button-primary {
  background: var(--green);
  color: #081008;
}

.button-primary:hover {
  background: var(--green-bright);
}

.button-outline {
  color: var(--white);
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,0,0,.20);
}

.button-outline:hover {
  border-color: var(--green);
  color: var(--green-bright);
}


/* PROCESS */

.process {
  width: 100%;
  min-height: 105px;
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  padding: 0 5%;
  background: #0c1511;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-title {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.process-title strong {
  color: var(--white);
  font-size: .85rem;
  letter-spacing: 1px;
}

.process-title span {
  color: var(--muted);
  font-size: .72rem;
  margin-top: 3px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding-left: 25px;
}

.step:not(:last-child)::after {
  content: "";
  width: 45px;
  height: 1px;
  position: absolute;
  right: 8px;
  background: #324038;
}

.step > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  border: 1px solid #3a4941;
  border-radius: 50%;
  color: #89978f;
  font-size: .72rem;
  font-weight: 900;
}

.step.active > span {
  background: var(--green);
  border-color: var(--green);
  color: #07100d;
}

.step div {
  display: flex;
  flex-direction: column;
}

.step strong {
  color: #b9c4be;
  font-size: .67rem;
  letter-spacing: .6px;
}

.step.active strong {
  color: var(--green-bright);
}

.step small {
  color: #69766f;
  font-size: .63rem;
}


/* INTRO */

.intro {
  max-width: 900px;
  margin: auto;
  text-align: center;
  padding: 100px 25px 65px;
}

.section-kicker {
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.intro h2,
.mission-section h2,
.contact-section h2 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
}

.intro h2 span {
  color: var(--green-bright);
}

.intro > p:last-child {
  max-width: 720px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}


/* PORTAL */

.portal {
  width: min(1180px, 90%);
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.portal-card {
  min-height: 460px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 42px 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.02),
      transparent
    ),
    var(--panel);
}

.portal-card:not(:last-child) {
  border-right: 1px solid var(--border);
}

.portal-card.featured {
  border-top: 3px solid var(--green);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(139,195,74,.12);
  border: 1px solid rgba(139,195,74,.35);
  color: var(--green-bright);
  font-size: 1.35rem;
  font-weight: 900;
}

.card-number {
  color: var(--green);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.card-content h3 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.card-content > p {
  color: #9eaba4;
  font-size: .88rem;
  margin-bottom: 16px;
}

.privacy-note {
  padding: 13px;
  background: rgba(139,195,74,.06);
  border-left: 2px solid var(--green);
}

.card-button {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 18px;
  background: var(--green);
  color: #07100d;
  border-radius: 4px;
  text-decoration: none;
  font-size: .7rem;
  font-weight: 900;
}

.example-id {
  margin: 22px 0;
  padding: 14px;
  border: 1px solid #32433a;
  border-radius: 4px;
  background: #09120e;
  color: var(--green-bright);
  font-family: Consolas, monospace;
  font-size: .85rem;
  letter-spacing: 1px;
}

#status-form {
  margin-top: 25px;
}

#status-form label {
  display: block;
  color: #84928a;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 7px;
}

#status-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  background: #09120e;
  border: 1px solid #34453c;
  border-radius: 4px;
  color: var(--white);
  outline: none;
  font-family: Consolas, monospace;
}

#status-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(139,195,74,.08);
}

#status-form button {
  width: 100%;
  margin-top: 10px;
  height: 42px;
  background: #18251f;
  border: 1px solid #3b4b42;
  border-radius: 4px;
  color: #d7dfda;
  cursor: pointer;
  font-weight: 900;
  font-size: .7rem;
}

#status-form button:hover {
  border-color: var(--green);
  color: var(--green-bright);
}

.status-message {
  margin-top: 12px;
  min-height: 20px;
}


/* PROGRAMS */

.mission-section {
  padding: 100px 5%;
  background: #0b1511;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mission-section > div:first-child {
  max-width: 750px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 55px;
  gap: 25px;
}

.mission-grid article {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.mission-grid article > span {
  color: var(--green);
  font-size: .72rem;
  font-weight: 900;
}

.mission-grid h3 {
  color: var(--white);
  margin: 15px 0 8px;
}

.mission-grid p {
  color: var(--muted);
  font-size: .9rem;
}


/* TRUST */

.trust-strip {
  padding: 45px 5%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #0d1713;
  border-bottom: 1px solid var(--border);
}

.trust-strip > div {
  display: grid;
  grid-template-columns: 45px 1fr;
  column-gap: 13px;
  align-items: center;
  padding: 0 30px;
}

.trust-strip > div:not(:last-child) {
  border-right: 1px solid var(--border);
}

.trust-strip span {
  grid-row: 1 / 3;
  color: var(--green-bright);
  font-size: 1.5rem;
}

.trust-strip strong {
  color: var(--white);
  font-size: .7rem;
  letter-spacing: 1px;
}

.trust-strip small {
  color: var(--muted);
  font-size: .68rem;
}


/* CONTACT */

.contact-section {
  max-width: 850px;
  margin: auto;
  padding: 110px 25px;
  text-align: center;
}

.contact-section > p:not(.section-kicker) {
  max-width: 650px;
  margin: 22px auto 30px;
  color: var(--muted);
}


/* FOOTER */

footer {
  padding: 38px 5%;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  background: #050b08;
  border-top: 1px solid var(--border);
  color: #718078;
  font-size: .75rem;
}

footer strong {
  color: var(--green-bright);
  letter-spacing: 1px;
}

footer > div:last-child {
  text-align: right;
}


/* RESPONSIVE */

@media (max-width: 1050px) {

  .main-nav {
    display: none;
  }

  .process {
    grid-template-columns: 1fr;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .process-title {
    border-right: 0;
    margin-bottom: 20px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

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

  .portal-card:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

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

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .trust-strip > div {
    border-right: 0 !important;
  }
}


@media (max-width: 700px) {

  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .brand-name {
    display: none;
  }

  .header-apply {
    padding: 10px 14px;
  }

  .hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .hero-content {
    width: calc(100% - 36px);
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
    letter-spacing: -3px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step {
    padding-left: 0;
  }

  .portal {
    width: calc(100% - 30px);
  }

  .portal-card {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }

  footer > div:last-child {
    text-align: left;
  }
}

/* Official Recovery Forward Foundation logo */

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
}

@media (max-width: 700px) {
  .brand-logo {
    width: 48px;
    height: 48px;
  }
}

/* Contact section layout fix */

.contact-section .card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}

.contact-section .portal-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  min-width: 0;
}

.contact-section .portal-card h3 {
  width: 100%;
  margin-bottom: 14px;
}

.contact-section .portal-card p {
  width: 100%;
  margin-bottom: 24px;
}

.contact-section .portal-card .button {
  display: inline-flex;
  width: auto;
  min-width: 150px;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-section .card-grid {
    grid-template-columns: 1fr;
  }
}
