/* -----------------------------------------
   Hines Park Conservancy — Updated Styles
   Palette tuned to match the HPC logo
   ----------------------------------------- */

:root {
  --hpc-green: #2f4f3a;     /* deep park green */
  --hpc-accent: #c89b6a;    /* warm trail tan */
  --hpc-cream: #f6f3ee;     /* soft cream background */
  --hpc-text: #333;
  --hpc-border: #e6eef5;
}

/* Prevent horizontal scroll and make sizing predictable */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* prevents side-scrolling caused by wide nav */
}

body {
  font-family: Arial, sans-serif;
  color: var(--hpc-text);
  line-height: 1.6;
  background: #fff;
}

/* -----------------------------------------
   Header / Nav (single row, centered group)
   ----------------------------------------- */

.site-header {
  width: 100%;
  background: var(--hpc-green);
  color: #fff;
  padding: 0.2rem 0; /* slimmer header */
}

/*
  Use full width for header-inner so it can "give" space to the nav.
  Then center the overall layout with a max-width container.
*/
.header-inner {
  max-width: 1100px;       /* slightly tighter than 1200 to reduce dead space */
  margin: 0 auto;
  padding: 0 1rem;         /* IMPORTANT: real edge protection so Donate never clips */
  display: flex;
  align-items: center;
  justify-content: space-between; /* desktop: logo left, donate right */
  gap: 1.25rem;
}

/* Logo */
.site-header .logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}

.logo img {
  height: 96px;  /* keep your preferred header height */
  width: auto;
  display: block;
  transform: translateY(10px); /* nudge down */
}

/*
  Nav should NOT take remaining space.
  It should size to content so the whole logo->donate group centers cleanly.
*/
.site-nav {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* UL stays one line */
.site-nav ul {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  white-space: nowrap;     /* single row, as requested */
}

/* Nav links */
.site-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.15rem 0.1rem;
  line-height: 1.1;
  font-size: 0.94rem;
  font-weight: 600;
}

/* Donate button */
.site-nav a.donate {
  background: var(--hpc-accent);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
  color: #fff;
}

/* Standalone Donate button (used for mobile + desktop) */
.donate--primary {
  background: var(--hpc-accent);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* Make sure Donate never shrinks weirdly */
.site-nav li:last-child {
  flex-shrink: 0;
}

/* Hamburger (VISIBLE by default) */
.nav-toggle {
  display: inline-flex;          /* changed from none */
  align-items: center;
  justify-content: center;
  width: 48px;                   /* guarantees you can see/tap it */
  height: 48px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Hide hamburger on desktop only */
@media (min-width: 901px) {
  .nav-toggle {
    display: none;
  }
  .donate--primary {
     margin-left: 0.25rem;
  }
}

/* Hamburger icon (always 3 clean bars) */
.nav-toggle__icon {
  width: 28px;
  height: 20px;                 /* total icon height */
  display: block;
  background:
    linear-gradient(#fff 0 0) top,
    linear-gradient(#fff 0 0) center,
    linear-gradient(#fff 0 0) bottom;
  background-size: 100% 3px;    /* bar thickness */
  background-repeat: no-repeat;
  border-radius: 2px;
}

/* -----------------------------
   Desktop header alignment (FIX Donate position)
----------------------------- */
@media (min-width: 901px) {

  /* Ensure desktop layout is: logo | nav | donate */
  .header-inner {
    justify-content: flex-start; /* not space-between */
  }

  .logo {
    order: 1;
  }

  .site-nav {
    order: 2;
    flex: 1 1 auto;            /* nav gets the middle space */
    display: flex;
    justify-content: center;   /* center the link row */
  }

  .header-actions {
    order: 3;
    margin-left: auto;
    flex: 0 0 auto;
   } 
   
  .donate--primary {
    order: 3;
    margin-left: auto;         /* FORCE donate to far right */
    flex: 0 0 auto;
  }

  /* Hide hamburger on desktop */
  .nav-toggle {
    display: none !important;
  }

  /* Spacing for desktop nav links */
  .site-nav ul {
    gap: 1rem;
  }
}

/* -----------------------------------------
   Mobile Header Layout (controls visibility correctly)
----------------------------------------- */

@media (max-width: 900px) {

  /* Top row: logo left, hamburger right */
  .header-inner {
  justify-content: flex-start; /* we control spacing manually */
  align-items: center;
  flex-wrap: wrap; /* still allows dropdown row */
}

/* Right-side actions: Donate + Hamburger stay together */
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Mobile layout: logo left, actions right, nav drops to next row */
@media (max-width: 900px) {
  .header-inner {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-nav {
    flex: 0 0 100%;
    width: 100%;
    order: 3; /* ensures nav row is below */
  }
}   
  .logo { 
    order: 1; 
    flex: 0 0 auto;
  }

  .logo img {
    height: 60px;
    transform: none;
  }

  .nav-toggle {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* force it to the far right */
    padding: 10px;
  }

  /* Nav container always exists, but the UL is what we show/hide */
  .site-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin-top: 0.75rem;
  }

  /* Hide the actual links by default on mobile */
  .site-nav ul {
    display: none;              /* KEY: prevents "desktop ribbon" on mobile */
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.75rem 0;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.25);
    white-space: normal;
  }

/* When JS adds is-open, show the menu */
  .site-nav.is-open ul {
    display: flex;
  }   
  .site-nav a {
    display: block;
    padding: 0.65rem 0;
    font-size: 1rem;
  }

  .site-nav a.donate {
    margin-top: 0.5rem;
  }

  /* Mobile: keep Donate visible in header (outside hamburger) */
  .donate--primary {
    order: 2;
    margin-left: auto;
  }

  /* Move hamburger to the far right */
  .nav-toggle {
    order: 3;
    margin-left: 0; 
  }   
}

/* -----------------------------------------
   Hero
   ----------------------------------------- */

.hero {
  position: relative;
  height: 42vh;               /* 21:9 cinematic feel */
  min-height: 360px;          /* prevents squashing on short screens */
  max-height: 520px;          /* prevents overgrowth on ultrawide monitors */

  background:
    linear-gradient(
      rgba(47, 79, 58, 0.35),
      rgba(47, 79, 58, 0.35)
    ),
    url('../images/hero-hines-lake.jpg') center / cover no-repeat;

  color: #fff;
  display: flex;
  align-items: center;        /* vertical centering */
  text-align: center;
  padding: 0 1rem;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
}

/* -----------------------------------------
   Mobile Hero Typography (stable, Safari-safe)
----------------------------------------- */

@media (max-width: 900px) {

  .hero {
    height: auto;
    min-height: 360px;
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2.05rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.45;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Primary CTA button (homepage) */
.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--hpc-accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

/* Secondary CTA (homepage) */
.cta-btn.secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

/* Hero button row */
.hero-actions {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

/* Common layout helpers */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 2.5rem 0;
}

/* Content sections */
.intro,
.projects-preview,
.content {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: auto;
}

/* Impact section (homepage) */
.impact {
  padding: 2.5rem 0;
  background: var(--hpc-cream);
}

.impact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}

.impact-item {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--hpc-border);
}

.impact-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Section hero banner — Protecting Our River */
.section-hero--river {
  background-image: url("../images/hines-river-21x9.jpg");
  background-size: cover;
  background-position: center;
  height: 320px; /* cinematic, matches your hero scale */
}

/* Projects layout (homepage) */
.projects-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 1rem;
}

.project-card {
  background: #f4f4f4;
  margin: 0;
  padding: 1rem;
  border-radius: 8px;
}

.section-cta {
  margin-top: 1rem;
}

.text-link {
  color: var(--hpc-green);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Cards (reusable, including events page) */
.card {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 1rem;
}

/* Card buttons: make text center + stop awkward wrapping */
.card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--cards {
  grid-template-columns: repeat(3, 1fr);
}

/* Events page helpers */
.page-hero {
  padding: 3rem 0;
  background: var(--hpc-cream);
}

.page-hero .lede {
  max-width: 750px;
}

/* Generic buttons (events page) */
.btn {
  display: inline-block;
  background: var(--hpc-accent);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--hpc-accent);
  color: var(--hpc-accent);
}

.btn--small {
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

.card-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--hpc-green);
  color: #fff;
  padding: 1.5rem 1rem;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  text-align: left;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

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

.socials a {
  margin-right: 0.75rem;
}

/* Responsive */
@media (max-width: 900px) {
  /* On smaller screens you can allow wrapping (optional) —
     but since you said NO second row, we keep it single row.
     If it ever becomes too tight on mobile, we should switch to a hamburger menu. */

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

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

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

  .footer-inner {
    text-align: center;
    justify-content: center;
  }
}

.intro-mission {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hpc-green);
  margin-bottom: 1.25rem;
}

/* Impact card “photo” placeholders */
.impact-item {
  overflow: hidden;
}

.impact-media {
  height: 140px;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  background: linear-gradient(135deg, rgba(47,79,58,0.35), rgba(200,155,106,0.35));
  position: relative;
}

/* Optional: give each one a slightly different vibe */
.impact-media--river {
  background-image: url("../images/hines-river-21x9.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.impact-media--trails {
  background:
    linear-gradient(135deg, rgba(47,79,58,0.25), rgba(200,155,106,0.25)),
    url("../images/hines-trails-21x9.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.impact-media--community {
  background:
    linear-gradient(135deg, rgba(47,79,58,0.25), rgba(200,155,106,0.25)),
    url("../images/hines-community-21x9.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* Optional subtle label — only on placeholders (not on real photos) */
.impact-media::after {
  content: "";
}

/* -----------------------------------------
   Featured Projects (image + tiles layout)
----------------------------------------- */

.projects-preview {
  padding: 3rem 1rem;
  background: #fff;
}

.projects-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

/* Left image panel */
.projects-image {
  border-radius: 14px;
  background:
    linear-gradient(
      rgba(47,79,58,0.25),
      rgba(47,79,58,0.25)
    ),
    url("../images/featured-projects-1.jpg");
  background-size: cover;
  background-position: center;
}

/* Right content column */
.projects-content h2 {
  margin-top: 0;
}

.projects-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.project-card {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 1.25rem;
  position: relative;
}

/* “2026 Calendar Coming Soon” label */
.project-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  .projects-inner {
    grid-template-columns: 1fr;
  }

  .projects-image {
    min-height: 240px;
  }
}
