/* ── Overland Oaks — Design System ────────────────────────────────────────── */

/* Fonts loaded via Google Fonts in base.html */

:root {
  --green:      #1d3a2a;
  --green-mid:  #2a5040;
  --green-light:#3b6d11;
  --parchment:  #f5f0e8;
  --parchment-dark: #e8e2d4;
  --ochre:      #c4a44a;
  --ochre-dark: #a8893a;
  --text:       #2b2520;
  --text-muted: #6b5e52;
  --border:     #d5cfc4;
  --white:      #ffffff;
  --error:      #a32d2d;
  --success:    #3b6d11;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius:   6px;
  --radius-lg: 12px;
  --shadow:   0 2px 8px rgba(29, 58, 42, 0.10);
  --shadow-lg: 0 8px 32px rgba(29, 58, 42, 0.14);
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--parchment);
}

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

a {
  color: var(--green);
  text-decoration: underline;
}

a:hover {
  color: var(--ochre-dark);
}

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }

/* ── Layout ───────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container--narrow {
  max-width: 720px;
}

.section {
  padding: 4rem 0;
}

.section--sm {
  padding: 2rem 0;
}

.section--lg {
  padding: 6rem 0;
}

/* ── Header / Nav ─────────────────────────────────────────────────────────── */

.site-header {
  background: var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-logo:hover {
  color: var(--ochre);
}

.site-logo__img {
  display: block;
  height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  color: var(--parchment);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  color: var(--ochre);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--parchment);
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--green);
  color: var(--parchment);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

.site-footer h4 {
  color: var(--ochre);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.875rem;
}

.site-footer p,
.site-footer a {
  color: rgba(245, 240, 232, 0.8);
  font-size: 0.9rem;
  text-decoration: none;
  line-height: 1.7;
}

.site-footer a:hover {
  color: var(--ochre);
}

.site-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(245,240,232,0.15);
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.5);
  text-align: center;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.375rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  line-height: 1.4;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--ochre);
  color: var(--green);
  border-color: var(--ochre);
}
.btn--primary:hover {
  background: var(--ochre-dark);
  border-color: var(--ochre-dark);
  color: var(--green);
}

.btn--green {
  background: var(--green);
  color: var(--parchment);
  border-color: var(--green);
}
.btn--green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--parchment);
}

.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover {
  background: var(--green);
  color: var(--parchment);
}

.btn--outline-light {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(245,240,232,0.6);
}
.btn--outline-light:hover {
  background: rgba(245,240,232,0.12);
  border-color: var(--parchment);
}

.btn--sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

/* ── Cards ────────────────────────────────────────────────────────────────── */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__body {
  padding: 1.5rem;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.card__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ── Badges / Status Pills ────────────────────────────────────────────────── */

.badge {
  display: inline-block;
  padding: 0.2em 0.65em;
  font-size: 0.78125rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.badge--open    { background: #e8f4dc; color: #3b6d11; }
.badge--waitlist{ background: #faeeda; color: #854f0b; }
.badge--closed  { background: #f0ede8; color: var(--text-muted); }

/* ── Forms ────────────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.6rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(29, 58, 42, 0.12);
}

.form-control.is-invalid {
  border-color: var(--error);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-help {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 0.3rem;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
}

/* Checkbox */
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Non-field errors */
.form-errors {
  background: #fce8e8;
  border: 1px solid #e0b0b0;
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--error);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  background: var(--green);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 4rem 0;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ochre);
  margin-bottom: 0.75rem;
}

.hero__title {
  color: var(--parchment);
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.divider--ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ochre);
  font-size: 1.25rem;
  margin: 2rem 0;
}
.divider--ornament::before,
.divider--ornament::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

/* ── Batch Run Cards ──────────────────────────────────────────────────────── */

.batch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.batch-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.batch-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.batch-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--green);
}

.batch-card__season {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.batch-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  flex: 1;
}

.batch-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.batch-card__detail {
  display: flex;
  justify-content: space-between;
}

.batch-card__detail-label {
  color: var(--text-muted);
}

.batch-card__detail-value {
  font-weight: 600;
  color: var(--text);
}

.batch-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--parchment-dark);
}

/* ── Product Grid ─────────────────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.product-card__image {
  aspect-ratio: 4 / 3;
  background: var(--parchment-dark);
  overflow: hidden;
}

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

.product-card__body {
  padding: 1.125rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: var(--green);
}

.product-card__price {
  font-weight: 700;
  color: var(--ochre-dark);
  font-size: 1.0625rem;
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
}

.product-card__footer {
  padding: 0 1.125rem 1.125rem;
}

/* ── Category Filter ──────────────────────────────────────────────────────── */

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-filter__btn {
  padding: 0.35rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.category-filter__btn:hover,
.category-filter__btn.active {
  background: var(--green);
  border-color: var(--green);
  color: var(--parchment);
}

/* ── Subscribe Bar ────────────────────────────────────────────────────────── */

.subscribe-bar {
  background: var(--green-mid);
  color: var(--parchment);
  padding: 2.5rem 0;
}

.subscribe-bar__inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.subscribe-bar__text h3 {
  color: var(--parchment);
  margin-bottom: 0.25rem;
}

.subscribe-bar__text p {
  opacity: 0.8;
  font-size: 0.9375rem;
}

.subscribe-bar__form {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 280px;
}

.subscribe-bar__form .form-control {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,0.12);
  border-color: rgba(245,240,232,0.3);
  color: var(--parchment);
}

.subscribe-bar__form .form-control::placeholder {
  color: rgba(245,240,232,0.55);
}

.subscribe-bar__form .form-control:focus {
  background: rgba(255,255,255,0.18);
  border-color: var(--ochre);
  box-shadow: 0 0 0 3px rgba(196, 164, 74, 0.2);
}

.subscribe-bar__message {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

/* ── Dashboard ────────────────────────────────────────────────────────────── */

.dashboard-header {
  background: var(--green);
  color: var(--parchment);
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  color: var(--parchment);
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.dashboard-header p {
  opacity: 0.75;
  font-size: 0.9375rem;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.stat-card__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.dashboard-section__header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--parchment-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-section__header h2 {
  font-size: 1.0625rem;
  color: var(--text);
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.dashboard-table th {
  text-align: left;
  padding: 0.75rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--parchment);
  border-bottom: 1px solid var(--border);
}

.dashboard-table td {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--parchment-dark);
  vertical-align: middle;
}

.dashboard-table tr:last-child td {
  border-bottom: none;
}

.dashboard-table tr:hover td {
  background: var(--parchment);
}

/* ── Messages / Alerts ────────────────────────────────────────────────────── */

.messages {
  list-style: none;
  margin-bottom: 1.25rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.message--success { background: #e8f4dc; color: #3b6d11; border: 1px solid #b9dca0; }
.message--error   { background: #fce8e8; color: var(--error); border: 1px solid #e0b0b0; }
.message--warning { background: #faeeda; color: #854f0b; border: 1px solid #e8c98a; }
.message--info    { background: #e8eef8; color: #1a3a6b; border: 1px solid #a0b8e0; }

/* ── Our Story ────────────────────────────────────────────────────────────── */

.story-lead {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: var(--text);
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.value-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Signup Form page ─────────────────────────────────────────────────────── */

.signup-summary {
  background: var(--parchment-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.signup-summary h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.signup-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.signup-summary__row:last-child { border-bottom: none; }

/* ── Utilities ────────────────────────────────────────────────────────────── */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr !important;
  }


  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1.25rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__inner {
    position: relative;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .subscribe-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .subscribe-bar__form {
    width: 100%;
    min-width: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .batch-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}
