/* North Valley Organics — site styles */

:root {
  --cream: #fbf7ef;
  --adobe: #f2e8d7;
  --adobe-line: #e2d3b9;
  --ink: #2b2a26;
  --muted: #5f5a50;
  --green: #2f6b2f;
  --green-dark: #1f4a22;
  --leaf: #7bb342;
  --red: #b5262a;
  --white: #fff;
  --radius: 10px;
  --wrap: 1120px;
  --head: "Zilla Slab", Georgia, serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.125rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--head); color: var(--green-dark); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Masthead: page photo with the logo centered over it ---------- */
.masthead {
  position: relative; display: grid; place-items: center;
  height: clamp(230px, 34vw, 440px); overflow: hidden;
  background: var(--green-dark);
}
.masthead.no-photo { height: clamp(200px, 24vw, 300px); background: radial-gradient(circle at 50% 40%, #3d7a3a, var(--green-dark)); }
.masthead-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 1.8s ease;
}
.masthead-photo.in, .no-js .masthead-photo { opacity: 1; transform: none; }
.masthead::after {  /* soft shade so the logo stands out on any photo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 60%), linear-gradient(rgba(0,0,0,.08), rgba(0,0,0,.18));
}
.brand { position: relative; z-index: 1; display: block; line-height: 0; }
/* Logo fills the header, leaving ~14px of photo above and below */
.brand img { width: auto; height: clamp(202px, calc(34vw - 28px), 412px); filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.masthead.no-photo .brand img { height: clamp(172px, calc(24vw - 28px), 272px); }
@media (prefers-reduced-motion: reduce) { .masthead-photo { transition: none; transform: none; } }

/* ---------- Navigation bar: right under the photo, sticks to the top ---------- */
.navbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--green-dark); border-bottom: 3px solid var(--leaf);
  box-shadow: 0 3px 12px rgba(20, 30, 15, .18);
}
.navbar-inner { display: flex; align-items: center; justify-content: center; min-height: 58px; }
.site-nav { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.site-nav a {
  display: block; padding: 8px 16px; border-radius: 999px;
  font: 600 1.05rem/1.2 var(--body); color: #eef3e6; text-decoration: none;
}
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--cream); color: var(--green-dark); }
.menu-toggle, .navbar-name { display: none; }

@media (max-width: 860px) {
  .navbar-inner { justify-content: space-between; min-height: 56px; }
  .navbar-name { display: block; font: 600 1.1rem var(--head); color: #fff; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; order: 2;
    background: var(--cream); color: var(--green-dark); border: 0; border-radius: 999px;
    padding: 9px 16px; font: 700 1rem var(--body); cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; } .bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; padding: 8px 16px 16px;
    background: var(--green-dark); border-bottom: 3px solid var(--leaf);
    box-shadow: 0 12px 20px rgba(20, 30, 15, .25);
  }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 8px; padding: 12px 14px; font-size: 1.1rem; }
  .no-js .site-nav { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 10px; }
  .no-js .navbar-inner { flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--green); color: var(--white);
  padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--green); transition: background .15s, color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--white); }
.btn-sm { padding: 6px 16px; font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0 64px; }
.section-tint {
  background: var(--adobe);
  border-top: 1px solid var(--adobe-line); border-bottom: 1px solid var(--adobe-line);
}
.page-head { padding: 52px 0 8px; }
.page-head h1 { margin-bottom: .25em; }
.page-head h1::after {
  content: ""; display: block; width: 64px; height: 4px; border-radius: 2px;
  background: var(--red); margin-top: 14px;
}
.lede { font-size: 1.25rem; color: var(--muted); }
.lede-sm { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; font-weight: 700; color: var(--red); margin-bottom: .75em; }

/* ---------- Home ---------- */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border-radius: var(--radius); box-shadow: 0 14px 30px rgba(40, 35, 20, .18); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.two-col-flip > :first-child { order: 2; }
.two-col-flip { grid-template-columns: 1fr 1.4fr; }
.two-col-wide { grid-template-columns: 1.5fr 1fr; }
.prose { max-width: 680px; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.owners { border-left: 4px solid var(--leaf); padding: 6px 0 6px 16px; background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }

.photo-stack { display: grid; gap: 16px; }
.photo-stack img, .framed img { width: 100%; border-radius: var(--radius); box-shadow: 0 8px 20px rgba(40, 35, 20, .14); }
.photo-stack img:first-child { aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 30%; }
.framed { margin: 0; background: var(--white); padding: 14px; border-radius: var(--radius); box-shadow: 0 8px 20px rgba(40, 35, 20, .1); }
.framed img { box-shadow: none; }

.thanks { text-align: center; max-width: 700px; }
.signature { font-family: "Caveat", cursive; font-size: 2rem; color: var(--green-dark); line-height: 1.2; margin-top: .5em; }

/* ---------- Products ---------- */
.venues { list-style: none; counter-reset: v; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.venues li {
  counter-increment: v; position: relative;
  background: var(--white); border: 1px solid var(--adobe-line); border-radius: var(--radius);
  padding: 24px 24px 12px 72px;
}
.venues li::before {
  content: counter(v); position: absolute; left: 20px; top: 22px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--white);
  font: 700 1.1rem/36px var(--head); text-align: center;
}
.venues h2 { font-size: 1.35rem; }
.venues .when { font-weight: 700; color: var(--red); }

.season { background: var(--white); border-radius: var(--radius); border: 1px solid var(--adobe-line); padding: 8px 16px 16px; max-width: 900px; margin: 0 auto; }
.season-row { display: grid; grid-template-columns: minmax(150px, 2.4fr) repeat(var(--cols, 9), 1fr); align-items: center; border-bottom: 1px solid #efe7d8; min-height: 44px; }
.season-row:last-child { border-bottom: 0; }
.season-headrow { min-height: 40px; font-weight: 700; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.season-headrow .m { text-align: center; }
.season .crop { padding: 6px 10px 6px 0; line-height: 1.25; }
.season .crop small { display: block; color: var(--muted); font-size: .85rem; }
.season-row .m { height: 18px; margin: 0 1px; }
.season-headrow .m { height: auto; }
.season-row .m.on { background: var(--leaf); border-radius: 9px; }
.season-row .m.on.cont { margin-left: -2px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.season-row .m.on:has(+ .m.cont) { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
@media (max-width: 600px) {
  .season { padding: 4px 10px 10px; }
  .season-row { grid-template-columns: minmax(118px, 2.2fr) repeat(var(--cols, 9), 1fr); }
  .m-rest { display: none; }
  .season .crop { font-size: 1rem; }
  .season-headrow .crop { font-size: .8rem; }
}

/* ---------- Services ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.checks li { position: relative; padding: 4px 0 4px 34px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 11px; width: 16px; height: 9px;
  border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg);
}
.memo-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 20px rgba(40, 35, 20, .1); max-width: 360px; justify-self: center; }
.memo-card img { border: 1px solid #ddd; margin: 0 auto 14px; transition: transform .2s; }
.memo-card a:hover img { transform: translateY(-3px); }
.memo-card p { font-size: 1rem; margin: 0; }
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.docs li { background: var(--white); border-radius: var(--radius); border: 1px solid var(--adobe-line); padding: 16px 18px 16px 58px; position: relative; }
.docs li::before {
  content: "PDF"; position: absolute; left: 14px; top: 16px; width: 32px; height: 40px;
  background: var(--red); color: var(--white); font: 700 .65rem/40px var(--body); text-align: center; border-radius: 3px;
}
.docs li span { display: none; }

/* ---------- Employment ---------- */
.job-card { background: var(--white); border-radius: var(--radius); border-top: 6px solid var(--green); box-shadow: 0 8px 20px rgba(40, 35, 20, .1); padding: 24px; }
.job-card dl { margin: 0 0 20px; }
.job-card dt { font: 600 1.15rem var(--head); color: var(--green-dark); margin-top: 14px; }
.job-card dt:first-child { margin-top: 0; }
.job-card dd { margin: 2px 0 0; font-size: 1.02rem; }
.apply { background: var(--adobe); border-radius: 8px; padding: 16px 18px; }
.apply h2 { font-size: 1.3rem; }
.apply p { margin: 0; font-size: 1.02rem; }

/* ---------- Gallery ---------- */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--adobe); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; gap: 10px; } }

.lightbox { position: fixed; inset: 0; background: rgba(20, 18, 12, .92); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 56px 16px; }
.lightbox img { max-height: 100%; max-width: 100%; width: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .card { padding: 20px 18px; } .card a.eml { font-size: min(1.05rem, 3.9vw); } }
.card { background: var(--white); border: 1px solid var(--adobe-line); border-radius: var(--radius); padding: 24px; }
.card h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.card .ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-size: 1rem; }
.card p { font-size: 1.05rem; }
.card a { overflow-wrap: anywhere; }
.card-market { background: var(--green); color: #eef5e6; border-color: var(--green); }
.card-market h2 { color: #fff; }
.card-market .ico { background: var(--white); color: var(--green); }
.card-market .btn { background: var(--white); color: var(--green-dark); border-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #dbe7d2; padding: 40px 0 28px; font-size: 1rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.footer-brand strong { font: 600 1.25rem var(--head); color: #fff; }
.copyright { flex-basis: 100%; margin: 12px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .9rem; color: #a9bfa0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 32px 0 48px; }
  .hero-inner, .two-col, .two-col-flip, .two-col-wide { grid-template-columns: 1fr; gap: 32px; }
  .two-col-flip > :first-child { order: 0; }
  .section { padding: 48px 0; }
  .framed { max-width: 420px; }
  .photo-stack { grid-template-columns: 1fr 1fr; }
  .photo-stack img:first-child { aspect-ratio: auto; height: 100%; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 16px; }
  .venues { grid-template-columns: 1fr; }
  .venues li { padding: 20px 18px 8px 62px; }
  .venues li::before { left: 14px; top: 18px; }
  .photo-stack { grid-template-columns: 1fr; }
}
