/* ==========================================================================
   Makgitle Farm — Design tokens
   Colours and font pairing extracted directly from the official
   Makgitle Farm business plan documents.
   ========================================================================== */
:root {
  --green-dark: #2f5233;   /* primary brand green — header/footer bars, headings */
  --green-deep: #243f27;   /* hover/active shade of primary green */
  --green-olive: #384238;  /* secondary heading accent */
  --gold: #b08d4f;         /* accent — dividers, section labels, borders */
  --gold-light: #d8c69a;
  --cream: #f6f2e7;        /* page background, matches logo background exactly */
  --cream-alt: #efe9d8;    /* alternating table rows / card backgrounds */
  --border-tan: #d8d0bc;   /* hairline borders / dividers */
  --ink: #2b2b2b;          /* body text */
  --muted: #6b6b6b;        /* captions, meta text */
  --white: #fffdf8;

  --font-heading: "Merriweather", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --max-width: 1140px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(47, 82, 51, 0.08);
  --shadow-md: 0 10px 30px rgba(47, 82, 51, 0.12);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.rule {
  width: 64px;
  height: 3px;
  background: var(--gold);
  border: none;
  margin: 16px 0 0;
}
.rule.center { margin: 16px auto 0; }
.lede {
  font-size: 1.08rem;
  color: var(--ink);
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #9a7a42; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; color: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-dark:hover { background: var(--green-dark); color: var(--white); }

/* ---------- Header / Nav ---------- */
.topbar {
  background: var(--green-dark);
  color: var(--cream);
  font-size: 0.82rem;
  border-bottom: 4px solid var(--gold);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { opacity: 0.92; }
.topbar a:hover { color: var(--gold-light); }
.topbar-links { display: flex; gap: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border-tan);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text .name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.25rem;
  line-height: 1.1;
}
.brand-text .tag {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active { color: var(--green-dark); border-bottom-color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--green-dark);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-alt) 100%);
  border-bottom: 1px solid var(--border-tan);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero h1 { margin-bottom: 18px; }
.hero .lede { font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-art .ring {
  width: min(360px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-tan);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.stat-box {
  background: var(--white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
}
.stat-box .num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--green-dark);
  font-size: 1.4rem;
}
.stat-box .label {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* page header (non-home hero) */
.page-header {
  background: var(--green-dark);
  color: var(--cream);
  padding: 56px 0 44px;
  border-bottom: 5px solid var(--gold);
  position: relative;
}
.page-header .eyebrow { color: var(--gold-light); }
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(246,242,231,0.86); max-width: 640px; font-size: 1.05rem; }
.page-header.has-photo {
  background-image: linear-gradient(135deg, rgba(36,63,39,0.92), rgba(47,82,51,0.82)), var(--header-photo);
  background-size: cover;
  background-position: center;
  padding: 80px 0 64px;
}
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(246,242,231,0.7);
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border-tan);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink); font-size: 0.97rem; }

/* ---------- Photo cards (breeds, etc.) ---------- */
.photo-card { padding: 0; overflow: hidden; }
.photo-card .photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--gold);
}
.photo-card .photo-card-body { padding: 24px 26px 28px; }
.photo-card .photo-card-body h3 { margin-bottom: 8px; }
.photo-card .photo-card-body p { color: var(--ink); font-size: 0.95rem; }
.photo-credit {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
  display: block;
}
.photo-credit a { text-decoration: underline; }

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-tan);
  box-shadow: var(--shadow-sm);
}
.photo-frame img { width: 100%; display: block; }

.alt-section { background: var(--white); border-top: 1px solid var(--border-tan); border-bottom: 1px solid var(--border-tan); }
.green-section { background: var(--green-dark); color: var(--cream); }
.green-section h2, .green-section h3 { color: var(--white); }
.green-section .eyebrow { color: var(--gold-light); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-tan); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead th {
  background: var(--green-dark);
  color: var(--white);
  text-align: left;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 18px;
}
tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-tan);
  font-size: 0.95rem;
}
tbody tr:nth-child(even) { background: var(--cream-alt); }
tbody tr:last-child td { border-bottom: none; }
td.price { color: var(--green-dark); font-weight: 700; font-family: var(--font-heading); white-space: nowrap; }

/* ---------- Timeline (phased strategy) ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.phase {
  border: 1px solid var(--border-tan);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.phase .phase-num {
  font-family: var(--font-heading);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.phase h3 { margin: 8px 0 10px; }
.phase p { font-size: 0.94rem; }

/* ---------- Badge / pill ---------- */
.pill {
  display: inline-block;
  background: var(--cream-alt);
  border: 1px solid var(--border-tan);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.pill.gold { background: rgba(176,141,79,0.12); border-color: var(--gold); color: #7a5f30; }

/* ---------- Two-col content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > *:first-child { order: 2; }
.feature-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
  font-size: 0.97rem;
}
.feature-list .dot {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  margin-top: 2px;
}

/* ---------- Quote / pull box ---------- */
.pull-box {
  background: var(--cream-alt);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 26px;
  font-size: 1rem;
  color: var(--green-olive);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(246,242,231,0.85); max-width: 560px; margin: 14px auto 0; }
.cta-band .hero-actions { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: rgba(246,242,231,0.85); padding-top: 56px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(246,242,231,0.18);
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); }
.footer-brand .name { font-family: var(--font-heading); color: var(--white); font-size: 1.2rem; font-weight: 700; }
.footer-col h4 {
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 28px;
  font-size: 0.82rem;
  color: rgba(246,242,231,0.6);
  flex-wrap: wrap;
  gap: 10px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(246,242,231,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.social-row a:hover { background: var(--gold); border-color: var(--gold); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Misc utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.muted { color: var(--muted); }
.divider { border: none; border-top: 1px solid var(--border-tan); margin: 48px 0; }
.tag-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.color-swatch-row { display: flex; gap: 14px; margin-top: 16px; }
.color-swatch { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--white); box-shadow: var(--shadow-sm); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse > *:first-child { order: 0; }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; inset: 70px 0 0 0; background: var(--cream); flex-direction: column; align-items: flex-start; padding: 24px 24px; gap: 14px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
  .brand-text .tag { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
