/* Stokdijk Greenhouses — site styles (same as the static site's src/styles/global.css, plus the WordPress content blocks at the end). No framework; mobile-first. */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/lato-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand green taken from the original site background (#005942). */
  --brand: #005942;
  --brand-dark: #003b2c;
  --brand-ink: #00261c;
  --leaf: #38752a;
  --leaf-light: #e6f0df;
  --tomato: #b33a2a;
  --sun: #f2b632;
  --cream: #f7f5ee;
  --paper: #ffffff;
  --ink: #1d2622;
  --muted: #4f5b55;
  --line: #dcdfd6;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px rgb(0 40 30 / 0.08);
  --max: 72rem;
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', 'Segoe Script', cursive;
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--brand-ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 650; }
h4 { font-size: 1.05rem; font-weight: 650; }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: 0.25em; }

a { color: var(--brand); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--leaf); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--brand-ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

.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;
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 46rem); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--brand-ink);
  padding-block: 0.5rem;
}
.brand img { width: 72px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.brand-tagline { font-family: var(--font-script); font-weight: 700; color: var(--leaf); font-size: 1.15rem; }
.brand:hover { color: var(--brand-ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font: 700 0.95rem var(--font-head);
  color: var(--brand-ink);
  background: var(--leaf-light);
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.05rem;
  cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: '';
}
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

.site-nav { flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 1rem; }
.js .site-nav:not(.open) { display: none; }
.site-nav li + li { margin: 0; }
.site-nav a {
  display: block;
  padding: 0.75rem 0.25rem;
  font: 600 1rem var(--font-head);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current='page'] { color: var(--brand); }
.site-nav a:hover { color: var(--leaf); }

@media (min-width: 62rem) {
  .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: none; }
  .site-nav, .js .site-nav:not(.open) { display: block; flex-basis: auto; }
  .site-nav ul { display: flex; gap: 0.15rem; padding: 0; }
  .site-nav a { border: 0; padding: 0.5rem 0.8rem; border-radius: 999px; font-size: 0.95rem; }
  .site-nav a[aria-current='page'] { background: var(--leaf-light); color: var(--brand-ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--brand-ink);
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-inner {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  max-width: 44rem;
}
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgb(0 0 0 / 0.35); }
.hero .lede { font-size: 1.2rem; max-width: 36rem; text-shadow: 0 1px 8px rgb(0 0 0 / 0.4); }
.hero .script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  color: #fff3c4;
  display: block;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.45);
}

.page-hero {
  background: var(--brand);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background-image: radial-gradient(circle at 85% 20%, rgb(255 255 255 / 0.09), transparent 45%),
    radial-gradient(circle at 10% 110%, rgb(79 143 58 / 0.45), transparent 50%);
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: 0.6rem 0 0; font-size: 1.15rem; max-width: 42rem; color: #e9f3ec; }
.breadcrumbs { font-size: 0.9rem; margin-bottom: 0.75rem; }
.breadcrumbs a { color: #d6eadb; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumbs li + li::before { content: '›'; margin-right: 0.4rem; color: #b8d6c0; }
.breadcrumbs li + li { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 1rem var(--font-head);
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  background: var(--sun);
  color: var(--brand-ink);
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn:hover { background: #ffd166; color: var(--brand-ink); }
.btn.green { background: var(--brand); color: #fff; }
.btn.green:hover { background: var(--brand-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section.alt { background: var(--paper); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.eyebrow {
  font: 700 0.8rem var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.5rem;
  display: block;
}

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 40rem) { .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; } .split.reverse > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card img { aspect-ratio: 19 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body h3 a { color: var(--brand-ink); text-decoration: none; }
.card-body h3 a::after { content: ''; position: absolute; inset: 0; }
.card-body h3 a:hover { color: var(--brand); }
.card:focus-within { outline: 3px solid var(--sun); outline-offset: 3px; }
.card:focus-within a:focus-visible { outline: none; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 0.6rem; font: 700 0.9rem var(--font-head); color: var(--brand); }
.tag {
  display: inline-block;
  font: 700 0.75rem var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--leaf-light);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  width: max-content;
}

.category-tiles { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .category-tiles { grid-template-columns: repeat(3, 1fr); } }
.category-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 15rem;
  display: flex;
  align-items: flex-end;
  color: #fff;
  text-decoration: none;
  background: var(--brand-ink);
  box-shadow: var(--shadow);
}
.category-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.category-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 25 18 / 0.85), rgb(0 25 18 / 0.05) 65%); }
.category-tile span { position: relative; z-index: 1; padding: 1.25rem 1.4rem; font: 700 1.4rem var(--font-head); }
.category-tile:hover { color: #fff; }
.category-tile:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .category-tile img { transition: none; } .category-tile:hover img { transform: none; } }

/* ---------- Prose ---------- */
.prose { font-size: 1.075rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: var(--radius-sm); margin-block: 1.5rem; }
.prose ul li::marker { color: var(--leaf); }
.prose blockquote { border-left: 4px solid var(--leaf); margin: 1.5rem 0; padding: 0.25rem 0 0.25rem 1.25rem; color: var(--muted); }
.content-wrap { display: grid; gap: 2.5rem; }
@media (min-width: 60rem) { .content-wrap.with-aside { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } }

.panel {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}
.panel h2, .panel h3 { font-size: 1.15rem; }
.panel + .panel { margin-top: 1.25rem; }
.panel.green { background: var(--brand); color: #fff; }
.panel.green h2, .panel.green h3, .panel.green a { color: #fff; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.facts li { margin: 0; display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: start; }
.facts svg { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; color: var(--leaf); }
.facts strong { display: block; font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours th { font-weight: 700; padding-right: 1rem; }
.panel.green .hours th, .panel.green .hours td { border-color: rgb(255 255 255 / 0.2); }

.notice {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  background: #fff8e1;
  border-left: 5px solid var(--sun);
  margin-bottom: 1.5rem;
}
.notice p:last-child { margin: 0; }
.notice.closed { background: #fdecea; border-color: var(--tomato); }

/* ---------- Jobs ---------- */
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.job-list > li { margin: 0; }
.job-card { padding: 1.5rem 1.6rem; }
.job-card h3 { font-size: 1.35rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; padding: 0; margin: 0.25rem 0 0.75rem; list-style: none; color: var(--muted); font-size: 0.95rem; }
.job-meta li { margin: 0; }
.job-meta strong { color: var(--ink); }
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 2px dashed var(--line);
}
.empty-state svg { width: 3rem; height: 3rem; color: var(--leaf); margin: 0 auto 1rem; }
.empty-state p { max-width: 34rem; margin-inline: auto; }
.job-section + .job-section { margin-top: 2rem; }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-ink); color: #d5e4da; padding-block: 3rem 2rem; font-size: 0.98rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1rem; }
.footer-brand img { width: 84px; height: 70px; background: #fff; border-radius: 12px; padding: 6px; object-fit: contain; box-sizing: content-box; }
.footer-brand .brand-tagline { color: #bfe0a8; font-size: 1.3rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 0 0 0.4rem; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / 0.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: 0.88rem; color: #b5cbbd; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }
.site-footer .hours th, .site-footer .hours td { border-color: rgb(255 255 255 / 0.15); padding-block: 0.3rem; }

/* ---------- Misc ---------- */
.lead { font-size: 1.2rem; color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }
.figure-caption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.product-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.news-date { color: var(--muted); font-size: 0.92rem; }
.not-found { text-align: center; padding-block: 5rem; }
.not-found .big { font: 800 clamp(4rem, 12vw, 8rem) var(--font-head); color: var(--leaf); line-height: 1; margin: 0; }
.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.link-list li { margin: 0; }

@media print {
  .site-header, .site-footer, .skip-link, .btn-row { display: none; }
  body { background: #fff; }
}
.footer-social { margin-top: 0.75rem; }
.footer-social svg { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.mt-2 { margin-top: 2rem; }
.hiring-strip { padding-block: 1.5rem; }
.hiring-strip .notice { margin: 0; }
.mt-1 { margin-top: 1rem; }
.mt-3 { margin-top: 3rem; }
.product-group + .product-group { margin-top: 3rem; }
.filter-bar { margin: 0 0 2rem; }
.filter-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-bar li + li { margin: 0; }
.filter-bar a {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 2px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
  font: 700 0.95rem var(--font-head);
  text-decoration: none;
  line-height: 1.6;
}
.filter-bar a:hover { background: var(--leaf-light); color: var(--brand-ink); }
.filter-bar a[aria-current] { background: var(--brand); color: #fff; }
.product-group h2 a { color: inherit; text-decoration: none; }
.product-group h2 a:hover { color: var(--brand); text-decoration: underline; }
@media (min-width: 60rem) { .content-wrap.with-image { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.narrow-prose { max-width: 46rem; }
.content-wrap.image-top { gap: 2rem; }
.top-figure { margin: 0; max-width: 46rem; }
.product-split { align-items: start; }
.card-title { font-size: 1.25rem; margin: 0; }
.card-title a { color: var(--brand-ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.contact-grid { align-items: start; }
.panel.green a.btn, .panel.green a.btn:hover { color: var(--brand-ink); }

/* ---------- Refinements ---------- */
.prose .eyebrow + h2 { margin-top: 0; }
.nav-toggle { margin-left: auto; }
@media (max-width: 30rem) {
  .header-inner { gap: 0.5rem; }
  .brand { gap: 0.5rem; }
  .brand-name { font-size: 0.92rem; }
  .brand-tagline { font-size: 0.98rem; }
  .nav-toggle { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
  .category-tile { min-height: 9.5rem; }
  .hero-inner { padding-block: 3.5rem; }
}
@media (max-width: 30rem) {
  /* Let the name wrap beside the Menu button instead of pushing the button to a new line. */
  .site-header .brand { flex: 1 1 0; min-width: 0; }
  .site-header .brand-text { text-wrap: balance; }
  .site-header .brand img { width: 53px; height: 44px; flex-shrink: 0; }
  .site-header .brand-name { font-size: 0.9rem; }
  .nav-toggle { flex-shrink: 0; }
  .site-header .brand-tagline { font-size: 0.95rem; }
  .nav-toggle { padding: 0.45rem 0.75rem; }
}
.employment-photo { margin-top: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- WordPress content blocks (paragraph, heading, list, image, quote) ---------- */
.prose figure, .prose .wp-block-image { margin: 1.5rem 0; }
.prose figure img { margin: 0; }
.prose figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.prose .wp-block-quote p:last-child { margin-bottom: 0; }
/* Lazy images with sizes="auto" (WordPress) get a sensible placeholder size. */
img:is([sizes='auto' i], [sizes^='auto,' i]) { contain-intrinsic-size: 3000px 1500px; }
.site-header.wp-block-template-part, .site-footer.wp-block-template-part { margin: 0; }
/* WCAG 2.2 target size: stand-alone text links are at least 24 px tall. */
p.mt-2 > a:only-child { display: inline-block; min-height: 24px; }
