/* Site-specific components and responsive refinements.
   Loads after americana.css. */

/* Keep short hero phrases together when space permits. */
.hero .trustline { white-space: nowrap; }

.hero h1 .brandname { white-space: nowrap; }

.hero-inner {
  padding: clamp(42px, 5.2vw, 70px) 32px;
}
.hero-copy,
.hero-media {
  min-width: 0;
}

/* clean white header band, with the logo promoted and nav spaced around it */
.site-header {
  background: #fff;
  padding: 14px 32px 16px;
  gap: 28px;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}
.nav {
  justify-content: flex-end;
  gap: 24px;
}
.nav .phone { padding: 10px 18px; }
.cta .btn-secondary {
  border-color: rgba(255,255,255,.9);
  color: #fff;
}
.cta:has(.btn-secondary:hover) .btn-primary,
.cta:has(.btn-secondary:focus-visible) .btn-primary,
.cta:has(.btn-secondary:active) .btn-primary {
  background: transparent;
  border-color: rgba(255,255,255,.9);
  box-shadow: none;
  color: #fff;
  transform: none;
}
/* red vertical accent line (matching the pullquote) on two more lines */
.vendor-eq { border-left: 4px solid var(--red); }
.catchall {
  display: table; margin: 28px auto 0; text-align: left;
  border-left: 4px solid var(--red); padding-left: 18px;
}

/* alternate stamp-header colors down the page — no two red headers back to back.
   Sequence: WHO WE ARE navy · WHY FOOD BANKS red · OUR SUPPLIER navy ·
   WHAT WE SOURCE red · FLEXIBLE SOURCING navy · HOW WE KEEP PRICES LOW red ·
   WHAT PARTNERS SAY navy */
/* supplier network: solid red section, text left, logistics rotator right */
.block.alt.vendors { background: var(--red-deep); }
.block.alt.vendors .eyebrow { background: var(--navy); transform: rotate(-1.2deg); }
.vendors { text-align: left; }
.vendors .wrap.vendors-grid {
  max-width: 1080px;
  display: grid; grid-template-columns: 1fr 440px; gap: 48px; align-items: center;
}
.vendors h2 { color: #fff; }
.supplier-points {
  margin: 22px 0 0;
  padding-left: 1.25em;
  color: rgba(255,251,242,.94);
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.55;
}
.supplier-points li { margin: .55em 0; padding-left: .2em; }
.supplier-points li::marker { color: #ffe08a; }
.vendors-text .vendor-eq {
  display: block; margin: 30px 0 0; background: none; border: none; box-shadow: none;
  border-left: 4px solid var(--cream); border-radius: 0; padding: 2px 0 2px 18px;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 21px; color: var(--cream);
}
/* same look as the hero rotator: photo fills the frame, caption overlays the photo */
.logi-rotator {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 3px solid var(--cream); box-shadow: 7px 7px 0 var(--navy-rich);
  background: #0e1f40;
}
.logi-rotator .lslide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .65s ease; }
.logi-rotator .lslide.is-active { opacity: 1; }
.logi-rotator .lslide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logi-rotator figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  background: linear-gradient(transparent, rgba(10,22,46,.9)); color: #fff;
  font-family: var(--font-serif); font-style: italic;
  font-weight: 700; font-size: 18px; padding: 38px 20px 18px; letter-spacing: .01em;
}
.ldots { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; z-index: 2; }
.ldots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5);
  transition: background .3s ease; }
.ldots i.on { background: #fff; }
.lrot-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 54px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #fff;
  font-size: 44px; font-weight: 800; line-height: 1; padding: 0 0 6px; cursor: pointer;
  opacity: .65; transition: opacity .12s ease; }
.lrot-btn:hover { opacity: 1; }
.lprev { left: 8px; }
.lnext { right: 8px; }
@media (max-width: 900px) {
  .vendors .wrap.vendors-grid { grid-template-columns: 1fr; gap: 30px; }
  .logi-rotator { max-width: 480px; }
}
@media (max-width: 620px) {
  .lrot-btn { display: none; }
}
#source .flex-eyebrow { background: var(--navy); transform: rotate(-1.2deg); margin-top: 48px; }

/* opportunity buying — a bordered feature box matching the page's card style */
.opp-box { background: #fff; border: 2px solid var(--navy); box-shadow: 8px 8px 0 var(--navy);
  padding: 32px 40px; margin: 34px 0 0; text-align: left; }
.opp-box .opp-h { font-family: var(--font-serif); color: var(--navy); font-weight: 700;
  font-size: 25px; margin: 4px 0 10px; }
.opp-box .opp-intro { margin: 0 0 22px; color: #3a3a3a; max-width: 840px; }
.opp-grid2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 22px; }
.opp-tkt { appearance: none; width: 100%; border: 2px solid var(--navy); background: var(--cream); box-shadow: 4px 4px 0 var(--red);
  padding: 12px 15px; font-weight: 700; font-size: 14.5px; color: var(--navy);
  font-family: inherit; line-height: 1.3; text-align: left; cursor: help;
  display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 56px; position: relative;
  transition: transform .12s ease, box-shadow .12s ease; }
.opp-tkt > span:first-child { min-width: 0; }
.opp-info { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 18px; height: 18px; margin-left: auto; border: 1.5px solid currentColor; border-radius: 50%;
  font-family: Georgia, serif; font-size: 12px; font-style: italic; line-height: 1; }
.opp-tkt:nth-child(even) { box-shadow: 4px 4px 0 var(--navy); }
.opp-tkt:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--red); }
.opp-tkt:nth-child(even):hover { box-shadow: 6px 6px 0 var(--navy); }
.opp-definition { position: absolute; z-index: 30; left: 50%; bottom: calc(100% + 12px);
  --opp-definition-x: -50%;
  width: min(320px, calc(100vw - 48px)); padding: 13px 15px;
  border: 2px solid #fff; background: var(--red); box-shadow: 5px 5px 0 var(--navy);
  color: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.45; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(var(--opp-definition-x), 6px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.opp-tkt:nth-child(even) .opp-definition { background: var(--navy); box-shadow: 5px 5px 0 var(--red); }
.opp-tkt:nth-child(4n + 1) .opp-definition { --opp-definition-x: 0; left: 0; }
.opp-tkt:nth-child(4n) .opp-definition { --opp-definition-x: 0; right: 0; left: auto; }
.opp-tkt:hover, .opp-tkt:focus-visible, .opp-tkt.is-open { z-index: 20; }
.opp-tkt:hover .opp-definition,
.opp-tkt:focus-visible .opp-definition,
.opp-tkt.is-open .opp-definition { opacity: 1; visibility: visible;
  transform: translate(var(--opp-definition-x), 0); }
.opp-box .opp-close2 { font-family: var(--font-serif); font-style: italic; color: var(--red);
  font-size: 20px; margin: 0; border-left: 4px solid var(--red); padding-left: 18px; }
@media (max-width: 820px) {
  .opp-grid2 { grid-template-columns: repeat(2, 1fr); }
  .opp-box { padding: 26px 24px; }
  .opp-tkt:nth-child(n) .opp-definition { --opp-definition-x: -50%; right: auto; left: 50%; }
  .opp-tkt:nth-child(odd) .opp-definition { --opp-definition-x: 0; left: 0; }
  .opp-tkt:nth-child(even) .opp-definition { --opp-definition-x: 0; right: 0; left: auto; }
}
@media (max-width: 480px) {
  .opp-grid2 { grid-template-columns: 1fr; }
  .opp-tkt:nth-child(n) .opp-definition { --opp-definition-x: 0; right: auto; left: 0; width: 100%; }
}

/* partnership programs on one row (Emergency next to Pantry) */
.partnership .programs { flex-wrap: nowrap; gap: 12px; }
.partnership .programs li { white-space: nowrap; }

.who-grid > *,
.pillars > *,
.partnership .wrap > * {
  min-width: 0;
}

.pillar h3 {
  min-height: 2.24em;
}

@media (max-width: 1100px) {
  .partnership .wrap {
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 40px;
  }
  .partnership .programs { flex-wrap: wrap; }
  .partnership .programs li { white-space: normal; }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero h1 {
    font-size: clamp(34px, 5.8vw, 42px);
    line-height: 1.08;
  }
  .hero h1 .brandname {
    display: block;
    white-space: normal;
  }
  .hero .subhead {
    font-size: 18px;
  }
  .hero .trustline {
    white-space: normal;
  }
  .hero-media {
    width: 100%;
  }
  .rotator {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {
  .who-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .who-photo {
    justify-self: center;
    width: 100%;
  }
  .who-photo img {
    display: block;
    width: min(100%, 280px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .partnership .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .partnership .mark {
    box-sizing: border-box;
    width: min(100%, 340px);
    justify-self: center;
    padding: 30px;
  }
  .partnership .mark img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .lead,
  .pullquote,
  .partnership h2,
  .partnership p,
  .partnership li {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .pillar {
    padding: 24px 22px;
  }
  .pillar h3 {
    min-height: 0;
  }
  .partnership .mark {
    width: min(100%, 300px);
    padding: 24px;
  }
  .partnership .programs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .partnership .programs li {
    width: 100%;
    white-space: normal;
  }
}

/* food grid: square category panels in the original-site tile format;
   multi-photo panels crossfade (mini rotator) */
.food-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px;
  margin: 10px 0 34px;
}
.fg-panel { margin: 0; }
.fg-frame {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fff;
  border: 2px solid var(--navy); box-shadow: var(--shadow-navy);
}
.fg-panel:nth-child(even) .fg-frame { box-shadow: var(--shadow-red); }
.fg-frame[role="button"] { cursor: pointer; }
.fg-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.fg-slide.is-active { opacity: 1; }
.fg-slide.fit-contain { object-fit: contain; }
.fg-dots { position: absolute; top: 10px; right: 10px; display: flex; gap: 5px; z-index: 2; }
.fg-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6);
  border: 1px solid rgba(26,58,122,.35); transition: background .3s ease; }
.fg-dots i.on { background: var(--red); }
.fg-cap {
  font-family: var(--font-serif); font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: .05em; font-size: 14px;
  text-align: center; margin: 12px 0 0;
}
@media (max-width: 760px) {
  .food-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 340px) {
  .food-grid { grid-template-columns: 1fr; }
}

/* warehouse banner now sits at the bottom of the section */
.source-banner.at-bottom { margin-top: 34px; }

/* footer: a logo on either side with text in a bordered frame */
.footer-brand {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  column-gap: 32px;
}
.footer-brand .fb-text {
  text-align: center; background: var(--navy-rich);
  border: 2px solid rgba(255,224,138,.7); box-shadow: 6px 6px 0 var(--red);
  padding: 26px 44px;
}
.footer-brand .fb-logo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 108px;
  justify-self: center;
}
.footer-brand .partnership-mark { max-height: 142px; }

@media (max-width: 900px) {
  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
  }
}

/* testimonials shown as separate cards instead of a rotator */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
  margin-top: 30px;
}
.testi-card {
  margin: 0;
  background: #fff; border: 2px solid var(--navy);
  color: var(--ink);
  padding: 34px 38px; min-height: 250px;
  display: flex; flex-direction: column; justify-content: flex-start;
}
.testi-card:nth-child(odd) { box-shadow: 8px 8px 0 var(--red); }
.testi-card:nth-child(even) {
  background: #fff;
  border-color: var(--navy);
  box-shadow: 8px 8px 0 var(--navy);
}
.testi-card .quote { margin: 0 0 22px; font-size: 20px; line-height: 1.45; color: #4a4438; }
.testi-card .quote::before { color: var(--red); }
.testi-card:nth-child(even) .quote::before { color: var(--navy); }
.testi-card .who2 {
  color: var(--navy);
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.testi-card .who2 span { color: var(--muted); }
@media (max-width: 620px) {
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card { padding: 30px 26px; min-height: 0; }
  .testi-card .quote { font-size: 18.5px; }
  .hero h1 .brandname {
    white-space: normal;
  }
  .hero-copy {
    max-width: 21rem;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero .subhead,
  .hero .trustline {
    max-width: 100%;
  }
  .rotator {
    width: calc(100% - 8px);
  }
  .cta .btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .cta .btn + .btn { margin-top: 14px; }
}

/* white footer background to match the logos; box keeps its navy look */
.site-footer { background: #fff; }
.site-footer .wrap { padding-top: 30px; padding-bottom: 30px; }

@media (max-width: 760px) {
  .hero .trustline { white-space: normal; }
  .hero-inner {
    gap: 28px;
    padding: 34px 24px 38px;
  }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: 36px; }
  .hero .subhead { font-size: 18px; }
  .rotator {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .hero-copy {
    max-width: 21rem;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero .subhead {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .hero-inner { padding: 28px 20px 34px; }
  .hero h1 { font-size: 30px; line-height: 1.08; }
  .hero h1 .brandname { white-space: normal; }
  .hero .subhead { font-size: 17px; }
  .rotator {
    width: calc(100% - 8px);
    max-width: none;
    box-shadow: 5px 5px 0 var(--red);
  }
  .rotator figcaption { font-size: 16px; padding: 34px 18px 16px; }
  .partnership .mark,
  .testi-card:nth-child(odd) {
    box-shadow: 5px 5px 0 var(--red);
  }
  .opp-box,
  .testi-card:nth-child(even) {
    box-shadow: 5px 5px 0 var(--navy);
  }
  .footer-brand .fb-text { padding: 22px 24px; }
}
