:root {
  --leaf: #2f7d41;
  --deep: #10291b;
  --mint: #e7f3e7;
  --cream: #fff9ed;
  --sun: #f4b63f;
  --tomato: #c84b38;
  --ink: #152017;
  --muted: #5c6b60;
  --line: rgba(16, 41, 27, 0.14);
  --shadow: 0 24px 70px rgba(16, 41, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfcf7;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 70px);
  color: white;
  background: linear-gradient(180deg, rgba(8, 25, 14, 0.78), rgba(8, 25, 14, 0));
}

.site-header.scrolled {
  color: var(--deep);
  background: rgba(251, 252, 247, 0.94);
  box-shadow: 0 8px 30px rgba(16, 41, 27, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 34px);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a {
  opacity: 0.92;
}

.site-nav a:hover {
  color: var(--sun);
}

.nav-button {
  min-height: 38px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 14px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.nav-button span {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: var(--sun);
  font-size: 0.75rem;
}

.admin-entry {
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: white;
  background: var(--deep);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 20, 12, 0.83), rgba(7, 20, 12, 0.36) 47%, rgba(7, 20, 12, 0.08)),
    linear-gradient(0deg, rgba(7, 20, 12, 0.38), rgba(7, 20, 12, 0));
}

.hero-copy {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 7vw, 96px);
  bottom: clamp(72px, 14vh, 150px);
  max-width: min(760px, calc(100vw - 40px));
}

.hero-copy p,
.section-heading p,
.quality-copy p,
.supply p,
.contact-panel p {
  margin: 0 0 12px;
  color: var(--tomato);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy p {
  color: var(--sun);
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.65rem, 6.4vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.primary-link,
.intro-band a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 22px;
  border-radius: 999px;
  color: var(--deep);
  background: var(--sun);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 6vw, 76px);
  bottom: 42px;
  display: flex;
  gap: 12px;
}

.slide-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.slide-dot.active {
  background: white;
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px clamp(20px, 7vw, 96px);
  color: white;
  background: var(--deep);
}

.intro-band span {
  display: block;
  color: #a5d6a9;
  font-weight: 800;
}

.intro-band strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
  line-height: 1.1;
}

.intro-band a {
  flex: 0 0 auto;
  margin-top: 0;
}

.section-grid,
.livestock,
.gallery,
.shop,
.supply,
.contact {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 7vw, 96px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.quality-copy h2,
.supply h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.section-grid .section-heading {
  grid-column: 1 / -1;
}

.feature-card {
  min-height: 360px;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  background: var(--mint);
  box-shadow: var(--shadow);
}

.feature-card.tall {
  grid-row: span 2;
  min-height: 744px;
}

.feature-card::after,
.livestock-grid article::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(7, 20, 12, 0.78), rgba(7, 20, 12, 0.04) 65%);
}

.feature-card div,
.livestock-grid article div {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 28px;
  color: white;
}

.feature-card h3,
.livestock-grid h3 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.7vw, 3rem);
  line-height: 1;
}

.feature-card p,
.livestock-grid p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.quality {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 80px);
  padding: clamp(70px, 10vw, 120px) clamp(20px, 7vw, 96px);
  color: white;
  background:
    linear-gradient(rgba(14, 47, 27, 0.87), rgba(14, 47, 27, 0.92)),
    url("https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&w=1700&q=85") center/cover;
}

.quality-copy p {
  color: var(--sun);
}

.quality-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quality-list div {
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.quality-list strong {
  display: block;
  color: var(--sun);
  font-size: 1.8rem;
}

.quality-list span {
  display: block;
  margin-top: 28px;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  font-weight: 900;
  line-height: 1.16;
}

.livestock {
  background: var(--cream);
}

.livestock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.livestock-grid article {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mint);
}

.shop {
  background: #fbfcf7;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tabs button,
.cart-summary,
.dashboard-top button,
.ghost-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--deep);
  background: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.category-tabs button.active,
.cart-summary,
.dashboard-top button {
  color: white;
  background: var(--leaf);
}

.cart-summary strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  place-items: center;
  border-radius: 50%;
  color: var(--deep);
  background: var(--sun);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(16, 41, 27, 0.08);
}

.product-card figure {
  height: 230px;
  margin: 0;
  background: var(--mint);
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-card small {
  color: var(--tomato);
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3,
.product-card p {
  margin: 0;
}

.product-card p {
  min-height: 48px;
  color: var(--muted);
  line-height: 1.5;
}

.price-row,
.qty-row,
.drawer-heading,
.cart-row,
.cart-total,
.dashboard-top,
.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.price-row strong {
  font-size: 1.35rem;
}

.qty-row input {
  width: 74px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  font: inherit;
}

.product-card button,
.order-form button,
.login-card button,
.product-form button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--leaf);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal-shell.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 19, 10, 0.68);
  backdrop-filter: blur(8px);
}

.shop-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: min(480px, 100%);
  height: 100%;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  overflow: auto;
  background: white;
  box-shadow: var(--shadow);
}

.drawer-heading p,
.login-card p,
.dashboard-top p,
.admin-visual p {
  margin: 0 0 6px;
  color: var(--tomato);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-heading h2,
.login-card h2,
.dashboard-top h2,
.admin-visual h2 {
  margin: 0;
  line-height: 1;
}

.icon-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--deep);
  background: white;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-row {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cart-row button,
.admin-actions button {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: white;
  background: var(--tomato);
  font-weight: 900;
  cursor: pointer;
}

.cart-total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-size: 1.15rem;
}

.order-form,
.login-card,
.product-form {
  display: grid;
  gap: 14px;
}

.order-form label,
.login-card label,
.product-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.order-form input,
.order-form textarea,
.login-card input,
.product-form input,
.product-form select,
.product-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcf7;
  font: inherit;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfcf7;
}

.admin-panel {
  position: absolute;
  inset: 4vh clamp(12px, 4vw, 60px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  max-width: 1180px;
  margin: auto;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.admin-visual {
  position: relative;
  min-height: 620px;
  color: white;
  background: var(--deep);
}

.admin-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(7, 20, 12, 0.8), rgba(7, 20, 12, 0.18));
}

.admin-visual div {
  position: absolute;
  z-index: 2;
  inset: auto 28px 30px;
}

.admin-visual p {
  color: var(--sun);
}

.admin-visual h2 {
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.admin-content {
  position: relative;
  max-height: 92vh;
  overflow: auto;
  padding: clamp(24px, 4vw, 42px);
}

.admin-content > .icon-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.login-card {
  max-width: 430px;
  margin: 90px auto 0;
}

.login-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.login-card small {
  color: var(--muted);
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.dashboard {
  display: grid;
  gap: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.metric-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.product-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf7;
}

.product-form h3,
.admin-list h3 {
  grid-column: 1 / -1;
  margin: 0;
}

.product-form .wide {
  grid-column: 1 / -1;
}

.product-form .ghost-button {
  color: var(--deep);
  background: white;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-list > div {
  display: grid;
  gap: 10px;
}

.admin-item {
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.admin-actions button:first-child {
  background: var(--leaf);
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 12px;
}

.photo-mosaic img {
  border-radius: 8px;
  background: var(--mint);
}

.photo-mosaic img:nth-child(1),
.photo-mosaic img:nth-child(6) {
  grid-row: span 2;
}

.photo-mosaic img:nth-child(2),
.photo-mosaic img:nth-child(8) {
  grid-column: span 2;
}

.supply {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
  background: #edf6e8;
}

.supply-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.supply-tags span {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  background: white;
  font-weight: 850;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 0;
  background: var(--deep);
}

.contact-image {
  min-height: 650px;
  overflow: hidden;
  border-radius: 8px 0 0 8px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 0 8px 8px 0;
  background: white;
}

.contact-panel form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.contact-panel input,
.contact-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfcf7;
  font: inherit;
  resize: vertical;
}

.contact-panel button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--leaf);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 7vw, 96px);
  color: white;
  background: #08160d;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a {
  margin-top: 0;
  min-height: 42px;
}

.site-footer {
  display: block;
  padding: 0;
  color: white;
  background:
    linear-gradient(rgba(8, 22, 13, 0.94), rgba(8, 22, 13, 0.98)),
    url("https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&w=1500&q=80") center/cover;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr 0.95fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(46px, 7vw, 78px) clamp(20px, 7vw, 96px);
}

.footer-brand .brand {
  color: white;
}

.footer-brand .brand-mark {
  color: #bde4a8;
}

.footer-brand p,
.site-footer p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #d8efc9;
  font-size: 1rem;
}

.site-footer nav {
  display: grid;
  gap: 10px;
  font-weight: 850;
}

.site-footer nav a {
  min-height: auto;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer nav a:hover {
  color: var(--sun);
}

.footer-cta {
  display: inline-flex;
  min-height: 44px !important;
  align-items: center;
  justify-content: center;
  margin-top: 20px !important;
  border-radius: 999px;
  padding: 0 18px;
  color: var(--deep) !important;
  background: var(--sun);
  font-weight: 900;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 7vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 4px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 8px;
    color: var(--deep);
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
    border-radius: 6px;
  }

  .site-nav .nav-button {
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    border-color: var(--line);
    text-align: left;
  }

  .site-nav a:hover {
    background: var(--mint);
  }

  .hero {
    min-height: 760px;
  }

  .section-grid,
  .quality,
  .shop-toolbar,
  .supply,
  .contact {
    grid-template-columns: 1fr;
  }

  .shop-toolbar {
    display: grid;
    align-items: stretch;
  }

  .cart-summary {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card.tall {
    min-height: 500px;
  }

  .livestock-grid {
    grid-template-columns: 1fr;
  }

  .livestock-grid article {
    min-height: 430px;
  }

  .photo-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }

  .contact-image,
  .contact-panel {
    border-radius: 8px;
  }

  .contact-image {
    min-height: 420px;
  }

  .admin-panel {
    inset: 14px;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .admin-visual {
    min-height: 240px;
  }

  .admin-content {
    max-height: none;
  }

  .login-card {
    margin-top: 54px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-slide::after {
    background:
      linear-gradient(0deg, rgba(7, 20, 12, 0.88), rgba(7, 20, 12, 0.22) 70%),
      linear-gradient(90deg, rgba(7, 20, 12, 0.55), rgba(7, 20, 12, 0.12));
  }

  .hero-copy {
    bottom: 95px;
  }

  .primary-link {
    width: 100%;
  }

  .hero-controls {
    right: auto;
    left: 20px;
    bottom: 34px;
  }

  .intro-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-band a,
  .site-footer a {
    width: 100%;
  }

  .section-grid,
  .livestock,
  .gallery,
  .shop,
  .supply,
  .contact {
    padding: 58px 18px;
  }

  .product-grid,
  .product-form,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .product-card figure {
    height: 210px;
  }

  .shop-drawer {
    padding: 18px;
  }

  .feature-card,
  .feature-card.tall,
  .livestock-grid article {
    min-height: 380px;
  }

  .feature-card div,
  .livestock-grid article div {
    padding: 22px;
  }

  .quality {
    padding: 58px 18px;
  }

  .quality-list {
    grid-template-columns: 1fr;
  }

  .photo-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .photo-mosaic img,
  .photo-mosaic img:nth-child(1),
  .photo-mosaic img:nth-child(2),
  .photo-mosaic img:nth-child(6),
  .photo-mosaic img:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-image {
    min-height: 300px;
  }
}

/* Multi-page farm theme */
.page-header {
  color: var(--deep);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(16, 41, 27, 0.11);
  backdrop-filter: blur(18px);
}

.page-header .brand-mark {
  color: var(--leaf);
}

.page-header .site-nav a.active {
  color: var(--leaf);
}

.page-header .shop-now {
  color: white;
  border-color: var(--leaf);
  background: var(--leaf);
}

.home-hero {
  min-height: 72vh;
  margin-top: 0;
}

.home-hero .hero-copy {
  bottom: clamp(80px, 12vh, 130px);
  max-width: 700px;
}

.home-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 6vw, 6.2rem);
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  margin-top: 82px;
  overflow: hidden;
  color: white;
  text-align: center;
  background: var(--deep);
}

.page-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(7, 20, 12, 0.48);
}

.page-hero img {
  position: absolute;
  inset: 0;
}

.page-hero div {
  position: relative;
  z-index: 2;
  padding: 42px 20px;
}

.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 5.3rem);
  line-height: 1;
}

.page-hero p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.centered {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.home-values,
.featured-products,
.animal-preview,
.story-section {
  padding: clamp(64px, 8vw, 105px) clamp(20px, 7vw, 96px);
}

.home-values {
  background: #fffdf5;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.value-grid article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  justify-items: center;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  background: white;
}

.value-grid strong {
  font-size: 1.05rem;
}

.value-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.outline-link,
.shop-product-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--leaf);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--leaf);
  font-weight: 900;
}

.wide-promo {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  color: white;
  background: var(--deep);
}

.wide-promo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7, 20, 12, 0.82), rgba(7, 20, 12, 0.14));
}

.wide-promo img {
  position: absolute;
  inset: 0;
}

.wide-promo div {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: clamp(50px, 8vw, 95px) clamp(20px, 7vw, 96px);
}

.wide-promo h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
}

.wide-promo p {
  line-height: 1.7;
}

.wide-promo a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 10px;
  border-radius: 999px;
  padding: 0 18px;
  color: white;
  background: var(--leaf);
  font-weight: 900;
}

.small-promo {
  min-height: 250px;
}

.animal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.animal-grid a {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  background: var(--deep);
}

.animal-grid a::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(7, 20, 12, 0.72), rgba(7, 20, 12, 0));
}

.animal-grid span {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.story-section img {
  min-height: 380px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-section h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 4rem);
  line-height: 1.05;
}

.story-section p:not(.eyebrow),
.contact-details li span {
  color: var(--muted);
  line-height: 1.75;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--tomato);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.center-tabs {
  justify-content: center;
  margin-bottom: 30px;
}

.catalog-grid .qty-row {
  display: none;
}

.contact-page {
  grid-template-columns: 0.9fr 1.1fr;
  background: #fffdf5;
}

.contact-details {
  padding: clamp(28px, 5vw, 58px);
  border-radius: 8px 0 0 8px;
  background: white;
}

.contact-details h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.04;
}

.contact-details ul {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-details li {
  display: grid;
  gap: 4px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 850;
}

.admin-page {
  min-height: 100vh;
  padding: 122px clamp(18px, 5vw, 70px) 50px;
  background: #edf6e8;
}

.admin-panel.standalone {
  position: static;
  inset: auto;
  min-height: 720px;
  max-width: 1220px;
}

.admin-panel.standalone .admin-content {
  max-height: none;
}

.admin-panel.standalone .login-card {
  margin-top: 70px;
}

.admin-item img {
  width: 70px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .page-hero {
    margin-top: 68px;
  }

  .value-grid,
  .preview-grid,
  .animal-grid,
  .story-section,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel.standalone {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .page-hero {
    min-height: 250px;
  }

  .home-values,
  .featured-products,
  .animal-preview,
  .story-section {
    padding: 54px 18px;
  }

  .value-grid,
  .preview-grid,
  .animal-grid {
    grid-template-columns: 1fr;
  }

  .wide-promo::after {
    background: rgba(7, 20, 12, 0.72);
  }

  .admin-page {
    padding: 88px 12px 24px;
  }

  .admin-item {
    display: grid;
  }
}

.site-footer .footer-main nav {
  display: grid;
  gap: 10px;
}

.site-footer .footer-main a {
  width: auto;
}

@media (max-width: 980px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
    padding: 42px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .site-footer .footer-cta {
    width: 100%;
  }
}
