:root {
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --sage: #dfe9d9;
  --sage-2: #cbdcc6;
  --forest: #294e3a;
  --forest-dark: #183426;
  --ink: #1c2d24;
  --muted: #5d6c63;
  --gold: #d69b43;
  --rust: #aa6541;
  --line: rgba(28,45,36,.16);
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(24,52,38,.12);
  --radius: 26px;
  --max: 1180px;

  /*
   * FILE-BACKED BRAND ASSETS
   * Replace a file in GitHub under the same path/name to update the site
   * without rewriting the HTML.
   */
  --pattern-leaves: url("patterns/leaves-tile.png");
  --pattern-chickens: url("patterns/chickens-tile.png");
  --pattern-speckles: url("patterns/speckles-tile.png");

  /*
   * Pattern visibility is controlled in:
   * .pattern-leaves::before
   * .pattern-wood::before
   * .pattern-speckles::before
   *
   * Raise or lower each opacity value to make a tile stronger or fainter.
   */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, .brand-name {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -.035em;
  line-height: 1.05;
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 6.2vw, 5.7rem); margin-bottom: 1.05rem; }
h2 { font-size: clamp(2.2rem, 4.3vw, 3.75rem); margin-bottom: .8rem; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); margin-bottom: .55rem; }
p { margin-bottom: 1rem; }

.skip-link {
  position: fixed; top: 8px; left: 8px; transform: translateY(-150%);
  background: var(--forest-dark); color: white; padding: .7rem 1rem;
  border-radius: 8px; z-index: 9999;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.section { padding: clamp(3.1rem, 6vw, 5.25rem) 0; }
.section-kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 1rem; color: var(--forest); font-size: .78rem;
  font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.section-kicker::before {
  content: ""; width: 34px; height: 2px; background: var(--gold); border-radius: 2px;
}
.section-head { max-width: 760px; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .45rem .75rem; border: 1px solid rgba(41,78,58,.22);
  border-radius: 999px; color: var(--forest); background: rgba(255,255,255,.5);
  font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(214,155,67,.18); }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,243,233,.88); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(28,45,36,.08);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; min-width: max-content; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: transparent;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(41,78,58,.18);
}

/*
 * FILE-BACKED BRAND IDENTITY
 * Browser tab icon:    assets/logo.png
 * Header/footer name art: assets/headername.png (recolored in the footer)
 *
 * Replacing a file under the same name updates the branding without
 * another HTML change.
 */
.brand-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.brand-logo-fallback {
  display: none;
  width: 26px;
  height: 26px;
}

.brand-copy {
  display: grid;
  align-items: center;
  gap: .08rem;
  min-width: 0;
}

.header-name-image {
  display: block;
  width: auto;
  height: 72px;
  max-width: min(470px, 44vw);
  object-fit: contain;
  object-position: left center;
}

.footer-name-image {
  display: block;
  width: auto;
  height: 150px;
  max-width: min(290px, 70vw);
  object-fit: contain;
  object-position: left center;
}

.brand-name { font-size: 1.26rem; font-weight: 800; letter-spacing: -.025em; }
.brand-name-fallback { display: none; }

.header-brand {
  flex: 0 1 470px;
  min-width: 0;
}

.site-header .brand-copy {
  width: 100%;
}

.site-header .brand-sub {
  display: none;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .14rem;
}

footer .brand-mark {
  background: rgba(255,255,255,.08);
  box-shadow: none;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a:not(.button) {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  color: #34493e;
}

/*
 * HEADER REQUEST BUTTON
 * Keep the text white in every link state.
 */
.nav-links .button,
.nav-links .button:link,
.nav-links .button:visited,
.nav-links .button:hover,
.nav-links .button:active,
.nav-links .button:focus {
  color: #ffffff !important;
}
.nav-links a:not(.button):hover { color: var(--rust); }
.menu-button { display: none; border: 0; background: transparent; width: 46px; height: 46px; border-radius: 12px; }
.menu-button:hover { background: rgba(41,78,58,.08); }
.menu-button span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .2s; }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: .55rem;
  min-height: 48px; padding: .78rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--forest); background: var(--forest); color: var(--white);
  text-decoration: none; font-weight: 800; line-height: 1; box-shadow: 0 12px 25px rgba(41,78,58,.16);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(41,78,58,.22); background: var(--forest-dark); }
.button:disabled { cursor: wait; opacity: .68; transform: none; box-shadow: none; }
.button.secondary { color: var(--forest); background: transparent; box-shadow: none; }
.button.secondary:hover { background: rgba(41,78,58,.07); }
.button.light { color: var(--forest-dark); background: var(--paper); border-color: var(--paper); }
.button.small { min-height: 42px; padding: .65rem 1rem; font-size: .88rem; }
.button svg { width: 18px; height: 18px; }

.hero {
  position: relative; overflow: hidden; padding: clamp(3.2rem, 6vw, 5.4rem) 0 clamp(3.4rem, 6vw, 5.5rem);
  background:
    radial-gradient(circle at 88% 15%, rgba(214,155,67,.19), transparent 23rem),
    radial-gradient(circle at 4% 80%, rgba(203,220,198,.75), transparent 28rem),
    var(--cream);
}
.hero::after {
  content: ""; position: absolute; inset: auto -8% -160px 45%; height: 300px;
  background: var(--sage); border-radius: 50%; transform: rotate(-8deg); opacity: .6;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy { max-width: 700px; }
.hero-copy h1 span { color: var(--forest); }
.hero-lead { font-size: clamp(1.08rem, 2vw, 1.28rem); color: #455a4f; max-width: 640px; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.1rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: #4b5e54; font-size: .9rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-proof svg { width: 17px; height: 17px; color: var(--forest); }

.hero-art {
  position: relative;
  border-radius: 42px;
  background: #264b39;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

/*
 * HERO IMAGE
 * Replace assets/illustrations/farm1.webp with another image under the same
 * filename if you want to swap the artwork later.
 *
 * Adjust inset to control the image margins inside the rounded panel.
 */
.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
}
.art-note {
  position: absolute; left: 28px; top: 28px; z-index: 4; max-width: 220px;
  padding: 1rem 1.05rem; background: rgba(255,253,248,.94); border-radius: 18px;
  box-shadow: 0 16px 40px rgba(17,34,25,.18);
}
.art-note strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.18rem; margin-bottom: .2rem; }
.art-note span { color: var(--muted); font-size: .82rem; }
.art-tag {
  position: absolute; right: 24px; bottom: 24px; z-index: 4; color: var(--forest-dark);
  background: var(--gold); padding: .7rem .95rem; border-radius: 999px; font-weight: 900; font-size: .82rem;
  box-shadow: 0 14px 35px rgba(17,34,25,.22);
}

.trust-strip { position: relative; z-index: 5; margin-top: -30px; }
.trust-card {
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(28,45,36,.1); overflow: hidden;
}
.trust-item { padding: 1.35rem 1.55rem; display: flex; gap: .85rem; align-items: center; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: var(--sage); color: var(--forest); }
.trust-icon svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: .96rem; }
.trust-item span { color: var(--muted); font-size: .8rem; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card {
  position: relative; padding: 1.65rem; min-height: 285px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -65px; bottom: -70px; background: var(--sage); }
.service-card:nth-child(2)::after { background: #ecd9c9; }
.service-card:nth-child(3)::after { background: #ebe0b7; }
.service-number { color: var(--rust); font-weight: 900; letter-spacing: .1em; font-size: .76rem; margin-bottom: 2rem; }
.service-card p { color: var(--muted); }
.service-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--forest); font-weight: 850; text-decoration: none; margin-top: .8rem; }

/*
 * MEET THE ANIMALS PHOTO GALLERY
 *
 * File paths:
 * assets/photos/baby-goats.webp
 * assets/photos/piglets.webp
 * assets/photos/rabbit.webp
 *
 * Replace any file under the same name to update the gallery without
 * changing this HTML.
 */
.animals-gallery {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 10%, rgba(214,155,67,.15), transparent 22rem),
    linear-gradient(180deg, var(--paper), var(--cream));
}

.animals-gallery::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  left: -170px;
  bottom: -190px;
  border-radius: 50%;
  background: var(--sage);
  opacity: .58;
  pointer-events: none;
}

.animals-gallery .container {
  position: relative;
  z-index: 1;
}

.animal-photo-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
}

.animal-photo-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--sage);
  box-shadow: 0 18px 48px rgba(24,52,38,.11);
  isolation: isolate;
}

.animal-photo-card.goats { grid-column: 1; grid-row: 1; }
.animal-photo-card.piglets { grid-column: 1; grid-row: 2; }
.animal-photo-card.rabbit {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 456px;
}

.animal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.animal-photo-card:hover .animal-photo {
  transform: scale(1.025);
}

.animal-photo-card.goats .animal-photo { object-position: center 46%; }
.animal-photo-card.piglets .animal-photo { object-position: center center; }
.animal-photo-card.rabbit .animal-photo { object-position: center center; }

.animal-photo-card::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent, rgba(15,39,27,.82));
  pointer-events: none;
}

.animal-photo-caption {
  position: absolute;
  z-index: 2;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1rem;
  color: white;
}

.animal-photo-caption h3 {
  margin-bottom: .2rem;
  color: white;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.animal-photo-caption p {
  max-width: 540px;
  margin-bottom: 0;
  color: #e9f0eb;
  font-size: .93rem;
  line-height: 1.45;
}

.animals-gallery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-top: 1.5rem;
}

.animals-gallery-note {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.audience { background: var(--forest-dark); color: white; position: relative; overflow: hidden; }
.audience::before { content: ""; position: absolute; width: 480px; height: 480px; right: -170px; top: -230px; border-radius: 50%; border: 90px solid rgba(255,255,255,.035); }
.audience .section-kicker { color: #dcebdc; }
.audience .section-head p { color: #c5d1ca; }
.audience-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; position: relative; z-index: 1; }
.audience-card { padding: 1.7rem; border-radius: 22px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.055); }
.audience-card h3 { color: white; }
.audience-card p { color: #c8d5cd; }
.audience-card ul { padding-left: 1.15rem; margin: 1rem 0 0; color: #e7eee9; }
.audience-card li + li { margin-top: .35rem; }

.process-wrap { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.process-intro { position: sticky; top: 112px; }
.process-intro p { color: var(--muted); font-size: 1.05rem; }
.steps { display: grid; gap: .9rem; }
.step { display: grid; grid-template-columns: 58px 1fr; gap: .85rem; padding: 1.15rem; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.step-no { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: var(--sage); color: var(--forest); font-family: "Fraunces", Georgia, serif; font-size: 1.35rem; font-weight: 800; }
.step p { margin-bottom: 0; color: var(--muted); }

.about { background: var(--sage); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.portrait-wrap { position: relative; max-width: 410px; }
.portrait { width: 100%; aspect-ratio: .78; object-fit: cover; border-radius: 38px; box-shadow: 0 25px 70px rgba(24,52,38,.2); border: 8px solid rgba(255,255,255,.75); }
.portrait-badge { position: absolute; right: -18px; bottom: 38px; background: var(--paper); border-radius: 18px; padding: 1rem 1.15rem; box-shadow: 0 16px 40px rgba(24,52,38,.2); max-width: 180px; }
.portrait-badge strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: var(--forest); }
.portrait-badge span { color: var(--muted); font-size: .82rem; }
.about-copy p { color: #45594e; font-size: 1.04rem; }

/*
 * ABOUT CROSS POSITIONING
 * Adjust gap to move it closer to or farther from the title.
 * Adjust width/height to resize it.
 * Adjust translateX/translateY for fine positioning.
 */
.about-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.about-title-row h2 {
  margin-bottom: 0;
}

.about-cross {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: contain;
  transform: translateX(2px) translateY(-2px);
  filter: drop-shadow(0 7px 10px rgba(24,52,38,.10));
}
.about-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 1.5rem 0 1.8rem; }
.fact { display: flex; gap: .65rem; align-items: flex-start; padding: .85rem; border-radius: 14px; background: rgba(255,255,255,.45); }
.fact svg { width: 19px; flex: 0 0 auto; color: var(--forest); margin-top: .15rem; }
.fact span { font-size: .9rem; font-weight: 700; }

.community-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.community-main, .community-side { border-radius: 30px; padding: clamp(2rem, 5vw, 3.3rem); }
.community-main { background: #eadbc7; position: relative; overflow: hidden; }
.community-main::after { content: ""; position: absolute; width: 250px; height: 250px; border-radius: 50%; right: -100px; bottom: -120px; background: rgba(170,101,65,.16); }
.community-main p { color: #5f5146; max-width: 650px; }
.community-side { background: var(--paper); border: 1px solid var(--line); }
.community-list { display: grid; gap: .75rem; margin-top: 1.2rem; }
.community-list div { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.community-list svg { width: 20px; color: var(--rust); }

.curriculum { background: #f0e9d6; }
.curriculum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.product-preview { min-height: 350px; padding: 2rem; border-radius: 30px; position: relative; overflow: hidden; background: var(--forest); color: white; }
.product-preview::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; }
.packet-stack { position: absolute; left: 50%; bottom: 45px; transform: translateX(-50%) rotate(-3deg); width: min(72%, 340px); aspect-ratio: .76; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 2rem; box-shadow: -14px 16px 0 #d7c697, -28px 32px 0 #aa6541, 0 26px 55px rgba(0,0,0,.28); }
.packet-stack small { color: var(--rust); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.packet-stack h3 { margin-top: .5rem; font-size: 2rem; }
.packet-lines { display: grid; gap: .5rem; margin-top: 1.5rem; }
.packet-lines span { height: 7px; border-radius: 9px; background: #d8dfd9; }
.packet-lines span:nth-child(2) { width: 82%; }
.packet-lines span:nth-child(3) { width: 65%; }
.waitlist-card { padding: clamp(2rem, 5vw, 3.2rem); border-radius: 30px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.waitlist-card p { color: var(--muted); }

.form-stack { display: grid; gap: .85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
label { display: grid; gap: .35rem; font-size: .82rem; font-weight: 800; color: #34493e; }
input, select, textarea {
  width: 100%; border: 1px solid rgba(28,45,36,.22); border-radius: 13px;
  background: #fff; color: var(--ink); padding: .82rem .9rem; outline: 0;
  transition: border .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 4px rgba(41,78,58,.1); }
textarea { min-height: 120px; resize: vertical; }
.fine-print { color: var(--muted); font-size: .76rem; margin: .2rem 0 0; }

.booking { background: var(--paper); }
.booking-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }

.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.25rem;
}

.community-side h3 {
  margin-bottom: .35rem;
}

.community-side > p {
  color: var(--muted);
  margin-bottom: 1rem;
}
.booking-copy p { color: var(--muted); }
.booking-options { display: grid; gap: .75rem; margin-top: 1.5rem; }
.booking-option { display: flex; gap: .75rem; align-items: flex-start; }
.booking-option svg { width: 20px; color: var(--forest); flex: 0 0 auto; margin-top: .15rem; }
.booking-panel { background: var(--cream); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.3rem, 3vw, 2rem); box-shadow: 0 18px 50px rgba(28,45,36,.08); }
.tabs { display: flex; gap: .45rem; padding: .35rem; background: rgba(41,78,58,.08); border-radius: 14px; margin-bottom: 1.2rem; }
.tab { flex: 1; border: 0; border-radius: 10px; padding: .72rem .8rem; background: transparent; color: var(--muted); font-weight: 800; }
.tab.active { background: white; color: var(--forest); box-shadow: 0 5px 16px rgba(28,45,36,.1); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.calendar-placeholder { border: 1px dashed rgba(41,78,58,.35); border-radius: 18px; padding: 2rem; text-align: center; background: rgba(255,255,255,.5); }
.calendar-placeholder svg { width: 46px; margin: 0 auto 1rem; color: var(--forest); }
.calendar-placeholder p { color: var(--muted); }
.calendar-frame { width: 100%; min-height: 560px; border: 0; border-radius: 18px; background: white; }
.calendar-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1rem; }
.calendar-note { color: var(--muted); font-size: .86rem; margin: .85rem 0 0; }
.contact-inline { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin-top: 1rem; }
.contact-inline a { color: inherit; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-inline a:hover { color: var(--gold); }
.form-status { min-height: 1.35em; color: var(--muted); font-size: .84rem; margin: .2rem 0 0; }
.form-status.success { color: var(--forest); font-weight: 700; }
.form-status.error { color: #8b2e21; font-weight: 700; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.faq { background: var(--sage); }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
details { border-bottom: 1px solid rgba(28,45,36,.18); padding: 1.15rem 0; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; font-weight: 850; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--forest); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: #4f6157; padding-right: 2rem; margin: .8rem 0 0; }

.cta-band { padding: 0 0 clamp(4rem, 7vw, 6rem); background: var(--sage); }
.cta-box { background: var(--rust); color: white; border-radius: 32px; padding: clamp(2.2rem, 6vw, 4.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; box-shadow: var(--shadow); }
.cta-box h2 { max-width: 750px; margin-bottom: .7rem; }
.cta-box p { color: #f7ded2; margin-bottom: 0; }
.cta-box .button { flex: 0 0 auto; }

footer { background: var(--forest-dark); color: white; padding: 3.8rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 2rem; }
.footer-brand p { color: #b9c8bf; max-width: 480px; margin-top: 1rem; }
.footer-title { font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #acc0b4; margin-bottom: 1rem; }
.footer-links { display: grid; gap: .55rem; }
.footer-links a { color: #f2f6f3; text-decoration: none; }
.footer-links a:hover { color: #f2c979; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; color: #aebdb4; font-size: .8rem; }

.toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 2000; width: min(420px, calc(100% - 36px));
  padding: 1rem 1.1rem; border-radius: 16px; background: var(--forest-dark); color: white;
  box-shadow: 0 18px 50px rgba(0,0,0,.28); transform: translateY(140%); opacity: 0;
  transition: .3s ease; pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast strong { display: block; margin-bottom: .15rem; }
.hidden { display: none !important; }


/* Homegrown Learning file-backed patterns and illustrations */
.pattern-leaves,
.pattern-speckles,
.pattern-wood {
  position: relative;
  isolation: isolate;
}

.pattern-leaves::before,
.pattern-speckles::before,
.pattern-wood::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
  background-position: center top;
}

.pattern-leaves::before {
  background-image: var(--pattern-leaves);
  background-size: 300px 300px;
  opacity: .30;
}

/* The old class name stays in place for compatibility, but now uses the
   chicken tile stored in assets/patterns/chickens-tile.png. */
.pattern-wood::before {
  background-image: var(--pattern-chickens);
  background-size: 360px 360px;
  opacity: .30;
}

.pattern-speckles::before {
  background-image: var(--pattern-speckles);
  background-size: 165px 165px;
  opacity: .28;
}

.pattern-leaves > *,
.pattern-speckles > *,
.pattern-wood > * {
  position: relative;
  z-index: 1;
}

/* Program card illustrations */
.service-card {
  isolation: isolate;
}

.service-card::before {
  display: none;
}

.service-card::after {
  z-index: 0;
}

.service-card > :not(.brand-card-art) {
  position: relative;
  z-index: 2;
}

.brand-card-art {
  position: absolute;
  z-index: 1;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 9px 12px rgba(24,52,38,.12));
}

/*
 * PROGRAM ILLUSTRATION LOCATIONS
 * Change right/top/width/height here to reposition each picture.
 */
.card-art-school {
  right: 1.1rem;
  top: .95rem;
  width: 94px;
  height: 94px;
}

.card-art-church {
  right: 1.15rem;
  top: 1.05rem;
  width: 104px;
  height: 70px;
}

.card-art-family {
  right: 1rem;
  top: .85rem;
  width: 96px;
  height: 96px;
}

/*
 * OTHER ILLUSTRATION LOCATIONS
 * Audience leaves: .audience-card-art
 * Process-step art: .step-art
 * About-page rabbit: .about-rabbit
 *
 * The HTML src= path selects the image file.
 * The CSS right/left/top/bottom values select its location.
 */

/* Audience leaf illustrations */
.audience-card {
  position: relative;
  overflow: hidden;
  padding-right: 6.4rem;
}

.audience-card > :not(.audience-card-art) {
  position: relative;
  z-index: 2;
}

.audience-card-art {
  position: absolute;
  z-index: 1;
  right: .9rem;
  top: .9rem;
  width: 78px;
  height: 92px;
  object-fit: contain;
  opacity: .68;
  pointer-events: none;
  user-select: none;
}

/* Process illustrations */
.step {
  position: relative;
  overflow: hidden;
  padding-right: 5.8rem;
}

.step-art {
  position: absolute;
  right: .75rem;
  bottom: -.35rem;
  width: 78px;
  height: 78px;
  object-fit: contain;
  opacity: .28;
  pointer-events: none;
  user-select: none;
}

/* About and curriculum illustrations */
.about-rabbit {
  position: absolute;
  z-index: 3;
  left: -54px;
  bottom: -34px;
  width: 142px;
  height: 142px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 12px 18px rgba(24,52,38,.16));
}


/* File-backed card patterns */
.community-main {
  background-image:
    var(--pattern-speckles),
    linear-gradient(#eadbc7, #eadbc7);
  background-size: 165px 165px, auto;
  background-repeat: repeat, no-repeat;
}

.waitlist-card {
  background-image:
    var(--pattern-leaves),
    linear-gradient(var(--paper), var(--paper));
  background-size: 260px 260px, auto;
  background-position: 108% 110%, center;
  background-repeat: no-repeat;
}

.booking-panel {
  background-image:
    var(--pattern-speckles),
    linear-gradient(var(--cream), var(--cream));
  background-size: 165px 165px, auto;
}

.cta-box {
  position: relative;
  overflow: hidden;
}

.cta-box::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -60px;
  bottom: -90px;
  background-image: var(--pattern-leaves);
  background-size: 230px 230px;
  filter: brightness(0) invert(1);
  opacity: .12;
  transform: rotate(-12deg);
  pointer-events: none;
}

@media (max-width: 980px) {
  .programs-doodle { right: 1rem; top: 30px; opacity: .7; }
  .about-doodle, .community-doodle, .curriculum-doodle, .booking-doodle { opacity: .45; }
}
@media (max-width: 700px) {
  .section-doodle { display: none; }
  .pattern-leaves, .pattern-speckles, .pattern-wood {
    background-size: 150px 150px;
  }
}

@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 79px 0 auto 0; background: var(--cream); padding: 1.5rem 1rem 2rem; display: none; flex-direction: column; align-items: stretch; border-bottom: 1px solid var(--line); box-shadow: 0 25px 50px rgba(28,45,36,.12); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .55rem .25rem; }
  .menu-button { display: block; }
  .hero-grid, .about-grid, .booking-grid, .faq-grid, .process-wrap { grid-template-columns: 1fr; }
  .services-grid, .audience-grid { grid-template-columns: 1fr; }
  .animal-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(270px, 1fr) minmax(300px, 1fr);
  }
  .animal-photo-card.goats { grid-column: 1; grid-row: 1; }
  .animal-photo-card.piglets { grid-column: 2; grid-row: 1; }
  .animal-photo-card.rabbit {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 340px;
  }
  .service-card { min-height: auto; }
  .process-intro { position: static; }
  .community-grid, .curriculum-grid { grid-template-columns: 1fr; }
  .portrait-wrap { margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .container { width: min(calc(100% - 1.25rem), var(--max)); }
  .hero { padding-top: 3.6rem; }
  .hero-art { border-radius: 28px; }
  .hero-scene { object-position: center center; }
  .sun { width: 90px; height: 90px; right: 25px; top: 70px; }
  .art-note { left: 18px; top: 18px; max-width: 190px; }
  .art-tag { right: 16px; bottom: 16px; }
  .trust-card { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .field-row, .about-facts { grid-template-columns: 1fr; }
  .portrait-badge { right: 10px; bottom: 18px; }
  .cta-box { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .calendar-frame { min-height: 620px; }
  .brand-sub { display: none; }
  .animal-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .animal-photo-card.goats,
  .animal-photo-card.piglets,
  .animal-photo-card.rabbit {
    grid-column: 1;
    grid-row: auto;
    min-height: 310px;
  }
  .animal-photo-card.rabbit { min-height: 420px; }
  .animal-photo-caption { left: 1rem; right: 1rem; bottom: .9rem; }
  .animals-gallery-actions { align-items: flex-start; flex-direction: column; }
  .header-name-image { height: 50px; max-width: min(310px, 72vw); }
  .footer-name-image { height: 120px; max-width: 68vw; }
  .brand-card-art { opacity: .82; }
  .card-art-school { width: 76px; height: 76px; right: .7rem; top: .7rem; }
  .card-art-church { width: 84px; height: 56px; right: .75rem; top: .8rem; }
  .card-art-family { width: 76px; height: 76px; right: .65rem; top: .65rem; }
  .audience-card { padding-right: 1.7rem; }
  .audience-card-art { width: 62px; height: 72px; opacity: .24; }
  .step { padding-right: 1.45rem; }
  .step-art { width: 62px; height: 62px; opacity: .13; right: .35rem; }
  .about-rabbit { width: 105px; height: 105px; left: -12px; bottom: -26px; }
  .about-title-row { gap: .7rem; }
  .about-cross { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .animal-photo-card:hover .animal-photo { transform: none; }
}
  

/* Programs text contrast over the leaf pattern */
#programs .section-head p {
  color: #20362b;
  font-weight: 650;
  text-shadow: 0 1px 0 rgba(247,243,233,.96);
}

/* Hero photo carousel */
.hero-art {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: var(--forest-dark);
}

.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
}

.hero-carousel-viewport,
.hero-carousel-track,
.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-carousel-viewport {
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--forest-dark);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(13,34,24,.58));
  pointer-events: none;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-slide img {
  object-position: center center;
}

/*
 * Every carousel image is centered automatically.
 * object-fit: cover keeps the frame full while preserving the image ratio.
 * This also keeps tall images, such as the rabbit photo, from creating
 * empty space inside the fixed 4:3 frame.
 */

.hero-slide figcaption {
  position: absolute;
  z-index: 2;
  left: 26px;
  bottom: 24px;
  color: white;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,.48);
}

.carousel-arrow {
  position: absolute;
  z-index: 7;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--forest-dark);
  background: rgba(255,253,248,.9);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: white;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 19px;
  display: flex;
  gap: 7px;
  padding: .42rem .55rem;
  border-radius: 999px;
  background: rgba(24,52,38,.52);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}

.carousel-dot.active {
  background: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}

.hero-carousel .art-tag {
  right: 24px;
  bottom: 24px;
}

/* Footer logo */
.footer-logo-link {
  display: inline-flex;
  min-width: 0;
}

footer .footer-large-logo {
  width: 132px;
  height: 132px;
  border-radius: 36px;
  background: transparent;
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
}

@media (max-width: 700px) {
  .carousel-arrow {
    width: 40px;
    height: 40px;
  }

  .carousel-prev { left: 10px; }
  .carousel-next { right: 10px; }

  .hero-slide figcaption {
    left: 18px;
    bottom: 18px;
  }

  .carousel-dots {
    bottom: 15px;
  }

  footer .footer-large-logo {
    width: 112px;
    height: 112px;
    border-radius: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track {
    transition: none;
  }
}


.hero-slide.farm-illustration figcaption {
  display: none;
}

@media (max-width: 700px) {
  .hero-art {
    aspect-ratio: 4 / 3;
  }
}

/* Current page in the main navigation */
.nav-links a[aria-current="page"]:not(.button) { color: var(--rust); }

/* Testimonials carousel */
.quote-carousel { max-width: 860px; }
.quote-viewport { overflow: hidden; border-radius: var(--radius); }
.quote-track { display: flex; transition: transform .55s ease; }
.quote-slide { flex: 0 0 100%; min-width: 0; }
.testimonial {
  position: relative; margin: 0; padding: clamp(1.6rem, 4vw, 2.6rem);
  display: flex; flex-direction: column; gap: 1.25rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.testimonial .quote-mark { width: 44px; height: 33px; color: var(--gold); }
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial blockquote p { margin: 0; color: var(--ink); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; }
.testimonial figcaption { display: grid; gap: .15rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.testimonial figcaption strong { font-family: "Fraunces", Georgia, serif; color: var(--forest); font-size: 1.1rem; }
.testimonial figcaption span { color: var(--muted); font-size: .92rem; }
.quote-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.quote-controls .carousel-arrow {
  position: static; transform: none; border-color: var(--line); box-shadow: none;
}
.quote-controls .carousel-arrow:hover { transform: scale(1.06); }
.quote-dots { display: flex; gap: 8px; }
.quote-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: var(--sage-2); cursor: pointer; transition: width .25s ease, background .25s ease;
}
.quote-dots button.active { width: 26px; border-radius: 999px; background: var(--forest); }
.quote-carousel.single .quote-controls { display: none; }

/* Photo gallery (About page) */
.photo-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.photo-gallery figure { margin: 0; overflow: hidden; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.photo-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-gallery figcaption { padding: .8rem 1rem; color: var(--forest); font-weight: 700; font-size: .92rem; }
.hero-slide.ducklings img { object-position: center 40%; }
@media (max-width: 980px) { .photo-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .photo-gallery { gap: .65rem; } .photo-gallery figcaption { padding: .6rem .7rem; font-size: .84rem; } }

/* Footer wordmark (same artwork as the header, recolored for the dark footer) */
.footer-brand-art { display: inline-block; width: min(300px, 100%); margin-bottom: 1rem; }
.footer-brand-image { display: block; width: 100%; height: auto; filter: invert(1) sepia(.25); }

/* Closing call to action on the homepage */
.cta-band { background: var(--forest); color: var(--cream); }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(247,243,233,.82); max-width: 560px; margin-bottom: 0; }
.cta-band .section-kicker { color: var(--gold); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.cta-band .button { background: var(--gold); border-color: var(--gold); color: var(--forest-dark); }
.cta-band .button.secondary { background: transparent; border-color: rgba(247,243,233,.55); color: var(--paper); }
.cta-band .button.secondary:hover { background: rgba(247,243,233,.1); }

@media (prefers-reduced-motion: reduce) {
  .quote-track { transition: none; }
}
