/*
Theme Name: God's Green Acres
Theme URI: https://godsgreenacres.com
Author: God's Green Acres
Author URI: https://godsgreenacres.com
Description: Clean, classic theme for God's Green Acres Farm and Sanctuary — children's faith-and-creation ministry. Converted from the locked static site. Supports static front page + custom page templates.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: godsgreenacres
Tags: custom-menu, featured-images, translation-ready
*/

:root {
  --paper: #f7f3ea;
  --cream: #efe8d8;
  --ink: #2b2418;
  --ink-soft: #6b6354;
  --moss: #3d5638;
  --moss-deep: #2a3b28;
  --clay: #a65d3f;
  --clay-hover: #8b4e35;
  --line: #d9d0bd;
  --gold: #c4a035;
  --max: 72rem;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; outline: 1px solid rgb(43 36 24 / 0.1); outline-offset: -1px; }
a { color: var(--moss); text-underline-offset: 4px; }
a:hover { color: var(--moss-deep); }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 243 234 / 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
}
.brand img { height: auto; width: clamp(9.5rem, 26vw, 14rem); outline: none; }
.primary-nav {
  display: none; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.1rem; border-top: 1px solid var(--line); padding: 0.35rem 0;
}
.primary-nav a {
  padding: 0.5rem 0.85rem; color: var(--ink-soft); text-decoration: none;
  font-size: 0.92rem; border-radius: 6px;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] {
  color: var(--ink); background: var(--cream);
}
.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.nav-toggle {
  display: grid; place-items: center; background: none; border: 0;
  padding: 0.45rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 1.45rem; height: 1.45rem; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--cream); padding: 0.4rem 0 0.9rem; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
@media (min-width: 900px) {
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.7rem 1.2rem; font-size: 0.95rem; font-weight: 600;
  border-radius: 8px; border: 1px solid transparent; text-decoration: none;
  cursor: pointer; transition: 0.15s background, 0.15s color, 0.15s border-color;
}
.btn-clay { background: var(--clay); color: #fff; }
.btn-clay:hover { background: var(--clay-hover); color: #fff; }
.btn-outline {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-outline:hover { background: var(--cream); color: var(--ink); }
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1rem; }
.btn-cream-outline {
  border-color: rgb(247 243 234 / 0.4);
  background: rgb(43 36 24 / 0.2);
  color: var(--paper);
}
.btn-cream-outline:hover { background: rgb(43 36 24 / 0.4); color: var(--paper); }

/* Full-bleed hero — matches sandbox */
.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  color: var(--paper);
}
@media (min-width: 768px) { .hero { min-height: 86vh; } }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; outline: none;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(43 36 24 / 0.82), rgb(43 36 24 / 0.28) 45%, rgb(43 36 24 / 0.18));
}
.hero-content {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 78vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7rem 1.25rem 3.5rem;
}
@media (min-width: 768px) {
  .hero-content { min-height: 86vh; padding: 7rem 2rem 5rem; }
}
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 0.75rem;
}
.hero .eyebrow { color: rgb(247 243 234 / 0.8); }
.hero h1 {
  max-width: 40rem; color: var(--paper);
  font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.15; margin: 0;
}
.hero-line {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: rgb(247 243 234 / 0.92);
  line-height: 1.4;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Sections */
.section { padding: 4rem 0; }
.section-lg { padding: 5rem 0; }
.section-cream { background: var(--cream); border-block: 1px solid var(--line); }
.section-moss { background: var(--moss); color: var(--paper); border: 0; }
.section-moss h2, .section-moss h3 { color: var(--paper); }
.section-moss p { color: rgb(247 243 234 / 0.82); }
.grid-intro {
  display: grid; gap: 2rem;
}
@media (min-width: 800px) {
  .grid-intro { grid-template-columns: 1fr 1.15fr; gap: 2.5rem; }
}
.grid-intro h2 { font-size: clamp(2rem, 3.5vw, 2.9rem); margin: 0.4rem 0 0; }
.grid-intro .body { font-size: 1.12rem; color: var(--ink-soft); }
.grid-intro .body p + p { margin-top: 1rem; }

/* Work list — numbered like sandbox */
.work-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.work-head h2 { font-size: clamp(2rem, 3.5vw, 2.5rem); margin: 0.35rem 0 0; }
.work-list { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.work-list > li {
  display: grid; gap: 0.75rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) {
  .work-list > li {
    grid-template-columns: 5.5rem 1fr auto;
    align-items: start; gap: 1.25rem;
  }
}
.work-num { font-family: var(--font-display); font-size: 1.5rem; color: rgb(107 99 84 / 0.7); }
.work-kicker { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.work-list h3 { font-size: 1.45rem; margin: 0.2rem 0 0.4rem; }
.work-list p { margin: 0; color: var(--ink-soft); max-width: 36rem; }
.work-more { font-size: 0.9rem; align-self: center; }

/* Split */
.split {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
  .split.reverse > :first-child { order: 2; }
}
.split img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.avatars { display: flex; margin-top: 1.25rem; }
.avatars img {
  width: 4rem; height: 4rem; border-radius: 999px; object-fit: cover;
  margin-left: -0.75rem; outline: 2px solid var(--paper);
}
.avatars img:first-child { margin-left: 0; }

/* Characters */
.char-list { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 640px) {
  .char-list { grid-template-columns: 1fr 1fr; }
}
.char-item {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.15rem;
}
@media (min-width: 640px) {
  .char-item { grid-template-columns: 9rem 1fr; }
}
.char-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }
.char-role { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.char-item h3 { font-size: 1.75rem; margin: 0.2rem 0 0.5rem; }
.char-item p { margin: 0; color: var(--ink-soft); }

/* Work detail cards */
.work-detail {
  display: grid; gap: 1.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) {
  .work-detail { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .work-detail:nth-child(even) > :first-child { order: 2; }
}
.work-detail img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Forms */
.form { display: grid; gap: 0.85rem; max-width: 22rem; }
.form label { display: grid; gap: 0.3rem; font-size: 0.88rem; font-weight: 600; }
.form input, .form textarea {
  font: inherit; padding: 0.65rem 0.8rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.section-moss .form label { color: var(--paper); }
.section-moss .form input {
  border-color: rgb(247 243 234 / 0.2);
  background: var(--moss-deep);
  color: var(--paper);
}
.section-moss .form-note { color: rgb(247 243 234 / 0.7); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 2.5rem 0 2rem;
}
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
}
.footer-logo { max-width: 14rem; background: #fff; padding: 0.4rem; border-radius: 6px; outline: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; margin: 1rem 0; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--ink); }
.footer-meta {
  font-size: 0.85rem; color: var(--ink-soft);
  margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.notice {
  padding: 1rem 1.15rem; background: var(--cream);
  border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0;
  font-size: 0.95rem; color: var(--ink-soft);
}
.muted { color: var(--ink-soft); }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 38rem; }
.book-cover {
  max-width: 20rem;
  width: 100%;
}
.book-cover img,
.split .book-cover img {
  width: 100%;
  height: auto !important;
  max-height: none;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center top;
  box-shadow: 0 16px 48px rgb(43 36 24 / 0.18);
  outline: none;
}

@media (min-width: 800px) {
  .cta-band { grid-template-columns: 1fr 1fr !important; }
}

/* Photo-forward home */
.photo-band { padding: 0; line-height: 0; }
.photo-band img {
  width: 100%;
  max-height: 32rem;
  object-fit: cover;
  object-position: center;
  outline: none;
}
.char-grid-home {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .char-grid-home { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}
.char-card-home img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1rem;
  border-radius: 4px;
}
.char-card-home h3 {
  font-size: 1.6rem;
  margin: 0.25rem 0 0.5rem;
}
.char-card-home p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.work-photo-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .work-photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .work-photo-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.work-photo-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.work-photo-card:hover {
  box-shadow: 0 12px 32px rgb(43 36 24 / 0.1);
  transform: translateY(-2px);
  color: inherit;
}
.work-photo-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  outline: none;
}
.work-photo-card > div { padding: 1.1rem 1.2rem 1.3rem; }
.work-photo-card h3 {
  font-size: 1.25rem;
  margin: 0.2rem 0 0.4rem;
  color: var(--ink);
}
.work-photo-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 0.25rem;
}
.footer-social a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-social a:hover { color: var(--ink); }

/* Compact work cards on home */
.work-photo-grid--compact .work-photo-card img {
  aspect-ratio: 16/9;
  max-height: 9.5rem;
}
.work-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.5rem;
  color: var(--ink);
  line-height: 1.2;
}
.work-photo-card .work-kicker {
  font-size: 0.72rem;
}

/* Footer 3-column */
.footer-grid--3 {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .footer-grid--3 {
    grid-template-columns: 1.2fr 2fr;
    align-items: start;
  }
}
.footer-cols {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .footer-cols { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-col-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col-links a:hover { color: var(--ink); }
.footer-domains {
  display: inline-block;
  margin-left: 0.35rem;
}
.footer-domains a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-domains a:hover { color: var(--ink); }

.hero--about { min-height: 58vh; }
@media (min-width: 768px) {
  .hero--about { min-height: 64vh; }
}
.hero--about .hero-content {
  min-height: 58vh;
  padding-bottom: 3rem;
}
@media (min-width: 768px) {
  .hero--about .hero-content { min-height: 64vh; }
}
.hero--about h1 {
  color: #fff;
  max-width: 28rem;
}
.about-prose {
  max-width: 38rem;
}
.about-prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  margin-bottom: 0.85rem;
}
.about-prose p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.jello-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--moss) !important;
  line-height: 1.4;
}
.photo-band--sm img {
  max-height: 22rem;
}

.hero-content--verse {
  max-width: 48rem;
}
.hero-verse {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem) !important;
  line-height: 1.45 !important;
  font-weight: 500;
  max-width: 42rem !important;
  color: #fff !important;
}

.give-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 800px) {
  .give-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}
.give-points {
  margin: 1.25rem 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.give-points li { margin-bottom: 0.55rem; }
.give-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.6rem 1.75rem;
}
.give-form-card .form { max-width: none; }

.contact-grid {
  display: grid;
  gap: 2.75rem;
  align-items: start;
}
@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid > :first-child {
    grid-column: 1 / -1;
    max-width: 28rem;
  }
}
@media (min-width: 1000px) {
  .contact-grid {
    grid-template-columns: 0.9fr 1fr 1fr;
  }
  .contact-grid > :first-child {
    grid-column: auto;
    max-width: none;
  }
}

/* ============================================================
   Fluent Forms — match theme buttons & inputs site-wide
   ============================================================ */
.fluentform .ff-el-form-control,
.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="number"],
.fluentform input[type="tel"],
.fluentform input[type="url"],
.fluentform textarea,
.fluentform select,
.fluentform .ff-el-input--content input,
.fluentform .ff-el-input--content textarea,
.fluentform .ff-el-input--content select {
  font: inherit !important;
  padding: 0.7rem 0.9rem !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--ink) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 2px rgb(43 36 24 / 0.05) !important;
}

.fluentform .ff-el-form-control:focus,
.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus,
.fluentform .ff-el-input--content input:focus,
.fluentform .ff-el-input--content textarea:focus {
  outline: 2px solid var(--clay) !important;
  outline-offset: 1px !important;
  border-color: var(--clay) !important;
  box-shadow: 0 0 0 3px rgb(166 93 63 / 0.15) !important;
}

.fluentform .ff-el-input--label label,
.fluentform .ff-el-form-check-label,
.fluentform .ff-el-input--label {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}

.fluentform .ff-btn,
.fluentform .ff-btn-submit,
.fluentform button[type="submit"],
.ff-btn.ff-btn-submit,
.fluentform .ff_submit_btn_wrapper button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.7rem 1.2rem !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: var(--clay) !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: 0.15s background, 0.15s color, 0.15s border-color !important;
  text-decoration: none !important;
  min-width: auto !important;
  box-shadow: none !important;
}

.fluentform .ff-btn:hover,
.fluentform .ff-btn-submit:hover,
.fluentform button[type="submit"]:hover,
.ff-btn.ff-btn-submit:hover {
  background: var(--clay-hover) !important;
  color: #fff !important;
}

.fluentform .ff-el-group {
  margin-bottom: 0.85rem !important;
}

.fluentform .ff-t-container {
  gap: 0.75rem;
}

/* Context-specific cleanup */
.give-form-card .fluentform,
.contact-grid .fluentform,
.contact-grid .fluentform_wrapper_1,
.contact-grid .fluentform_wrapper_2 {
  max-width: none;
}

.give-form-card .ff-btn-submit,
.contact-grid .ff-btn-submit {
  width: auto !important;
  min-width: 10rem !important;
}

/* Shared form card — used on Give and Contact */
.give-form-card,
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem 1.6rem 1.75rem;
}

/* Extra force for Contact page forms sitting on paper background */
.contact-grid .fluentform .ff-el-form-control,
.contact-grid .fluentform input,
.contact-grid .fluentform textarea {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
}
