/* ============================================
   KUHUNDA FARM — stylesheet
   Palette: parchment paper, deep field green, maize gold, soil brown
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&display=swap');

:root{
  --ink: #1B2A1F;
  --paper: #EFE7D6;
  --paper-light: #F8F4E9;
  --green-deep: #2F4A34;
  --green-mid: #587A52;
  --gold: #C79A3E;
  --gold-soft: #E4C77C;
  --soil: #7A5233;
  --line: rgba(27, 42, 31, 0.16);
  --max: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4{
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin: 0;
  color: var(--green-deep);
  line-height: 1.1;
}

p{ max-width: 62ch; }

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

a{ color: inherit; }

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

/* ---------- NAV ---------- */
header.site-nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(239, 231, 214, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-nav .max{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand img{
  height: 40px;
  width: auto;
}
.brand span{
  font-family:'Fraunces', serif;
  font-weight:600;
  font-size: 1.25rem;
  color: var(--green-deep);
}
nav.links{
  display:flex;
  gap: 28px;
  font-size: 0.95rem;
}
nav.links a{
  text-decoration:none;
  color: var(--ink);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
nav.links a:hover{
  border-color: var(--gold);
  color: var(--soil);
}
.nav-toggle{
  display:none;
  background:none;
  border:none;
  font-size: 1.6rem;
  color: var(--green-deep);
  cursor:pointer;
}

@media (max-width: 820px){
  nav.links{
    position:absolute;
    top: 100%;
    left:0; right:0;
    background: var(--paper-light);
    flex-direction:column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow:hidden;
    transition: max-height 0.3s ease;
  }
  nav.links.open{ max-height: 400px; }
  nav.links a{
    padding: 14px 32px;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle{ display:block; }
}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  min-height: 88vh;
  display:flex;
  align-items:flex-end;
  background: linear-gradient(180deg, rgba(27,42,31,0.15) 0%, rgba(20,30,20,0.72) 100%),
              url('images/the farm.jpeg') center/cover no-repeat;
  color: #F8F4E9;
}
.hero-inner{
  padding: 60px 32px 64px;
  max-width: var(--max);
  margin: 0 auto;
  width:100%;
}
.hero-eyebrow{
  font-size: 0.95rem;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero h1{
  color: #F8F4E9;
  font-size: clamp(2.6rem, 6vw, 5rem);
  max-width: 14ch;
  font-weight: 500;
}
.hero p{
  color: #E7E0CE;
  font-size: 1.15rem;
  margin-top: 22px;
  max-width: 48ch;
}
.hero-cta{
  margin-top: 34px;
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn{
  display:inline-block;
  padding: 13px 26px;
  border-radius: 2px;
  text-decoration:none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-solid{
  background: var(--gold);
  color: var(--ink);
}
.btn-solid:hover{ background: var(--gold-soft); }
.btn-outline{
  border-color: rgba(248,244,233,0.6);
  color: #F8F4E9;
}
.btn-outline:hover{ border-color: #F8F4E9; }

/* ---------- SECTION SCAFFOLD ---------- */
section{
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}
section:last-of-type{ border-bottom:none; }

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head h2{
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  max-width: 16ch;
}
.section-head .lede{
  max-width: 42ch;
  color: var(--soil);
  font-size: 1.02rem;
}
.section-num{
  font-family:'Fraunces', serif;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 10px;
  display:block;
}

/* ---------- ABOUT ---------- */
.about-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items:center;
}
.about-grid .copy p{ margin-top: 18px; color:#3A3A32; }
.about-photos{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-photos img{
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio: 3/4;
}
.about-photos img:first-child{ grid-row: span 2; aspect-ratio: 3/6.2; }

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

/* ---------- STAT STRIP ---------- */
.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.stat b{
  display:block;
  font-family:'Fraunces', serif;
  font-size: 2.4rem;
  color: var(--green-deep);
  font-weight: 600;
}
.stat span{
  color: var(--soil);
  font-size: 0.92rem;
}
@media (max-width: 700px){
  .stats{ grid-template-columns: 1fr 1fr; }
}

/* ---------- CROPS ---------- */
.crop-feature{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items:center;
  margin-bottom: 80px;
}
.crop-feature video, .crop-feature img{
  width:100%;
  border-radius: 2px;
}
.crop-feature .copy p{ color:#3A3A32; margin-top:14px; }
@media (max-width: 900px){
  .crop-feature{ grid-template-columns:1fr; }
}

.photo-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.photo-grid img{
  width:100%;
  height:100%;
  object-fit:cover;
  aspect-ratio: 4/5;
  transition: transform 0.4s ease;
}
.photo-grid a{ display:block; overflow:hidden; }
.photo-grid a:hover img{ transform: scale(1.05); }
.photo-grid .wide{ grid-column: span 2; aspect-ratio: unset; }

@media (max-width: 900px){
  .photo-grid{ grid-template-columns: repeat(2, 1fr); }
  .photo-grid .wide{ grid-column: span 2; }
}

.subhead{
  margin: 70px 0 24px;
  font-size: 1.4rem;
  color: var(--soil);
  font-family:'Fraunces', serif;
}
.subhead:first-of-type{ margin-top: 0; }

/* ---------- LIVESTOCK ---------- */
.livestock-block{
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  margin-bottom: 90px;
  align-items:start;
}
.livestock-block:nth-child(even){
  grid-template-columns: 1.15fr 0.85fr;
}
.livestock-block:nth-child(even) .copy{ order:2; }
.livestock-block .media-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.livestock-block .media-grid img,
.livestock-block .media-grid video{
  width:100%;
  aspect-ratio: 1/1;
  object-fit:cover;
  border-radius: 2px;
}
.livestock-block .copy p{ color:#3A3A32; margin-top:14px; }
@media (max-width: 900px){
  .livestock-block, .livestock-block:nth-child(even){ grid-template-columns:1fr; }
  .livestock-block:nth-child(even) .copy{ order:0; }
}

/* ---------- TIMELINE (Farm Development) ---------- */
.timeline{
  position:relative;
  padding-left: 46px;
  border-left: 1px solid var(--line);
}
.tl-step{
  position:relative;
  margin-bottom: 68px;
}
.tl-step:last-child{ margin-bottom:0; }
.tl-step .marker{
  position:absolute;
  left: -58px;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-deep);
  color: var(--paper-light);
  font-family:'Fraunces', serif;
  font-size: 0.95rem;
  display:flex;
  align-items:center;
  justify-content:center;
}
.tl-step h3{ font-size: 1.4rem; margin-bottom: 10px; }
.tl-step p{ color:#3A3A32; }
.tl-media{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.tl-media img, .tl-media video{
  width:100%;
  aspect-ratio: 4/3;
  object-fit:cover;
  border-radius: 2px;
}
@media (max-width: 700px){
  .timeline{ padding-left: 34px; }
  .tl-step .marker{ left: -46px; width:28px; height:28px; font-size:0.8rem; }
  .tl-media{ grid-template-columns: 1fr 1fr; }
}

/* ---------- GALLERY ---------- */
.masonry{
  columns: 4 220px;
  column-gap: 14px;
}
.masonry a{
  display:block;
  break-inside: avoid;
  margin-bottom: 14px;
  overflow:hidden;
  border-radius: 2px;
}
.masonry img{
  width:100%;
  transition: transform 0.4s ease;
}
.masonry a:hover img{ transform: scale(1.04); }

/* ---------- PROFILE / CTA ---------- */
.profile-cta{
  background: var(--green-deep);
  color: var(--paper-light);
  border-radius: 4px;
  padding: 64px 56px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 40px;
  flex-wrap: wrap;
}
.profile-cta h2{ color: var(--paper-light); font-size: 2rem; max-width: 18ch; }
.profile-cta p{ color: #D7D9C9; margin-top: 12px; }

/* ---------- CONTACT / FOOTER ---------- */
footer{
  background: var(--ink);
  color: #CFCBB6;
  padding: 70px 0 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer h4{ color:#F8F4E9; font-size:1rem; margin-bottom:16px; }
footer .brand span{ color:#F8F4E9; }
footer p{ color:#B7B39E; font-size:0.95rem; }
footer ul{ list-style:none; padding:0; margin:0; }
footer li{ margin-bottom:10px; font-size:0.95rem; }
footer a{ text-decoration:none; color:#CFCBB6; }
footer a:hover{ color: var(--gold-soft); }
.foot-bottom{
  display:flex;
  justify-content:space-between;
  padding-top: 26px;
  font-size: 0.85rem;
  color:#8B8874;
  flex-wrap:wrap;
  gap:10px;
}
@media (max-width: 800px){
  .footer-grid{ grid-template-columns: 1fr; gap:30px; }
}
