/* ============================================================
   BACKYARD CHICKENS — STYLESHEET
   ============================================================ */

:root {
  --green:       #2d5016;
  --green-mid:   #3d6b1f;
  --green-light: #4a7a28;
  --gold:        #c8860a;
  --gold-dark:   #a6700a;
  --cream:       #faf8f3;
  --white:       #ffffff;
  --text:        #2c2c2c;
  --text-muted:  #6b6560;
  --border:      #e2d9c8;
  --max-w:       1100px;
  --radius:      6px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---- Base ---- */
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.25;
  color: var(--green);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--green-light); }
a:hover { color: var(--gold); }
strong { font-weight: 600; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--green); color: white; }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: white; }

/* ---- Nav ---- */
.site-nav {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
}
.nav-logo {
  text-decoration: none;
  color: white;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: bold;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover { color: white; }
.nav-cta {
  background: var(--gold) !important;
  color: white !important;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--gold-dark) !important; }

/* ---- Hero ---- */
.hero {
  background: var(--green);
  color: white;
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/container05.jpg') center/cover no-repeat;
  opacity: 0.18;
}
.hero-inner { position: relative; }
.hero h1 { color: white; font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 1.25rem; }
.hero p { font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; opacity: 0.9; }
.hero-badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.85rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  border: 2px solid transparent;
  line-height: 1.4;
}
.btn-primary { background: var(--gold); color: white; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: white; }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: white; color: var(--green); border-color: white; }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: white; }
.btn-etsy { background: #f1641e; color: white; border-color: #f1641e; }
.btn-etsy:hover { background: #d4530f; border-color: #d4530f; color: white; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ---- Trust bar ---- */
.trust-bar {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.75rem 0;
}
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.trust-icon { font-size: 1.15rem; }

/* ---- Section header ---- */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { margin-bottom: 0.6rem; }
.section-header p { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ---- Breed grid ---- */
.breed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
}
.breed-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.breed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  color: inherit;
}
.breed-card img { width: 100%; height: 210px; object-fit: cover; }
.breed-card-body { padding: 1.2rem; }
.breed-card h3 { color: var(--green); margin-bottom: 0.25rem; }
.breed-card .breed-meta { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 0.4rem; }
.breed-card .price { color: var(--gold); font-weight: 600; font-size: 1rem; }

/* ---- Product page ---- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.product-img { border-radius: 10px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.product-img img { width: 100%; }
.product-meta-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.meta-tag {
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.buy-box {
  background: var(--cream);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.buy-box h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.buy-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.buy-box .btn-group { justify-content: flex-start; }

/* ---- Price table ---- */
.price-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
.price-table th,
.price-table td { padding: 0.6rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.price-table th { background: var(--cream); font-weight: 600; color: var(--green); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.price-table tr:last-child td { border-bottom: none; }

/* ---- Product content ---- */
.product-content { margin-top: 3rem; }
.product-content h2 { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.product-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.product-content ul,
.product-content ol { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.product-content li { margin-bottom: 0.35rem; }
.product-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
.product-content table th,
.product-content table td { padding: 0.6rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.product-content table th { background: var(--cream); font-weight: 600; }

/* ---- FAQ ---- */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.2rem 0; }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; color: var(--green); margin-bottom: 0.35rem; font-size: 1rem; }
.faq-a { color: var(--text-muted); font-size: 0.95rem; }
.faq-a a { color: var(--green-light); }

/* ---- Callout ---- */
.callout {
  background: #fffbeb;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

/* ---- About snippet ---- */
.about-snippet { max-width: 680px; margin: 0 auto; text-align: center; }
.about-snippet p { color: var(--text-muted); }

/* ---- Blog grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); color: inherit; }
.blog-card img { width: 100%; height: 175px; object-fit: cover; }
.blog-card-body { padding: 1.2rem; }
.blog-card-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.blog-card h3 { font-size: 1.05rem; color: var(--green); margin-bottom: 0.5rem; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- Post content ---- */
.post-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.post-date { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.post-body { max-width: 700px; }
.post-body h2 { margin-top: 2rem; }
.post-body img { width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 0.35rem; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; }
.post-body table th,
.post-body table td { padding: 0.6rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); }
.post-body table th { background: var(--cream); font-weight: 600; }
.post-back { margin-top: 2rem; font-size: 0.9rem; }

/* ---- Page header ---- */
.page-header {
  background: var(--green);
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 { color: white; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.85; max-width: 540px; margin: 0 auto; font-size: 1.05rem; }

/* ---- Footer ---- */
.site-footer {
  background: #1c3510;
  color: rgba(255,255,255,0.72);
  padding: 3rem 0 1.75rem;
  margin-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand-name {
  color: white;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.6; }
.footer-col h4 {
  color: white;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: system-ui, sans-serif;
}
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; }
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 0.4rem; }

/* ---- Hatching eggs landing page ---- */
.eggs-hero {
  background: var(--green);
  color: white;
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.eggs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/container05.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.eggs-hero-inner { position: relative; }
.eggs-hero h1 { color: white; font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.eggs-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 580px; margin: 0 auto 2rem; }

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .product-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .section { padding: 2.5rem 0; }
  .nav-links { display: none; }
  .hero { padding: 3.5rem 0 3rem; }
  .breed-grid { grid-template-columns: 1fr 1fr; }
  .btn-group { flex-direction: column; align-items: center; }
  .btn-group .btn { width: 100%; max-width: 320px; text-align: center; }
  .trust-bar { gap: 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

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