/* LIVE-MARKER-ABC123 */
/* =========================
   Base / Reset
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  color: #333;
}

/* Layout helpers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =========================
   Header / Navigation
   ========================= */
.header {
  position: absolute; /* overlays hero */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 20px 0;
}

/* This targets your <div class="container nav"> */
.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative; /* anchor for the mobile dropdown */
  color: #fff; /* hamburger inherits this */
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand:visited {
  text-decoration: none;
}

.brand-logo {
  width: 340px;
  height: auto;
  display: block;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  margin-left: 0; /* use gap instead */
}

.site-nav a:hover {
  text-decoration: underline;
}

/* =========================
   Mobile Nav Toggle Button
   ========================= */
.nav-toggle {
  display: none; /* hidden on desktop */
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  line-height: 0;
  color: inherit; /* uses white from .container.nav */
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(0, 120, 255, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.nav-toggle-bar {
  display: block;
  width: 28px;
  height: 4px;           /* thicker */
  margin: 5px 0;
  background: #ffffff;   /* or try #333 if you want dark */
  border-radius: 2px;    /* soft edges */
}

/* Mobile behavior */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* hide nav by default on mobile */
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
  }

  /* show when JS adds .is-open */
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* IMPORTANT: links must be dark on white dropdown */
  .site-nav a {
    color: #333;
    font-weight: 500;
  }
}

/* =========================
   Hero
   ========================= */
.hero {
  height: 70vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
    url("../images/Vancouver-Harbour-1.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
  position: relative;
}

.hero h1 {
  font-weight: 300;
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: 0px;
}

.hero-caption {
  position: absolute;
  bottom: 40px;
  right: 60px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* =========================
   Our Activities
   ========================= */
.activities {
  padding: 90px 0 70px;
  background: #fff;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 44px;
  font-weight: 500;
  color: #566b46;
  letter-spacing: 0.2px;
}

.section-underline {
  width: 80px;
  height: 3px;
  background: #f2c230;
  margin: 18px auto 60px;
  border-radius: 99px;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  align-items: start;
  text-align: left;
}

.activity-card {
  display: block;
  text-decoration: none;
  color: #566b46;
}

.activity-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.activity-card p {
  margin-top: 18px;
  font-size: 18px;
  color: #566b46;
}

/* =========================
   Ideas
   ========================= */
.ideas {
  padding: 120px 0;
  text-align: center;
}

.ideas-title {
  font-size: 64px;
  font-weight: 500;
  color: #566b46;
  margin-bottom: 22px;
}

.ideas-text {
  color: #7b8a6b;
  font-size: 18px;
  line-height: 1.9;
  margin: 0 auto 42px;
  max-width: 560px;
}

.btn-yellow {
  display: inline-block;
  background: #f2c230;
  color: #566b46;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 4px;
  font-weight: 500;
}

.btn-yellow:hover {
  filter: brightness(0.98);
}

/* =========================
   Footer
   ========================= */
.footer {
  padding: 30px 0;
  font-size: 15px;
  color: #566b46;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.footer-left {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left a {
  text-decoration: none;
  color: #566b46;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-right {
  text-align: right;
  white-space: nowrap;
}

/* =========================
   Responsive
   ========================= */
/* ===== Responsive ===== */
@media (max-width: 900px) {

     .site-nav a {
    color: #333 !important;
  }
  .activity-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-title {
    font-size: 36px;
  }

  .ideas-title {
    font-size: 48px;
  }

  .activity-card img {
    height: 240px;
  }

  .hero-caption {
    right: 20px;
    bottom: 20px;
    font-size: 14px;
  }

  .footer-right {
    white-space: normal;
  }
}
/* ===== Mobile fixes: hero ===== */
@media (max-width: 600px) {
  .hero {
    height: auto;              /* don't force a huge hero on phones */
    min-height: 70vh;          /* still gives it presence */
    padding: 72px 16px 40px;   /* space for header + breathing room */
    background-position: center;
  }

  .hero-content,
  .hero-content > * {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 44px);  /* responsive font sizing */
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 12px 0;
    word-break: normal;
    overflow-wrap: anywhere;             /* prevents weird overflow */
  }

  /* If you have a hero subtitle/paragraph */
  .hero p {
    font-size: 16px;
    line-height: 1.45;
    max-width: 38ch;
  }
}
/* ===== History Prize page layout ===== */

/* Put header on top of hero (transparent) */
.header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
}

/* Make nav links readable over photo */
.header--overlay .site-nav a {
  color: #fff;
}

.header--overlay .site-nav a:hover {
  opacity: 0.85;
}

/* Hero banner image */
.hero--history {
  height: 320px;
  min-height: 280px;
  background-image: url("/images/New-York-Harbour-1.webp"); 
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optional: subtle dark overlay for text contrast */
.hero--history::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.hero--history .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero--history h1 {
  color: #fff;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400;
  margin: 0;
}

.hero--history .hero-caption {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 1;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
}

/* Heading below hero */
.history-intro {
  padding: 56px 0 28px;
  text-align: center;
}

.history-title {
  color: inherit;
  font-weight: 600; /* or whatever matches your link style */
  text-decoration: underline;
}

.history-intro h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
}

/* Centered pale green panel */
.history-box {
  padding: 28px 0 80px;
}

.history-panel {
  max-width: 760px;
  margin: 0 auto;
  background: #eaf4ee; /* pale green */
  padding: 48px 28px;
  text-align: center;
}

/* "Finalists and Winners" */
.history-panel h3 {
  margin: 0 0 28px;
  font-weight: 500;
  font-size: 35px;
}

.is-underlined {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Year + entries */
.history-year {
  margin: 26px 0 10px;
  font-size: 28px;
  font-weight: 400;
}

.history-entry {
  margin: 0 0 18px;
  line-height: 1.6;
}

.history-entry a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile tweaks */
@media (max-width: 900px) {
  .hero--history {
    height: 260px;
  }
  .history-panel {
    margin: 0 16px;
    padding: 36px 18px;
  }
  .hero--history .hero-caption {
    right: 14px;
    bottom: 12px;
  }
}

/* ===========================
   Supported Organizations
   =========================== */

.hero-supported {
  height: 320px;
}   

.orgs {
  padding: 4rem 0;
}

.org-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 0 auto 6rem;
}

.org-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

/* Text styling should inherit your site typography;
   these are gentle tweaks to match the screenshot look */
.org-copy h2 {
  margin: 0 0 1.25rem;
}

.org-copy p {
  margin: 0;
  line-height: 1.9;
  max-width: 38rem;
}

/* Mobile: stack image above text */
@media (max-width: 900px) {
  .org-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-bottom: 4rem;
  }

  .org-copy p {
    max-width: none;
  }
}

/* Team & Contacts Hero Override */
.hero-team {
  background: url("../images/San-Francisco-Harbour.jpg") center/cover no-repeat;
  height: 320px;
}