:root {
  --cream: #faf6f0;
  --warm-white: #fffdf9;
  --almond: #c4a574;
  --almond-dark: #8b6914;
  --brown: #3d2e1f;
  --brown-light: #5c4a38;
  --sage: #6b7f5e;
  --sage-light: #e8ede4;
  --shadow: rgba(61, 46, 31, 0.08);
  --radius: 12px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--sage-light) 50%, var(--cream) 100%);
  position: relative;
  overflow: hidden;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 10;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown);
}

.nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav a {
  color: var(--brown-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--almond-dark);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem 4rem;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sage);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--brown-light);
  max-width: 420px;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--brown);
  color: var(--warm-white);
  padding: 0.85rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
  width: fit-content;
}

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

/* Decorative almonds */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.almond-cluster {
  position: relative;
  width: 320px;
  height: 320px;
}

.almond {
  position: absolute;
  width: 48px;
  height: 72px;
  background: linear-gradient(145deg, #d4b896 0%, #a08050 40%, #8b6914 100%);
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  box-shadow:
    inset -4px -4px 12px rgba(0, 0, 0, 0.15),
    inset 3px 3px 8px rgba(255, 255, 255, 0.3),
    4px 8px 20px var(--shadow);
  animation: float 6s ease-in-out infinite;
}

.almond::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(61, 46, 31, 0.3), transparent);
  border-radius: 2px;
}

.a1 { top: 20%; left: 35%; animation-delay: 0s; transform: rotate(-15deg); }
.a2 { top: 45%; left: 55%; animation-delay: -1s; transform: rotate(20deg); width: 56px; height: 84px; }
.a3 { top: 60%; left: 25%; animation-delay: -2s; transform: rotate(-30deg); width: 42px; height: 63px; }
.a4 { top: 30%; left: 60%; animation-delay: -3s; transform: rotate(10deg); width: 44px; height: 66px; }
.a5 { top: 55%; left: 42%; animation-delay: -4s; transform: rotate(-5deg); width: 50px; height: 75px; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r, 0deg)); }
}

.a1 { --r: -15deg; }
.a2 { --r: 20deg; }
.a3 { --r: -30deg; }
.a4 { --r: 10deg; }
.a5 { --r: -5deg; }

/* Sections */
.section {
  padding: 5rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--brown-light);
  max-width: 600px;
}

.section-header {
  margin-bottom: 3rem;
}

/* About */
.about {
  background: var(--warm-white);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.fact-card {
  background: var(--cream);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(196, 165, 116, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.fact-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--almond-dark);
  margin-bottom: 0.5rem;
}

.fact-card p {
  color: var(--brown-light);
  font-size: 0.95rem;
}

/* Nutrition */
.nutrition {
  background: var(--sage-light);
}

.nutrition-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.nutrient-list {
  list-style: none;
  margin-top: 1.5rem;
}

.nutrient-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(107, 127, 94, 0.2);
  color: var(--brown-light);
}

.nutrient-list strong {
  color: var(--brown);
}

.nutrition-chart {
  background: var(--warm-white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px var(--shadow);
}

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

.bar-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.bar-group label span {
  color: var(--almond-dark);
}

.bar {
  height: 8px;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
}

.bar .fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--almond), var(--almond-dark));
  border-radius: 4px;
  transition: width 1s ease-out;
}

.chart-note {
  font-size: 0.8rem;
  color: var(--brown-light);
  margin-top: 1rem;
  opacity: 0.7;
}

/* Varieties */
.varieties {
  background: var(--warm-white);
}

.varieties h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.variety-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.variety {
  padding: 2rem;
  border-left: 4px solid var(--almond);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.variety h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--brown);
}

.variety p {
  color: var(--brown-light);
  font-size: 0.95rem;
}

/* Uses */
.uses {
  background: linear-gradient(180deg, var(--cream) 0%, var(--sage-light) 100%);
}

.uses h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.use-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--warm-white);
  border-radius: var(--radius);
  box-shadow: 0 2px 16px var(--shadow);
  transition: transform 0.2s;
}

.use-item:hover {
  transform: scale(1.03);
}

.use-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.use-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.use-item p {
  font-size: 0.9rem;
  color: var(--brown-light);
}

/* Footer */
footer {
  background: var(--brown);
  color: var(--cream);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-note {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.5rem;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-content {
    padding: 7rem 1.5rem 2rem;
    text-align: center;
    align-items: center;
  }

  .hero-visual {
    padding: 2rem 0 4rem;
  }

  .almond-cluster {
    width: 240px;
    height: 240px;
  }

  .nav ul {
    gap: 1rem;
  }

  .nutrition-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
}
