/* Feeders Milling — seasonal panel (in-content), header balance, photo placeholders */

/* --- Seasonal panel (lives in #seasonal-slot inside hero / page content) --- */
#seasonal-slot:empty { display: none; }
.seasonal-panel {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--cream, #F4EFE3);
  border: 1px solid #d5cbb6;
  border-left: 4px solid var(--green, #2F5A2C);
  border-radius: 0 6px 6px 0;
  font-family: var(--sans, "Segoe UI", system-ui, sans-serif);
  max-width: 54ch;
}
.seasonal-panel .seasonal-label {
  display: block;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--green, #2F5A2C);
  margin-bottom: 6px;
}
.seasonal-panel .seasonal-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: #2a2823;
  font-weight: 500;
}
.seasonal-panel .seasonal-item { color: #2a2823; }
.seasonal-panel a {
  color: var(--red, #A31F24);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.seasonal-panel a:hover { color: var(--red-dark, #7A171B); }

/* Band variant when slot sits between sections */
#seasonal-slot.seasonal-slot--band {
  display: block;
  padding: 14px 32px;
  background: var(--cream, #F4EFE3);
  border-bottom: 1px solid #d5cbb6;
}
#seasonal-slot.seasonal-slot--band .seasonal-panel {
  margin: 0 auto;
  max-width: 1280px;
  border: none;
  border-left: 4px solid var(--green, #2F5A2C);
  background: transparent;
  padding: 0 0 0 12px;
  border-radius: 0;
}
#seasonal-slot.seasonal-slot--band .seasonal-items {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0;
}
#seasonal-slot.seasonal-slot--band .seasonal-item:not(:last-child)::after {
  content: "·";
  margin: 0 0.65em;
  color: var(--green, #2F5A2C);
  font-weight: 700;
}
@media (max-width: 720px) {
  #seasonal-slot.seasonal-slot--band { padding: 12px 16px; }
  #seasonal-slot.seasonal-slot--band .seasonal-items {
    flex-direction: column;
    gap: 4px;
  }
  #seasonal-slot.seasonal-slot--band .seasonal-item:not(:last-child)::after {
    content: none;
  }
}

/* --- Header: desktop logo left, nav+CTA grouped right --- */
header.site {
  justify-content: flex-start;
  gap: 16px;
}
header.site .logo-wrap { flex: 0 1 auto; }
header.site nav.primary {
  margin-left: auto;
  justify-content: flex-end;
  flex: 0 1 auto;
  gap: 2px 4px;
}
header.site .header-cta {
  flex: 0 0 auto;
  margin-left: 4px;
}

/* --- Mobile / tablet: logo row, then full-width nav grid --- */
@media (max-width: 960px) {
  header.site {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding-left: 16px;
    padding-right: 16px;
  }
  header.site .logo-wrap {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: auto;
  }
  header.site .header-cta {
    margin-left: auto;
  }
  header.site nav.primary {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    order: 3;
    margin-left: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    justify-content: stretch !important;
  }
  header.site nav.primary a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    padding: 9px 6px !important;
    font-size: 12.5px !important;
    line-height: 1.2;
    border-radius: 4px;
    box-sizing: border-box;
    min-width: 0;
  }
}
@media (max-width: 420px) {
  header.site nav.primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  header.site nav.primary a {
    font-size: 12px !important;
    padding: 10px 6px !important;
    white-space: normal;
  }
}

/* --- Inner page hero breathing room --- */
main > .page-hero .page-hero-copy { padding-top: 48px; }
main > .page-hero .page-hero-side { padding-top: 48px; }
@media (max-width: 760px) {
  main > .page-hero .page-hero-copy,
  main > .page-hero .page-hero-side { padding-top: 36px; }
}

/* --- Photo placeholders --- */
.photo-ph { margin: 0; display: block; }
.photo-ph-frame {
  background:
    linear-gradient(135deg, rgba(47,90,44,.08) 0%, rgba(163,31,36,.06) 100%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(47,90,44,.04) 10px,
      rgba(47,90,44,.04) 20px
    ),
    var(--cream, #F4EFE3);
  border: 2px solid var(--green, #2F5A2C);
  border-radius: 6px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  color: var(--green-dark, #1F3D1D);
  box-shadow: inset 0 0 0 6px var(--cream-dark, #E8E0CE);
  position: relative;
  overflow: hidden;
}
.photo-ph-frame svg { opacity: .55; flex-shrink: 0; }
.photo-ph figcaption,
.photo-ph-cap {
  font-family: var(--sans, "Segoe UI", system-ui, sans-serif);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted, #5A574E);
  text-align: center;
  letter-spacing: .02em;
}
.photo-ph--hero .photo-ph-frame { min-height: 220px; }
.photo-ph--wide .photo-ph-frame { min-height: 180px; }
.photo-ph--card .photo-ph-frame { min-height: 140px; }
.photo-ph-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 36px 32px 12px;
  background: var(--white, #FFFDF8);
}
.photo-ph-band {
  padding: 0 32px 32px;
  background: var(--white, #FFFDF8);
}
.photo-ph-band.tight { padding-top: 24px; }
.photo-ph-inline { margin: 16px 0 4px; }
@media (max-width: 760px) {
  .photo-ph-row {
    grid-template-columns: 1fr;
    padding: 24px 16px 8px;
  }
  .photo-ph-band { padding: 0 16px 24px; }
  .photo-ph--hero .photo-ph-frame { min-height: 160px; }
}


/* --- Filled (real) store photos --- */
.photo-ph--filled .photo-ph-frame {
  background: #1a1a1a;
  border: 2px solid var(--green, #2F5A2C);
  box-shadow: none;
  padding: 0;
  min-height: 0;
  display: block;
  line-height: 0;
}
.photo-ph--filled .photo-ph-frame svg,
.photo-ph--filled .photo-ph-frame > .photo-ph-cap { display: none; }
.photo-ph--filled img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}
.photo-ph--filled.photo-ph--card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  height: 100%;
  min-height: 140px;
}
.photo-ph--filled.photo-ph--hero img {
  max-height: 420px;
  width: 100%;
  object-fit: cover;
}
.photo-ph--filled > .photo-ph-cap,
.photo-ph--filled > figcaption {
  display: block;
  margin-top: 8px;
  padding: 0 2px;
  text-align: left;
}
.photo-ph-row--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .photo-ph-row--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .photo-ph-row--4 { grid-template-columns: 1fr; }
}
