/* Plant People Collective — site styles
   Brand palette
   cream:   #F4EFE5
   ink:     #1A1D1A
   sage:    #5F7245
   moss:    #3F4F30
   stone:   #6B6F66
   line:    #DDD6C6
*/

:root {
  --cream: #F4EFE5;
  --paper: #FAF7F0;
  --white: #FFFFFF;
  --ink:   #1A1D1A;
  --sage:  #5F7245;
  --moss:  #3F4F30;
  --stone: #6B6F66;
  --line:  #DDD6C6;
  --shadow: 0 1px 2px rgba(26,29,26,0.04), 0 8px 24px rgba(26,29,26,0.06);

  --maxw: 1180px;
  --pad-x: clamp(28px, 6vw, 48px);

  --font-sans: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, a, span, li, .lead, .eyebrow, .where {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Grid/flex children must be allowed to shrink below their content width */
.grid > *,
.event-row > *,
.pillars > *,
.footer-inner > *,
.hero > * {
  min-width: 0;
}

/* Belt-and-suspenders: nothing should ever be wider than its container */
main img, main video, main iframe { max-width: 100%; height: auto; }
main { max-width: 100vw; overflow-x: hidden; }

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover { color: var(--sage); }

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

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin: 0 0 14px;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  font-weight: 600;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 500;
}
h1 .accent { color: var(--sage); font-style: italic; font-family: var(--font-serif); font-weight: 400; }

h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; font-weight: 500; }
h3 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 16px; color: var(--ink); }
p.lead { font-size: 19px; line-height: 1.55; color: var(--ink); max-width: 60ch; }
.muted { color: var(--stone); }

.divider { height: 1px; background: var(--line); margin: 64px 0; border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,239,229,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 24px;
}

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

.brand-logo {
  display: block;
  height: 110px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 980px) {
  .brand-logo { height: 88px; }
}

@media (max-width: 720px) {
  .brand-logo { height: 72px; }
}

nav.nav {
  display: flex;
  gap: 28px;
}
nav.nav a {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
nav.nav a.active,
nav.nav a:hover {
  border-bottom-color: var(--sage);
  color: var(--sage);
}

.nav-cta {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 160ms ease, color 160ms ease, border 160ms ease;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* hamburger for mobile */
.menu-btn { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero-copy h1 { margin-top: 12px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-image {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #ddd;
  box-shadow: var(--shadow);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: transform 120ms ease, background 160ms ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); background: var(--moss); border-color: var(--moss); color: var(--cream); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--sage); color: var(--sage); }

/* ---------- Card grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage); }
.card-media {
  aspect-ratio: 4/5;
  background: var(--line);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.card:hover .card-media img { transform: scale(1.04); }

.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}
.card-title { font-size: 18px; font-weight: 500; color: var(--ink); margin: 0; }
.card-sub { font-size: 14px; color: var(--stone); margin: 0; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.card-price { font-size: 16px; font-weight: 600; color: var(--ink); }
.card-cta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}

/* ---------- Events list ---------- */
.event-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.event-date {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 14px 10px;
  border-radius: 6px;
}
.event-date .m {
  display: block;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
}
.event-date .d { display: block; font-size: 28px; font-weight: 500; line-height: 1.1; margin-top: 4px; }
.event-meta h3 { margin: 0 0 4px; }
.event-meta .where { color: var(--stone); font-size: 14px; }

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
.form label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(95,114,69,0.15);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Pillars / feature grid ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}
.pillar h3 { margin: 0 0 8px; font-weight: 500; }
.pillar p { color: var(--stone); }

/* ---------- Banner / quote ---------- */
.quote {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  color: var(--moss);
  max-width: 800px;
  margin: 0 auto;
}
.quote-attrib {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 22px;
}

/* ---------- Strip ---------- */
.strip {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(48px, 6vw, 80px) 0;
}
.strip h2 { color: var(--cream); }
.strip p { color: rgba(244,239,229,0.78); }
.strip .btn {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
.strip .btn:hover { background: var(--sage); border-color: var(--sage); color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.footer-inner h4 {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-inner ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-inner a { color: var(--stone); font-size: 14px; }
.footer-inner a:hover { color: var(--sage); }
.footer-brand { max-width: 320px; }
.footer-brand img { width: 240px; max-width: 100%; height: auto; margin-bottom: 16px; display: block; }
.footer-brand p { color: var(--stone); font-size: 14px; }

.footer-bottom {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 24px var(--pad-x) 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav.nav, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .menu-open nav.nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 16px var(--pad-x);
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .menu-open .nav-cta {
    display: inline-flex;
    align-self: flex-start;
    margin: 8px var(--pad-x) 16px;
  }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .event-row { grid-template-columns: 80px 1fr; }
  .event-row .btn { grid-column: 2; justify-self: start; margin-top: 8px; }
  .footer-inner { grid-template-columns: 1fr; }
}
