/* FreshLay Poultry
   Palette: farm green, yolk, brown shell, fibre tray, shell white, ink */
:root {
  --green: #17402A;
  --green-2: #235C3C;
  --yolk: #F5B50A;
  --yolk-deep: #D99A00;
  --shell: #C98B55;
  --shell-light: #E3B384;
  --fibre: #B9AE9C;
  --fibre-dark: #968A76;
  --white: #FFFFFF;
  --paper: #F6F7F2;
  --ink: #1A1D1A;
  --ink-soft: #4A514B;
  --line: #D9DDD3;
  --wa: #1FA855;

  --font: "Bricolage Grotesque", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--yolk); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 3px solid var(--yolk); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-yolk { background: var(--yolk); color: var(--ink); }
.btn-yolk:hover { background: var(--yolk-deep); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #178F47; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--green-2); }
.btn-block { width: 100%; padding-block: 1rem; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green); color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand em { font-style: normal; font-weight: 400; opacity: .8; }
.brand-mark { width: 26px; height: 32px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; opacity: .88; font-weight: 500; }
.nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { padding: .55rem 1.1rem; }
.menu-toggle {
  display: none; background: none; border: 1.5px solid rgba(255,255,255,.5); color: var(--white);
  font: inherit; font-weight: 600; padding: .4rem .9rem; border-radius: 999px; cursor: pointer;
}

/* Hero */
.hero { background: var(--green); color: var(--white); padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); margin-bottom: .35em; }
.lede { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* The egg tray */
.tray-figure { margin: 0; }
.tray {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 14px; border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.18), transparent 60%),
    var(--fibre);
  box-shadow: inset 0 0 0 2px var(--fibre-dark), 0 30px 60px -25px rgba(0,0,0,.55);
  transform: rotate(-4deg);
  max-width: 460px; margin-inline: auto;
}
.cup {
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, #A69985 0%, #8D806C 70%);
  display: grid; place-items: center;
  box-shadow: inset 0 3px 6px rgba(0,0,0,.28);
}
.egg {
  width: 74%; height: 88%;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  background:
    radial-gradient(ellipse at 34% 28%, var(--shell-light) 0%, transparent 42%),
    radial-gradient(ellipse at 55% 60%, var(--shell) 0%, #AD7240 100%);
  box-shadow: 0 3px 3px rgba(0,0,0,.25);
}
.egg.tone-2 { filter: saturate(.85) brightness(1.06); }
.egg.tone-3 { filter: saturate(1.1) brightness(.94); }
.egg.drop { animation: drop .45s cubic-bezier(.3,1.4,.5,1) both; }
@keyframes drop {
  from { transform: translateY(-40px) scale(.8); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.tray-figure figcaption {
  text-align: center; margin-top: 1.6rem; font-size: .95rem; color: rgba(255,255,255,.7);
}

/* Order builder */
.order { background: var(--paper); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.order-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.order-intro { position: sticky; top: 100px; }
.order-intro p { color: var(--ink-soft); font-size: 1.1rem; }
.order-intro .small { font-size: 1rem; }
.order-intro a { font-weight: 600; color: var(--green); }

.order-card {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
}
fieldset { border: 0; margin: 0 0 1.6rem; padding: 0; }
legend { font-weight: 600; margin-bottom: .7rem; padding: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: block; padding: .55rem 1.05rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); font-weight: 500;
  transition: background-color .12s, border-color .12s;
}
.chip input:checked + span { background: var(--yolk); border-color: var(--yolk); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.chip:hover span { border-color: var(--ink-soft); }

.stepper { display: flex; align-items: center; gap: .9rem; }
.step {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white);
  font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.step:hover { border-color: var(--ink); }
.step:disabled { opacity: .35; cursor: not-allowed; }
#trayCount { font-size: 2rem; font-weight: 800; min-width: 2ch; text-align: center; }
.egg-total { color: var(--ink-soft); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1.1rem; }
.field span { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; font: inherit; padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,64,42,.15); }

.check { display: flex; align-items: center; gap: .6rem; margin: .2rem 0 1.4rem; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }

.preview {
  background: var(--paper); border-left: 4px solid var(--wa); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; margin-bottom: 1.2rem;
}
.preview-label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .3rem; }
#preview { margin: 0; white-space: pre-line; }

/* Shops */
.shops { background: var(--yolk); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.shops h2 { max-width: 16ch; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.shops-lede { font-size: 1.2rem; max-width: 52ch; }
.shop-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2.5rem 0; }
.shop-points > div { border-top: 3px solid var(--ink); padding-top: 1rem; }
.shop-points p { margin: 0; }
.shops .btn-yolk { background: var(--green); color: var(--white); }
.shops .btn-yolk:hover { background: var(--green-2); }

/* How it works */
.how { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 3.6rem; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 2.6rem; height: 3.1rem; display: grid; place-items: center; padding-top: .3rem;
  font-weight: 800; font-size: 1.3rem; color: var(--ink);
  background: var(--shell-light);
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
}
.steps p { color: var(--ink-soft); margin: 0; }

/* Farm */
.farm { background: var(--green); color: var(--white); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.farm-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); }
.farm-story p { color: rgba(255,255,255,.88); font-size: 1.08rem; }
.farm-facts { list-style: none; margin: 0; padding: 0; align-self: center; }
.farm-facts li {
  padding: 1rem 0 1rem 2rem; border-bottom: 1px solid rgba(255,255,255,.15); position: relative;
  color: rgba(255,255,255,.85);
}
.farm-facts li:first-child { border-top: 1px solid rgba(255,255,255,.15); }
.farm-facts li::before {
  content: ""; position: absolute; left: 0; top: 1.35rem; width: 12px; height: 15px;
  background: var(--yolk); border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
}
.farm-facts strong { color: var(--white); }

/* Contact */
.contact { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--paper); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-details > p { color: var(--ink-soft); font-size: 1.1rem; }
dl { margin: 2rem 0 0; }
dt { font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-top: 1.2rem; }
dd { margin: .15rem 0 0; font-size: 1.15rem; }
dd a { color: var(--green); font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; word-break: break-word; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.hp { position: absolute; left: -9999px; }
.form-status { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 500; }
.form-status.ok { background: #E3F4E8; color: #14532D; }
.form-status.err { background: #FDECEC; color: #8A1C1C; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 2.5rem 0 5.5rem; font-size: .95rem; }
.footer-inner p { margin: 0 0 .35rem; }
.footer-brand { color: var(--white); font-weight: 800; font-size: 1.2rem; }
.site-footer a { color: var(--white); }
.copy { margin-top: 1rem !important; opacity: .7; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45);
}
.wa-float svg { width: 32px; height: 32px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .order-inner, .farm-inner, .contact-inner { grid-template-columns: 1fr; }
  .order-intro { position: static; }
  .shop-points, .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .tray { max-width: 380px; }
}
@media (max-width: 480px) {
  .tray { max-width: 300px; transform: rotate(-3deg); padding: 10px; gap: 4px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--green);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin-top: 1rem; padding: .85rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .egg.drop { animation: none; }
  * { transition: none !important; }
}
