/* Salvadalena Farms — Base Styles */
:root {
  --bg: #faf7f2;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --brand: #2f6b3f; /* farm green */
  --brand-ink: #1f4a2b;
  --accent: #c48f3b; /* golden */
  --surface: #ffffff;
  --shadow: 0 6px 20px rgba(0,0,0,0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Merriweather', Georgia, serif; color: var(--brand-ink); }

img { max-width: 100%; display: block; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid #eee;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 18px 24px;
}
.brand-logo { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12)); }
.brand-name { font-weight: 800; color: var(--brand-ink); font-size: 1.6rem; letter-spacing: 0.3px; }

.site-nav { display: flex; gap: 12px; margin-left: auto; padding: 0 20px; }
.site-header { display: flex; align-items: center; }
.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
}
.site-nav a:hover { background: #f2efe9; }
.site-nav a.active { color: var(--brand-ink); font-weight: 600; }
.site-nav .cta { background: var(--brand); color: #fff; }
.site-nav .cta:hover { background: #2a5f39; }

.nav-toggle { display: none; margin-left: auto; margin-right: 12px; font-size: 22px; padding: 8px 10px; }

/* Hero */
.hero {
  position: relative;
  padding: 0;
}
.hero-photo {
  min-height: calc(100vh - 140px);
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.18), rgba(0,0,0,0.18)),
    radial-gradient(1200px 500px at 20% -10%, #eaf5e9 0%, transparent 60%),
    radial-gradient(1000px 400px at 80% -10%, #f6efe1 0%, transparent 60%),
    url('../images/hero-farm.jpg'),
    url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1600&q=80'),
    url('https://source.unsplash.com/1600x900/?farm,field,barn');
  background-size: cover, auto, auto, cover, cover, cover;
  background-repeat: no-repeat;
  background-position: center, center, center, center, center, center;
}
.hero-cta {
  position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block; border-radius: 999px; padding: 10px 18px;
  background: var(--brand); color: #fff; text-decoration: none; box-shadow: var(--shadow);
}
.btn:hover { background: #2a5f39; }
.btn-outline { background: transparent; color: var(--brand-ink); border: 1px solid #cfd9cf; }
.btn-outline:hover { background: #f2f6f2; }

/* Cards & Grid */
.features, .grid { max-width: 1100px; margin: 32px auto; padding: 0 24px; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid #eee; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 10px; }
.card p { color: var(--muted); }
.link { color: var(--brand-ink); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Page intro */
.page-intro { max-width: 900px; margin: 24px auto; padding: 0 24px; text-align: center; }

/* Text blocks */
.text-block { max-width: 900px; margin: 24px auto; padding: 18px 24px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid #eee; }
.text-block h2 { margin-top: 0; }

/* Footer */
.site-footer { margin-top: 40px; padding: 24px; background: #fff; border-top: 1px solid #eee; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-links a { margin-right: 10px; text-decoration: none; color: var(--muted); }
.footer-links a.active, .footer-links a:hover { color: var(--brand-ink); }
.copyright { text-align: center; color: var(--muted); }

/* Utilities */
.muted { color: var(--muted); }

/* Responsive */
@media (max-width: 900px) {
  .features, .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features, .grid { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; }
  .site-nav { width: 100%; padding: 0 14px 12px; display: none; }
  .site-nav.open { display: flex; flex-wrap: wrap; }
  .brand-logo { width: 64px; height: 64px; }
  .brand-name { font-size: 1.3rem; }
  .hero-photo { min-height: calc(100vh - 160px); }
  .hero-cta { bottom: 6%; }
}