/* ============================================================
   pages.css — shared styles for all inner pages
   ============================================================ */

/* ── Page hero ── */
.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
}
.page-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.page-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--olive);
  margin-bottom: 10px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1.15;
  margin-bottom: 12px;
}
.page-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

/* ── Dark page hero (for about/wholesale) ── */
.page-hero-dark {
  background: linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 100%);
  color: var(--white);
  padding: 72px 0 64px;
  border-bottom: none;
}
.page-hero-dark .page-title  { color: var(--white); }
.page-hero-dark .page-sub    { color: rgba(255,255,255,0.78); }
.page-hero-dark .page-eyebrow { color: var(--sand-light); }

/* ── Page sections ── */
.page-section { padding: 72px 0; }
.page-section-alt { background: var(--cream); }
.page-section-dark { background: var(--olive-dark); color: var(--white); }

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--olive);
  margin-bottom: 10px;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--olive-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-heading-white { color: var(--white); }
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-center { text-align: center; }
.section-center .section-desc { margin: 0 auto; }

/* ── Producer cards ── */
.producers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.producer-card-dir {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.producer-card-dir:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.producer-card-top { display: flex; align-items: center; gap: 14px; }
.producer-dir-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--olive-mist);
  border: 2px solid var(--olive-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.producer-dir-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.producer-dir-initials {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--olive);
}
.producer-dir-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--olive-dark);
}
.producer-dir-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.producer-dir-bio {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.producer-dir-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.producer-dir-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--olive);
}
.producer-dir-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--olive);
}

/* ── Service cards ── */
.service-type-group { margin-bottom: 48px; }
.service-type-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--olive-mist);
}
.service-type-icon { font-size: 22px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.service-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.service-card-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.service-card-contact a { color: var(--olive); font-weight: 500; }

/* ── Steps (How it works) ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}
.step-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--olive-dark);
}
.step-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ── Value tiles ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-tile {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.value-tile-icon { font-size: 32px; margin-bottom: 14px; }
.value-tile-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.value-tile-desc { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.6; }

/* ── Stats row ── */
.stats-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { }
.stat-value {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--sand-light);
  line-height: 1;
}
.stat-label { font-size: 14px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ── Inquiry / contact form ── */
.inquiry-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}
.inquiry-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.inquiry-form-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--olive-dark);
  margin-bottom: 6px;
}
.inquiry-form-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 14px; font-weight: 500; color: var(--text); }
.field-group input,
.field-group select,
.field-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus { border-color: var(--olive); }
.field-group textarea { resize: vertical; min-height: 100px; }
.form-submit-row { margin-top: 8px; }
.form-success {
  display: none;
  color: var(--olive-dark);
  background: var(--olive-mist);
  border: 1px solid var(--olive-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-top: 12px;
}
.form-success.show { display: block; }

/* ── Audience tabs (How it works) ── */
.audience-tabs {
  display: flex;
  gap: 4px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  width: fit-content;
  margin-bottom: 40px;
}
.audience-tab {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
}
.audience-tab.active {
  background: var(--white);
  color: var(--olive-dark);
  box-shadow: var(--shadow);
}
.audience-panel { display: none; }
.audience-panel.active { display: block; }

/* ── CTA banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--olive-dark), var(--olive));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p { font-size: 16px; color: rgba(255,255,255,0.78); margin-bottom: 28px; }
.cta-banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Filter bar ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-bar-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.filter-pill {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s;
  background: var(--white);
}
.filter-pill:hover,
.filter-pill.active {
  border-color: var(--olive);
  background: var(--olive-mist);
  color: var(--olive-dark);
  font-weight: 600;
}

/* ── Empty state ── */
.page-empty {
  text-align: center;
  padding: 72px 20px;
  color: var(--text-muted);
}
.page-empty-icon { font-size: 48px; margin-bottom: 16px; }
.page-empty h3 { font-family: var(--serif); font-size: 22px; color: var(--text); margin-bottom: 8px; }
.page-empty p { font-size: 15px; }
.page-empty a { color: var(--olive); font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .producers-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid    { grid-template-columns: repeat(2, 1fr); }
  .inquiry-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .steps-grid     { grid-template-columns: 1fr; gap: 24px; }
  .form-row       { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .producers-grid { grid-template-columns: 1fr; }
  .values-grid    { grid-template-columns: 1fr 1fr; }
  .page-section   { padding: 48px 0; }
  .stats-row      { gap: 28px; }
  .cta-banner     { padding: 36px 24px; }
}

/* Nav active state (shared) */
.site-nav a.nav-active { color: var(--olive); font-weight: 600; }

/* Login modal styles (shared across pages) */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 9999;
  justify-content: center; align-items: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.login-modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; width: 100%; max-width: 420px;
  position: relative; box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; font-size: 26px;
  cursor: pointer; color: var(--text-muted); line-height: 1;
}
.modal-close:hover { color: var(--text); }
.login-modal h2 { font-family: var(--serif); font-size: 24px; color: var(--olive-dark); margin-bottom: 6px; }
.login-modal > p { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.form-group input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: var(--sans); color: var(--text);
  transition: border-color 0.2s; background: var(--white); outline: none;
}
.form-group input:focus { border-color: var(--olive); }
.form-error { color: #c0392b; font-size: 13px; margin-top: 10px; display: none; }
.form-error.show { display: block; }
.btn-submit {
  width: 100%; padding: 13px; background: var(--olive);
  color: var(--white); border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: var(--olive-dark); }
.signup-prompt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.signup-prompt a { color: var(--olive); font-weight: 600; }
