/* Walnut World — style.css */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f0e8;
  color: #2d1f12;
  line-height: 1.6;
}

/* ── Navigation ── */
nav {
  background: #4a3728;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f4f0e8;
  text-decoration: none;
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

nav ul li a {
  color: #d4c9b8;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: #7a9a3a;
  color: #fff;
}

nav ul li a.back-link {
  color: #b8d47a;
  border: 1px solid #5a7228;
  margin-right: 0.5rem;
}

nav ul li a.back-link:hover {
  background: #5a7228;
  color: #fff;
  border-color: #5a7228;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #3d2b1a 0%, #6b4c2a 100%);
  color: #f4f0e8;
  text-align: center;
  padding: 5rem 2rem 4rem;
}

.hero-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #c8bba8;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: #7a9a3a;
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #5a7228;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.btn-outline {
  background: transparent;
  border: 2px solid #7a9a3a;
  color: #7a9a3a;
}

.btn-outline:hover {
  background: #7a9a3a;
  color: #fff;
}

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

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #4a3728;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #6b5240;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

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

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 2px 12px rgba(74, 55, 40, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid #7a9a3a;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(74, 55, 40, 0.18);
}

.card-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4a3728;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.93rem;
  color: #5a4030;
  line-height: 1.5;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: #7a9a3a;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.card-link:hover {
  color: #5a7228;
  text-decoration: underline;
}

/* ── Facts Grid ── */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.fact-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 10px rgba(74, 55, 40, 0.1);
  border-left: 5px solid #7a9a3a;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 55, 40, 0.15);
}

.fact-number {
  background: #7a9a3a;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fact-text {
  font-size: 0.93rem;
  color: #2d1f12;
  line-height: 1.55;
}

/* ── Stats Strip ── */
.stats-strip {
  background: #4a3728;
  color: #f4f0e8;
  padding: 2.5rem 2rem;
  text-align: center;
}

.stats-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: #7a9a3a;
}

.stat-label {
  font-size: 0.85rem;
  color: #c8bba8;
  margin-top: 0.25rem;
}

/* ── Varieties ── */
.variety-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 2px 12px rgba(74, 55, 40, 0.1);
  border-left: 6px solid #7a9a3a;
  transition: transform 0.2s, box-shadow 0.2s;
}

.variety-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(74, 55, 40, 0.18);
}

.variety-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #4a3728;
  margin-bottom: 0.4rem;
}

.variety-card .tag {
  display: inline-block;
  background: #e8f0d4;
  color: #4a6218;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.variety-card p {
  font-size: 0.92rem;
  color: #5a4030;
  line-height: 1.55;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

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

.contact-form {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(74, 55, 40, 0.1);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #4a3728;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid #d4c9b8;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #2d1f12;
  background: #faf8f4;
  transition: border-color 0.2s;
  font-family: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7a9a3a;
}

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

.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 10px rgba(74, 55, 40, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-left: 5px solid #7a9a3a;
}

.info-card .info-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.info-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #4a3728;
  margin-bottom: 0.15rem;
}

.info-card p {
  font-size: 0.88rem;
  color: #6b5240;
}

/* ── History Timeline ── */
.history-box {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(74, 55, 40, 0.1);
  margin-bottom: 3rem;
}

.history-box h2 {
  font-size: 1.4rem;
  color: #4a3728;
  margin-bottom: 1rem;
  font-weight: 700;
}

.history-box p {
  color: #5a4030;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.history-box p:last-child {
  margin-bottom: 0;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, #3d2b1a 0%, #6b4c2a 100%);
  color: #f4f0e8;
  text-align: center;
  padding: 3rem 2rem 2.5rem;
}

.page-hero .page-hero-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.page-hero p {
  color: #c8bba8;
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Footer ── */
footer {
  background: #2d1f12;
  color: #a89880;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.88rem;
  margin-top: 3rem;
}

footer a {
  color: #7a9a3a;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav {
    padding: 0 1rem;
    height: auto;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.1rem;
  }

  .hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .section {
    padding: 2.5rem 1.25rem;
  }
}
