/* EggCount — Farm-forward design system */

/* --------------------------------------------------
   Imports
   -------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Sans:wght@400;500;600&display=swap');

/* --------------------------------------------------
   Design tokens
   -------------------------------------------------- */
:root {
  --cream:       #f5f0e8;
  --cream-dark:  #ede5d4;
  --parchment:   #d9cdb8;
  --brown-dark:  #3d2b1f;
  --brown-mid:   #6b4226;
  --brown-light: #9a6b4b;
  --green-deep:  #2d4a2e;
  --green-mid:   #4a7c4e;
  --green-light: #7ab87f;
  --gold:        #c8902a;
  --gold-light:  #e8b44a;
  --text-main:   #2a1e14;
  --text-mid:    #5a4030;
  --text-light:  #8a6a50;
  --border:      rgba(107, 66, 38, 0.15);
  --shadow:      rgba(61, 43, 31, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--text-main);
  line-height: 1.6;
  /* subtle grain texture overlay */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --------------------------------------------------
   Typography helpers
   -------------------------------------------------- */
.display {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------
   Layout wrapper
   -------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------
   NAV
   -------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__egg {
  font-size: 1.5rem;
  line-height: 1;
}

.nav__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-deep);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.nav__cta:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
}

/* --------------------------------------------------
   HERO
   -------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(175deg, #e8dfc8 0%, var(--cream) 55%);
  border-bottom: 2px solid var(--parchment);
  padding: 80px 0 72px;
}

/* Decorative arch / horizon line */
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 120px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 144, 42, 0.12);
  border: 1px solid rgba(200, 144, 42, 0.3);
  color: var(--brown-mid);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  color: var(--brown-dark);
  margin-bottom: 20px;
}

.hero__headline em {
  font-style: italic;
  color: var(--green-deep);
}

.hero__subhead {
  font-size: 1.125rem;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-deep);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(45, 74, 46, 0.25);
}

.btn-primary:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45, 74, 46, 0.32);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 14px 4px;
  border-bottom: 1.5px solid var(--parchment);
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--green-deep);
  border-color: var(--green-mid);
}

/* Hero visual — egg count dial / illustration */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dial {
  position: relative;
  width: 300px;
  height: 300px;
}

.dial__ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cream-dark) 0%, #fff8ec 100%);
  border: 3px solid var(--parchment);
  box-shadow:
    0 8px 40px var(--shadow),
    inset 0 2px 8px rgba(255,255,255,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.dial__icon {
  font-size: 3.5rem;
  line-height: 1;
}

.dial__number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--brown-dark);
  line-height: 1;
}

.dial__unit {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dial__label {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Floating breed tags */
.dial__tags {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dial__tag {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown-mid);
  box-shadow: 0 2px 10px var(--shadow);
  white-space: nowrap;
}

.dial__tag--1 { top: 8%;  left: -20%; }
.dial__tag--2 { top: 72%; left: -22%; }
.dial__tag--3 { top: 10%; right: -18%; }
.dial__tag--4 { top: 68%; right: -15%; }

/* --------------------------------------------------
   HOW IT WORKS
   -------------------------------------------------- */
.how {
  padding: 96px 0;
  background: var(--cream);
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-mid);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 520px;
  line-height: 1.65;
}

.how__header {
  margin-bottom: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

/* Connector line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--parchment), var(--parchment));
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  text-align: center;
}

.step__num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--parchment);
  box-shadow: 0 4px 20px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-size: 1.75rem;
  line-height: 1;
  position: relative;
}

.step__num::after {
  content: attr(data-n);
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 50%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.step__desc {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* --------------------------------------------------
   WHY IT MATTERS
   -------------------------------------------------- */
.why {
  padding: 96px 0;
  background: var(--cream-dark);
  border-top: 1px solid var(--parchment);
  border-bottom: 1px solid var(--parchment);
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why__benefits {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(45, 74, 46, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit__title {
  font-weight: 600;
  color: var(--brown-dark);
  margin-bottom: 4px;
  font-size: 1.0625rem;
}

.benefit__desc {
  font-size: 0.9375rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Stats column */
.why__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-card__num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card__label {
  font-size: 0.875rem;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.4;
}

.stat-card--wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.stat-card--wide .stat-card__num {
  font-size: 2rem;
  flex-shrink: 0;
}

/* --------------------------------------------------
   BREED SPOTLIGHT
   -------------------------------------------------- */
.breeds {
  padding: 96px 0;
  background: var(--cream);
}

.breeds__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.breed-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--green-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid var(--green-light);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.breed-link:hover {
  color: var(--green-mid);
  border-color: var(--green-mid);
}

.breed-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.breed-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 12px var(--shadow);
}

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

.breed-card__header {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--cream) 0%, #fff 100%);
}

.breed-card__emoji {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.breed-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 2px;
}

.breed-card__type {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 500;
}

.breed-card__body {
  padding: 20px 24px;
}

.breed-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(107, 66, 38, 0.08);
}

.breed-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.breed-stat__label {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-weight: 500;
}

.breed-stat__val {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brown-dark);
}

.breed-stat__val--highlight {
  color: var(--green-deep);
}

/* Production bar */
.prod-bar {
  margin-top: 16px;
}

.prod-bar__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.prod-bar__track {
  height: 6px;
  background: var(--cream-dark);
  border-radius: 99px;
  overflow: hidden;
}

.prod-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  border-radius: 99px;
  transition: width 0.5s ease;
}

/* --------------------------------------------------
   CTA SECTION
   -------------------------------------------------- */
.cta-section {
  padding: 96px 0;
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '🥚';
  position: absolute;
  font-size: 14rem;
  opacity: 0.06;
  top: -30px;
  right: -30px;
  line-height: 1;
  pointer-events: none;
}

.cta-section::after {
  content: '🐔';
  position: absolute;
  font-size: 10rem;
  opacity: 0.06;
  bottom: -20px;
  left: 40px;
  line-height: 1;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-section .section-label {
  color: rgba(122, 184, 127, 0.8);
}

.cta-section .section-title {
  color: #fff;
  margin-bottom: 20px;
}

.cta-section .section-sub {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 auto 40px;
}

.btn-primary--light {
  background: var(--gold);
  box-shadow: 0 4px 20px rgba(200, 144, 42, 0.35);
}

.btn-primary--light:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 28px rgba(200, 144, 42, 0.45);
}

.cta-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------
   FOOTER
   -------------------------------------------------- */
.footer {
  background: var(--brown-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 36px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.footer__copy {
  font-size: 0.8125rem;
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* --------------------------------------------------
   SEO keywords (hidden, screen-reader accessible)
   -------------------------------------------------- */
.seo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------
   Responsive
   -------------------------------------------------- */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subhead { margin: 0 auto 36px; }

  .hero__actions { justify-content: center; }

  .hero__visual { display: none; }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .steps::before { display: none; }

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

  .breed-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero { padding: 56px 0 60px; }
  .how, .why, .breeds, .cta-section { padding: 64px 0; }

  .breed-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .breeds__header {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .stat-card--wide {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .dial { width: 220px; height: 220px; }
  .dial__number { font-size: 2.5rem; }
  .dial__icon { font-size: 2.5rem; }
}

/* --------------------------------------------------
   Animations
   -------------------------------------------------- */
@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__content > * {
  animation: floatIn 0.6s ease forwards;
}

.hero__badge   { animation-delay: 0.0s; }
.hero__headline{ animation-delay: 0.1s; }
.hero__subhead { animation-delay: 0.2s; }
.hero__actions { animation-delay: 0.3s; }
