/* Farm Page Specific Styles */

/* Farm page header alignment */
.nav .nav-links {
  margin-left: auto;
}

/* Hero Section Override */
.hero-farm {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  width: calc(100% - 4rem);
  max-width: 1180px;
  padding: 0;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.88) saturate(.78) contrast(.92);
}

.hero-farm::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(248,245,238,.10) 0%, rgba(248,245,238,.02) 58%, rgba(248,245,238,.16) 100%);
}

.hero-farm .hero-content {
  position: relative;
  z-index: 2;
  background: rgba(248,245,238,.90);
  backdrop-filter: blur(6px);
  padding: 3.25rem;
  border-radius: 24px;
  max-width: 600px;
  margin: 2.25rem;
}

.hero-farm h1 {
  margin-bottom: 1.25rem;
}

.hero-farm .subtitle {
  max-width: 560px;
  margin: 0 0 2rem;
}

/* Sections with consistent vertical rhythm */
section {
  padding: 4rem 1rem;
  max-width: 960px;
  margin: 0 auto 4rem auto;
}

/* Farm Cards Grid */
.farm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Resident Grid */
.resident-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Cards */
.farm-card,
.resident-card {
  background-color: #ffffff;
  border-radius: 26px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.farm-card:hover,
.resident-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* More Than a Farm Section */
.more-than-farm {
  background-color: var(--white);
  border-radius: 26px;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

/* Farm Ecosystem Section */
.farm-ecosystem {
  max-width: 1180px;
  background: var(--white);
  border-radius: 32px;
  padding: 4rem 3rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.farm-ecosystem > .container {
  max-width: 1080px;
}

.farm-ecosystem h2 {
  max-width: 760px;
  margin-bottom: 1rem;
}

.ecosystem-intro {
  max-width: 820px;
  font-size: 1.1rem;
  line-height: 1.75;
}

.ecosystem-visual {
  margin-top: 2.5rem;
  overflow: hidden;
  border-radius: 22px;
}

.ecosystem-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.ecosystem-story {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(79, 124, 117, 0.20);
}

.ecosystem-story-copy p + p {
  margin-top: 1rem;
}

.ecosystem-cycle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-content: center;
}

.ecosystem-cycle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.15rem;
  background: var(--cream-light);
  color: var(--teal-dark);
  border: 1px solid rgba(79, 124, 117, 0.20);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.learning-nature h2 {
  text-align: center;
}

/* Learning Through Nature photo story */
.learning-nature .learning-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.learning-photo {
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.learning-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.learning-photo:nth-child(3) img {
  object-fit: cover;
  object-position: center 42%;
}

@media (max-width: 768px) {
  .learning-nature .learning-photo-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }
}

.meet-residents {
  background-color: var(--cream);
  border-radius: 26px;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.meet-residents h2 {
  text-align: center;
}

/* Meet Residents Section */
.meet-residents {
  background-color: var(--cream);
  border-radius: 26px;
  padding: 2.5rem 2rem;
  margin-top: 2rem;
  color: var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.growing-future h2 {
  text-align: center;
}

/* Growing for the Future photo story */
.growing-future .future-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0 2.75rem;
}

.future-photo {
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.future-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 35%;
}

.future-photo:nth-child(3) img {
  object-position: center 5%;
}

@media (max-width: 768px) {
  .growing-future .future-photo-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem 0 2.25rem;
  }
}

/* Farm Moments rotating photo carousel */
.farm-moments {
  max-width: 1180px;
  text-align: center;
  overflow: hidden;
}

.farm-moments h2 {
  text-align: center;
}

.farm-carousel {
  position: relative;
  max-width: 1040px;
  height: 430px;
  margin: 2.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54%;
  height: 390px;
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.78);
  transition: transform .65s ease, opacity .65s ease, filter .65s ease;
  pointer-events: none;
  z-index: 1;
}

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

.carousel-slide.is-active {
  opacity: 1;
  z-index: 3;
  transform: translate(-50%, -50%) scale(1);
  filter: none;
}

.carousel-slide.is-prev,
.carousel-slide.is-next {
  opacity: .58;
  z-index: 2;
  filter: brightness(.92) saturate(.82);
}

.carousel-slide.is-prev {
  transform: translate(-112%, -50%) scale(.72);
}

.carousel-slide.is-next {
  transform: translate(12%, -50%) scale(.72);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--teal-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

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

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}


/* Follow Journey Section */
.follow-journey {
  background-color: var(--teal-dark);
  border-radius: 26px;
  padding: 3rem 2rem;
  margin-top: 3rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.follow-journey h2 {
  color: var(--white);
}

.follow-journey p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.84);
}

footer .container {
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .farm-carousel {
    height: 340px;
  }

  .carousel-slide {
    width: 78%;
    height: 300px;
  }

  .carousel-slide.is-prev {
    transform: translate(-104%, -50%) scale(.64);
  }

  .carousel-slide.is-next {
    transform: translate(4%, -50%) scale(.64);
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }
  .farm-cards,
  .resident-grid {
    grid-template-columns: 1fr;
  }
  .hero-farm {
    width: calc(100% - 2rem);
    max-width: none;
    min-height: 620px;
  }

  .hero-farm .hero-content {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  section {
    padding: 3rem 1rem;
    margin-bottom: 3rem;
  }

  .more-than-farm,
  .meet-residents,
  .follow-journey {
    padding: 2rem 1.5rem;
    margin-top: 1.5rem;
  }
}


/* --- Hero refresh --- */
/* Removed duplicate .hero-farm styles because merged above */

/* Intro refresh */
.intro-story {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.45fr);
  gap: 3rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.intro-story-copy p + p {
  margin-top: 1.25rem;
}

.intro-story-copy h2 {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .intro-story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* Life on the Farm editorial photo story */
.life-on-farm {
  max-width: 1180px;
}

.life-on-farm-layout {
  max-width: 1080px;
}

.life-on-farm-intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 1rem;
}

.life-on-farm-intro h2 {
  margin-bottom: 0;
}

.life-on-farm-intro > p {
  margin: 0;
  line-height: 1.75;
}

/* Alternating feature rows */
.farm-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 5rem;
}

.farm-feature.reverse .farm-feature-image {
  order: 2;
}

.farm-feature.reverse .farm-feature-copy {
  order: 1;
}

.farm-feature-image img {
  width: 100%;
  border-radius: 24px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.farm-feature-copy h3 {
  margin-bottom: 1rem;
}

.farm-feature-copy {
  padding: 1rem 0;
}

.farm-feature-copy p {
  max-width: 430px;
  line-height: 1.75;
}

@media (max-width:768px){
  .farm-feature,
  .farm-feature.reverse {
    grid-template-columns:1fr;
  }

  .farm-feature.reverse .farm-feature-image,
  .farm-feature.reverse .farm-feature-copy {
    order:initial;
  }

  .life-on-farm-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
.intro-harmony {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.intro-harmony img {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
}