/* ============================================
   DEWS FARMS — Editorial Organic Aesthetic
   ============================================ */

:root {
  --soil: #2C1810;
  --soil-light: #3D2B1F;
  --cream: #F5EDE3;
  --cream-dark: #E8DDD0;
  --olive: #4A5D3A;
  --olive-deep: #3A4A2E;
  --sage: #8B9E7C;
  --gold: #C8943E;
  --gold-light: #D4A855;
  --forest: #1A2E1A;
  --text: #2C1810;
  --text-muted: #6B5D52;
  --white: #FFFBF5;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- HEADER ---- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 48px;
  transition: all 0.4s ease;
}

header.scrolled {
  background: rgba(245, 237, 227, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 48px;
  box-shadow: 0 1px 0 rgba(44, 24, 16, 0.08);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--soil);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.logo-leaf {
  color: var(--olive);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--soil);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--soil);
  transition: all 0.3s;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--forest);
  overflow: hidden;
  padding: 120px 48px 80px;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--olive);
  top: -15%;
  right: -10%;
  animation: float 20s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--gold);
  bottom: -10%;
  left: -5%;
  animation: float 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--sage);
  top: 40%;
  left: 30%;
  animation: float 18s ease-in-out infinite 3s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

.hero h1 .line {
  display: block;
}

.hero h1 .accent {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--sage);
  max-width: 480px;
  margin: 0 auto 48px;
  line-height: 1.8;
  font-weight: 300;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--soil);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(200, 148, 62, 0.3);
}

.btn-primary svg {
  transition: transform 0.3s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--sage);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--sage), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---- ABOUT ---- */
.about {
  padding: 140px 48px;
  background: var(--cream);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.about-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.label-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.about-label span,
.section-tag {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
}

.about-content h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--soil);
  max-width: 700px;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.about-content h2 em {
  color: var(--olive);
  font-style: italic;
}

.about-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 700px;
}

.about-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.about-stats {
  display: flex;
  gap: 64px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(44, 24, 16, 0.08);
}

.stat-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--olive);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- CROPS ---- */
.crops {
  padding: 140px 48px;
  background: var(--soil);
}

.crops .section-header {
  max-width: 1200px;
  margin: 0 auto 64px;
}

.crops .section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--cream);
  margin-top: 16px;
  letter-spacing: -0.02em;
}

.crops .section-tag {
  color: var(--sage);
}

.crops .label-line {
  background: var(--gold);
}

.crops-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.crop-card {
  background: var(--soil-light);
  padding: 48px 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.crop-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--olive-deep), var(--olive));
  opacity: 0;
  transition: opacity 0.5s;
}

.crop-card:hover::before {
  opacity: 1;
}

.crop-card:hover {
  transform: translateY(-4px);
}

.crop-num {
  font-family: 'Fraunces', serif;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.crop-icon {
  color: var(--sage);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.crop-card:hover .crop-icon {
  transform: scale(1.1);
  color: var(--cream);
}

.crop-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}

.crop-card p {
  font-size: 0.88rem;
  color: var(--sage);
  line-height: 1.75;
  position: relative;
  z-index: 1;
  transition: color 0.4s;
}

.crop-card:hover p {
  color: var(--cream-dark);
}

/* ---- LIVESTOCK ---- */
.livestock {
  padding: 140px 48px;
  background: var(--cream);
}

.livestock .section-header {
  max-width: 1100px;
  margin: 0 auto 64px;
}

.livestock .section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--soil);
  margin-top: 16px;
  letter-spacing: -0.02em;
}

.livestock-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.livestock-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 24, 16, 0.06);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.livestock-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(44, 24, 16, 0.08);
}

.livestock-visual {
  background: linear-gradient(135deg, var(--olive), var(--olive-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  padding: 48px;
  min-height: 220px;
}

.livestock-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.livestock-info h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--soil);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.livestock-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.livestock-tags {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.livestock-tags li {
  padding: 6px 16px;
  border: 1px solid rgba(74, 93, 58, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
}

/* ---- CONTACT ---- */
.contact {
  padding: 120px 48px;
  background: var(--forest);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-text .about-label span {
  color: var(--sage);
}

.contact-text h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--cream);
  margin: 24px 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.contact-text p {
  font-size: 0.95rem;
  color: var(--sage);
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: var(--cream);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(8px);
}

.contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ---- FOOTER ---- */
footer {
  background: var(--soil);
  padding: 64px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .logo {
  color: var(--cream);
  font-size: 1.2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--sage);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: var(--sage);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-copy p {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .crops-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 18px 24px;
  }

  header.scrolled {
    padding: 14px 24px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding: 120px 24px 80px;
  }

  .about {
    padding: 80px 24px;
  }

  .about-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .crops {
    padding: 80px 24px;
  }

  .crops-grid {
    grid-template-columns: 1fr;
  }

  .livestock {
    padding: 80px 24px;
  }

  .livestock-card {
    grid-template-columns: 1fr;
  }

  .livestock-visual {
    min-height: 160px;
  }

  .livestock-info {
    padding: 32px;
  }

  .contact {
    padding: 80px 24px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  footer {
    padding: 48px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .about-content h2 {
    font-size: 1.5rem;
  }

  .crop-card {
    padding: 36px 24px;
  }

  .stat-num {
    font-size: 2.2rem;
  }
}
