/* Foothills Repertory Theatre — site styles */

:root {
  --ink: #1c1c1c;
  --muted: #9a9a9a;
  --rule: #dcdcdc;
  --brand: #6b3f2a;
  --brand-ink: #ffffff;
  --page: #ffffff;
  --panel: #f7f5f2;
  --sale-bg: #e8b4b8;
  --sale-ink: #ffffff;
  --seat-open: #2e7d32;
  --seat-taken: #bdbdbd;
  --seat-picked: #6b3f2a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
}

/* ---------- Layout ---------- */

.wrap {
  width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.course-notice {
  background: #241c14;
  color: #ffffff;
  padding: 12px 24px;
  font-family: system-ui, sans-serif;
  font-size: 15px;
}
.course-notice a { color: #ffd9a8; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  margin-bottom: 28px;
}
header.site .wrap { display: flex; align-items: center; gap: 28px; }
.logo { font-size: 22px; font-weight: bold; color: var(--brand); text-decoration: none; }
nav.site a { margin-right: 18px; color: var(--ink); }

/* ---------- Typography ---------- */

h1 { font-size: 30px; margin: 0 0 6px; }
h2 { font-size: 22px; margin: 28px 0 10px; }
h3 { font-size: 17px; margin: 0 0 4px; }
h4 { font-size: 15px; margin: 0 0 4px; }

.muted, .helper, .meta { color: var(--muted); font-size: 14px; }

:focus {
  outline: 1px dotted #d8d8d8;
}

/* ---------- Event cards ---------- */

.badge-sale {
  display: inline-block;
  background: var(--sale-bg);
  color: var(--sale-ink);
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 13px;
  font-family: system-ui, sans-serif;
}

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { border: 1px solid var(--rule); padding: 16px; background: var(--panel); }
.card img { width: 100%; height: 150px; object-fit: cover; display: block; margin-bottom: 10px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 10px 18px;
  border: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn.secondary { background: var(--panel); color: var(--ink); border: 1px solid var(--rule); }

/* ---------- Pricing table ---------- */

.pricing { border-collapse: collapse; margin: 12px 0 20px; }
.pricing td { border: 1px solid var(--rule); padding: 8px 14px; }

/* ---------- Seat map ---------- */

.seat-row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; margin-bottom: 6px; }
.seat-row .row-label { margin-right: 12px; width: 46px; font-family: system-ui, sans-serif; font-size: 13px; }

.seat {
  width: 30px; height: 30px;
  border: 1px solid #7a7a7a;
  background: var(--seat-open);
  color: #ffffff;
  font-size: 11px;
  font-family: system-ui, sans-serif;
  cursor: pointer;
  padding: 0;
}
.seat[data-state="taken"] { background: var(--seat-taken); cursor: not-allowed; }
.seat[data-state="picked"] { background: var(--seat-picked); }

.summary { background: var(--panel); border: 1px solid var(--rule); padding: 14px 18px; margin-top: 20px; }

/* ---------- Promotional flag ---------- */

.urgent {
  display: inline-block;
  color: #b3261e;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.55; }
}

/* ---------- Forms ---------- */

form .field { margin-bottom: 18px; max-width: 420px; }
form input[type="text"], form input[type="email"], form select {
  display: block; width: 100%; padding: 9px; font: inherit;
  border: 1px solid #8a8a8a;
}
.error-text { color: #b3261e; font-family: system-ui, sans-serif; font-size: 14px; margin-bottom: 6px; }

/* ---------- Modal ---------- */

.modal-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
}
.modal-backdrop.open { display: flex; align-items: center; justify-content: center; }
.modal {
  background: #ffffff; padding: 26px; width: 460px; max-width: 92vw;
}

/* ---------- Footer ---------- */

footer.site { border-top: 1px solid var(--rule); margin-top: 48px; padding: 22px 0; }
