/* =========================================================
   Cumnor Hurst
   Main site stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap');

/* ---------- Base ---------- */

:root {
  --forest: #183d2c;
  --forest-dark: #102c20;
  --moss: #667b50;
  --sage: #aab99a;
  --cream: #f4f0e5;
  --paper: #faf8f1;
  --white: #ffffff;
  --ink: #202923;
  --muted: #667068;
  --line: #d9ddd3;

  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
          sans-serif;

  --max-width: 1180px;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}


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


a {
  color: inherit;
}


.container {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}


.section {
  padding: 100px 0;
}


/* ---------- Typography ---------- */

h1,
h2,
h3 {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  line-height: 1.05;
}


h1 {
  margin: 12px 0 22px;
  color: var(--white);
  font-size: clamp(3rem, 9vw, 8rem);
  letter-spacing: -0.045em;
}


h2 {
  margin: 12px 0 24px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.035em;
}


h3 {
  margin: 12px 0;
  font-size: 2rem;
}


p {
  margin: 0 0 1.2rem;
}


.eyebrow {
  margin: 0;
  color: #dbe7d6;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}


.eyebrow.dark {
  color: var(--moss);
}


/* ---------- Header ---------- */

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;

  color: var(--white);
}


.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}


.brand {
  display: flex;
  align-items: center;
  gap: 13px;

  color: var(--white);
  text-decoration: none;
}


.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;

  font-family: var(--serif);
  font-size: 0.9rem;
}


.brand strong,
.brand small {
  display: block;
}


.brand strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}


.brand small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}


.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}


.site-header nav a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  text-decoration: none;
}


.site-header nav a:hover {
  color: var(--white);
}


.menu-toggle {
  display: none;

  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 8px 13px;

  background: transparent;
  color: var(--white);
  cursor: pointer;
}


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

.hero {
  position: relative;
  display: flex;
  min-height: min(800px, 92vh);
  align-items: center;
  overflow: hidden;

  /*
     If you add this file:

         ~/images/hurst-hero.jpg

     it will automatically appear behind the gradient.
     The gradient remains as a fallback if the image is absent.
  */
  background-image:
    linear-gradient(
      90deg,
      rgba(12, 36, 25, 0.88) 0%,
      rgba(12, 36, 25, 0.62) 45%,
      rgba(12, 36, 25, 0.28) 100%
    ),
    url("/images/hurst-hero.jpg");

  background-position: center;
  background-size: cover;
  background-color: var(--forest);
}


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

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.15),
      transparent 35%,
      rgba(0, 0, 0, 0.2)
    );
}


.hero-content {
  position: relative;
  z-index: 2;

  padding-top: 100px;
  padding-bottom: 120px;
}


.hero-lede {
  max-width: 650px;
  margin-bottom: 34px;

  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.4;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


.hero-caption {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;

  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 48px;
  padding: 12px 21px;

  border: 1px solid transparent;
  border-radius: 3px;

  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;

  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}


.button:hover {
  transform: translateY(-2px);
}


.button.primary {
  background: var(--white);
  color: var(--forest);
}


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


.button.ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}


.button.ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}


.button.light {
  background: var(--white);
  color: var(--forest);
}


.button.light:hover {
  background: var(--cream);
}


/* ---------- Introduction ---------- */

.intro {
  background: var(--cream);
}


.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}


.intro h2 {
  max-width: 540px;
}


.intro-grid > div:last-child {
  max-width: 590px;
  padding-top: 7px;

  color: #4f5952;
  font-size: 1.05rem;
}


/* ---------- Cards ---------- */

.cards {
  background: var(--paper);
}


.section-heading {
  max-width: 700px;
  margin-bottom: 48px;
}


.section-heading h2 {
  margin-bottom: 14px;
}


.section-heading > p:last-child {
  color: var(--muted);
}


.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.card {
  display: flex;
  min-height: 330px;
  flex-direction: column;

  padding: 32px;

  border: 1px solid var(--line);
  background: var(--white);

  text-decoration: none;

  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}


.card:hover {
  border-color: var(--moss);
  box-shadow: 0 16px 40px rgba(24, 61, 44, 0.08);
  transform: translateY(-4px);
}


.card > span {
  color: var(--moss);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}


.card p {
  max-width: 350px;
  color: var(--muted);
}


.card b {
  margin-top: auto;
  color: var(--forest);
  font-size: 0.85rem;
}


/* ---------- Feature / management ---------- */

.feature {
  background: var(--forest);
  color: var(--white);
}


.feature-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 90px;
  align-items: center;
}


.feature h2 {
  max-width: 680px;
}


.feature-text {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}


.text-link {
  display: inline-block;
  margin-top: 12px;

  color: var(--white);
  font-weight: 700;
  text-decoration: none;

  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 3px;
}


.text-link:hover {
  border-color: var(--white);
}


.feature-note {
  padding: 35px;

  border: 1px solid rgba(255, 255, 255, 0.2);
}


.feature-note i {
  display: block;
  height: 40px;

  font-family: var(--serif);
  font-size: 4rem;
  font-style: normal;
  line-height: 1;
}


.feature-note p {
  margin: 15px 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.25;
}


.feature-note small {
  color: rgba(255, 255, 255, 0.6);
}


/* ---------- Volunteering ---------- */

.volunteer {
  background: var(--moss);
  color: var(--white);
}


.volunteer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}


.volunteer h2 {
  max-width: 550px;
}


.volunteer-grid > div:last-child {
  max-width: 560px;
}


.volunteer-grid > div:last-child p {
  color: rgba(255, 255, 255, 0.85);
}


/* ---------- Footer ---------- */

footer {
  padding: 65px 0 25px;

  background: var(--forest-dark);
  color: var(--white);
}


.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  padding-bottom: 50px;
}


.footer-brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  text-decoration: none;
}


.footer-grid p {
  max-width: 400px;
  margin-top: 10px;

  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}


.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.footer-grid nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  text-decoration: none;
}


.footer-grid nav a:hover {
  color: var(--white);
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;

  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);

  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}


/* ---------- Responsive ---------- */

@media (max-width: 800px) {

  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }


  .section {
    padding: 72px 0;
  }


  .menu-toggle {
    display: block;
  }


  .site-header nav {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 8px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(16, 44, 32, 0.97);
  }


  .site-header nav.open {
    display: flex;
  }


  .site-header nav a {
    padding: 12px 14px;
  }


  .hero {
    min-height: 720px;
  }


  .hero-content {
    padding-top: 150px;
  }


  .hero-caption {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }


  .intro-grid,
  .feature-grid,
  .volunteer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }


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


  .card {
    min-height: 270px;
  }


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


  .footer-grid nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }


  .footer-bottom {
    flex-direction: column;
    gap: 5px;
  }

}


@media (max-width: 480px) {

  h1 {
    font-size: 3rem;
  }

  .brand small {
    display: none;
  }

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

  .hero {
    min-height: 560px;
  }

  .hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .button {
    width: 100%;
  }

  .feature-note {
    padding: 25px;
  }

}

/* Placeholder pages */
.subpage-page {
    background: var(--cream);
    color: var(--forest);
}

.subpage-page main {
    min-height: 70vh;
}

.subpage-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 7rem 1.5rem;
}

.subpage-content h1 {
    color: var(--forest);
}

.subpage-content p {
    color: #405247;
    max-width: 620px;
}

.subpage-content .eyebrow {
    color: var(--moss);
}

.subpage-content a {
    color: var(--forest);
}

/* Placeholder page contrast */
.subpage-page {
    background: var(--cream);
    color: var(--forest);
}

.subpage-page .site-header {
    background: var(--cream);
    color: var(--forest);
}

.subpage-page .site-header a {
    color: var(--forest);
}

.subpage-page .site-header .brand-mark {
    color: #fff;
    background: var(--forest);
}

.subpage-page .site-header .menu-toggle {
    color: var(--forest);
}

.subpage-page main {
    min-height: 70vh;
}

.subpage-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 7rem 1.5rem;
}

.subpage-content h1 {
    color: var(--forest);
}

.subpage-content p {
    color: #405247;
    max-width: 620px;
}

.subpage-content .eyebrow {
    color: var(--moss);
}

.subpage-content a {
    color: var(--forest);
}



/* News feed */
.news-feed {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
}

.news-card {
  padding-bottom: 2rem;
  border-bottom: 1px solid #ddd;
}

.news-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
  line-height: 1.3;
}

.news-card h2 a {
  color: inherit;
  text-decoration: none;
}

.news-card h2 a:hover {
  text-decoration: underline;
}

.news-meta {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.news-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1rem 0;
}

.news-summary {
  line-height: 1.7;
  margin-bottom: 1rem;
}


#events-feed {
  display: grid;
  gap: 1.25rem;
}

.event-card {
  padding: 1.25rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.event-card h2 {
  margin: 0 0 0.5rem;
}

.event-date {
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.event-location {
  margin: 0 0 0.5rem;
}

.event-description {
  line-height: 1.6;
  white-space: pre-line;
  margin-bottom: 0;
}

.event-contributor {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
  margin: 1rem 0 0;
}
