/* ==========================================================
   RELEASING DREAMS NETWORK
   Main Stylesheet
========================================================== */


/* ---------- VARIABLES ---------- */

:root {
  --navy: #12263f;
  --navy-dark: #09182a;
  --blue: #245b91;

  --gold: #f2b632;
  --gold-light: #f8cf6c;

  --cream: #f8f5ee;
  --cream-dark: #eee8dc;

  --white: #ffffff;

  --text: #26313d;
  --muted: #68717c;

  --border: #e4e5e7;

  --shadow:
    0 20px 50px rgba(16, 38, 63, 0.10);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --transition: 0.3s ease;

  --container: 1180px;
}


/* ---------- RESET ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);
  background: var(--white);

  line-height: 1.6;

  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

section {
  scroll-margin-top: 90px;
}


/* ---------- REUSABLE ---------- */

.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section-label {
  display: inline-block;

  margin-bottom: 15px;

  color: var(--blue);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.light-label {
  color: var(--gold-light);
}

h1,
h2,
h3 {
  color: var(--navy-dark);

  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);

  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);

  letter-spacing: -0.045em;
}

h2 span,
h1 span {
  color: var(--gold);
}

p {
  color: var(--muted);
}

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 52px;

  padding: 0 27px;

  border-radius: 100px;

  font-weight: 750;

  transition: var(--transition);
}

.button-primary {
  color: var(--white);
  background: var(--navy);
}

.button-primary:hover {
  background: var(--blue);

  transform: translateY(-2px);
}

.button-light {
  color: var(--navy-dark);
  background: var(--white);
}

.button-light:hover {
  background: var(--gold);

  transform: translateY(-2px);
}


/* ==========================================================
   NAVIGATION
========================================================== */

.site-header {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 1000;

  background:
    rgba(255, 255, 255, 0.95);

  backdrop-filter: blur(14px);

  border-bottom:
    1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
  min-height: 78px;

  display: flex;

  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;

  align-items: center;

  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;

  border-radius: 13px;

  display: grid;

  place-items: center;

  color: var(--navy-dark);
  background: var(--gold);

  font-weight: 900;
}

.brand-text {
  display: flex;

  flex-direction: column;

  line-height: 1.05;
}

.brand-text strong {
  color: var(--navy-dark);

  font-size: 1rem;
}

.brand-text small {
  margin-top: 4px;

  color: var(--muted);

  font-size: 0.75rem;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.main-nav {
  display: flex;

  align-items: center;

  gap: 30px;
}

.main-nav > a {
  color: var(--navy-dark);

  font-size: 0.92rem;

  font-weight: 650;

  transition: var(--transition);
}

.main-nav > a:hover {
  color: var(--blue);
}

.main-nav .nav-button {
  padding: 11px 20px;

  color: var(--navy-dark);

  background: var(--gold);

  border-radius: 100px;
}

.main-nav .nav-button:hover {
  color: var(--white);

  background: var(--navy);
}

.menu-toggle {
  display: none;

  width: 44px;
  height: 44px;

  padding: 10px;

  border: 0;

  background: transparent;

  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;

  margin: 5px 0;

  display: block;

  background: var(--navy);

  transition: var(--transition);
}


/* ==========================================================
   HERO
========================================================== */

.hero {
  min-height: 92vh;

  padding-top: 78px;

  position: relative;

  display: flex;

  align-items: center;

  color: var(--white);

  background:
    url("images/hero.jpg")
    center / cover
    no-repeat;
}

.hero-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(4, 17, 32, 0.94) 0%,
      rgba(10, 27, 48, 0.78) 48%,
      rgba(8, 24, 42, 0.3) 100%
    );
}

.hero-content {
  position: relative;

  z-index: 2;

  padding:
    120px 0
    145px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin-bottom: 25px;

  color: var(--gold-light);

  font-size: 0.78rem;

  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.hero h1 {
  color: var(--white);
}

.hero-description {
  max-width: 680px;

  margin-top: 28px;

  color:
    rgba(255, 255, 255, 0.87);

  font-size: 1.15rem;

  line-height: 1.8;
}

.hero-buttons {
  margin-top: 36px;

  display: flex;

  flex-wrap: wrap;

  gap: 14px;
}

.hero-bottom {
  position: absolute;

  bottom: 0;
  left: 0;

  width: 100%;

  z-index: 2;

  background:
    rgba(8, 24, 42, 0.82);

  backdrop-filter: blur(8px);
}

.hero-message {
  padding: 22px 0;
}

.hero-message p {
  color: rgba(255,255,255,0.85);

  display: flex;

  gap: 32px;

  flex-wrap: wrap;
}

.hero-message strong {
  color: var(--white);
}


/* ==========================================================
   ABOUT
========================================================== */

.about-section {
  background: var(--cream);
}

.about-grid {
  display: grid;

  grid-template-columns:
    0.95fr 1.05fr;

  align-items: center;

  gap: 80px;
}

.about-image {
  position: relative;
}

.about-image img {
  height: 620px;

  object-fit: cover;

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow);
}

.image-badge {
  position: absolute;

  right: -32px;
  bottom: 35px;

  max-width: 280px;

  padding: 22px;

  color: var(--navy-dark);
  background: var(--gold);

  border-radius: var(--radius-md);

  box-shadow: var(--shadow);
}

.image-badge strong,
.image-badge span {
  display: block;
}

.image-badge strong {
  margin-bottom: 5px;

  font-size: 1.05rem;
}

.image-badge span {
  font-size: 0.9rem;
}

.about-content h2 {
  margin-bottom: 27px;
}

.about-content > p {
  margin-top: 17px;

  font-size: 1.04rem;

  line-height: 1.85;
}

.mission-box {
  position: relative;

  margin-top: 35px;

  padding: 27px 30px 27px 48px;

  background: var(--white);

  border-left: 5px solid var(--gold);

  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.mission-mark {
  position: absolute;

  top: -10px;
  left: 14px;

  color: var(--gold);

  font-size: 4rem;

  font-weight: 900;
}

.mission-box p {
  color: var(--navy);

  font-weight: 650;
}


/* ==========================================================
   PROGRAMS
========================================================== */

.programs-section {
  background: var(--white);
}

.section-heading {
  max-width: 790px;

  margin-bottom: 60px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;

  text-align: center;
}

.section-heading h2 {
  margin-bottom: 20px;
}

.section-heading > p:last-child {
  max-width: 670px;

  margin:
    0 auto;

  font-size: 1.04rem;

  line-height: 1.8;
}

.program-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 24px;
}

.program-card {
  position: relative;

  padding: 42px;

  overflow: hidden;

  background: var(--cream);

  border:
    1px solid var(--cream-dark);

  border-radius: var(--radius-lg);

  transition: var(--transition);
}

.program-card:hover {
  transform:
    translateY(-7px);

  box-shadow: var(--shadow);
}

.program-number {
  position: absolute;

  top: 28px;
  right: 30px;

  color:
    rgba(16, 38, 63, 0.10);

  font-size: 4rem;

  font-weight: 900;

  line-height: 1;
}

.program-icon {
  width: 55px;
  height: 55px;

  margin-bottom: 28px;

  display: grid;

  place-items: center;

  color: var(--navy-dark);
  background: var(--gold);

  border-radius: 15px;

  font-size: 1.55rem;
}

.program-card h3 {
  margin-bottom: 15px;

  font-size: 1.6rem;
}

.program-card > p {
  margin-bottom: 24px;

  line-height: 1.75;
}

.program-card ul {
  list-style: none;
}

.program-card li {
  position: relative;

  padding:
    7px 0
    7px 24px;

  color: var(--navy);

  font-weight: 600;
}

.program-card li::before {
  content: "•";

  position: absolute;

  left: 4px;

  color: var(--gold);

  font-size: 1.3rem;
}

.featured-card {
  color: var(--white);

  background: var(--navy);

  border-color: var(--navy);
}

.featured-card h3,
.featured-card li {
  color: var(--white);
}

.featured-card p {
  color:
    rgba(255,255,255,0.78);
}

.featured-card .program-number {
  color:
    rgba(255,255,255,0.08);
}

.legal-note {
  margin-top: 25px;

  display: block;

  color:
    rgba(255,255,255,0.62);

  font-size: 0.78rem;

  line-height: 1.6;
}


/* ==========================================================
   IMPACT
========================================================== */

.impact-section {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  min-height: 720px;
}

.impact-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.impact-content {
  padding: 95px;

  display: flex;

  align-items: center;

  color: var(--white);

  background: var(--navy-dark);
}

.impact-inner {
  max-width: 600px;
}

.impact-content h2 {
  margin-bottom: 30px;

  color: var(--white);
}

.impact-content > div > p {
  color:
    rgba(255,255,255,0.78);

  font-size: 1.05rem;

  line-height: 1.85;
}

.impact-content blockquote {
  margin: 35px 0;

  color: var(--gold);

  font-size: clamp(2rem, 4vw, 3.4rem);

  font-weight: 850;

  line-height: 1.15;

  letter-spacing: -0.035em;
}


/* ==========================================================
   COMMUNITY GALLERY
========================================================== */

.community-section {
  background: var(--cream);
}

.photo-grid {
  display: grid;

  grid-template-columns:
    1.25fr 1fr;

  grid-template-rows:
    repeat(2, 290px);

  gap: 20px;
}

.photo-card {
  position: relative;

  overflow: hidden;

  border-radius: var(--radius-lg);
}

.photo-tall {
  grid-row:
    1 / span 2;
}

.photo-card img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.6s ease;
}

.photo-card:hover img {
  transform:
    scale(1.04);
}

.photo-card::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(8, 24, 42, 0.85),
      transparent 60%
    );
}

.photo-caption {
  position: absolute;

  left: 28px;
  right: 28px;
  bottom: 25px;

  z-index: 3;

  color: var(--white);
}

.photo-caption span,
.photo-caption strong {
  display: block;
}

.photo-caption span {
  margin-bottom: 4px;

  color: var(--gold-light);

  font-size: 0.75rem;

  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.photo-caption strong {
  font-size: 1.3rem;
}


/* ==========================================================
   GET INVOLVED
========================================================== */

.get-involved-section {
  padding:
    110px 0;

  background: var(--white);
}

.get-involved-card {
  padding: 70px;

  display: grid;

  grid-template-columns:
    0.9fr 1.1fr;

  gap: 70px;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--navy-dark),
      var(--navy)
    );

  border-radius: 34px;

  box-shadow:
    0 30px 80px rgba(16,38,63,0.18);
}

.get-involved-copy h2 {
  margin-bottom: 22px;

  color: var(--white);
}

.get-involved-copy p {
  color:
    rgba(255,255,255,0.76);

  line-height: 1.8;
}

.involvement-options {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.involve-card {
  padding: 18px 20px;

  display: grid;

  grid-template-columns:
    auto 1fr auto;

  align-items: center;

  gap: 16px;

  background:
    rgba(255,255,255,0.09);

  border:
    1px solid rgba(255,255,255,0.12);

  border-radius: 17px;

  transition: var(--transition);
}

.involve-card:hover {
  background:
    rgba(255,255,255,0.15);

  transform:
    translateX(5px);
}

.involve-icon {
  width: 44px;
  height: 44px;

  display: grid;

  place-items: center;

  color: var(--navy-dark);
  background: var(--gold);

  border-radius: 12px;

  font-size: 1.3rem;
}

.involve-card strong,
.involve-card small {
  display: block;
}

.involve-card strong {
  color: var(--white);
}

.involve-card small {
  margin-top: 3px;

  color:
    rgba(255,255,255,0.65);
}

.involve-card .arrow {
  color: var(--gold);

  font-size: 1.5rem;
}


/* ==========================================================
   CONTACT
========================================================== */

.contact-section {
  background: var(--cream);
}

.contact-grid {
  display: grid;

  grid-template-columns:
    1fr 0.9fr;

  gap: 80px;

  align-items: center;
}

.contact-heading h2 {
  margin-bottom: 25px;
}

.contact-heading > p:last-child {
  max-width: 600px;

  font-size: 1.05rem;

  line-height: 1.85;
}

.contact-card {
  padding: 55px;

  text-align: center;

  background: var(--white);

  border-radius: var(--radius-lg);

  box-shadow: var(--shadow);
}

.contact-icon {
  width: 70px;
  height: 70px;

  margin:
    0 auto
    25px;

  display: grid;

  place-items: center;

  color: var(--navy-dark);
  background: var(--gold);

  border-radius: 20px;

  font-size: 1.8rem;

  font-weight: 900;
}

.contact-card > p {
  margin-bottom: 10px;
}

.email-link {
  display: block;

  color: var(--navy);

  font-size:
    clamp(1rem, 2vw, 1.3rem);

  font-weight: 800;

  overflow-wrap: anywhere;
}

.contact-button {
  margin-top: 30px;
}


/* ==========================================================
   FINAL CTA
========================================================== */

.final-cta {
  padding:
    100px 0;

  text-align: center;

  color: var(--white);

  background:
    linear-gradient(
      rgba(8, 24, 42, 0.88),
      rgba(8, 24, 42, 0.88)
    ),
    url("images/community.jpg")
    center / cover
    no-repeat;
}

.final-cta p {
  margin-bottom: 15px;

  color: var(--gold-light);

  font-weight: 800;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.final-cta h2 {
  max-width: 900px;

  margin:
    0 auto
    35px;

  color: var(--white);
}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
  padding:
    70px 0
    25px;

  color: var(--white);

  background: #06111f;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.3fr 0.7fr 1fr;

  gap: 50px;

  padding-bottom: 55px;
}

.footer-brand {
  margin-bottom: 15px;

  display: inline-block;

  color: var(--white);

  font-size: 1.3rem;

  font-weight: 850;
}

.footer-grid p {
  max-width: 380px;

  color:
    rgba(255,255,255,0.6);
}

.footer-links {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color:
    rgba(255,255,255,0.72);

  transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact span {
  margin-bottom: 12px;

  display: block;

  color: var(--gold);

  font-size: 0.75rem;

  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.footer-contact a {
  overflow-wrap: anywhere;
}

.footer-bottom {
  padding-top: 23px;

  display: flex;

  justify-content: space-between;

  gap: 20px;

  border-top:
    1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color:
    rgba(255,255,255,0.45);

  font-size: 0.8rem;
}


/* ==========================================================
   SCROLL REVEAL
========================================================== */

.reveal {
  opacity: 0;

  transform:
    translateY(35px);

  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0);
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 950px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;

    top: 78px;
    left: 0;

    width: 100%;

    padding: 25px;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 5px;

    background: var(--white);

    box-shadow:
      0 20px 40px rgba(0,0,0,0.08);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav > a {
    padding: 12px;
  }

  .main-nav .nav-button {
    margin-top: 10px;

    text-align: center;
  }


  .about-grid,
  .contact-grid,
  .get-involved-card,
  .impact-section {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 55px;
  }

  .about-image img {
    height: 520px;
  }

  .image-badge {
    right: 20px;
  }


  .impact-image {
    min-height: 500px;
  }

  .impact-content {
    padding: 80px 7%;
  }


  .get-involved-card {
    padding: 50px;

    gap: 45px;
  }


  .footer-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (max-width: 720px) {

  .section {
    padding: 80px 0;
  }

  .hero {
    min-height: 100vh;

    background-position: center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        rgba(5,18,33,0.82),
        rgba(5,18,33,0.92)
      );
  }

  .hero-content {
    padding:
      110px 0
      150px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-message p {
    gap: 10px 20px;

    font-size: 0.85rem;
  }


  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    padding: 32px 25px;
  }


  .photo-grid {
    grid-template-columns: 1fr;

    grid-template-rows: auto;
  }

  .photo-card,
  .photo-tall {
    height: 370px;

    grid-row: auto;
  }


  .get-involved-card {
    padding: 35px 23px;

    border-radius: 24px;
  }


  .contact-card {
    padding: 40px 20px;
  }


  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

}


@media (max-width: 480px) {

  .brand-text strong {
    font-size: 0.9rem;
  }

  .brand-text small {
    font-size: 0.67rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .about-image img {
    height: 420px;
  }

  .image-badge {
    position: relative;

    right: auto;
    bottom: auto;

    max-width: 100%;

    margin:
      -35px 18px
      0;

    z-index: 2;
  }

}