:root {
  --bg: #FAF7EF;
  --surface: #FFFFFF;
  --harvest-gold: #D9A441;
  --wheat: #E8D7A8;
  --field-green: #4F7A45;
  --apple-green: #76A65B;
  --barn-red: #9F3A2F;
  --soil-brown: #7A5A3A;
  --cream: #FFF8E8;
  --sky-blue: #A9D6E5;
  --charcoal: #2D2D2D;
  --muted: #756C5F;
  --accent-grad: linear-gradient(135deg, #D9A441, #76A65B);
  --secondary-grad: linear-gradient(135deg, #9F3A2F, #D9A441);
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --border-radius: 22px;
  --border-radius-lg: 26px;
  --shadow-soft: 0 8px 30px rgba(122, 90, 58, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--charcoal);
  font-family: var(--font-main);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { color: var(--muted); margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-grad);
  color: var(--surface);
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-secondary {
  background: var(--surface);
  color: var(--harvest-gold);
  border: 1px solid var(--harvest-gold);
}

.btn-secondary:hover {
  background: var(--cream);
  transform: translateY(-2px);
}

/* Header */
.slim-header {
  position: sticky;
  top: 0;
  height: 70px;
  background-color: var(--cream);
  border-bottom: 1px solid var(--harvest-gold);
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
  box-shadow: var(--shadow-soft);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--field-green);
}

.wheat-emblem {
  width: 24px;
  height: 24px;
  fill: var(--harvest-gold);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--charcoal);
}

/* Sections */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Split Intro */
.split-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.intro-content h1 {
  color: var(--field-green);
  margin-bottom: 1.5rem;
}

.intro-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.intro-image-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 400px;
}

.intro-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Highlights */
.highlights-strip {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--wheat);
  border-bottom: 1px solid var(--wheat);
  margin: 0 2rem;
}

.highlight-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.highlight-icon {
  width: 32px;
  height: 32px;
  fill: var(--harvest-gold);
}

.highlight-item h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--field-green);
}

.highlight-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* Farm Slot Showcase */
.showcase-section {
  text-align: center;
}

.showcase-container {
  background-color: var(--cream);
  border: 2px solid var(--harvest-gold);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  max-width: 1020px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.showcase-container::before,
.showcase-container::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border: 4px solid var(--field-green);
}

.showcase-container::before {
  top: -2px; left: -2px;
  border-right: none; border-bottom: none;
  border-top-left-radius: var(--border-radius-lg);
}

.showcase-container::after {
  bottom: -2px; right: -2px;
  border-left: none; border-top: none;
  border-bottom-right-radius: var(--border-radius-lg);
}

.iframe-wrapper {
  border-radius: calc(var(--border-radius) - 8px);
  overflow: hidden;
  background: var(--charcoal);
  aspect-ratio: 16/9;
  margin-bottom: 1.5rem;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Seasonal Produce Grid */
.produce-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem;
}

.produce-panel {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.produce-panel.large {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.produce-panel.large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.produce-panel.large .panel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(45,45,45,0.9), transparent);
  color: var(--surface);
}

.produce-panel.large .panel-content h3 {
  color: var(--surface);
}

.produce-panel.large .panel-content p {
  color: var(--cream);
  margin: 0;
}

/* Harvest Story */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-soft);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Support Barn */
.support-barn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 4rem;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-email {
  font-size: 1.2rem;
  color: var(--field-green);
  font-weight: 600;
  margin-top: 0.5rem;
}

.faq-preview li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--wheat);
  color: var(--charcoal);
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--wheat);
  border-radius: 12px;
  font-family: var(--font-main);
  background: var(--bg);
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--harvest-gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.countryside-footer {
  background: var(--surface);
  border-top: 1px solid var(--wheat);
  padding: 4rem 2rem 2rem;
}

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

.footer-col h4 {
  color: var(--field-green);
}

.footer-col p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--charcoal);
}

.footer-col a:hover {
  color: var(--harvest-gold);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid var(--wheat);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Cookie Popup */
.cookie-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45,45,45,0.4);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.cookie-popup {
  background: var(--cream);
  border: 2px solid var(--harvest-gold);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  max-width: 450px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.cookie-icon {
  width: 48px;
  height: 48px;
  fill: var(--field-green);
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Internal Pages */
.internal-page-container {
  background: var(--surface);
  border-radius: var(--border-radius);
  padding: 4rem;
  box-shadow: var(--shadow-soft);
  margin: 4rem auto;
  max-width: 900px;
}

.internal-page-container h1 {
  color: var(--field-green);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--wheat);
  padding-bottom: 1rem;
}

.internal-page-container h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  color: var(--barn-red);
}

.return-home-container {
  margin-top: 3rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  .split-intro, .story-section, .support-barn {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .produce-grid {
    grid-template-columns: 1fr;
  }
  .produce-panel.large {
    grid-column: 1;
    grid-row: auto;
    height: 300px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--harvest-gold);
    box-shadow: var(--shadow-soft);
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .header-cta {
    display: none;
  }
  .highlights-strip {
    flex-direction: column;
    margin: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .internal-page-container {
    padding: 2rem;
    margin: 2rem auto;
  }
}