/* Quality Livestock Limited — site styles */

:root {
  --green: #007336;          /* sampled from QLL logo */
  --green-dark: #00532a;
  --green-tint: #e8f3ec;
  --cream: #faf8f3;
  --ink: #1d2420;
  --muted: #5b665f;
  --line: #e2e6e1;
  --white: #ffffff;
  --accent: #b8862b;         /* warm wheat accent */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,40,20,.06);
  --max: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { text-decoration: none; color: var(--green); }
.nav-links a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .brand img { height: 26px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  min-height: min(82vh, 720px);
  display: flex;
  align-items: flex-end;
  background: var(--green-dark) url("../assets/img/qll-farm-aerial.jpg") center/cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,30,15,.15) 0%, rgba(0,30,15,.55) 55%, rgba(0,30,15,.85) 100%);
}
.hero .container { position: relative; padding-top: 6rem; padding-bottom: 4.5rem; }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero .eyebrow { color: #bfe6cd; }
.hero p { color: rgba(255,255,255,.88); font-size: 1.15rem; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--green-tint);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .3em; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -3rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.stat { background: var(--white); padding: 1.6rem 1.4rem; }
.stat strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  color: var(--green);
  line-height: 1.1;
}
.stat span { font-size: .9rem; color: var(--muted); }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

/* Category cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfdcd3; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--green-tint);
  color: var(--green);
  margin-bottom: 1rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card-link { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .92rem; }

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature h3 { font-family: inherit; font-size: 1.05rem; font-weight: 600; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature .dot {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--white);
  margin-bottom: .9rem;
}
.feature .dot svg { width: 20px; height: 20px; }

/* CTA band */
.cta {
  background: var(--green);
  color: var(--white);
  border-radius: calc(var(--radius) + 6px);
  padding: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta h2 { color: var(--white); margin: 0 0 .3em; }
.cta p { margin: 0; color: rgba(255,255,255,.85); }
.cta .btn { background: var(--white); color: var(--green); }
.cta .btn:hover { background: var(--cream); }
@media (max-width: 600px) { .cta { padding: 2rem 1.5rem; } }

/* ---------- Products page ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }

.product-group { margin-bottom: 3.5rem; }
.product-group[hidden] { display: none; }
.group-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.25rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.group-head .card-icon { margin: 0; width: 44px; height: 44px; }
.group-head h2 { margin: 0; font-size: 1.6rem; }
.group-head p { margin: 0; color: var(--muted); font-size: .92rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}
.product {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.25rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: border-color .2s, box-shadow .2s;
}
.product:hover { border-color: #cfdcd3; box-shadow: var(--shadow); }
.product h3 { font-family: inherit; font-size: 1.02rem; font-weight: 600; margin: 0; }
.product p { color: var(--muted); font-size: .9rem; margin: 0; }
.tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  background: #f8f0e0;
  padding: .15rem .55rem;
  border-radius: 6px;
  margin-top: .35rem;
}

.note {
  background: var(--cream);
  border-left: 3px solid var(--green);
  padding: 1rem 1.25rem;
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--white);
}
.contact-card h3 { margin-bottom: .8rem; }
.contact-card address { font-style: normal; color: var(--muted); line-height: 1.75; }
.contact-card ul { list-style: none; padding: 0; margin: 0; }
.contact-card li { padding: .35rem 0; }
.contact-card li a { font-weight: 500; word-break: break-word; }
.contact-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.map-wrap {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 7;
  background: var(--green-tint);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 600px) { .map-wrap { aspect-ratio: 4 / 3; } }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1d16;
  color: rgba(255,255,255,.72);
  padding: 4rem 0 2rem;
  font-size: .93rem;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
}
.footer-brand img { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.site-footer h4 {
  color: var(--white);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }

.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cards-2 { grid-template-columns: 1fr; } }

.sub-head { font-family: inherit; font-size: 1.05rem; font-weight: 600; margin: 0 0 1rem; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-tint); color: var(--green);
  font-weight: 600; margin-bottom: .9rem;
}

/* FAQ */
.faq { max-width: 820px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: .75rem;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 600;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--green);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--muted); }

/* Contact extras */
.contact-list { margin-top: 1rem !important; border-top: 1px solid var(--line); padding-top: .75rem !important; }
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-top: 1.25rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  background: var(--green-tint);
}
.contact-strip a { font-weight: 600; font-size: 1.1rem; }

.features { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

.features-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .features-3 { grid-template-columns: 1fr; } }

.cta-light { background: var(--green-tint); color: var(--ink); }
.cta-light h2 { color: var(--ink); }
.cta-light p { color: var(--muted); }
.cta-light .btn-primary { background: var(--green); color: var(--white); }
.cta-light .btn-primary:hover { background: var(--green-dark); }

/* Our Livestock page */
.livestock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 760px) { .livestock-grid { grid-template-columns: 1fr; } }
.livestock {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--white);
  scroll-margin-top: 90px;
}
.livestock .card-icon { margin-bottom: 1.25rem; }
.livestock-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--green);
}
.livestock-unit {
  font-size: .85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: .4rem 0 1.2rem;
}
.livestock h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.livestock p { color: var(--muted); }
.livestock .btn { margin-top: .5rem; }
