/* ============================================================
   Guildford Farm — Design tokens
   Matched to the original Airo-built site: cream throughout,
   full-bleed photography, serif display type, rounded sans body,
   text-link CTAs on light backgrounds, solid buttons on colour blocks.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --moss: #5B6B4E;
  --moss-dark: #46543B;
  --moss-tint: #DCE3D2;
  --oatmeal: #F3ECDC;
  --oatmeal-step: #EAE2CD;
  --cream: #FAF6EC;
  --bark: #2E2A22;
  --bark-soft: #57503f;
  --line: rgba(46, 42, 34, 0.14);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Nunito', -apple-system, sans-serif;

  --max-width: 1180px;
  --reveal-duration: 2.4s;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--oatmeal);
  color: var(--bark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--moss-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--bark);
  margin: 0 0 0.5em;
  font-weight: 600;
  line-height: 1.15;
}

h1 { font-size: clamp(3.4rem, 7.8vw, 6rem); font-weight: 500; margin-bottom: 0.12em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--moss-dark);
  outline-offset: 3px;
}

/* ---------------- Header ---------------- */
.site-header {
  background: var(--oatmeal);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand img { height: 48px; width: auto; }

.header-right { display: flex; align-items: center; gap: 22px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bark-soft);
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--moss);
  color: var(--moss-dark);
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.social-row a {
  color: var(--bark-soft);
  display: inline-flex;
}
.social-row svg { width: 19px; height: 19px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--bark);
  border-radius: 3px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .main-nav ul {
    flex-direction: column;
    gap: 16px;
    padding: 18px 0 6px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
}

/* ---------------- Text-link CTA (light backgrounds) ---------------- */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--moss-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.link-cta svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.link-cta:hover svg { transform: translateX(3px); }

/* ---------------- Solid CTA (colour-block backgrounds) ---------------- */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--bark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 2px;
}
.btn-solid svg { width: 18px; height: 18px; }
.btn-solid:hover { background: #fff; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(250,246,236,0.7);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 2px;
}
.btn-outline svg { width: 18px; height: 18px; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------------- Padded split (contained image + text, not full-bleed) ---------------- */
.split-pad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0;
  min-width: 0;
}
.split-pad > * { min-width: 0; }
.split-pad.reverse .split-pad-media { order: 2; }
.split-pad-media img { width: 100%; height: auto; display: block; }
@media (max-width: 820px) {
  .split-pad { grid-template-columns: 1fr; gap: 34px; }
  .split-pad.reverse .split-pad-media { order: 0; }
}

/* ---------------- Plain centred quote (no image) ---------------- */
.quote-plain { text-align: center; padding: 60px 0; }
.quote-plain .tick {
  width: 1px; height: 40px;
  background: var(--line);
  margin: 0 auto 30px;
}
.quote-plain blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--bark);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.4;
}
.quote-plain .tick.bottom { margin: 30px auto 0; }

/* ---------------- Bordered feature grid (values / explore reuse) ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 48px;
}
.feature-cell .dash { width: 24px; height: 2px; background: var(--wheat); margin-bottom: 18px; }
.feature-cell h3 { margin-bottom: 10px; }
.feature-cell p { margin: 0; color: var(--bark-soft); }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------------- Squiggle divider ---------------- */
.squiggle {
  display: block;
  width: 240px;
  height: auto;
  margin: 26px auto;
  mix-blend-mode: multiply;
  opacity: 0.85;
}
.squiggle.left { margin-left: 0; }

/* ---------------- Full-bleed image sections ---------------- */
.bleed {
  width: 100%;
  display: block;
  overflow: hidden;
  position: relative;
}
.bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
/* Hero specifically: shift up further so the chimney isn't cropped,
   and warm the harsh blue sky tone toward the cream/gold palette. */
.bleed-overlay img {
  object-position: center 24%;
  filter: sepia(0.16) saturate(1.12) brightness(1.02) hue-rotate(-4deg);
}
.bleed-tall { height: 102vh; min-height: 624px; }
.bleed-quote-height { height: 85vh; min-height: 520px; }
.bleed .pos-low { object-position: center 60%; }
.bleed-mid { height: 60vh; min-height: 380px; }
.bleed-laneway { height: 120vh; min-height: 700px; margin-bottom: 20vh; }
.bleed-community { height: 78vh; min-height: 480px; }
.bleed-short { height: 44vh; min-height: 280px; }

/* Hero: full-bleed with overlaid text */
.bleed-overlay { position: relative; }
.bleed-overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(30,26,18,0.02) 30%, rgba(30,26,18,0.72) 100%);
  pointer-events: none;
}
.bleed-overlay-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 60px 40px 0;
}
.bleed-overlay-content .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.bleed-overlay-content h1,
.bleed-overlay-content h2 { color: #fff; }
.bleed-overlay-content p { color: rgba(255,255,255,0.92); max-width: 680px; font-size: 1.38rem; margin-bottom: 0.3em; }
.bleed-overlay-content p:last-child { margin-bottom: 24px; }

/* Quote overlaid centred on a full-bleed image */
.bleed-quote-content {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 40px 8vh;
}
.bleed-quote-content blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.28rem, 2.88vw, 2.08rem);
  color: #fff;
  text-align: center;
  max-width: 630px;
  margin: 0;
  line-height: 1.35;
}

/* ---------------- Sections ---------------- */
section { padding: 0; }
.section-pad { padding: 90px 0; }
.section-pad-tight { padding: 60px 0; }
.section-step { background: var(--oatmeal-step); }
.section-moss { background: var(--moss); }
.center { text-align: center; }

/* Post-hero copy block */
.hero-copy {
  padding: 70px 0 80px;
  text-align: center;
}
.hero-copy .lede {
  max-width: 624px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--bark-soft);
}
.hero-copy .closing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.04rem;
  color: var(--bark);
  margin-bottom: 34px;
}

/* ---------------- Explore the farm grid ---------------- */
.explore-heading { text-align: center; padding: 70px 0 0; }
.explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 50px;
}
.explore-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 48px;
  text-decoration: none;
  color: var(--bark);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  transition: background 0.2s ease;
}
.explore-cell:hover { background: rgba(91,107,78,0.06); }
.explore-cell h3 { margin-bottom: 8px; }
.explore-cell p { margin: 0; color: var(--bark-soft); }
.explore-cell svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 6px; color: var(--bark-soft); }

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

/* ---------------- Colour-block CTA section ---------------- */
.cta-block {
  padding: 108px 0;
  text-align: center;
  color: var(--cream);
}
.cta-block h2 { color: #fff; }
.cta-block p { color: rgba(250,246,236,0.9); max-width: 680px; margin-left: auto; margin-right: auto; font-size: 1.1rem; }

/* ---------------- Split layout (Living landscape) ---------------- */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 640px;
}
.split-feature .split-media { min-width: 0; height: 100%; }
.split-feature .split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-feature .split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  min-width: 0;
}
.split-feature.reverse { direction: rtl; }
.split-feature.reverse > * { direction: ltr; }

@media (max-width: 860px) {
  .split-feature { grid-template-columns: 1fr; min-height: 0; }
  .split-feature .split-media { height: 50vh; }
  .split-feature.reverse { direction: ltr; }
}

/* ---------------- Reveal (headings, subheadings, non-bleed images) ---------------- */
.reveal {
  transition: opacity var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1),
              transform var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-enabled .reveal {
  opacity: 0;
  transform: translateY(36px);
}
html.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
html.js-enabled .reveal-side {
  transform: translateX(48px);
}
html.js-enabled .reveal-side.is-visible {
  transform: translateX(0);
}

/* Hero overlay content load-in (page load, not scroll) */
.bleed-overlay-content .inner > * {
  transition: opacity var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1),
              transform var(--reveal-duration) cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-enabled .bleed-overlay-content .inner > * {
  opacity: 0;
  transform: translateY(26px);
}
html.js-enabled .bleed-overlay-content.is-visible .inner > * {
  opacity: 1;
  transform: translateY(0);
}
html.js-enabled .bleed-overlay-content .inner > *:nth-child(1) { transition-delay: 0.1s; }
html.js-enabled .bleed-overlay-content .inner > *:nth-child(2) { transition-delay: 0.35s; }
html.js-enabled .bleed-overlay-content .inner > *:nth-child(3) { transition-delay: 0.6s; }

/* ---------------- Values grid (Our Story) ---------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.value-card { border-top: 3px solid var(--moss); padding-top: 16px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--bark-soft); font-size: 0.95rem; margin: 0; }

/* ---------------- Field journal (Progress & Gallery) ---------------- */
.journal { margin-top: 40px; display: grid; gap: 50px; }
.journal-intro h3 { margin-bottom: 10px; }
.journal-intro .summary { color: var(--bark-soft); max-width: 680px; }
.journal-entry { display: grid; gap: 14px; }
.journal-date {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss-dark);
  display: inline-block;
}
.journal-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px; }
.journal-media-1 { max-width: 640px; }
.journal-media img, .journal-media video { width: 100%; height: 380px; object-fit: cover; display: block; }
.journal-entry .summary { color: var(--bark-soft); margin: 0; }
.journal-empty { color: var(--bark-soft); padding: 30px 0; }

/* ---------------- Get Involved list ---------------- */
.involve-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 4px; }
.involve-list li {
  display: flex; gap: 16px;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.involve-list li:last-child { border-bottom: 1px solid var(--line); }
.involve-list .tag {
  font-weight: 700; color: var(--moss-dark);
  white-space: nowrap; min-width: 160px;
}

/* ---------------- Forms ---------------- */
.form-card { max-width: 560px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--bark-soft); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px;
  background: var(--cream); color: var(--bark);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-status { font-size: 0.9rem; margin-top: 14px; min-height: 1.2em; }
.form-status[data-state="success"] { color: var(--moss-dark); }
.form-status[data-state="error"] { color: #9a4b3a; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; margin: 0 auto; justify-content: center; }
.inline-form input { flex: 1; min-width: 220px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--oatmeal); padding: 70px 0 34px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; min-width: 0; }
.footer-grid > * { min-width: 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } }
.footer-brand h2 { font-size: 1.5rem; margin-bottom: 14px; }
.footer-brand p { color: var(--bark-soft); max-width: 340px; }
.footer-email { display: flex; align-items: center; gap: 10px; color: var(--bark-soft); margin-top: 16px; }
.footer-email svg { width: 18px; height: 18px; }
.footer-heading {
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bark-soft); margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer ul a { text-decoration: none; color: var(--bark); font-family: var(--font-body); font-weight: 600; font-size: 1rem; }
.site-footer ul a:hover { text-decoration: underline; }
.footer-soon li { font-family: var(--font-body); font-weight: 600; font-style: italic; color: var(--bark-soft); }
.footer-social { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; color: var(--bark-soft); text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--bark-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-bottom .acknowledgement { max-width: 700px; }
