/* ==========================================================================
   Holstein Farms site styles
   Colors and type follow brand-guide.md. Change a color once in :root.
   ========================================================================== */

:root {
  /* Core palette */
  --charcoal: #1E2420;
  --milk: #F7F5EF;
  --green: #2E5E3E;
  --butter: #E2B33C;
  --clay: #B5683F;
  --clay-dark: #8F4E2D;

  /* Supporting neutrals */
  --slate: #3B423D;
  --sand: #EFEADF;
  --line: #E3DED2;
  --field: #B9B4A8;
  --mist: #E4E9E2;
  --white: #FFFFFF;

  /* Errors (never butter or clay) */
  --error: #A32D2D;
  --error-bg: #FCEBEB;

  /* Type */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --gutter: 24px;
  --section-y: 96px;
  --radius: 6px;
  --radius-card: 10px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.5vw, 44px); }
h3 { font-size: 24px; line-height: 1.2; }
p { margin: 0; }
a { color: var(--green); font-weight: 600; }
a:hover { color: var(--charcoal); }
:focus-visible { outline: 3px solid var(--butter); outline-offset: 2px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.stack > * + * { margin-top: 16px; }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--charcoal); color: var(--milk);
  padding: 10px 16px; border-radius: var(--radius); z-index: 100;
}
.skip-link:focus { top: 16px; color: var(--milk); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-dark);
}
.lead { font-size: 20px; color: var(--slate); }
.muted { color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--butter); color: var(--charcoal); }
.btn--primary:hover { background: #D4A42E; color: var(--charcoal); }
.btn--secondary { background: transparent; border-color: var(--green); color: var(--green); padding: 13px 26px; }
.btn--secondary:hover { background: var(--green); color: var(--milk); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header and nav ---------- */
.site-header { background: var(--milk); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.site-header__logo img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { color: var(--charcoal); text-decoration: none; font-size: 16px; }
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }
.site-nav__cta { font-size: 16px; padding: 12px 20px; }

.nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  background: none; border: 1px solid var(--field); border-radius: var(--radius);
  padding: 10px 14px; font: 600 16px var(--font-body); color: var(--charcoal); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: var(--charcoal); position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; }
  .site-header__logo img { height: 44px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 4px; }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav__cta { margin-top: 8px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--sand { background: var(--sand); }
.section--green { background: var(--green); color: var(--mist); }
.section--green h1, .section--green h2, .section--green h3 { color: var(--milk); }
.section--green .eyebrow { color: var(--milk); }
.section--green a { color: var(--milk); }
.section__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 720px; }
.section__head--split {
  max-width: none; flex-direction: row; flex-wrap: wrap;
  justify-content: space-between; align-items: flex-end; gap: 16px;
}

@media (max-width: 700px) {
  :root { --section-y: 64px; }
}

/* ---------- Page header (inner pages) ---------- */
.page-header { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-header__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.page-header__inner > * + * { margin-top: 16px; }
.page-header__inner .lead { max-width: 680px; }

/* ---------- Home hero ---------- */
.hero { padding: 88px 0 96px; text-align: center; }
.hero__inner {
  max-width: 820px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero__badge { width: 180px; height: 180px; }
.hero .lead { max-width: 640px; }
.hero .btn-row { justify-content: center; margin-top: 8px; }

@media (max-width: 700px) {
  .hero { padding: 56px 0 64px; }
  .hero__badge { width: 132px; height: 132px; }
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: start; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.card p { color: var(--slate); }
.card__link { margin-top: auto; }

/* Segment column ("Who we serve") */
.segment { border-top: 3px solid var(--green); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.segment h3 { font-size: 26px; }
.segment p { color: var(--slate); }

/* Steps ("How wholesale works") */
.step { display: flex; flex-direction: column; gap: 10px; }
.step__num { font-family: var(--font-heading); font-size: 48px; line-height: 1; color: var(--green); }
.step p { color: var(--slate); }

/* Story band */
.story__body { display: flex; flex-direction: column; gap: 18px; font-size: 18px; }

/* ---------- CTA band (gated guide) ---------- */
.cta-band {
  background: var(--charcoal); color: var(--milk);
  border-radius: 14px; padding: 56px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; align-items: center;
}
.cta-band h2 { font-size: clamp(30px, 3.6vw, 38px); line-height: 1.15; }
.cta-band .eyebrow { color: var(--butter); }
.cta-band p { color: #D5D9D3; }
.cta-band__copy { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 700px) { .cta-band { padding: 32px 24px; } }

/* ---------- Spec sheet list ---------- */
.spec-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 24px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.spec-list h3 { font-size: 22px; }
.spec-list p { color: var(--slate); font-size: 16px; }

/* Category block (Products hub) */
.category { display: flex; flex-direction: column; gap: 24px; }
.category + .category { margin-top: 72px; }
.category__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.category__head > div { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: var(--mist); padding: 56px 0; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.site-footer__logo img { height: 60px; width: auto; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { color: var(--milk); font-weight: 400; font-size: 15px; }
.site-footer__legal { width: 100%; font-size: 14px; border-top: 1px solid rgba(247, 245, 239, 0.25); padding-top: 20px; }
.site-footer__legal address { font-style: normal; margin-bottom: 4px; }

/* ---------- Forms ---------- */
.form-placeholder {
  border: 2px dashed var(--field); border-radius: var(--radius-card);
  padding: 28px; background: var(--white); color: var(--slate);
}
.form-placeholder p + p { margin-top: 6px; font-size: 15px; }
.cta-band .form-placeholder { background: transparent; border-color: #5C635E; color: #D5D9D3; }

/* Marketo Forms 2.0 restyle. Use the "Plain" theme in Marketo.
   !important is needed because Marketo writes inline widths. */
.mktoForm { width: 100% !important; font-family: var(--font-body) !important; font-size: 16px !important; color: inherit !important; padding: 0 !important; }
.mktoForm .mktoFormRow,
.mktoForm .mktoFormCol,
.mktoForm .mktoFieldWrap { width: 100% !important; float: none !important; margin-bottom: 0 !important; }
.mktoForm .mktoFormRow { margin-bottom: 14px !important; }
.mktoForm .mktoOffset,
.mktoForm .mktoGutter,
.mktoForm .mktoClear { display: none !important; }
.mktoForm .mktoLabel {
  width: 100% !important; float: none !important; padding: 0 0 6px !important;
  font-weight: 600 !important; font-size: 15px !important; line-height: 1.3 !important;
}
.mktoForm .mktoAsterix { float: none !important; padding: 0 4px 0 0 !important; color: var(--error) !important; }
.mktoForm input[type="text"],
.mktoForm input[type="email"],
.mktoForm input[type="tel"],
.mktoForm input[type="url"],
.mktoForm select.mktoField,
.mktoForm textarea.mktoField {
  width: 100% !important; box-sizing: border-box !important;
  font: inherit !important; font-size: 16px !important; color: var(--charcoal) !important;
  background: var(--white) !important; border: 1px solid var(--field) !important;
  border-radius: var(--radius) !important; padding: 12px 14px !important; min-height: 48px; box-shadow: none !important;
}
.cta-band .mktoForm input,
.cta-band .mktoForm select { border-color: #5C635E !important; }
.mktoForm .mktoButtonRow { width: 100% !important; }
.mktoForm .mktoButtonWrap { margin-left: 0 !important; }
.mktoForm .mktoButtonWrap .mktoButton,
.mktoForm button.mktoButton {
  background: var(--butter) !important; background-image: none !important;
  color: var(--charcoal) !important; border: 0 !important; border-radius: var(--radius) !important;
  font: 600 17px var(--font-body) !important; padding: 15px 28px !important;
  box-shadow: none !important; text-shadow: none !important; cursor: pointer; margin-top: 6px;
}
.mktoForm button.mktoButton:hover { background: #D4A42E !important; }
.mktoForm .mktoError .mktoErrorMsg {
  background: var(--error-bg) !important; background-image: none !important;
  color: var(--error) !important; border: 1px solid var(--error) !important;
  box-shadow: none !important; text-shadow: none !important;
  font: 600 14px var(--font-body) !important; border-radius: var(--radius) !important;
}
.mktoForm .mktoError .mktoErrorArrow { background: var(--error-bg) !important; border-color: var(--error) !important; }
.mktoForm .mktoInvalid { border-color: var(--error) !important; }

/* ---------- Inner page building blocks ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 32px; margin-top: 48px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 0; }
.prose li + li { margin-top: 6px; }

/* Product detail block: copy on the left, spec table on the right */
.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: start; }
.product + .product { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.product__copy { display: flex; flex-direction: column; gap: 14px; }
.product__copy h2 { font-size: 36px; }
.product__copy p { color: var(--slate); }

/* Data tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); font-size: 16px; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--sand); font-weight: 600; }
.data-table tbody th { font-weight: 600; width: 38%; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table .num { text-align: right; white-space: nowrap; }

/* Facts list (ordering details, contact details) */
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-weight: 600; }
@media (max-width: 560px) { .facts li { grid-template-columns: 1fr; } }

/* Form pages: pitch on the left, form panel on the right */
.form-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: start; }
.form-panel { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 36px; }
.form-panel h2 { font-size: 28px; margin-bottom: 6px; }
.form-panel > p { color: var(--slate); font-size: 15px; margin-bottom: 20px; }
@media (max-width: 560px) { .form-panel { padding: 24px; } }

/* Check list */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li + li { margin-top: 10px; }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 7px; width: 14px; height: 8px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}
.small { font-size: 15px; color: var(--slate); }

/* Numbered next steps on thank-you pages */
.next-steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.next-steps li { counter-increment: step; position: relative; padding-left: 52px; min-height: 36px; }
.next-steps li + li { margin-top: 18px; }
.next-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: var(--milk); font: 500 18px/36px var(--font-heading); text-align: center;
}

/* Thank-you header with badge */
.thanks { text-align: left; }
.thanks__mark { width: 72px; height: 72px; }

/* Closing band used on many pages */
.band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.band__copy { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }

/* Guide cover graphic */
.guide-cover {
  background: var(--green); border-radius: 12px; padding: 40px 32px; color: var(--milk);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 360px;
}
.guide-cover img { width: 120px; height: 120px; }
.guide-cover p.guide-cover__title { font-family: var(--font-heading); font-size: 28px; line-height: 1.15; }
.btn--on-dark { border-color: var(--milk); color: var(--milk); }
.btn--on-dark:hover { background: var(--milk); color: var(--green); }
