@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap');

/* =========================
   RESET + GLOBAL
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0; /* FIX: was 25p */
  overflow-x: hidden;
  font-family: "Libre Franklin", system-ui, -apple-system, sans-serif;
}

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

main {
  /* Space for fixed header */
  padding-top: 85px;
}

a {
  text-decoration: none;
}

/* =========================
   HEADER
========================= */
header {
  display: flex;
  width: 100%;
  color: #ffffff;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  padding: 18px 20px;
  height: auto; /* allow wrapping */
  font-family: "Libre Franklin";
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
    color: #141414;
  background-color: rgba(255, 255, 255, 0); /* fully transparent */
  backdrop-filter: none;

  transition:
    background-color 240ms ease,
    backdrop-filter 240ms ease,
    box-shadow 240ms ease;
}




header.scrolled,
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.4); /* 40% white */
  backdrop-filter: blur(8px); /* optional but very nice */
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

header a {
  color: inherit;
}

header ul {
  margin: 0;
  padding: 0;
  list-style: none;

  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

header li {
  margin: 0; /* override fixed margins for responsiveness */
}

.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cta-primary {
  width: 150px;
  max-width: 100%;
  border: none;
  background-color: #1E4596;
  border-radius: 35px;
  color: #ffffff;
  height: 35px;
  font-size: 15px;
  cursor: pointer;
}

.cta-secondary {
  width: 150px;
  max-width: 100%;
  border: #1E4596 2px solid;
  border-radius: 35px;
  color: #1E4596;
  height: 35px;
  background: #ffffff;
  font-size: 15px;
  cursor: pointer;
}

.logo {

    width: 65px;
}

/* =========================
   HERO
========================= */
#hero-section {
  min-height: 70vh;
  height: auto;
  align-content: center;
  padding: 70px 0 30px;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1)),
    url("../images/ConnectionBro.jpg");
  background-size: cover;
  background-position: center;
}

#hero-div {
  display: grid;
  grid-template-columns: 1fr; /* mobile default */
  gap: 20px;

  align-items: center;
  color: #ffffff;
  padding: 0 20px;
}

#hero-div h1 {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.1;
  margin: 0 0 12px 0;
}

#hero-div p {
  line-height: 1.6;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 600;
  margin: 0 0 18px 0;
}

#hero-img {
  width: 100%;
  padding: 28px;
  padding-left: 0; /* FIX: was none */
}

/* =========================
   MISSION
========================= */
#mission-section {
  height: auto;
  align-content: center;
  text-align: center;

  padding: 50px 20px;
  line-height: 1.8;
}

#mission-section h1 {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  margin: 0 0 14px 0;
}

#mission-section p {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
  margin: 0;
}

/* =========================
   CITIES SCROLLER
========================= */
#cities-home,
#cities-sessions {
  text-align: center;
  font-size: 26px;
  color: #d4d4d4;
  font-weight: 600;
  margin-left: 25px;
}

.scroller {
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.scroller_inner {
  display: flex;
  gap: 2rem;
  padding-block: 1.5rem;
  width: max-content;
  justify-content: space-evenly;
}

.scroller_inner li {
  font-size: clamp(42px, 8vw, 100px);
  list-style-type: none;
  font-weight: 600;
  color: #d4d4d4;
}

.scroller[data-animated="true"] .scroller_inner {
  animation: scroll linear infinite;
}

.scroller[data-speed="slow"] .scroller_inner {
  animation: scroll 40s linear infinite;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* =========================
   SESSION SECTION
========================= */
#session-section {
  display: block;
  margin: 20px;
  border-radius: 25px;
  padding: 30px 16px;
  text-align: center;
  height: auto;
  align-content: center;

  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
    url("../images/Next Session.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

#session-section h1 {
  font-size: clamp(22px, 3.2vw, 34px);
  margin: 12px 0;
}

#session-section p {
  margin: 10px 0;
}

#session-section img {
  margin: 18px auto;
  width: 44px;
  height: 44px;
}

#session-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

#session-cta .cta-primary,
#session-cta .cta-secondary {
  width: min(320px, 100%);
}

/* =========================
   WHAT WE DO
========================= */
#whatwedo-section {
  font-family: "Libre Franklin";
}

#whatwedo-title {
  text-align: center;
  padding: 10px 20px;
}

#whatwedo-title h1 {
  font-size: clamp(20px, 3vw, 34px);
  margin: 0;
}

#whatwedo-div {
  display: grid;
  grid-template-columns: 1fr; /* mobile default */
  gap: 24px;
  padding: 30px 20px;
  align-items: center;
}

#whatwedo-div > div h1 {
  font-size: clamp(20px, 2.8vw, 34px);
  margin: 0 0 10px 0;
}

#whatwedo-div > div p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  margin: 0 0 18px 0;
}

#action-items {
  display: grid;
  grid-template-columns: 1fr; /* mobile default */
  gap: 14px;
  width: 100%;
}

.action-items {
  font-size: clamp(16px, 2vw, 22px);
  margin-bottom: 15px; /* FIX: was missing px */
  padding: 14px 0;
  border-bottom: 1px solid #141414;
}

.action-items p {
  margin: 0 0 8px 0;
}

/* Your original borders work well in a 2-col grid,
   but look messy stacked. We'll re-enable them on tablet+ */
.border-right,
.border-bottom {
  border-right: none;
  border-bottom: none;
}

/* =========================
   HOW IT WORKS
========================= */
#howitworks-section {
  padding: 30px 20px;
}

#howitworks-section h1 {
  font-size: clamp(22px, 3vw, 36px);
  margin: 0 0 20px 0;
}

#howitworks-div {
  display: grid;
  grid-template-columns: 1fr; /* mobile default */
  gap: 18px;
}

#wearecard,
#wearenotcard {
  height: auto;
  min-height: 320px;
  border-radius: 15px;
  color: #ffffff;
  align-content: center;
  padding: 28px;
  background-size: cover;
  background-position: center;
}

#wearecard {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1)),
    url("../images/WeAreCard.jpg");
}

#wearenotcard {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1)),
    url("../images/NotCard.jpg");
  background-position: top;
}

#lookingforcard{

    background-image:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1)),
    url("../images/ConnectionBro.jpg");
  background-position: top;
}



#wearecard li,
#wearenotcard li {
  line-height: 1.6;
  font-size: clamp(16px, 2vw, 22px);
}

/* =========================
   PARTNERSHIP
========================= */
#partnership-section {
  margin: 20px;
  background: #d4d4d4;
  border-radius: 25px;

  padding: 50px 20px;
  height: auto;
  align-content: center;
  text-align: center;
  color: #141414;
}

#partnership-section h1 {
  font-size: clamp(22px, 3vw, 34px);
  margin: 0 0 16px 0;
}

#partnership-section p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.8;
}

/* =========================
   OTHER PAGES (SAFE DEFAULTS)
========================= */
#sessions-description,
#upcoming-title,
#resources-div {
  margin: 20px;
}

#upcoming-session {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

#resources-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* =========================
   FOOTER
========================= */
footer {
  display: flex;
  width: 100%;
  color: #141414;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  padding: 30px 20px;
  font-family: "Libre Franklin";
  height: auto;
  flex-wrap: wrap;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

footer li {
  margin: 0;
}

/* =========================
   TABLET BREAKPOINT (>= 768px)
========================= */
@media (min-width: 768px) {
  main {
    padding-top: 90px;
  }

  #hero-div {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 0 45px;
  }

  #whatwedo-div {
    grid-template-columns: 1.2fr 1.8fr;
  }

  #action-items {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  /* re-enable your borders for 2-col layout */
  .border-right {
    border-right: solid 1px black;
    border-bottom: solid 1px black;
  }

  .border-bottom {
    border-bottom: solid 1px black;
  }

  .action-items {
    border-bottom: none;
    padding: 0;
  }

  #howitworks-div {
    grid-template-columns: repeat(3, 1fr);
  }

  #partnership-section {
    padding: 60px 60px;
  }

  #upcoming-session {
    grid-template-columns: repeat(2, 1fr);
  }

  #resources-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================
   DESKTOP BREAKPOINT (>= 1100px)
========================= */
@media (min-width: 1100px) {
  #mission-section {
    padding: 80px 105px;
  }

  #partnership-section {
    padding: 70px 300px; /* your original desktop intent */
  }

  #upcoming-session {
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
  }

  #resources-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   MOBILE DRAWER (Hamburger)
========================= */

.site-header {
  /* keep your existing header styles, but ensure it's above overlay */
  z-index: 1000;
}

/* Hide mobile elements by default (desktop first) */
.nav-toggle,
.mobile-drawer,
.drawer-overlay {
  display: none;
}

/* Hamburger icon */
.nav-toggle {
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.hamburger {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}

/* Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
  z-index: 1100;
}

/* Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(86vw, 360px);
  background: #0f0f0f; /* change if you want light */
  color: #ffffff;

  transform: translateX(100%); /* hidden off-canvas to the right */
  transition: transform 280ms ease;
  z-index: 1200;

  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
}

.drawer-close {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
}

/* Drawer links */
.drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.drawer-list a {
  color: inherit;
  font-size: 18px;
  font-weight: 600;
}

/* Drawer CTA */
.drawer-cta {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.drawer-cta .cta-primary,
.drawer-cta .cta-secondary {
  width: 100%;
}

/* OPEN STATE */
.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.drawer-open .mobile-drawer {
  transform: translateX(0);
}

/* Prevent background scroll when drawer is open */
.no-scroll {
  overflow: hidden;
}

/* MOBILE BEHAVIOR */
@media (max-width: 900px) {
  .nav-desktop,
  .cta-desktop {
    display: none;
  }

  .nav-toggle,
  .drawer-overlay,
  .mobile-drawer {
    display: block;
  }
}
/* =========================
   RESPONSIVE MODAL
========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1400;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 1500;
}

.modal-card {
  width: min(720px, 100%);
  background: #ffffff;
  color: #141414;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-header h2 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #141414;
  padding: 8px;
  line-height: 1;
}

.modal-subtext {
  margin: 6px 0 16px 0;
  opacity: 0.8;
}

.modal-form {
  display: grid;
  gap: 12px;
}

.modal-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}

.modal-form input {
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  padding: 0 12px;
  font-size: 15px;
  outline: none;
}

.modal-form input:focus {
  border-color: rgba(30, 69, 150, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 69, 150, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form-actions .cta-primary,
.form-actions .cta-secondary {
  width: min(220px, 100%);
}

.form-status {
  margin: 6px 0 0 0;
  font-size: 14px;
  min-height: 18px;
}

/* Open state */
.modal-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

/* Tablet+ */
@media (min-width: 768px) {
  .modal-card {
    padding: 22px;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Partner modal extras */
.modal-form textarea {
  border-radius: 12px;
  border: 1px solid rgba(20, 20, 20, 0.18);
  padding: 10px 12px;
  font-size: 15px;
  outline: none;
  resize: vertical;
}

.modal-form textarea:focus {
  border-color: rgba(30, 69, 150, 0.55);
  box-shadow: 0 0 0 4px rgba(30, 69, 150, 0.12);
}

.checkbox-group {
  border: 1px solid rgba(20, 20, 20, 0.12);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.checkbox-group legend {
  font-weight: 700;
  font-size: 14px;
  padding: 0 6px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}
