/* Halsema Pickling Co. — pitch demo site
   Warm farmhouse/artisan palette: barrel wood browns, pickle-jar green, mason-jar cream */

:root {
  --wood-dark: #3a2418;
  --wood: #5c3a24;
  --wood-light: #8a5a34;
  --cream: #faf3e3;
  --cream-2: #f2e6c9;
  --green: #294d3a;
  --green-dark: #1c3527;
  --green-light: #3f6e51;
  --gold: #d9a441;
  --gold-light: #ecc873;
  --ink: #2a1f14;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(30, 18, 8, 0.18);
  --shadow-sm: 0 4px 12px rgba(30, 18, 8, 0.12);
  font-size: 17px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--ink);
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.16  0 0 0 0 0.11  0 0 0 0 0.07  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Futura", "Trebuchet MS", "Helvetica Neue", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  color: var(--green-dark);
}

a { color: inherit; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: var(--gold);
  color: var(--wood-dark);
  text-align: center;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 54px;
  width: auto;
}

.brand-text {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.1;
}

.brand-text .co {
  display: block;
  font-size: 0.65em;
  letter-spacing: 0.12em;
  color: var(--wood-light);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a {
  text-decoration: none;
  color: var(--green-dark);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--wood);
}

/* Lively "Contact Us" button — each letter fizzes in turn, left to right */
.btn-fizz {
  background: var(--green-dark);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
  font-size: 1rem;
  padding: 16px 34px;
}
.btn-fizz:hover { transform: scale(1.05); }
.btn-fizz .fz-letter {
  display: inline-block;
  white-space: pre;
  animation: letterFizz 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.1s);
}
@keyframes letterFizz {
  0%, 38%, 100% { transform: translateY(0) scale(1); color: var(--cream); text-shadow: none; }
  6%  { transform: translateY(-6px) scale(1.4) rotate(-6deg); color: var(--gold-light); text-shadow: 0 0 12px rgba(236, 200, 115, 0.95); }
  12% { transform: translateY(1px) scale(0.9) rotate(4deg); color: #ff9a52; text-shadow: 0 0 10px rgba(255, 154, 82, 0.7); }
  18% { transform: translateY(-3px) scale(1.15) rotate(-2deg); color: #9be3b0; text-shadow: 0 0 10px rgba(155, 227, 176, 0.7); }
  26% { transform: translateY(0) scale(1.03); color: var(--gold-light); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-fizz .fz-letter { animation: none; }
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 12, 6, 0.55), rgba(20, 12, 6, 0.72)),
    url("../img/crate-texture.jpg") center/cover no-repeat;
  color: var(--cream);
  padding: 110px 0 90px;
}

.hero-inner {
  max-width: 640px;
}

.eyebrow {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  font-weight: 700;
}

.hero h1 {
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero p.lede {
  font-size: 1.15rem;
  color: var(--cream-2);
  margin-bottom: 32px;
}

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.88rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--wood-dark);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}

.btn-buy-now {
  margin-top: 20px;
  font-size: 1.05rem;
  padding: 18px 36px;
  box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.6);
  animation: buy-now-pulse 2s ease-out infinite;
}

.btn-buy-now:hover {
  animation-play-state: paused;
  transform: scale(1.05);
}

@keyframes buy-now-pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0.6); }
  70% { box-shadow: 0 0 0 16px rgba(217, 164, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 164, 65, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-buy-now {
    animation: none;
  }
}

.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }

.torn-divider {
  height: 13px;
  background-image:
    linear-gradient(135deg, transparent 50%, rgba(42, 31, 20, 0.16) 50%),
    linear-gradient(45deg, rgba(42, 31, 20, 0.16) 50%, transparent 50%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 0;
  background-repeat: repeat-x;
}

.section-alt { background: var(--cream-2); }

.section-dark {
  background: var(--green-dark);
  color: var(--cream-2);
}

.section-dark h2, .section-dark h3 { color: var(--cream); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow { color: var(--wood-light); text-align: center; }
.section-dark .section-head .eyebrow { color: var(--gold-light); }

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
}

/* ---------- Story teaser (home) ---------- */
.story-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.story-teaser img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.teaser-photo { margin: 0; }
.teaser-photo img { display: block; width: 100%; }
.teaser-photo figcaption {
  margin-top: 14px;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  color: var(--wood);
}

.story-teaser h2 { font-size: 2rem; }

.family-line {
  font-style: italic;
  color: var(--wood);
  margin-top: 18px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--cream);
  border: 1px solid var(--cream-2);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.feature-card .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--wood);
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.product-grid-single {
  max-width: 420px;
  margin: 0 auto;
}

.product-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: stretch; /* product card's bottom lines up with the bottom of the stores column */
}

.product-layout .product-grid-single {
  max-width: none;
  margin: 0;
}

/* Wide screens: stores column on the left, product card on the right (phones keep the product first) */
@media (min-width: 781px) {
  .product-layout { grid-template-columns: 1fr 420px; }
  .product-layout .stores-panel { order: -1; }
}

.stores-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stores-card {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  border: 1px solid var(--cream-2);
}

.stores-state {
  display: block;
  font-family: "Rye", serif;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--green);
}

.stores-kind {
  display: block;
  margin-top: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wood-light);
}

.stores-card-cta p {
  margin: 12px 0 20px;
  color: var(--wood);
  font-size: 0.96rem;
}

.stores-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.stores-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--cream-2);
  font-size: 0.96rem;
  color: var(--wood);
}

.stores-list a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
}

.stores-list li:last-child { border-bottom: none; }

.product-grid-single .product-card .product-media {
  aspect-ratio: 1 / 1;
  padding: 32px;
  box-sizing: border-box;
}

.product-grid-single .product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.label-sheet {
  display: block;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lineup-photo {
  max-width: 640px;
  margin: 0 auto;
}
.stores-card-cta-wide {
  max-width: 640px;
  margin: 64px auto 0;
  text-align: center;
}
.lineup-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* In the stores column, the photo's bottom edge lines up with the bottom of the
   product photo area on the left (a 420px-wide card with a 1px border and a square photo box). */
.stores-panel .lineup-photo { max-width: none; width: 100%; }
/* Only on wide screens, where the column is wide enough to fill without cropping the sides. */
@media (min-width: 1124px) {
  .stores-panel .lineup-photo img {
    height: 419px;
    object-fit: cover;
    object-position: center top;
  }
}
/* Caption sits on the photo, over the grey cloth at the bottom, in the site's Western display font */
.lineup-photo { position: relative; }
.lineup-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px 14px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(28, 53, 39, 0.9);
  border-top: 2px solid var(--gold);
  font-family: "Rye", serif;
  font-weight: 400;
  font-size: 0.85rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--cream);
}
@media (min-width: 1124px) {
  .lineup-photo figcaption { font-size: 1rem; }
}
@media (max-width: 480px) {
  .lineup-photo figcaption { font-size: 0.7rem; padding: 8px 10px 9px; }
}

/* All three jar labels: same width, stacked */
.label-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.label-stack .label-sheet {
  max-width: 760px;
  margin: 0;
}

.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-2);
  display: flex;
  flex-direction: column;
}

.product-card .product-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-2);
}

.product-card .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.badge {
  display: inline-block;
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  width: fit-content;
}

.badge-signature {
  background: var(--gold);
  color: var(--wood-dark);
}

.badge-sample {
  background: var(--cream-2);
  color: var(--wood);
  border: 1px solid var(--wood-light);
}

.product-card h3 { font-size: 1.25rem; }

.product-tagline {
  font-style: italic;
  color: var(--wood);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.product-card p { font-size: 0.94rem; }

.product-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--cream-2);
  font-size: 0.82rem;
  color: var(--wood-light);
}

/* ---------- Story page ---------- */
.story-hero {
  background: linear-gradient(180deg, rgba(20, 12, 6, 0.55), rgba(20, 12, 6, 0.72)),
    url("../img/crate-texture.jpg") center/cover no-repeat;
  color: var(--cream);
  padding: 70px 0 50px;
  text-align: center;
}

.story-hero .eyebrow { text-align: center; color: var(--gold-light); }

.story-badge {
  position: relative;
  display: inline-block;
  width: 230px;
  aspect-ratio: 1057 / 367;
  margin: 0 auto 18px;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)) drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
}

.story-badge img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.story-badge-text-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.story-hero h1 { color: var(--cream); }

.story-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 70px 24px;
}

.story-body p { margin-bottom: 22px; font-size: 1.06rem; }

.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 24px;
  margin: 36px 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--wood);
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.family-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}

.family-card .photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
  margin: 0 auto 12px;
  display: block;
}

.family-card .name {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.family-card .role {
  font-size: 0.85rem;
  color: var(--wood);
}

.family-card .photo.photo-kim {
  object-position: center 26%;
}

.family-card-entry + .family-card-entry {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--wood-light);
}

.family-team-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 8px 0 40px;
}

/* ---------- Process gallery ---------- */
.process-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 32px 0 40px;
}

.process-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-2);
  display: flex;
  flex-direction: column;
}

.process-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.process-gallery figcaption {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: var(--cream-2);
  font-size: 0.85rem;
  color: var(--wood);
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
}

.contact-card {
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  border: 1px solid var(--cream-2);
}

.contact-card h3 { font-size: 1.1rem; }

.contact-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.contact-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--cream-2);
  font-size: 0.96rem;
}

.contact-list li:last-child { border-bottom: none; }

.social-icons {
  display: inline-flex;
  gap: 12px;
  vertical-align: middle;
}

.social-icon {
  display: inline-flex;
  color: var(--wood-dark);
  transition: color 0.15s ease;
}

.social-icon:hover {
  color: var(--gold);
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-family: "Futura", "Trebuchet MS", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wood);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--cream-2);
  background: #fff;
  color: var(--ink);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form button {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: "Futura", "Trebuchet MS", sans-serif;
}

.note {
  font-size: 0.85rem;
  color: var(--wood-light);
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--wood-dark);
  color: var(--cream-2);
  padding: 40px 0 24px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-inner a {
  color: var(--gold-light);
  text-decoration: none;
}

/* "Designed & hosted by Resona Collective" credit line */
.footer-credit {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(250, 243, 227, 0.14);
  text-align: center;
}
.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cbb99a;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-credit a:hover { color: var(--gold-light); }
.footer-credit img { display: block; width: 36px; height: auto; }
.footer-credit strong { color: var(--cream); font-weight: 700; white-space: nowrap; }
.footer-credit span { text-align: center; }
/* Phones: icon on top, and "Resona Collective" always stays together on one line */
@media (max-width: 480px) {
  .footer-credit a { flex-direction: column; gap: 6px; }
}

.footer-demo-note {
  max-width: 520px;
  font-size: 0.8rem;
  color: #cbb99a;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .story-teaser,
  .contact-grid,
  .product-layout {
    grid-template-columns: 1fr;
  }
  .product-layout .product-grid-single {
    max-width: 420px;
    margin: 0 auto;
  }
  /* Phones: lineup photo first, then the product card, then the store lists */
  .product-layout { gap: 32px; }
  .product-layout .stores-panel { display: contents; }
  .product-layout .lineup-photo { order: -1; }
  .product-layout .product-grid-single { order: 0; width: 100%; }
  .product-layout .stores-card { order: 1; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 16px 24px 24px;
    display: none;
    gap: 16px;
    border-bottom: 3px solid var(--gold);
  }
  .nav-links.open { display: flex; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--cream-2);
    background: var(--cream);
    font-size: 1.3rem;
    cursor: pointer;
  }
  .hero { padding: 80px 0 60px; }
}
