/* =========================================================
   Wild Goose Farm — shared stylesheet
   Minimal CSS, no framework, no webfonts. Font: Times New Roman (built in on
   Windows and Mac; phones fall back to their own serif).
   ========================================================= */

:root {
  --cream:       #faf6ec;
  --cream-dark:  #f1ead9;
  --ink:         #2e2a22;
  --ink-soft:    #585044;
  --green:       #455a3a;
  --green-dark:  #32402a;
  --green-pale:  #e7ecdf;
  --rust:        #ad5a33;
  --rust-dark:   #8c4627;
  --line:        #ddd3bf;
  --max: 68rem;
  --radius: 6px;
  --shadow: 0 2px 10px rgba(46, 42, 34, 0.12);
  --font: "Times New Roman", Times, "Liberation Serif", "Noto Serif", serif;
  font-size: 14pt;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font);
  color: var(--ink); background: var(--cream); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--green-dark); line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--rust-dark); }
a:hover { color: var(--rust); }
ul, ol { padding-left: 1.3em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

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

.btn { display: inline-block; padding: 0.7em 1.4em; border-radius: var(--radius); background: var(--green); color: #fff;
  text-decoration: none; font-weight: 600; border: 2px solid var(--green); transition: background 0.15s ease, color 0.15s ease; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--green-dark); border: 2px solid var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: #fff; }
.btn-rust { background: var(--rust); border-color: var(--rust); }
.btn-rust:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.2rem; }

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

.site-header { background: var(--green-dark); color: var(--cream); position: relative; z-index: 10; }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0.9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--cream); }
.brand .name { font-family: var(--font); font-size: 1.45rem; font-weight: 700; letter-spacing: 0.01em; }
.brand .tagline { font-size: 0.8rem; color: #c9d2bd; font-style: italic; }
nav.main-nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
nav.main-nav a { color: var(--cream); text-decoration: none; font-size: 0.97rem; font-weight: 600;
  padding: 0.3em 0.1em; border-bottom: 2px solid transparent; }
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { border-bottom-color: var(--rust); color: #fff; }
.nav-toggle-label { display: none; cursor: pointer; font-size: 1.6rem; color: var(--cream); line-height: 1; user-select: none; }
#nav-toggle { display: none; }

@media (max-width: 980px) {
  /* Visually hidden but still focusable, so the menu can be opened from the keyboard */
  #nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  #nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--cream); outline-offset: 4px; }
  nav.main-nav { display: none; width: 100%; order: 3; }
  nav.main-nav ul { flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,0.15); margin-top: 0.8rem; }
  nav.main-nav a { display: block; padding: 0.8em 0.2em; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .nav-toggle-label { display: block; }
  .header-inner { flex-wrap: wrap; }
  #nav-toggle:checked ~ nav.main-nav { display: block; }
}

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

.hero { position: relative; background-size: cover; background-position: center; color: #fff; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,28,20,0.35), rgba(30,28,20,0.65)); }
.hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 5rem 1.25rem; }
.hero.hero-sm .hero-inner { padding: 3rem 1.25rem; }
.hero h1 { color: #fff; margin-bottom: 0.3em; }
.hero p.lead { max-width: 40em; font-size: 1.08rem; }

/* ---------- Sections ---------- */

.section { padding: 3.2rem 0; }
.section-alt { background: var(--cream-dark); }
.section-green { background: var(--green-pale); }
.section-header { max-width: 42em; margin-bottom: 1.8rem; }
.section-header p { color: var(--ink-soft); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

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

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card img { height: 170px; width: 100%; object-fit: cover; }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-body h3 { margin-bottom: 0.4em; }
.card-body p:last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */

.gallery { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.gallery img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius); }
.gallery figure { margin: 0; }
.gallery img.crop-top { object-position: top; }
.gallery img.crop-bottom { object-position: bottom; }
.gallery img.crop-upper { object-position: 50% 15%; }
.gallery.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 720px) { .gallery.five { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Highlight banner (course callout) ---------- */

.banner { background: var(--rust); color: #fff; border-radius: var(--radius); padding: 1.8rem 2rem;
  display: flex; flex-wrap: wrap; gap: 1.3rem; align-items: center; justify-content: space-between; }
.banner h2, .banner h3 { color: #fff; margin-bottom: 0.3em; }
.banner p { margin-bottom: 0; color: #fbe9dd; }
.banner .btn { background: #fff; color: var(--rust-dark); border-color: #fff; }
.banner .btn:hover { background: var(--cream); }

/* ---------- Two-column layout ---------- */

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.2rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.reverse .text { order: 2; }
.split.reverse .media { order: 1; }
.media img + img { margin-top: 1.2rem; }

@media (max-width: 720px) {
  .split, .split.reverse .text, .split.reverse .media { order: unset; }
  .split { grid-template-columns: 1fr; }
}

/* ---------- Lists with icons (text bullets, no images) ---------- */

.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: 0.6em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Tables (schedule) ---------- */

table.schedule { width: 100%; border-collapse: collapse; background: #fff;
  box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
table.schedule th, table.schedule td { text-align: left; padding: 0.8em 1em; border-bottom: 1px solid var(--line); }
table.schedule th { background: var(--green-pale); color: var(--green-dark); }
table.schedule tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */

form.stack { max-width: 40em; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35em; color: var(--green-dark); }
.hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3em; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row .field { flex: 1 1 200px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; padding: 0.65em 0.75em; border: 1px solid #c9bfa6; border-radius: var(--radius);
  background: #fff; font: inherit; color: var(--ink);
}
textarea { resize: vertical; min-height: 7em; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 0.3rem; margin: 0 0 1.1rem; }
legend { font-weight: 600; color: var(--green-dark); padding: 0 0.4em; }
.radio-option, .checkbox-option { display: flex; align-items: flex-start; gap: 0.5em; margin-bottom: 0.6em; font-weight: normal; }
.radio-option input, .checkbox-option input { width: auto; margin-top: 0.3em; }

.note-box { background: var(--green-pale); border-left: 4px solid var(--green); padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0; }
.note-box p:last-child { margin-bottom: 0; }
.note-box.center { text-align: center; max-width: 42em; margin: 2rem auto 0; border: 2px solid var(--green); border-radius: var(--radius); }

/* ---------- Donate cards ---------- */

.donate-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.donate-card h3 { font-size: 1.5rem; }

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

.site-footer { background: var(--green-dark); color: #cfd6c4; margin-top: 3rem; text-align: center; padding: 2rem 1.25rem 1.5rem; }
.site-footer p { margin: 0 0 0.4em; }
.footer-bottom { font-size: 0.82rem; color: #9fab8f; }

/* ---------- Misc ---------- */

.badge { display: inline-block; background: var(--green-pale); color: var(--green-dark); border-radius: 999px; padding: 0.25em 0.9em;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.8em; }

.testimonial { border-left: 4px solid var(--rust); background: #fff; padding: 1.3rem 1.6rem; border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow); font-style: italic; color: var(--ink-soft); max-width: 42em; }
.testimonial cite { display: block; margin-top: 0.8em; font-style: normal; font-weight: 700; color: var(--green-dark); }

.form-status { margin-top: 1rem; padding: 0.8em 1em; border-radius: var(--radius);
  background: #fbe9dd; color: var(--rust-dark); border-left: 4px solid var(--rust); }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
button.btn:disabled { opacity: 0.65; cursor: wait; }

/* Spam trap: hidden from people, filled in by bots, rejected by Formspree */
.gotcha { position: absolute; left: -9999px; }

.placeholder-note { background: #fff3e0; border: 1px dashed #d79a4d; color: #7a5518;
  padding: 0.8em 1em; border-radius: var(--radius); font-size: 0.85rem; margin: 1rem 0; }

/* ---------- Story block (homepage goose) ---------- */

.story { max-width: 40em; margin: 0 auto; text-align: center; }
.story p { font-family: var(--font); font-size: 1.15rem; line-height: 1.7; color: var(--ink); }

/* ---------- Permaculture ethics ---------- */

.ethics { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ethics li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.3rem 1rem; text-align: center;
  font-family: var(--font); font-size: 1.35rem; color: var(--green-dark); }

blockquote.testimonial { margin: 1.5rem 0 0; }
.story-split .story { text-align: left; margin: 0; }
.story-split .media { max-width: 380px; justify-self: center; }
/* Goose photo: trim the bottom ~6%, keeping the mountain ridge in view */
.story-split .media img { aspect-ratio: 1087 / 1320; object-fit: cover; object-position: top; }

/* ---------- Design plan figure ---------- */

.plan-side { margin: 0; }
.plan-side img { width: 100%; }
.plan-side figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.6rem; }


/* Ethics cards stacked in a column, each with an icon */
.ethics.stacked { grid-template-columns: 1fr; }
.ethics.stacked li { display: flex; align-items: center; gap: 1rem; text-align: left; padding: 1rem 1.3rem; }
.ethics.stacked svg { width: 64px; height: 64px; flex: none; color: var(--green-dark); }

/* Small line drawing beside text: show at natural size, no photo frame */
.split img.drawing { box-shadow: none; margin: 0 auto; }
.split img.small { margin-left: auto; margin-right: auto; }
.split img.narrow { max-width: 320px; margin-left: auto; margin-right: auto; }
