/* ============================================================
   Lucky Chicken Coop — promo website styles
   Wholesome cartoon-3D farmyard / county-fair aesthetic.
   ============================================================ */

:root {
  /* Brand palette — locked from app design_system.md */
  --barn-red: #B23A3A;
  --barn-red-deep: #8E2C2C;
  --meadow: #6FA84A;
  --meadow-deep: #56883A;
  --sunflower: #F2C12E;
  --honey: #D99E1E;
  --sky: #8FC7E8;
  --cream: #FBF3DE;
  --buttermilk: #F3E7C8;
  --buttermilk-light: #FAF1D8;
  --ink: #3A2E22;
  --ink-soft: #6E5E48;
  --copper: #C77B3A;
  --ribbon-blue: #2E6FB0;
  --ribbon-gold: #E5B847;

  --font-display: 'Fredoka', system-ui, -apple-system, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; line-height: 1.1; }
.heading-hero {
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(58, 46, 34, 0.18);
}
.heading-hero em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, var(--sunflower), var(--honey));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.heading-section {
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.01em;
}
.heading-section .accent { color: var(--barn-red); font-style: italic; font-weight: 500; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--barn-red);
  font-size: 0.75rem;
}

/* ---------- Bunting (decorative) ---------- */
.bunting {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% -10px, transparent 12px, transparent 13px),
    repeating-linear-gradient(90deg,
      var(--barn-red) 0 36px,
      var(--sunflower) 36px 72px,
      var(--meadow) 72px 108px,
      var(--sky) 108px 144px,
      var(--copper) 144px 180px);
  -webkit-mask-image:
    radial-gradient(20px 24px at 18px 0, #000 99%, transparent 100%);
  mask-image:
    radial-gradient(20px 24px at 18px 0, #000 99%, transparent 100%);
  opacity: 0.0; /* hidden — using SVG bunting in markup instead */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(180deg, var(--barn-red), var(--barn-red-deep));
  color: var(--cream);
  box-shadow: 0 8px 0 -2px var(--barn-red-deep), 0 18px 30px -8px rgba(178, 58, 58, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-secondary {
  background: linear-gradient(180deg, var(--sunflower), var(--honey));
  color: var(--ink);
  box-shadow: 0 8px 0 -2px var(--honey), 0 18px 30px -8px rgba(217, 158, 30, 0.45);
}
.btn-secondary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  background: rgba(251, 243, 222, 0.85);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 -1px var(--ink);
}
.btn-ghost:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #8FC7E8 0%, #F3E7C8 65%, #6FA84A 100%);
  background-size: cover;
  background-position: center bottom;
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(143, 199, 232, 0) 30%, rgba(251, 243, 222, 0.55) 75%, rgba(251, 243, 222, 0.9) 100%);
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}
.ribbon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ribbon-blue);
  color: var(--cream);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--ribbon-gold);
  box-shadow: 0 4px 0 -1px rgba(46, 111, 176, 0.4);
}
.ribbon-badge::before {
  content: "★";
  color: var(--ribbon-gold);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 8vw, 6rem) 1.25rem;
  position: relative;
}
.section-cream { background: var(--cream); }
.section-buttermilk { background: var(--buttermilk); }
.section-dusk {
  background: linear-gradient(180deg, #2E2419 0%, #1E1812 100%);
  color: var(--cream);
}
.section-dusk h2, .section-dusk h3 { color: var(--cream); }
.section-dusk .heading-section .accent { color: var(--sunflower); }

/* Fence divider between sections */
.fence-divider {
  height: 22px;
  width: 100%;
  background-image:
    linear-gradient(90deg, transparent 0 8px, var(--ink) 8px 12px, transparent 12px 36px),
    linear-gradient(180deg, transparent 0 8px, var(--ink) 8px 11px, transparent 11px 100%);
  background-size: 36px 100%, 100% 100%;
  opacity: 0.4;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
}
.feature-card {
  background: var(--buttermilk-light);
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 1.5rem 1.25rem 1.75rem;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 0 -1px var(--ink), 0 20px 30px -16px rgba(58, 46, 34, 0.25);
  transition: transform 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card img {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.4rem 0 0.5rem;
  color: var(--barn-red);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
  text-align: left;
}

/* ---------- Yards section ---------- */
.yards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}
.yard-tile {
  background: var(--buttermilk-light);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 6px 0 -1px var(--ink);
}
.yard-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.6rem;
  border: 2px solid var(--ink);
}
.yard-tile h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.yard-tile p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.35;
}

/* ---------- Steps (Daily Round) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 2.5rem auto 0;
}
.step {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  position: relative;
}
.step .step-num {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sunflower);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--ink);
  margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ---------- Screenshots carousel ---------- */
.screens-section {
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
  background: linear-gradient(180deg, var(--buttermilk) 0%, var(--cream) 100%);
}
.screens-swiper {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1rem 0 3rem;
}
.phone-frame {
  background: var(--ink);
  border-radius: 36px;
  padding: 10px;
  width: 100%;
  max-width: 230px;
  margin: 0 auto;
  box-shadow: 0 14px 30px -10px rgba(58, 46, 34, 0.45);
  border: 2px solid var(--ink);
}
.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  display: block;
}
.swiper-pagination-bullet {
  background: var(--ink);
  opacity: 0.3;
}
.swiper-pagination-bullet-active {
  background: var(--barn-red);
  opacity: 1;
}
.swiper-button-prev, .swiper-button-next {
  color: var(--barn-red);
}

/* ---------- Blue-Ribbon Five callout ---------- */
.ribbon-five {
  max-width: 900px;
  margin: 0 auto;
  background: var(--buttermilk-light);
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 0 -1px var(--ink), 0 24px 40px -16px rgba(58, 46, 34, 0.3);
}
.ribbon-five .rosettes {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.rosette {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--ribbon-gold), var(--honey));
  border: 3px solid var(--ribbon-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
  box-shadow: 0 4px 0 -1px var(--ribbon-blue);
  position: relative;
}
.rosette::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid var(--ribbon-blue);
  margin-top: -2px;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.1);
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 36, 25, 0.55), rgba(30, 24, 18, 0.85));
}
.cta h2 { color: var(--cream); }
.cta .heading-section .accent { color: var(--sunflower); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--buttermilk);
  padding: 3rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer a { color: var(--sunflower); text-decoration: none; margin: 0 0.5rem; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-links { margin-bottom: 1rem; }
.site-footer p { margin: 0.3rem 0; }

/* ---------- Compliance strip ---------- */
.compliance-strip {
  background: var(--ribbon-blue);
  color: var(--cream);
  text-align: center;
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Legal pages ---------- */
.legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--cream);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 24px;
  border: 2px solid var(--ink);
  box-shadow: 0 8px 0 -1px var(--ink);
}
.legal-wrap h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 0.5rem; color: var(--barn-red); }
.legal-wrap h2 { font-size: 1.3rem; margin: 2rem 0 0.75rem; color: var(--ink); }
.legal-wrap p, .legal-wrap li { font-size: 1rem; line-height: 1.65; color: var(--ink); text-align: left; }
.legal-wrap ul { padding-left: 1.4rem; }
.legal-wrap a { color: var(--barn-red); }
.legal-wrap .meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ---------- Contact form ---------- */
.contact-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.contact-form label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  background: var(--buttermilk-light);
  font: inherit;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--barn-red);
  box-shadow: 0 0 0 3px rgba(178, 58, 58, 0.2);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 222, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.site-header .nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--ink);
}
.brand-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--barn-red); }
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Privacy accept button ---------- */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(180deg, rgba(251, 243, 222, 0) 0%, rgba(251, 243, 222, 0.95) 50%, var(--cream) 100%);
}
.privacy-accept-btn.hidden { display: none; }
.accept-btn {
  background: linear-gradient(180deg, var(--barn-red), var(--barn-red-deep));
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 999px;
  padding: 1rem 2rem;
  width: 100%;
  max-width: 420px;
  cursor: pointer;
  box-shadow: 0 8px 0 -1px var(--barn-red-deep), 0 18px 30px -8px rgba(178, 58, 58, 0.5);
  text-align: center;
  line-height: 1;
}
.accept-btn:hover { filter: brightness(1.06); }

/* ---------- Hero copy block ---------- */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 6rem 1.25rem 3rem;
    text-align: center;
  }
  .hero-cta-row { justify-content: center; }
}
.hero-copy p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
  margin: 1.25rem 0 1.75rem;
  max-width: 520px;
}
.hero-cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-stat {
  display: flex;
  flex-direction: column;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--barn-red);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.hero-visual .farm-tile {
  width: 100%;
  max-width: 360px;
  border-radius: 28px;
  border: 3px solid var(--ink);
  box-shadow: 0 14px 0 -2px var(--ink), 0 28px 50px -16px rgba(58, 46, 34, 0.5);
  background: var(--buttermilk-light);
  padding: 14px;
}
.hero-visual .farm-tile img { width: 100%; height: auto; border-radius: 18px; display: block; }

/* ---------- Container helper ---------- */
.wrap { max-width: 1100px; margin: 0 auto; }
.text-center { text-align: center; }
.lead {
  max-width: 700px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
