:root {
  --green: #234d2c;
  --green-2: #356b3d;
  --sage: #dfead5;
  --cream: #fffaf0;
  --gold: #c99a4a;
  --brown: #6a3428;
  --ink: #263129;
  --white: #ffffff;
  --shadow: 0 16px 45px rgba(35, 77, 44, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.topbar {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 9px 16px;
  font: 600 14px/1.4 Arial, sans-serif;
  letter-spacing: .2px;
}

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,250,240,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35,77,44,.10);
}
.nav-inner {
  max-width: 1180px;
  margin: auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green);
  font-weight: 700;
  font-size: 22px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sage);
  font-size: 23px;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font: 600 14px/1 Arial, sans-serif;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--green-2); }
.nav-links a.active { color: var(--green); border-bottom: 2px solid var(--gold); padding-bottom: 4px; }
.nav-donate {
  background: var(--green);
  color: white !important;
  padding: 12px 18px;
  border-radius: 999px;
}
.nav-donate:hover { background: var(--green-2); }

.hero {
  min-height: 640px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,250,240,.98) 0%, rgba(255,250,240,.92) 42%, rgba(255,250,240,.30) 74%, rgba(255,250,240,.05) 100%),
    var(--hero-img, none) center 30% / cover no-repeat;
}
.hero-inner {
  max-width: 1180px;
  margin: auto;
  padding: 90px 22px 100px;
}
.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--green);
  font: 700 13px/1 Arial, sans-serif;
  letter-spacing: .7px;
  text-transform: uppercase;
}
h1 {
  max-width: 700px;
  margin: 22px 0 14px;
  color: var(--green);
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -1.5px;
}
.hero-tagline {
  max-width: 620px;
  margin: 0 0 22px;
  color: var(--brown);
  font-size: clamp(22px, 2.6vw, 32px);
  font-style: italic;
  line-height: 1.25;
}
.hero-copy {
  max-width: 580px;
  font-size: 19px;
  margin-bottom: 28px;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font: 700 15px/1 Arial, sans-serif;
  transition: transform .2s ease, box-shadow .2s ease;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,.12); }
.btn-primary { background: var(--green); color: white; }
.btn-secondary { background: white; color: var(--green); border: 1px solid rgba(35,77,44,.18); }
.btn-gold { background: var(--gold); color: #fff; }

.page-header {
  padding: 64px 22px 20px;
  text-align: center;
}
.page-header .section-inner { max-width: 760px; margin: auto; }

section { padding: 82px 22px; }
.section-inner { max-width: 1180px; margin: auto; }
.section-kicker {
  color: var(--green-2);
  font: 700 13px/1 Arial, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
h2 {
  margin: 0 0 14px;
  color: var(--green);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
}
.section-lead {
  max-width: 720px;
  font-size: 18px;
  margin: 0 0 35px;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.about-copy {
  background: white;
  padding: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-copy p { font-size: 18px; }
.quote {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 5px solid var(--gold);
  background: var(--cream);
  color: var(--brown);
  font-size: 22px;
  font-style: italic;
}
.flyer-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: white;
}
.flyer-card img { width: 100%; height: 100%; object-fit: cover; }

.support {
  background: linear-gradient(180deg, #edf4e8 0%, #f9f5e9 100%);
}
.support-head {
  text-align: center;
  max-width: 760px;
  margin: auto auto 38px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(35,77,44,.08);
}
.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--sage);
  font-size: 28px;
  margin-bottom: 18px;
}
.amount {
  color: var(--brown);
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 4px;
}
.card h3 { color: var(--green); font-size: 23px; margin: 0 0 8px; }
.card p { margin: 0; }

.cta {
  padding-top: 60px;
  padding-bottom: 60px;
}
.cta-box {
  max-width: 1180px;
  margin: auto;
  background: var(--green);
  color: white;
  border-radius: 30px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 35px;
  align-items: center;
  box-shadow: 0 25px 55px rgba(35,77,44,.22);
}
.cta-box h2 { color: white; }
.cta-box p { font-size: 18px; max-width: 680px; }
.cta-box.stacked { grid-template-columns: 1fr; text-align: center; }
.cta-box.stacked .buttons { justify-content: center; }
.cta-box.stacked p { margin-left: auto; margin-right: auto; }
.contact-panel {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  padding: 25px;
}
.contact-panel strong { display: block; font: 700 13px/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .8px; opacity: .78; margin-bottom: 5px; }
.contact-panel a { font-size: 23px; font-weight: 700; text-decoration: none; }
.contact-panel .small { font-size: 15px; margin-top: 8px; opacity: .85; }

.visit {
  background: white;
}
.visit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.visit-card {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid rgba(35,77,44,.08);
}
.visit-card h3 { color: var(--green); font-size: 25px; margin-top: 0; }
.visit-card p { font-size: 17px; }

/* Donation embed */
.donate-embed {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  max-width: 640px;
  margin: 0 auto;
}
.donate-embed-frame-wrap {
  position: relative;
  overflow: hidden;
  height: 1200px;
  width: 100%;
  border-radius: 16px;
}
.donate-embed-frame-wrap iframe {
  position: absolute;
  border: 0;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100%;
  height: 100%;
}
.donate-fallback {
  text-align: center;
  margin-top: 14px;
  font: 600 14px/1.4 Arial, sans-serif;
}

/* Gallery (Meet Our Happy Cows) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid rgba(35,77,44,.08);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.gallery-caption {
  padding: 16px 18px 20px;
  font-size: 16px;
  color: var(--brown);
  font-style: italic;
}

/* Teaser grid on homepage */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}
.teaser-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.teaser-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

footer {
  background: #17351f;
  color: rgba(255,255,255,.82);
  padding: 45px 22px 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr .8fr .95fr .95fr .95fr;
  gap: 28px;
}
footer h3 { color: white; margin-top: 0; }
footer a { text-decoration: none; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
.footer-bottom {
  max-width: 1180px;
  margin: 35px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  font: 13px/1.5 Arial, sans-serif;
}

@media (max-width: 850px) {
  .nav-links a:not(.nav-donate) { display: none; }
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255,250,240,.96) 0%, rgba(255,250,240,.88) 48%, rgba(255,250,240,.15) 100%),
      var(--hero-img, none) center 20% / cover no-repeat;
  }
  .hero-inner { padding: 65px 22px 60px; }
  .about-grid, .cta-box, .footer-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
  .about-copy { padding: 30px; }
  .cta-box { padding: 36px 28px; }
  .donate-embed-frame-wrap { height: 1000px; }
}

@media (max-width: 520px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; }
  h1 { font-size: 44px; }
  section { padding: 56px 18px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .donate-embed-frame-wrap { height: 900px; }
}

/* ---- Visit section (ranch address & hours) ---- */
.visit-compact { padding-top: 56px; padding-bottom: 56px; }
.visit-compact .section-lead { margin-bottom: 24px; }
.visit-compact .visit-card { padding: 26px 30px; }
.visit-compact .visit-card h3 { font-size: 22px; margin-bottom: 8px; }
.visit-compact .visit-card p { font-size: 16px; margin: 0 0 10px; }
.visit-compact .btn { margin-top: 6px; }

/* ---- Compact donate page ---- */
.page-header.compact { padding: 34px 22px 6px; }
.support.compact { padding-bottom: 36px; }
.compact-cards { gap: 16px; }
.compact-cards .card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 18px;
}
.compact-cards .card-icon { width: 44px; height: 44px; font-size: 23px; margin: 0; flex: none; border-radius: 13px; }
.compact-cards .amount { font-size: 28px; line-height: 1.1; margin-bottom: 0; }
.compact-cards .card h3 { font-size: 19px; margin: 2px 0 4px; }
.compact-cards .card p { font-size: 15px; line-height: 1.45; }

.give-section { padding-top: 40px; padding-bottom: 48px; }
.give-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}
.give-main .section-lead { margin-bottom: 18px; font-size: 17px; }
.give-main h2 { font-size: clamp(28px, 3.4vw, 38px); }
.give-section .donate-embed { max-width: none; }
.give-section .donate-fallback { margin-top: 10px; }

.other-ways {
  background: var(--green);
  color: white;
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 25px 55px rgba(35,77,44,.22);
}
.give-side { position: sticky; top: 92px; }
.other-ways h2 { color: white; font-size: clamp(26px, 3vw, 34px); }
.other-ways p { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }
.pay-methods { display: grid; gap: 12px; margin-top: 20px; }
.pay-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 16px 18px;
}
.pay-box strong { display: block; font: 700 12px/1.2 Arial, sans-serif; text-transform: uppercase; letter-spacing: .8px; opacity: .78; margin-bottom: 4px; }
.pay-tag { display: block; font-size: 22px; font-weight: 700; text-decoration: none; line-height: 1.2; }
.pay-box .small { font-size: 14px; margin-top: 4px; opacity: .88; line-height: 1.4; }
.zelle-box img { background: white; border-radius: 12px; padding: 6px; flex: none; width: 130px; height: 130px; }

@media (max-width: 960px) {
  .give-grid { grid-template-columns: 1fr; }
  .give-side { position: static; }
  .compact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .other-ways { padding: 24px 20px; }
  .zelle-box { flex-direction: column; align-items: flex-start; }
}


/* ---- Donate page: one-time + monthly side by side ---- */
.give-section { --embed-h: 500px; }
.give-intro { text-align: center; max-width: 760px; margin: 0 auto 26px; }
.give-intro .section-lead { margin: 0 auto; }
.give-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.give-option {
  background: #fff;
  border: 2px solid #e4dcc9;
  border-radius: 24px;
  padding: 18px 18px 12px;
  box-shadow: var(--shadow);
}
.give-option-monthly { border-color: var(--green); }
.give-option-head { display: flex; align-items: center; gap: 12px; margin: 0 4px 12px; }
.give-option-head h3 { margin: 0; font-size: 22px; }
.give-badge {
  font: 700 12px/1 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1e8d3;
  color: #6b4f1d;
}
.give-badge.monthly { background: var(--green); color: #fff; }
/* remove the white card padding/shadow around the Zeffy iframe and size it tightly */
.give-section .donate-embed {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: none;
  margin: 0;
}
.give-section .donate-embed-frame-wrap { height: var(--embed-h); border-radius: 14px; }
.give-section .donate-fallback { margin: 8px 0 4px; font-size: 13px; }
.give-section .give-side { position: static; margin-top: 28px; }
.give-section .other-ways {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px 32px;
  align-items: start;
}
.give-section .other-ways > .section-kicker,
.give-section .other-ways > h2,
.give-section .other-ways > p,
.give-section .other-ways > .buttons { grid-column: 1; }
.give-section .other-ways > .pay-methods { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; }

@media (max-width: 960px) {
  .give-options { grid-template-columns: 1fr; }
  .give-section { --embed-h: 500px; }
  .give-section .other-ways { grid-template-columns: 1fr; }
  .give-section .other-ways > .pay-methods { grid-column: 1; grid-row: auto; margin-top: 16px; }
}
@media (max-width: 520px) {
  .give-section { --embed-h: 540px; }
}

.pay-email { font-size: 16px; font-weight: 700; margin-top: 4px; word-break: break-all; }
.pay-email span { font: 700 12px/1 Arial, sans-serif; text-transform: uppercase; letter-spacing: .8px; opacity: .78; margin-right: 4px; }
.pay-email a { color: inherit; text-decoration: underline; }
