/* Walker Dairying Limited — pastoral corporate site */

:root {
  --wd-meadow: #3f7d3f;
  --wd-meadow-deep: #2f5f30;
  --wd-cream: #faf6ec;
  --wd-cream-warm: #f2ead6;
  --wd-barn: #6b4a2f;
  --wd-barn-soft: #8a6a4c;
  --wd-ink: #33291f;
  --wd-paper: #ffffff;
  --wd-line: #e4d9be;
  --wd-shadow: 0 14px 34px rgba(61, 74, 47, 0.14);
  --wd-shadow-soft: 0 6px 18px rgba(61, 74, 47, 0.10);
  --wd-radius: 20px;
  --wd-radius-lg: 30px;
  --wd-unit: 1.15rem;
  --wd-shell: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Karla", "Segoe UI", system-ui, sans-serif;
  color: var(--wd-ink);
  background-color: var(--wd-cream);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(63, 125, 63, 0.06), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(107, 74, 47, 0.05), transparent 40%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bitter", Georgia, serif;
  line-height: 1.2;
  margin: 0;
  color: var(--wd-barn);
}

p { margin: 0 0 var(--wd-unit); }

a { color: var(--wd-meadow-deep); }

.wd-shell {
  width: 100%;
  max-width: var(--wd-shell);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.wd-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--wd-meadow);
  color: var(--wd-cream);
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 0;
  z-index: 60;
}
.wd-skip:focus { left: 0; }

/* ---------- Top bar ---------- */
.wd-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 246, 236, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wd-line);
}
.wd-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}
.wd-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.wd-brand__mark {
  display: inline-flex;
  filter: drop-shadow(0 4px 8px rgba(47, 95, 48, 0.25));
}
.wd-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.wd-brand__name {
  font-family: "Bitter", serif;
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--wd-barn);
}
.wd-brand__sub {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wd-meadow);
  font-weight: 600;
}

.wd-nav { display: flex; align-items: center; }
.wd-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wd-meadow);
  color: var(--wd-cream);
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.wd-nav__bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--wd-cream);
  border-radius: 2px;
}
.wd-nav__bars::before,
.wd-nav__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--wd-cream);
  border-radius: 2px;
}
.wd-nav__bars::before { top: -6px; }
.wd-nav__bars::after { top: 6px; }

.wd-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 74px;
  right: 1.4rem;
  left: 1.4rem;
  background: var(--wd-paper);
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  box-shadow: var(--wd-shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.wd-nav__list.wd-is-open { display: flex; }
.wd-nav__list li + li { border-top: 1px solid var(--wd-line); }
.wd-nav__list a {
  display: block;
  padding: 0.9rem 1.2rem;
  text-decoration: none;
  color: var(--wd-barn);
  font-weight: 600;
}
.wd-nav__list a:hover { background: var(--wd-cream-warm); }

/* ---------- Hero ---------- */
.wd-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.wd-hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.wd-hero__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #eef6e6 0%, var(--wd-cream) 62%);
}
.wd-hero__hills {
  position: absolute;
  left: -5%;
  right: -5%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.wd-hero__hills--far {
  bottom: 60px;
  height: 190px;
  background: rgba(63, 125, 63, 0.22);
}
.wd-hero__hills--near {
  bottom: 40px;
  height: 150px;
  background: rgba(63, 125, 63, 0.4);
}
.wd-hero__fence {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  opacity: 0.85;
}
.wd-hero__inner {
  position: relative;
  padding: 3.4rem 1.4rem 5.4rem;
  text-align: center;
  max-width: 780px;
}
.wd-hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 1rem;
  background: var(--wd-paper);
  border: 1px solid var(--wd-line);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-meadow-deep);
  font-weight: 600;
}
.wd-hero__title {
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: var(--wd-barn);
}
.wd-hero__lead {
  font-size: 1.14rem;
  color: var(--wd-ink);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.9rem;
}
.wd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.wd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.wd-btn--solid {
  background: var(--wd-meadow);
  color: var(--wd-cream);
  box-shadow: var(--wd-shadow-soft);
}
.wd-btn--solid:hover { background: var(--wd-meadow-deep); transform: translateY(-2px); }
.wd-btn--ghost {
  background: transparent;
  color: var(--wd-barn);
  border: 2px solid var(--wd-barn);
}
.wd-btn--ghost:hover { background: var(--wd-barn); color: var(--wd-cream); transform: translateY(-2px); }

/* ---------- About ---------- */
.wd-about { padding: 3.6rem 0; }
.wd-about__grid {
  display: grid;
  gap: 1.8rem;
}
.wd-h2 {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.wd-about__copy p { font-size: 1.05rem; }
.wd-about__card {
  background: var(--wd-paper);
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius-lg);
  padding: 1.6rem;
  box-shadow: var(--wd-shadow-soft);
  position: relative;
  overflow: hidden;
}
.wd-about__card::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 125, 63, 0.16), transparent 70%);
}
.wd-facts { list-style: none; margin: 0; padding: 0; }
.wd-facts li {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--wd-line);
}
.wd-facts li:last-child { border-bottom: none; }
.wd-facts__key {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wd-meadow);
  font-weight: 600;
}
.wd-facts__val {
  font-family: "Bitter", serif;
  font-size: 1.08rem;
  color: var(--wd-barn);
  font-weight: 600;
}

/* ---------- Work ---------- */
.wd-work {
  padding: 3.6rem 0 4rem;
  background:
    linear-gradient(180deg, transparent, rgba(107, 74, 47, 0.04)),
    repeating-linear-gradient(135deg, rgba(63, 125, 63, 0.035) 0 14px, transparent 14px 28px);
}
.wd-work__head { text-align: center; max-width: 620px; margin: 0 auto 2.4rem; }
.wd-work__intro { font-size: 1.05rem; color: var(--wd-ink); }
.wd-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.3rem;
}
.wd-card {
  background: var(--wd-paper);
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--wd-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wd-card:hover { transform: translateY(-5px); box-shadow: var(--wd-shadow); }
.wd-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--wd-cream-warm);
  margin-bottom: 1rem;
}
.wd-card__title {
  font-size: 1.24rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}
.wd-card p { margin: 0; color: var(--wd-ink); }

/* ---------- Contact ---------- */
.wd-contact { padding: 3.6rem 0 4rem; }
.wd-contact__grid { display: grid; gap: 1.8rem; }
.wd-contact__intro p { font-size: 1.05rem; }
.wd-contact__panel {
  background: linear-gradient(160deg, var(--wd-meadow) 0%, var(--wd-meadow-deep) 100%);
  color: var(--wd-cream);
  border-radius: var(--wd-radius-lg);
  padding: 1.9rem;
  box-shadow: var(--wd-shadow);
}
.wd-contact__list { margin: 0; }
.wd-contact__row { padding: 0.9rem 0; border-bottom: 1px solid rgba(250, 246, 236, 0.22); }
.wd-contact__row:last-child { border-bottom: none; }
.wd-contact__row dt {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.wd-contact__row dd {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.5;
}
.wd-link {
  color: var(--wd-meadow-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.wd-link:hover { color: var(--wd-barn); }
.wd-contact__panel .wd-link {
  color: var(--wd-cream);
  border-bottom-color: rgba(250, 246, 236, 0.6);
}
.wd-contact__panel .wd-link:hover { color: #fff; }

/* ---------- Footer ---------- */
.wd-footer {
  background: var(--wd-barn);
  color: var(--wd-cream);
  padding: 2.8rem 0;
}
.wd-footer__grid { display: grid; gap: 1.4rem; }
.wd-footer__name {
  font-family: "Bitter", serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: block;
  margin-bottom: 0.55rem;
}
.wd-footer__addr {
  font-style: normal;
  opacity: 0.9;
  line-height: 1.55;
  max-width: 320px;
}
.wd-footer__reg { font-size: 0.9rem; opacity: 0.85; }
.wd-footer__contact { margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.wd-link--pale { color: var(--wd-cream); border-bottom-color: rgba(250, 246, 236, 0.5); }
.wd-link--pale:hover { color: #fff; }
.wd-footer__dot { opacity: 0.5; }

/* ---------- Privacy / legal page ---------- */
.wd-legal { padding: 2.8rem 0 3.6rem; }
.wd-legal__shell { max-width: 760px; }
.wd-legal__head {
  padding: 2rem;
  background: var(--wd-paper);
  border: 1px solid var(--wd-line);
  border-radius: var(--wd-radius-lg);
  box-shadow: var(--wd-shadow-soft);
  margin-bottom: 1.8rem;
}
.wd-legal__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wd-meadow);
  font-weight: 600;
}
.wd-legal__title {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.wd-legal__lead { font-size: 1.08rem; margin: 0; color: var(--wd-ink); }
.wd-legal__section {
  padding: 1.4rem 0;
  border-bottom: 1px dashed var(--wd-line);
}
.wd-legal__section:last-of-type { border-bottom: none; }
.wd-legal__section .wd-h2 { font-size: 1.3rem; margin-bottom: 0.7rem; }
.wd-legal__section p { color: var(--wd-ink); }
.wd-legal__section p:last-child { margin-bottom: 0; }
.wd-legal__back { margin-top: 1.8rem; }

/* ---------- Reveal animation ---------- */
.wd-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.wd-reveal.wd-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  .wd-about__grid { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .wd-cards { grid-template-columns: repeat(2, 1fr); }
  .wd-contact__grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .wd-footer__grid { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .wd-footer__meta { text-align: right; }
  .wd-footer__contact { justify-content: flex-end; }
}

@media (min-width: 940px) {
  .wd-nav__toggle { display: none; }
  .wd-nav__list {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 0.4rem;
  }
  .wd-nav__list li + li { border-top: none; }
  .wd-nav__list a { padding: 0.5rem 0.95rem; border-radius: 999px; }
  .wd-nav__list a:hover { background: var(--wd-cream-warm); }
  .wd-cards { grid-template-columns: repeat(4, 1fr); }
  .wd-hero__inner { padding-top: 4.4rem; padding-bottom: 6.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wd-reveal { opacity: 1; transform: none; transition: none; }
  .wd-btn, .wd-card { transition: none; }
}
