/* ===========================================================
   Sunny Poultry Farm — shared stylesheet
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Palette — grounded in the farm: pasture green, egg-yolk gold,
     cream (eggshell), walnut brown, soft barn rust */
  --cream:      #FAF5E9;
  --cream-dim:  #F1E9D6;
  --forest:     #2F4635;
  --forest-dim: #3E5A46;
  --gold:       #E3A23B;
  --gold-dim:   #C98A2C;
  --rust:       #B4552F;
  --charcoal:   #241F19;
  --sage:       #8AA68C;
  --line:       rgba(36, 31, 25, 0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--forest);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rust);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover { background: var(--forest-dim); }

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-gold:hover { background: var(--gold-dim); }

.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--forest);
  color: var(--cream-dim);
  font-size: 0.82rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { opacity: 0.9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }

header.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--forest);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}

nav.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

nav.main-nav a:hover::after,
nav.main-nav a.active::after {
  transform: scaleX(1);
}

nav.main-nav a.active { color: var(--rust); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--forest);
  display: block;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal);
  color: var(--cream-dim);
  padding: 64px 0 24px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,245,233,0.12);
}

.footer-grid h4 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { opacity: 0.8; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  opacity: 0.65;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Farm stamp signature motif ---------- */
.stamp {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px dashed var(--rust);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-8deg);
  flex-shrink: 0;
}
.stamp-inner {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  line-height: 1.3;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--forest);
  color: var(--cream);
  padding: 70px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--cream); margin-bottom: 10px; }
.page-hero .eyebrow { color: var(--gold); }
.page-hero .eyebrow::before { background: var(--gold); }
.page-hero p { color: var(--cream-dim); max-width: 560px; margin: 0 auto; }

/* ---------- Section utility ---------- */
.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--cream-dim); }

.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

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

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    top: 78px;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  nav.main-nav.open { max-height: 400px; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  nav.main-nav li { border-bottom: 1px solid var(--line); }
  nav.main-nav a { display: block; padding: 14px 0; }
  .menu-toggle { display: flex; }
  .nav-cta .btn-outline-desktop { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .topbar .container { justify-content: center; text-align: center; }
}
