/* All page types share the reference footer and its responsive layout. */
.footer { background: var(--footer-bg); color: var(--footer-text); }
.footer .container { width: min(84%, 1440px); max-width: 1440px; margin-inline: auto; }
.footer-project-contact { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(28px, 3vw, 48px); background: var(--footer-bg); }
.footer-project-contact::before { content: ''; position: absolute; z-index: -1; inset: 0; opacity: .2; background: url('/media/fruit-reference/world-map.svg') 60% center / auto 150% no-repeat; }
.footer-project-contact::after { content: ''; position: absolute; z-index: -2; inset: 0 0 0 70%; background: linear-gradient(90deg, var(--footer-bg), transparent), url('/media/fruit-applications/cherries-hero.webp') center 48% / cover; }
.footer-project-contact .container { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; }
.footer-project-contact .eyebrow { margin-bottom: 12px; color: var(--footer-muted); font-size: 13px; font-weight: 500; letter-spacing: .085em; }
.footer-project-contact h2 { font-size: clamp(26px, 2.25vw, 40px); line-height: 1.15; letter-spacing: -.025em; }
.footer-project-contact p:not(.eyebrow):not(.footer-handwriting) { max-width: 95%; margin-top: 10px; color: var(--footer-text); font-size: clamp(14px, 1vw, 16px); line-height: 1.45; }
.footer-project-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-left: 3px; }
.footer-project-actions .button { width: clamp(200px, 14vw, 250px); max-width: 100%; min-height: 44px; justify-content: space-between; gap: 16px; padding: 8px 28px; font-size: 14px; white-space: nowrap; }
.footer-chat-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.footer-chat-link .contact-icon { width: 20px; height: 20px; margin: 0; }
.footer-chat-link .contact-icon path:first-child { fill: none; }
.footer-handwriting { position: relative; width: max-content; max-width: 100%; font-family: "Segoe Print", "Bradley Hand", cursive; font-style: italic; font-size: clamp(22px, 1.8vw, 30px); line-height: 1.15; transform: rotate(-11deg); }
.footer-handwriting::after { content: ''; display: block; width: 54%; height: 2px; margin-top: 12px; background: var(--color-action); }
.footer-harvest-note { position: absolute; right: 2%; top: 27%; color: var(--white); font-size: clamp(18px, 1.45vw, 26px); }
.footer-information { padding-block: clamp(24px, 2vw, 36px) 12px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr) minmax(0, 1.15fr); gap: clamp(24px, 3.5vw, 64px); }
.footer-grid > div { min-width: 0; }
.footer .brand { gap: 8px; margin-bottom: 12px; }
.footer .brand-mark { width: clamp(48px, 3.9vw, 64px); border-radius: 2px; }
.footer .brand-name { font-size: clamp(18px, 1.3vw, 22px); }
.footer .brand small { font-size: clamp(8px, .6vw, 10px); margin-top: 4px; }
.footer-grid p, .footer-grid > div > a:not(.brand) { font-size: 14px; line-height: 1.45; margin-block: 4px; }
.footer-grid p { color: var(--footer-muted); }
.footer-grid > div > a:not(.brand) { display: block; }
.footer-grid .footer-label { margin: 4px 0 10px; font-size: 12px; letter-spacing: .085em; }
.footer-grid .footer-address { margin-top: 4px; }
.footer-email { overflow-wrap: anywhere; }
.footer-social { display: flex; margin-top: 14px; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--footer-muted); border-radius: var(--radius-pill); color: var(--footer-text); transition: background-color var(--transition), color var(--transition); }
.footer-social-link svg { width: 18px; height: 18px; }
.footer-social-link:hover { background: var(--white); color: var(--footer-bg); }
.footer a:focus-visible { outline-color: var(--footer-text); }
.footer-bottom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 16px; margin-top: 28px; padding-top: 12px; border-top: 1px solid #ffffff33; color: var(--footer-muted); font-size: 13px; }
.footer-bottom > :nth-child(2) { text-align: center; }
.footer-bottom > :last-child { justify-self: end; }

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; }
  .footer-project-contact .container { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
  .footer-harvest-note { display: none; }
}
@media (max-width: 600px) {
  .footer .container { width: 90%; }
  .footer-project-contact { padding-block: 32px; }
  .footer-project-contact .container { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-project-contact::after { left: 30%; opacity: .3; }
  .footer-project-contact p:not(.eyebrow):not(.footer-handwriting) { max-width: 100%; }
  .footer-project-actions { padding-left: 0; }
  .footer-project-actions .button { width: 220px; }
  .footer-information { padding-block: 28px 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-bottom { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 24px; padding-top: 16px; }
  .footer-bottom > :nth-child(2) { text-align: left; }
  .footer-bottom > :last-child { justify-self: start; }
}
