:root {
  --green: #174f3b;
  --green2: #174f3b;
  --lime: #13f527;
  --cream: #f4fbf5;
  --ink: #102b20;
  --line: #d3e2d8;
}

.brand img {
  display: block;
  width: 210px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 10px #0003);
}

.nav .brand img {
  width: auto;
  height: 68px;
  filter: none;
}

.nav {
  height: 88px;
}

.nav .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex-shrink: 0;
  padding: 4px 12px;
  background: #fff;
  border: 1px solid #ffffff70;
  border-bottom: 2px solid var(--lime);
  border-radius: 9px;
  box-shadow: 0 4px 14px #05221820;
}

.products .grid {
  gap: 1.2rem;
  border: 0;
  background: transparent;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}

.products .grid article {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 20px #174f3b08;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--green);
  font: inherit;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.product-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s ease;
}

.product-photo--harvest img {
  object-fit: cover;
}

.product-photo--portrait img {
  object-fit: contain;
}

.product-photo--portrait {
  background: #edf5ee;
}

.product-photo:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -6px;
}

.photo-action {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .8rem;
  border: 1px solid #ffffff70;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  box-shadow: 0 3px 12px #102b2025;
}

.photo-action > span:first-child {
  font-size: 1.15rem;
  line-height: 1;
}

.product-photo .product-number {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
}

.product-copy {
  padding: 1.35rem 1.4rem 1.5rem;
  border-top: 3px solid var(--lime);
}

.product-copy p {
  margin-bottom: 0;
}

.fruit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: 1.15rem 0;
}

.fruit-tags li {
  padding: .35rem .65rem;
  border: 1px solid #d4e6da;
  border-radius: 999px;
  background: #f0f8f2;
  color: var(--green);
  font-size: .875rem;
  line-height: 1.4;
  font-weight: 650;
}

.fruit-info {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
}

.fruit-info summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 52px;
  padding: .7rem .8rem;
  color: var(--green);
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.fruit-info summary::-webkit-details-marker { display: none; }

.info-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 500;
}

.info-toggle::before { content: '+'; }
.fruit-info[open] .info-toggle::before { content: '−'; }
.fruit-info[open] summary { background: #edf7ef; border-bottom: 2px solid var(--lime); }
.fruit-info summary:hover { background: #edf7ef; }

.fruit-info summary:focus-visible,
.nutrition-sources summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: -4px;
}

.fruit-info-content {
  padding: 1rem .85rem;
}

.fruit-info-content section + section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.fruit-info h4 {
  margin: 0 0 .45rem;
  color: var(--green);
  font-size: .875rem;
  line-height: 1.4;
  font-weight: 800;
}

.fruit-info p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.nutrition-sources {
  max-width: 860px;
  margin-top: 1.5rem;
  color: #52675b;
  font-size: .875rem;
}

.nutrition-sources summary {
  width: fit-content;
  padding: .5rem 0;
  cursor: pointer;
  color: var(--green);
  font-weight: 650;
}

.nutrition-sources p { margin: .65rem 0; }
.nutrition-sources ul { padding-left: 1.2rem; margin: .5rem 0; }
.nutrition-sources li + li { margin-top: .35rem; }
.nutrition-sources a { text-underline-offset: 3px; }

.product-dialog {
  width: min(960px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 1.25rem;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.product-dialog[open] {
  animation: photo-appear .2s ease-out;
}

.photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.photo-toolbar .eyebrow {
  margin: 0;
  font-size: .65rem;
  letter-spacing: .12em;
}

.photo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-width: 44px;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.photo-close > span:last-child {
  font-size: 1.5rem;
  line-height: 1;
}

.photo-close:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.photo-preview {
  margin: 0;
}

.photo-preview img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 16rem);
  max-height: calc(100dvh - 16rem);
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
}

.photo-preview figcaption {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 3px solid var(--lime);
}

.photo-preview h2 {
  margin-bottom: .5rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.photo-preview p {
  margin-bottom: 0;
  color: #52675b;
  font-size: .9rem;
}

body.photo-view-open {
  overflow: hidden;
}

@keyframes photo-appear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) and (pointer: fine) {
  .products .grid article:hover {
    transform: translateY(-5px);
    border-color: #174f3b60;
    box-shadow: 0 16px 34px #174f3b18;
  }
  .product-photo:hover img { transform: scale(1.035); }
  .photo-close:hover { background: #e4f4e7; }
}

@media (prefers-reduced-motion: reduce) {
  .products .grid article, .product-photo img { transition: none; }
  .products .grid article:hover, .product-photo:hover img { transform: none; }
  .product-dialog[open] { animation: none; }
}

.btn.primary {
  background: #13f527;
  color: #073814;
}

.story {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  gap: 8vw;
  background: var(--cream);
  align-items: start;
}

.story-photo {
  position: sticky;
  top: 2rem;
}

.story-photo img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 24px 24px 0 #13f527;
}

.story-photo span {
  display: block;
  margin-top: 2.2rem;
  color: #174f3b;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.story-copy p:not(.eyebrow) {
  font-size: 1.06rem;
}

.story-copy .note {
  margin-top: 2rem;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.45;
}

.origin {
  background: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 4rem;
}

.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #174f3b;
  grid-column: span 2;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.gallery .gallery-feature {
  grid-column: span 3;
  aspect-ratio: 3 / 4;
}

.gallery img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.gallery-feature img { object-fit: contain; }

.gallery figure:hover img {
  transform: scale(1.025);
}

.gallery figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: .55rem .8rem;
  background: #174f3be8;
  color: #fff;
  max-width: calc(100% - 2rem);
  border-radius: 6px;
  font-size: .875rem;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.social a {
  padding: .6rem 1rem;
  border: 1px solid #174f3b;
  border-radius: 999px;
  color: #174f3b;
  font-weight: 750;
  text-decoration: none;
}

.contact {
  align-items: start;
}

.contact-copy,
.contact form {
  min-width: 0;
}

.direct a {
  overflow-wrap: anywhere;
}

.location-card {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px #174f3b0c;
}

.location-heading {
  padding: 1.25rem 1.4rem 1.1rem;
  border-top: 3px solid var(--lime);
}

.location-heading h3 {
  margin: 0 0 .4rem;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
}

.location-heading p {
  margin: 0;
  color: #52675b;
  font-size: .9rem;
  line-height: 1.55;
}

.location-map {
  height: 320px;
  background: #eaf3ee;
  border-block: 1px solid var(--line);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.location-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.4rem;
}

.location-footer span {
  color: #52675b;
  font-size: .875rem;
}

.location-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}

.location-footer a:hover {
  background: #e4f4e7;
  border-color: var(--green);
}

.location-footer a:focus-visible,
.nav .brand:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.footer-brand img {
  width: 260px;
  height: auto;
  filter: none;
}

.footer-brand {
  width: fit-content;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 4px solid #13f527;
  border-radius: 12px;
}

@media (max-width: 850px) {
  .brand img { width: 165px; height: 56px; }
  .nav { height: 80px; }
  .nav .brand { padding: 4px 10px; }
  .nav .brand img { width: auto; height: 58px; }
  .nav nav { top: 80px; left: auto; right: 4vw; width: min(220px, 72vw); border-radius: 12px; box-shadow: 0 8px 24px #0003; }
  .hero-copy { padding-top: 120px; }
  .products .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand img { height: auto; }
  .story { grid-template-columns: 1fr; }
  .story-photo { position: static; }
  .story-photo img { max-height: 640px; box-shadow: 14px 14px 0 #13f527; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure, .gallery .gallery-feature { grid-column: span 1; }
  .gallery figure:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}

@media (max-width: 540px) {
  .products .grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .location-map { height: 280px; }
  .location-heading, .location-footer { padding: 1rem; }
  .location-footer a { justify-content: center; width: 100%; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery figure:last-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .footer-brand img { width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
  .gallery figure:hover img { transform: none; }
}
