/* Dutcher Cove Farm -- shared styles for every page.
   Colors, fonts, and spacing live here so a look-and-feel change is made once. */

:root {
  --cream: oklch(0.97 0.01 80);
  --cream-2: oklch(0.96 0.01 80);
  --ink: oklch(0.28 0.02 60);
  --brand: oklch(0.35 0.05 130);
  --brand-deep: oklch(0.30 0.04 130);
  --muted: oklch(0.45 0.02 60);
  --muted-2: oklch(0.50 0.02 60);
  --line: oklch(0.85 0.01 70);

  --badge-in: oklch(0.50 0.09 145);
  --badge-out: oklch(0.55 0.02 60);
  --badge-soon: oklch(0.50 0.12 66); /* darkened for white-text contrast (WCAG AA) */

  --serif: 'Domine', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', system-ui, -apple-system, sans-serif;

  --wrap: 1080px;
  --wrap-narrow: 900px;
  --pad: clamp(20px, 5vw, 44px);

  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--cream-2);
}

html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--cream-2); }
html::-webkit-scrollbar-thumb {
  background: var(--brand);
  border: 2px solid var(--cream-2);
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover { background: var(--brand-deep); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

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

/* Skip link: hidden until focused, then drops in at the top-left. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 30;
  background: var(--brand);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 0 0 4px 4px;
  font: 600 14px var(--sans);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 2px solid var(--brand);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px var(--pad);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header .brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
}

.site-header .brand-text { display: flex; flex-direction: column; }

.site-header .brand-name {
  font: 700 clamp(20px, 5vw, 24px)/1 var(--serif);
  color: var(--brand);
  white-space: nowrap;
}

.site-header .brand-place {
  font: 400 12px var(--sans);
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font: 600 13px var(--sans);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Padding gives each link a >=24px tap target (WCAG 2.5.8) without
   changing the type size. */
.site-nav a { color: var(--muted); padding: 6px 4px; }

.site-nav a.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.section-title {
  font: 700 22px var(--serif);
  color: var(--brand-deep);
  margin: 0 0 18px;
}

.page-title {
  font: 700 clamp(28px, 6vw, 34px)/1.2 var(--serif);
  color: var(--brand-deep);
  margin: 0;
}

.lead {
  margin-top: 14px;
  font: 400 16px/1.7 var(--sans);
  color: oklch(0.35 0.02 60);
}

.fine {
  font: 400 12.5px/1.5 var(--sans);
  color: var(--muted-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: clamp(360px, 58vw, 440px);
  overflow: hidden;
}

.hero .hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero .hero-media > * { width: 100%; height: 130%; position: absolute; top: -15%; left: 0; }

.hero .hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    oklch(0.18 0.05 130 / 0.82) 0%,
    oklch(0.18 0.05 130 / 0.62) 40%,
    oklch(0.18 0.05 130 / 0.25) 75%);
}

.hero .hero-inner {
  position: relative;
  height: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.hero h1 {
  margin: 0;
  font: 700 clamp(26px, 4.5vw, 42px)/1.18 var(--serif);
  color: #fff;
  max-width: 480px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero p {
  margin: 14px 0 0;
  font: 400 clamp(13px, 2vw, 16px)/1.6 var(--sans);
  color: #fff;
  opacity: 0.95;
  max-width: 440px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero .btn { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  font: 700 14px var(--sans);
  padding: 13px 26px;
  border-radius: 3px;
  transition: gap 0.18s ease;
  pointer-events: auto;
}
.btn:hover { gap: 12px; }
.btn .arrow { width: 15px; height: 15px; flex: none; }

.btn-light { color: var(--brand); background: var(--cream); }
.btn-brand { color: var(--cream); background: var(--brand); }

/* Applied by site.js to a "Get in touch" button that has no destination yet
   (no Facebook URL and no fallback link): visibly not-ready and inert. */
.btn-disabled { opacity: 0.55; pointer-events: none; }

/* ---------- Product / info cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
/* A lone card shouldn't stretch across the whole row. */
.grid > .card:only-child { max-width: 380px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--brand);
}

.card .card-body { padding: 14px 16px; }

.card .card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.card .card-name { font: 700 16px var(--serif); margin: 0; }
.card .card-name .sub { font-weight: 400; font-size: 12px; color: var(--muted-2); }

.card .card-price {
  font: 700 17px var(--sans);
  margin-top: 8px;
  color: var(--brand-deep);
}
.card .card-price .unit { font-weight: 400; font-size: 12px; color: var(--muted-2); }

.card-media-pair { display: grid; grid-template-columns: 1fr 1fr; }

.card-media { height: 130px; }
.card-media img, .card-media .img-ph { width: 100%; height: 100%; object-fit: cover; }
.photo img, .photo .img-ph { width: 100%; height: 100%; object-fit: cover; }
/* Keep the striped placeholder in the hero, but hide its label so it doesn't
   collide with the headline. The HTML comment explains how to add the photo. */
.hero .img-ph { width: 100%; height: 100%; font-size: 0; }

/* ---------- Badges ---------- */
.badge {
  font: 700 9.5px var(--sans);
  color: #fff;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge.in_stock { background: var(--badge-in); }
.badge.sold_out { background: var(--badge-out); }
.badge.coming_soon { background: var(--badge-soon); }

/* ---------- Image placeholder (until a real photo is dropped in) ---------- */
.img-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  background:
    repeating-linear-gradient(45deg, oklch(0.93 0.01 80) 0 10px, oklch(0.95 0.01 80) 10px 20px);
  color: var(--muted-2);
  font: 500 12px/1.4 var(--sans);
  border: 1px dashed var(--line);
}

/* ---------- Chips (payments) ---------- */
.chip {
  font: 600 13px var(--sans);
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 20px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.pill {
  font: 600 12.5px var(--sans);
  color: var(--brand);
  background: oklch(0.92 0.03 130);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
}

/* ---------- Delivery bar ---------- */
.delivery-bar {
  background: var(--brand);
  color: var(--cream-2);
  border-radius: 6px;
  padding: 24px clamp(18px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.delivery-bar .primary { font: 700 15px var(--sans); }
.delivery-bar .secondary { font: 400 13px var(--sans); margin-top: 6px; opacity: 0.85; }

/* ---------- How-to-order steps ---------- */
.steps { margin-top: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.step:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); border-color: var(--brand); }
.step .num { font: 700 20px var(--serif); color: var(--brand); }
.step .step-title { font: 700 15px var(--serif); margin: 8px 0 0; }
.step p { font: 400 13px/1.6 var(--sans); color: var(--muted); margin: 6px 0 0; }
.step a { color: var(--brand); font-weight: 600; }

/* ---------- Generic content blocks ---------- */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; align-items: start; }
.two-col.center { align-items: center; }
.media-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.photo {
  width: 100%;
  height: 220px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.subhead { font: 700 20px var(--serif); color: var(--brand-deep); }
.body-copy { margin-top: 8px; font: 400 14px/1.7 var(--sans); color: var(--muted); }
.note-box {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 16px;
  font: 600 13px var(--sans);
  color: var(--brand);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--wrap);
  margin: 34px auto 0;
  padding: 34px var(--pad) 44px;
  font: 400 12px var(--sans);
  color: var(--muted-2);
  text-align: center;
}
.dot-sep::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  margin: 0 8px;
  opacity: 0.7;
}

/* ---------- Spacing utilities used by the pages ---------- */
.pad-block { padding-top: 30px; padding-bottom: 6px; }
.pad-block-lg { padding-top: 48px; padding-bottom: 10px; }
.mt-lg { margin-top: 34px; }
.mt-md { margin-top: 22px; }
.mt-sm { margin-top: 14px; }
.measure { max-width: 560px; }
.inline-arrow { width: 15px; height: 15px; vertical-align: middle; }
