/* ============================================================
   Eat Me Texas — Components
   Plain-CSS ports of the design-system primitives used on the
   landing page. Every value is taken 1:1 from the DS bundle
   (_ds_bundle.js) and reads from the token custom properties.
   ============================================================ */

/* ---- Eyebrow (brand/Eyebrow.jsx) ------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--brick-500);           /* default; override inline for --brick-300 */
  font-family: var(--font-body);
  font-size: var(--text-xs);          /* 0.75rem */
  font-weight: var(--weight-bold);    /* 700 */
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow--brick-300 { color: var(--brick-300); }

/* ---- Logo wordmark (brand/Logo.jsx, variant="wordmark") ------------- */
/* height=30 -> "EAT ME" 30*0.42=12.6px, "TEXAS" 30*0.52=15.6px          */
.logo-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
}
.logo-wordmark span {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}
.logo-wordmark .logo-eatme  { font-size: 12.6px; color: var(--ink-800); }
.logo-wordmark .logo-texas  { font-size: 15.6px; color: var(--brick-500); }
.logo-wordmark--on-dark .logo-eatme { color: var(--cream-50); }
/* footer wordmark is height=34 -> 14.28 / 17.68 */
.logo-wordmark--lg .logo-eatme { font-size: 14.28px; }
.logo-wordmark--lg .logo-texas { font-size: 17.68px; }

/* ---- Button (forms/Button.jsx) -------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                            /* md default; sizes override */
  padding: 12px 22px;                  /* md */
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);     /* 700 */
  font-size: 0.9375rem;                /* md */
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: var(--radius-md);
  border: var(--border-med) solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-standard),
              background var(--dur-base), color var(--dur-base),
              box-shadow var(--dur-base);
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn--sm { padding: 8px 14px;  font-size: 0.8125rem; gap: 6px; }
.btn--lg { padding: 16px 30px; font-size: 1.0625rem; gap: 10px; }

.btn--primary {
  background: var(--accent);
  color: var(--cream-50);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--secondary {
  background: var(--ink-800);
  color: var(--cream-50);
  border-color: var(--ink-800);
}
.btn--secondary:hover { background: var(--ink-900); border-color: var(--ink-900); }

.btn--outline {
  background: transparent;
  color: var(--ink-800);
  border-color: var(--ink-800);
}
.btn--outline:hover { background: var(--ink-800); color: var(--cream-50); }
/* outline placed on the dark hero keeps cream label until hover fills it */
.btn--outline.btn--on-dark { color: var(--cream-50); }
.btn--outline.btn--on-dark:hover { color: var(--cream-50); }

.btn--ghost {
  background: transparent;
  color: var(--ink-800);
  border-color: transparent;
}
.btn--ghost:hover { background: var(--surface-inset); }

.btn .lucide { flex: none; }

/* ---- Card (data/Card.jsx) ------------------------------------------- */
.card {
  border-radius: var(--radius-lg);
  padding: var(--space-5);             /* 24px */
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base);
}
.card--plain {
  background: var(--surface-card);
  border: var(--border-thin) solid var(--border-hairline);
  box-shadow: none;
}
.card--raised {
  background: var(--surface-card);
  border: var(--border-thin) solid var(--border-hairline);
  box-shadow: var(--shadow-md);
}
.card--stamp {
  background: var(--surface-card);
  border: var(--border-med) solid var(--ink-800);
  box-shadow: var(--shadow-stamp);
  border-radius: var(--radius-sm);
}
.card--ink {
  background: var(--surface-ink);
  border: var(--border-thin) solid var(--ink-700);
  box-shadow: var(--shadow-md);
  color: var(--text-on-ink);
}
/* interactive lift (used on the catering/menu cards) */
.card--interactive { cursor: pointer; }
.card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card--stamp.card--interactive:hover { box-shadow: 5px 5px 0 var(--ink-800); }

/* card interior helpers shared by feature cards */
.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--brick-500);
  margin-bottom: 16px;
}
.card-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: 21px;
  color: var(--text-strong);
  margin: 0 0 8px;
}
.card-copy {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 14px;
}
.card-kicker {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brick-500);
}

/* ---- Divider (data/Divider.jsx, variant="rope"/line) ---------------- */
.divider-rope {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.divider-rope span[aria-hidden] {
  color: var(--ink-800);
  font-weight: var(--weight-bold);
  letter-spacing: -2px;
}
.divider-rope .divider-label {
  font-family: var(--font-accent);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-800);
  white-space: nowrap;
}
.divider-line {
  border: none;
  border-top: var(--border-thin) solid var(--border-hairline);
  margin: 0;
}

/* ---- Alert (feedback/Alert.jsx) ------------------------------------- */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.alert[hidden] { display: none; }   /* class display must not override the hidden attr */
.alert__body { flex: 1; }
.alert__title { font-weight: var(--weight-bold); margin-bottom: 2px; }
.alert__close {
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  opacity: 0.6;
  padding: 0;
}
.alert--success {
  background: var(--success-soft);
  color: var(--ink-900);
  border-left: 4px solid var(--sage-600);
}

/* ---- Form fields (Input / Select / Textarea) ----------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);          /* 0.75rem */
  font-weight: var(--weight-semibold);/* 600 */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field__control { position: relative; display: flex; align-items: center; }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;                  /* md */
  font-family: var(--font-body);
  font-size: 0.9375rem;                /* md */
  color: var(--text-body);
  background: var(--surface-card);
  border: var(--border-med) solid var(--border-default);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.textarea { line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ink-800);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* validation + submit states */
.field__err {
  display: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--danger);
}
.field__err.is-visible { display: block; }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus, .select.is-invalid:focus, .textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px var(--danger-soft);
}
.submit-note {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.submit-note a { color: var(--brick-500); font-weight: var(--weight-semibold); }

/* honeypot: off-screen, never shown, never focusable */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.select { padding-right: 38px; appearance: none; cursor: pointer; }
.field__chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

/* ---- image-slot placeholder ----------------------------------------
   The bundle ships only the logo, so photo slots render as on-brand
   "drop a photo" tiles. Swap the background-image (or an <img>) to fill.
   -------------------------------------------------------------------- */
.image-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--text-subtle);
  background-color: var(--surface-inset);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(124, 108, 77, 0.06) 0,
      rgba(124, 108, 77, 0.06) 1px,
      transparent 1px,
      transparent 11px
    );
  border: var(--border-thin) dashed var(--border-default);
  overflow: hidden;
}
.image-slot--rounded { border-radius: 8px; }
.image-slot__hint {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  max-width: 22ch;
}
.image-slot__hint .lucide { display: block; margin: 0 auto 8px; color: var(--sand-500); }
/* dark hero slot reads on ink */
.image-slot--ink {
  background-color: var(--ink-800);
  border-color: var(--ink-700);
  color: var(--text-on-ink-muted);
}
.image-slot--ink .image-slot__hint .lucide { color: var(--brick-400); }
/* when a real photo is supplied via inline background-image, hide the hint */
.image-slot.is-filled { border-style: solid; background-image: none; background-size: cover; background-position: center; }
.image-slot.is-filled .image-slot__hint { display: none; }
