/* Crop Management Company: the static one-page site (cmc-website/bridge).
   The look follows the old Squarespace page (template 55f0aac0e4b0f0a5b7e0b22e):
   its colours, letter-spacing and type scale are taken from that template's
   stylesheet. The old site used proxima-nova, a commercial font; Montserrat
   (SIL OFL, fonts/OFL-montserrat.txt) stands in for it, self-hosted, so
   fonts, styles and images stay 'self'-only in the CSP (_headers); the one
   exception is the Google map frame (frame-src https://www.google.com).
   No JavaScript. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/montserrat-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/montserrat-latin-italic.woff2) format('woff2');
}

:root {
  /* Values from the old template's stylesheet */
  --orange: #ff8f05;                   /* card title, editable buttons */
  --text: rgba(82, 82, 82, 0.88);      /* body text */
  --text-card: rgba(82, 82, 82, 0.98); /* the Fishers paragraph */
  --ink: #1d1d1d;                      /* large outline button */
  --footer-ink: #222;                  /* footer lines */
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --side: 26px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}

img { display: block; max-width: 100%; height: auto; }
p, h1, h2, ul, figure, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; }

/* Two-tone focus ring: a 3px dark outline inside a 3px white ring, so one of
   the two always clears 3:1 whatever the background (white page, the photo
   bands, the outline button). */
:focus-visible {
  outline: 3px solid #1f1f1f;
  outline-offset: 0;
  box-shadow: 0 0 0 6px #fff;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: #1f1f1f;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header: the logo alone, centred ---------- */
.masthead {
  display: flex;
  justify-content: center;
  padding: 8px 20px;
  background: #fff;
}
.masthead__logo { display: block; }
.masthead__logo img { width: 160px; }

/* ---------- Photo bands (the services and Contact Us) ---------- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #2b2b22;
  color: #fff;
  padding: clamp(60px, 8vw, 161px) 20px;
}
/* The old band sat its labels a little above the middle. */
.band--hero {
  padding-top: clamp(60px, 7.4vw, 148px);
  padding-bottom: clamp(60px, 9.1vw, 182px);
}
.band__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band__photo--hero { object-position: 50% 40%; }
.band__photo--contact { object-position: 50% 50%; }
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.12);
}

/* The old page's heading style: bold, uppercase, widely spaced. */
.services li,
.band__title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.services {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- Contact Us: heading, contact lines, map ---------- */
.band--contact {
  padding-top: clamp(60px, 8.6vw, 172px);
  padding-bottom: clamp(40px, 6.2vw, 125px);
}
.band--contact .band__title { font-size: clamp(20px, 1.45vw, 29px); }
/* The top-left of this photo is pale; the white contact lines need more shade. */
.band--contact::after { background: rgba(0, 0, 0, 0.34); }
.contact {
  max-width: 1276px;
  margin: clamp(32px, 5.2vw, 104px) auto 0;
  color: #fff;
}
/* Styled like the old form's field labels; the form replaces this list later. */
.contact__lines {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 48px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.5);
}
.contact__lines a,
.contact__directions a {
  color: #fff;
  text-decoration: none;
  padding-bottom: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.contact__lines a:hover,
.contact__directions a:hover { border-bottom-color: #fff; }
.contact__map {
  display: block;
  width: 100%;
  height: clamp(320px, 39.25vw, 785px);
  margin-top: clamp(24px, 1.6vw, 32px);
  border: 0;
  background: #e5e5e5;
  /* The old site showed Google's map in a light grey style. */
  filter: grayscale(1) contrast(0.88) brightness(1.06);
}
.contact__directions {
  margin-top: 16px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ---------- The Fishers: photo left, card text right ---------- */
.intro { padding: 20px var(--side) 40px; }
.fishers {
  display: grid;
  grid-template-columns: 48.7% minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.fishers__photo img { width: 100%; }
.fishers__text { padding: 0 15px; }
.fishers__title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.1;
  font-size: clamp(26px, 2.85vw, 60px);
  color: var(--orange);
}
.fishers__text p {
  margin-top: clamp(16px, 2.8vw, 56px);
  font-weight: 350;
  font-size: clamp(16px, 1.12vw, 24px);
  line-height: 1.72;
  color: var(--text-card);
}

/* ---------- Commodities: six squares in a row, titles under ---------- */
.crops {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.crop img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.crop__name {
  display: block;
  margin-top: 0.5em;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* The old large outline button */
.careers { margin-top: 20px; text-align: center; }
.button {
  display: inline-block;
  padding: 25px 46px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.1s linear, color 0.1s linear;
}
.button:hover { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #fff; padding: 41px 57px; color: #1c1c1c; }
.footer__top {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 20px;
  align-items: center;
}
.footer__brand img { width: clamp(200px, 29vw, 585px); margin: 0 auto; }
.footer__lines { text-align: center; color: var(--footer-ink); }
.footer__lines p {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer__lines p + p { margin-top: 15px; }
.footer__lines a {
  text-decoration: none;
  padding-bottom: 0.05em;
  border-bottom: 1px solid rgba(34, 34, 34, 0.3);
}
/* Hover keeps the text colour (contrast) and darkens the underline instead. */
.footer__lines a:hover { border-bottom-color: var(--footer-ink); }
.footer__affiliation { margin-top: 40px; text-align: center; }
.footer__affiliation p { letter-spacing: 0.1em; margin-bottom: 16px; }
.footer__affiliation img { width: clamp(220px, 23.5vw, 470px); margin: 0 auto; }

/* ---------- Narrower screens (the template's 960 / 768 / 640 steps) ---------- */
/* Six labels need about 150px a column ("Blood Oranges"); below 1080px
   six columns get narrower than that, so the row becomes two rows of three. */
@media (max-width: 1079px) {
  .crops { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .fishers { grid-template-columns: 1fr; gap: 24px; }
  .fishers__text { padding: 0; }
  .footer { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 768px) {
  .footer { padding: 36px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  :root { --side: 20px; }
  .services { grid-template-columns: 1fr; gap: 34px; }
  /* The stacked labels land on the bright fruit at this width; darken more. */
  .band::after { background: rgba(0, 0, 0, 0.38); }
  .crops { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { padding: 20px; }
  .footer__lines p { font-size: 12px; }
  .button { padding: 21px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
