/* ---------- Design tokens ---------- */
:root {
  --green-900: #1f3d1c;
  --green-700: #2c5c2a;
  --green-600: #357a34;
  --green-500: #419636;
  --green-100: #e7f2e3;
  --cream: #faf7f0;
  --cream-dark: #f1ead9;
  --ink: #23281f;
  --ink-soft: #4b5245;
  --white: #ffffff;
  --gold: #c98a2c;

  --font-head: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --shadow-soft: 0 12px 32px rgba(31, 61, 28, 0.14);
  --shadow-card: 0 8px 24px rgba(31, 61, 28, 0.10);
  --container-w: 1160px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--green-900); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-600);
  margin: 0 0 0.75em;
}
.eyebrow.center { text-align: center; }
h2.center { text-align: center; }
.section-lead {
  max-width: 640px;
  margin: 0 auto 2.5em;
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.section-lead.center { text-align: center; }

.section { padding: 88px 0; }
.section:nth-of-type(even) { background: var(--cream-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.9em 1.8em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--green-700); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.section .btn-ghost, .fibre-cta .btn-ghost { color: var(--green-700); border-color: var(--green-600); }
.section .btn-ghost:hover, .fibre-cta .btn-ghost:hover { background: var(--green-600); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 14px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(31,61,28,0.08);
  padding: 8px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo { height: 44px; width: auto; transition: height 0.3s ease; }
.site-header.scrolled .brand-logo { height: 38px; }

.site-nav ul { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--green-900);
  position: relative;
  padding: 4px 2px;
}
.site-header:not(.scrolled) .site-nav a { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  transition: right 0.25s ease;
}
.site-nav a:hover::after { right: 0; }
.nav-cta {
  background: var(--green-600);
  color: #fff !important;
  text-shadow: none !important;
  padding: 0.55em 1.3em;
  border-radius: 999px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--green-700); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--green-900); box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,35,18,0.25) 0%, rgba(20,35,18,0.35) 55%, rgba(15,26,13,0.85) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 110px;
  max-width: 760px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 0.3em;
}
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 560px;
  color: rgba(255,255,255,0.92);
}
.hero .eyebrow { color: #d9e9c9; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.6em; }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 30px;
  height: 46px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ---------- Split (about / visit) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse .split-media { order: 2; }
.split-reverse .split-copy { order: 1; }
.split-media img, .split-media iframe {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.split-media iframe {
  height: 380px;
  border: 0;
}
.split-copy p { color: var(--ink-soft); }
.check-list { margin: 1.4em 0; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.6em;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-100);
  border: 2px solid var(--green-500);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 0.55em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--green-600);
  border-bottom: 2px solid var(--green-600);
  transform: rotate(-45deg);
}

.stat-row {
  display: flex;
  gap: 36px;
  margin-top: 2em;
  flex-wrap: wrap;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--green-600);
  font-weight: 700;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 12ch;
}

/* ---------- Alpacas / colour section ---------- */
.alpacas-section .container:first-child { margin-bottom: 40px; }
.herd-media { margin: 0 0 56px; }
.herd-media img {
  width: 100%;
  height: clamp(240px, 42vw, 480px);
  object-fit: cover;
  object-position: center 35%;
}
.colour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.colour-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.swatch {
  display: inline-block;
  width: 44px; height: 44px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--cream-dark);
}
.swatch-white { background: linear-gradient(145deg, #fff, #e4dcc8); }
.swatch-fawn { background: linear-gradient(145deg, #c98a4f, #7a4a25); }
.swatch-black { background: linear-gradient(145deg, #3a3a3f, #0d0d10); }
.colour-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }
.colour-card h3 { font-size: 1.15rem; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 8px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-media { aspect-ratio: 4/3; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3, .product-card p { padding: 0 22px; }
.product-card h3 { margin-top: 20px; font-size: 1.2rem; }
.product-card p { color: var(--ink-soft); padding-bottom: 22px; }

.fibre-cta {
  margin-top: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.fibre-cta p { color: var(--ink-soft); margin: 0; font-size: 1.05rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--cream-dark);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(20,35,18,0.55));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }

.gallery-more {
  margin-top: 44px;
  text-align: center;
}
.gallery-more p { color: var(--ink-soft); margin-bottom: 1em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 8px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-card:not(.contact-card-static):hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.contact-card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 32px;
  text-align: center;
}
.footer-logo { height: 40px; margin: 0 auto 18px; }
.footer-tag { color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.footer-links a { color: #fff; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { margin: 0 10px; color: rgba(255,255,255,0.4); }
.footer-copy { margin: 24px 0 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 12, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-caption {
  color: #fff;
  margin-top: 16px;
  font-size: 0.95rem;
  opacity: 0.85;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-media, .split-reverse .split-copy { order: initial; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--green-900);
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .site-nav a { color: #fff !important; text-shadow: none !important; font-size: 1.1rem; }
  .nav-cta { display: inline-block; }
  .colour-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding-bottom: 80px; }
  .stat-row { gap: 24px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.05rem; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}
