:root {
  /* PAGE — official Orioles green (PMS 342, the green echoed by the
     2026 City Connect "BMORE" jersey) */
  --bg-top: #006747;          /* Orioles green — PMS 342 */
  --bg-bottom: #004d35;       /* slightly darker for gradient bottom */
  --bg-radial: #008559;       /* brighter green halo at top */

  /* CARDS — warm cream, "float" on the green like jersey emblems */
  --card: #fffdf8;
  --card-border: #efe1c2;

  /* TEXT IN CARDS — dark navy on cream */
  --text: #1b2a52;
  --muted: #6f6855;

  /* TEXT ON DARK PAGE — cream/sage with WCAG AA contrast on the lightened green */
  --on-dark: #fffdf8;          /* ~7:1 contrast on --bg-top (still AAA) */
  --on-dark-muted: #e8f0eb;    /* lighter sage for muted text on lighter bg */

  /* ACCENTS — Orioles orange (classic PMS 173) + navy */
  --accent: #df4601;           /* Orioles orange — passes AA on cream */
  --accent-dark: #b53a02;
  --accent-soft: #ffe7d4;
  --accent-bright: #df4601;    /* same as accent — brick orange, not fluorescent */
  --secondary: #13294b;        /* Orioles navy */

  /* MISC */
  --warning: #ffe7a8;
  --soft: #fff8eb;
  --chat-user: #ffe2cb;
  --chat-assistant: #f6efe2;
  --divider: #e8dfc7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--on-dark);
  background:
    radial-gradient(900px 460px at 50% -10%, var(--bg-radial) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.site-header {
  padding: 56px 20px 28px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.12);
  color: var(--on-dark);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 253, 248, 0.22);
  backdrop-filter: blur(8px);
}

.badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(250, 90, 26, 0.30), 0 0 12px rgba(250, 90, 26, 0.5);
}

.site-header h1 {
  margin: 0 auto 14px;
  max-width: 820px;
  font-size: clamp(34px, 5.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--on-dark);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}

.site-header h1 .accent {
  /* Same display weight + size as the main question — they read as one
     pair. Only the COLOR changes: brand-spec Orioles orange (PMS 1655 C). */
  color: var(--accent);
  display: block;
  margin-top: 4px;
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto;
  color: var(--on-dark-muted);
  font-size: 17px;
}

.hero-copy.small {
  font-size: 14px;
  margin-bottom: 14px;
}

/* ---- Layout ---- */
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
}

#assistant-card { grid-column: 1 / -1; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 26px 28px;
}

.card h2 {
  margin: 0 0 18px;
  font-size: 21px;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--secondary);
}

.card h2::after {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
}

/* ---- Listing preview as a TICKET STUB ---- */
.card.listing {
  position: relative;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
}

.card.listing::before,
.card.listing::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  background: var(--bg-top);
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.card.listing::before { left: -12px; }
.card.listing::after  { right: -12px; }

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.listing-render { display: grid; gap: 16px; }

.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--divider);
}

.ticket-row:nth-child(3) {
  border-bottom: 2px dashed var(--accent);
  padding-bottom: 16px;
  margin-bottom: 2px;
  position: relative;
}

.ticket-row:last-of-type { border-bottom: 0; padding-bottom: 0; }

.value {
  font-weight: 800;
  font-size: 18px;
  color: var(--secondary);
}

.price {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.045em;
  margin: 6px 0 6px;
  font-weight: 900;
  color: var(--accent);
}

/* ---- Forms ---- */
form {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 5px;
  font-size: 14px;
}

label.full { grid-column: 1 / -1; }

.label {
  color: var(--muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--card-border);
  border-radius: 12px;
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-fieldset {
  border: 1.5px dashed var(--card-border);
  border-radius: 14px;
  padding: 14px 16px 16px;
  background: var(--soft);
}

.contact-fieldset legend {
  font-size: 12.5px;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 8px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 13px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s, transform 0.05s;
  box-shadow: 0 4px 12px rgba(223, 70, 1, 0.25);
}

.button:hover { background: var(--accent-dark); }
.button:active { transform: translateY(1px); }
.button.compact { padding: 11px 16px; font-size: 14px; }

.secondary {
  display: inline-block;
  text-decoration: none;
  color: var(--secondary);
  background: transparent;
  border: 1.5px solid var(--secondary);
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.secondary:hover {
  background: var(--secondary);
  color: #fff;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--accent);
  padding: 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.status {
  font-size: 13px;
  color: var(--muted);
}

.small {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
}

.notes {
  margin: 0;
  padding: 12px 14px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 14px;
}

.notice {
  background: var(--soft);
  border: 1px dashed var(--card-border);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
}

.notice strong { color: var(--accent); }

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
  font-style: italic;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-buttons a {
  text-decoration: none;
  display: inline-block;
  padding: 11px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1.5px solid var(--card-border);
  color: var(--secondary);
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.contact-buttons a.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(223, 70, 1, 0.22);
}

.contact-buttons a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-buttons a.primary:hover { background: var(--accent-dark); color: #fff; }

/* ---- AI Assistant ---- */
.card.assistant {
  background: linear-gradient(180deg, #fffdf8 0%, #fdf8ee 100%);
}

.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--secondary);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 110px;
  max-height: 380px;
  overflow-y: auto;
  padding: 10px 4px;
  margin-bottom: 14px;
}

.chat-message {
  padding: 11px 14px;
  border-radius: 14px;
  max-width: 85%;
  font-size: 14.5px;
  white-space: pre-wrap;
  line-height: 1.45;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--chat-user);
  color: var(--secondary);
  border-bottom-right-radius: 4px;
}

.chat-message.assistant {
  align-self: flex-start;
  background: var(--chat-assistant);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-message.loading { opacity: 0.65; font-style: italic; }
.chat-message.error { background: #fce4e0; color: #7a1f1f; }

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

/* ---- Footer ---- */
footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 40px;
  color: var(--on-dark-muted);
  font-size: 13px;
  text-align: center;
}

footer a { color: var(--accent-bright); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }

code {
  background: var(--soft);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  color: var(--secondary);
}

@media (max-width: 850px) {
  main { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .ticket-row { flex-direction: column; gap: 6px; }
  .card.listing::before, .card.listing::after { display: none; }
}

/* ---- Floating "Chat with me" baseball button ---- */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 8px 18px rgba(27, 42, 82, 0.22));
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1);
  animation: fab-bob 4.5s ease-in-out infinite;
}

.chat-fab:hover { transform: scale(1.08) rotate(-4deg); }
.chat-fab:active { transform: scale(0.96); }
.chat-fab:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 50%;
}

.chat-fab-baseball {
  display: block;
  width: 100%;
  height: 100%;
}

/* eye blink */
.chat-fab .eye {
  transform-origin: center;
  animation: blink 5s ease-in-out infinite;
}

.chat-fab-bubble {
  position: absolute;
  right: 76px;
  top: 50%;
  transform: translateY(-50%) scale(0.85);
  background: var(--secondary);
  color: #fff;
  padding: 8px 13px;
  border-radius: 18px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  box-shadow: 0 4px 12px rgba(27, 42, 82, 0.18);
}

.chat-fab-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 7px solid var(--secondary);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.chat-fab:hover .chat-fab-bubble,
.chat-fab:focus-visible .chat-fab-bubble {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

@keyframes fab-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 97% { transform: scaleY(0.1); }
}

@media (max-width: 600px) {
  .chat-fab { width: 58px; height: 58px; right: 16px; bottom: 16px; }
  .chat-fab-bubble { display: none; }  /* prevent tap occlusion on small screens */
}

@media (prefers-reduced-motion: reduce) {
  .chat-fab { animation: none; }
  .chat-fab .eye { animation: none; }
}
