/* ==========================================================================
   Dairyland Gold — site styles
   Shared across all pages. Brand tokens follow the official brand guidelines
   (see BRAND-GUIDELINES.md). Built mobile-first.
   ========================================================================== */

/* ----- Brand tokens ----- */
:root {
  /* Palette */
  --gold:        #F3D148;  /* PMS 129 */
  --gold-deep:   #d9b431;  /* darker gold for hover/contrast on light */
  --green:       #274736;  /* PMS 553 */
  --green-dark:  #1c3528;
  --black:       #161616;
  --white:       #ffffff;
  --cream:       #faf6ea;  /* warm off-white background */
  --cream-2:     #f3ecd9;

  /* Typography
     Display: Oxtail is a licensed face (not web-available); falls back to a
     high-contrast serif. Drop an Oxtail .woff2 into assets/fonts/ later and it
     will be picked up first. */
  --font-display: "Oxtail", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-serif:   "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans:    "Oswald", "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --shadow: 0 18px 48px rgba(28, 53, 40, 0.16);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
h1, h2, h3, p { overflow-wrap: break-word; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-serif);
  color: var(--black);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ----- Shared layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--gold-deep);
}

.eyebrow .star { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }

.section { padding-block: clamp(56px, 9vw, 112px); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.86rem;
  text-decoration: none;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              color 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Button with a small secondary line beneath the label */
.btn--stacked { flex-direction: column; gap: 3px; line-height: 1.15; }
.btn__sub { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.03em; text-transform: none; opacity: 0.82; }

.btn--primary { background: var(--gold); color: var(--green-dark); box-shadow: 0 10px 24px rgba(243, 209, 72, 0.4); }
.btn--primary:hover { background: var(--gold-deep); }

.btn--ghost { background: transparent; color: var(--green); border-color: rgba(39, 71, 54, 0.3); }
.btn--ghost:hover { border-color: var(--green); background: rgba(39, 71, 54, 0.06); }

.btn--on-dark { background: var(--gold); color: var(--green-dark); }
.btn--on-dark.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--on-dark.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
}
.site-header__logo img { height: 56px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.site-nav a:not(.btn) {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--green-dark);
  transition: color 0.15s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--gold-deep); }

/* Mobile nav toggle */
.nav-toggle { display: none; }

@media (max-width: 720px) {
  .site-header__logo img { height: 44px; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--green-dark); transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }
  .site-nav.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .site-nav a:not(.btn) { padding: 12px 10px; border-radius: 8px; }
  .site-nav a:not(.btn):hover { background: var(--cream); }
  .site-nav .btn { justify-content: center; margin-top: 6px; }
}

/* ==========================================================================
   Hero — echoes the logo's golden sunrise
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding-top: 140px;
  padding-bottom: clamp(80px, 12vw, 150px);
  text-align: center;
}
/* the rising "sun" glow */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -38%;
  transform: translateX(-50%);
  width: min(140vw, 1400px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
              rgba(243, 209, 72, 0.55) 0%,
              rgba(243, 209, 72, 0.28) 38%,
              rgba(243, 209, 72, 0.0) 66%);
  z-index: 0;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 820px; }

.hero__mark { width: clamp(180px, 34vw, 300px); margin: 0 auto clamp(22px, 4vw, 36px); }

.hero h1 {
  font-size: clamp(2.05rem, 6vw, 4.4rem);
  margin-block: 0.35em 0.45em;
  color: var(--green-dark);
}
.hero h1 .accent { color: var(--gold-deep); font-style: italic; }

.hero__lede {
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
  color: #43523f;
  max-width: 620px;
  margin: 0 auto clamp(28px, 4vw, 40px);
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--green);
  margin-bottom: 22px;
}
.hero__location svg { width: 16px; height: 16px; flex-shrink: 0; fill: var(--gold-deep); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero__tagline {
  margin-top: clamp(36px, 6vw, 60px);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--green);
}

/* ==========================================================================
   Hiring band (deep green)
   ========================================================================== */
.hiring {
  background: var(--green);
  color: var(--white);
  position: relative;
}
.hiring__inner { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
@media (min-width: 860px) { .hiring__inner { grid-template-columns: 1.1fr 0.9fr; } }

.hiring h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-block: 0.3em 0.5em; }
.hiring h2 .accent { color: var(--gold); }
.hiring p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 46ch; }
.hiring .eyebrow { color: var(--gold); }

.hiring__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 40px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hiring__card h3 { font-size: 1.35rem; color: var(--white); margin-bottom: 8px; }
.hiring__card p { color: rgba(255,255,255,0.74); font-size: 0.98rem; margin-bottom: 22px; }
.hiring__card .btn { width: 100%; justify-content: center; }
.hiring__card .small {
  display: block;
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.hiring__card .small a { color: var(--gold); text-decoration: none; }
.hiring__card .small a:hover { text-decoration: underline; }

/* ==========================================================================
   Values — "The Golden Rules"
   ========================================================================== */
.values { background: var(--cream); text-align: center; }
.values__head { max-width: 620px; margin: 0 auto clamp(40px, 6vw, 64px); }
.values__head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--green-dark); margin-top: 0.3em; }
.values__head p { color: #4f5a4a; margin-top: 0.6em; }

.values__grid {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  text-align: left;
}
.value-card {
  background: var(--white);
  border: 1px solid rgba(39, 71, 54, 0.1);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card__letter {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
  -webkit-text-stroke: 1px var(--gold-deep);
}
.value-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
  color: var(--green-dark);
  margin: 14px 0 10px;
}
.value-card p { font-size: 0.96rem; color: #515b4c; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--cream-2);
  color: #4f5a4a;
  padding-block: clamp(48px, 7vw, 76px);
  border-top: 1px solid rgba(39, 71, 54, 0.14);
}
.site-footer__inner {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; } }

.site-footer__logo img { height: 70px; width: auto; margin-bottom: 18px; }
.site-footer__tagline { font-style: italic; color: var(--gold-deep); margin-bottom: 14px; }
.site-footer__meta { font-family: var(--font-sans); font-size: 0.86rem; letter-spacing: 0.03em; line-height: 1.9; color: var(--green-dark); }
.site-footer__meta a { color: var(--gold-deep); text-decoration: none; }
.site-footer__meta a:hover { text-decoration: underline; }

.site-footer__legal {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(39, 71, 54, 0.14);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: rgba(39, 71, 54, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: center;
  text-align: center;
}

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

/* ==========================================================================
   Interior page hero (e.g. /careers/) — compact, echoes the sunrise softly
   ========================================================================== */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding-top: 116px;
  padding-bottom: clamp(20px, 3vw, 34px);
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  transform: translateX(-50%);
  width: min(150vw, 1300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
              rgba(243, 209, 72, 0.42) 0%,
              rgba(243, 209, 72, 0.2) 40%,
              rgba(243, 209, 72, 0) 68%);
  z-index: 0;
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--green-dark); margin-block: 0.25em 0.3em; }
.page-hero__lede { font-size: clamp(0.95rem, 1.7vw, 1.05rem); color: #5a6553; max-width: 560px; margin: 0 auto; }
.page-hero__location {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.8rem; color: var(--green); margin-top: 18px;
}
.page-hero__location svg { width: 15px; height: 15px; flex-shrink: 0; fill: var(--gold-deep); }

/* ==========================================================================
   Job listings
   ========================================================================== */
.jobs { background: var(--cream); }

.jobs__bar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.filter-chip {
  font-family: var(--font-sans); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem;
  color: var(--green-dark);
  background: transparent;
  border: 1.5px solid rgba(39, 71, 54, 0.25);
  border-radius: 999px;
  padding: 0.55em 1.25em;
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.filter-chip:hover { border-color: var(--green); }
.filter-chip.active { background: var(--green); color: var(--white); border-color: var(--green); }
.filter-chip:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

.jobs__list { display: grid; gap: clamp(22px, 2.6vw, 32px); }
.jobs__empty {
  display: none;
  text-align: center;
  font-style: italic;
  color: #6c7766;
  padding: 40px 0;
}

.job {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 250px);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(39, 71, 54, 0.12);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.job:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.job[hidden] { display: none; }

.job__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.job__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.3vw, 1.7rem); line-height: 1.15; color: var(--green-dark); }
.job__badge {
  flex-shrink: 0;
  font-family: var(--font-sans); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem;
  color: var(--green-dark);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.4em 0.85em;
  white-space: nowrap;
}

.job__meta {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-family: var(--font-sans); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #6c7766;
  margin-top: 14px;
}
.job__meta li { display: inline-flex; align-items: center; gap: 6px; }
.job__meta svg { width: 14px; height: 14px; fill: var(--gold-deep); flex-shrink: 0; }

.job__desc { color: #515b4c; font-size: 1rem; margin-top: 14px; max-width: 64ch; }

.job__actions { display: flex; flex-direction: column; gap: 10px; }
.job__actions .btn { width: 100%; justify-content: center; }
.job__note {
  font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.03em;
  color: #8a9384; text-align: center; margin-top: 2px;
}

@media (max-width: 760px) {
  .job { grid-template-columns: 1fr; gap: 20px; align-items: start; }
}

/* ==========================================================================
   Modal / popout (e.g. "View all details")
   ========================================================================== */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}
.modal__overlay { position: absolute; inset: 0; background: rgba(22, 34, 28, 0.62); }
.modal__panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  max-width: 660px; width: 100%;
  max-height: 86vh; overflow-y: auto;
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(39, 71, 54, 0.2); background: var(--cream);
  font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease);
}
.modal__close:hover { background: var(--cream-2); }
.modal__panel h2 { font-family: var(--font-display); color: var(--green-dark); font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0.3em 2.4rem 0.1em 0; }
.modal__panel h3 {
  font-family: var(--font-sans); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.82rem; color: var(--green-dark);
  margin: 26px 0 12px;
}
.modal__panel > p { color: #515b4c; margin-bottom: 14px; }
.modal__panel ul { list-style: none; padding-left: 0; margin: 0; }
.modal__panel li { position: relative; padding-left: 1.5em; margin-bottom: 8px; color: #515b4c; }
.modal__panel li::before { content: "\2605"; position: absolute; left: 0; top: 0.15em; color: var(--gold-deep); font-size: 0.8em; }
.modal__note {
  font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.03em;
  color: #8a9384; margin-top: 20px;
}
.modal__actions { margin-top: 24px; }
.modal__actions .btn { width: 100%; justify-content: center; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .modal__panel { animation: modal-in 0.2s var(--ease); }
  @keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}

/* ==========================================================================
   Generic call-to-action band (e.g. "don't see a fit?")
   ========================================================================== */
.cta-band { background: var(--green); color: var(--white); text-align: center; }
.cta-band__inner { max-width: 640px; margin-inline: auto; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-block: 0.3em 0.4em; }
.cta-band h2 .accent { color: var(--gold); }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; }
.cta-band .btn { margin-inline: auto; }
