/* =================================================
   COMPONENTS: event cards, filter key, badges,
   buttons, flip card, promo cards, contact form,
   footer. Reusable pieces shared across pages.
   ================================================= */

.event-card { scroll-margin-top: 1rem; }

/* -------------------------------------------------
   EVENT CARDS
------------------------------------------------- */

.event-card {
  border: var(--card-border);
  padding: 0;
  border-radius: 0;
  margin-bottom: 1.6rem;
  background: var(--card-bg-vert);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--card-shadow);
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* The .event-flip wrapper carries the bottom margin; the card fills it. */
.event-flip > .event-card {
  margin-bottom: 0;
}

.event-card-body {
  padding: 1.3rem 1.5rem 1.4rem;
}

@media (max-width: 480px) {
  .event-card-body {
    padding: 1rem 1.1rem 1.2rem;
  }
}

/* Event list. One column on phones; two on desktop so the 16:9 posters sit at
   a natural size instead of one giant stack. */
.event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

@media (min-width: 720px) {
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

/* Closing link below the grid: a quiet pointer toward past/recurring formats. */
.events-more {
  margin: 2.2rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: #777;
}

.events-more a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(37, 99, 235, 0.25);
  transition: border-color 0.15s ease;
}

.events-more a:hover {
  border-bottom-color: var(--blue);
}

/* -------------------------------------------------
   EMPTY / WARNING STATES
------------------------------------------------- */

.empty-state {
  text-align: center;
  color: var(--text-soft);
  font-size: 1.1rem;
  margin: 4rem 0;
  padding: 2.5rem;
  background: var(--surface);
  border: 1.5px dashed var(--border-soft);
}

.empty-state h2 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.warning {
  font-size: 0.88rem;
  color: #999;
  margin-top: 0.8rem;
}

.filter-empty {
  text-align: center;
  color: var(--text-soft);
  font-size: 1rem;
  margin: 1rem 0 2rem;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1.5px dashed var(--border-soft);
}

.filter-empty h2 {
  color: var(--ink);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.filter-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* -------------------------------------------------
   EVENT KEY / FILTERS
------------------------------------------------- */

.event-key {
  display: flex;
  gap: 0.6rem;
  margin: 0 0 1.8rem;
  flex-wrap: wrap;
}

.event-key-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--card-bg);
  border: var(--card-border);
  padding: 0.55rem 0.9rem;
  flex: 1;
  min-width: 140px;
  font-family: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

button.event-key-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 196, 0, 0.2);
  border-color: var(--yellow);
  background: linear-gradient(135deg, #fffdfb 0%, #fffaf5 100%);
}

button.event-key-item[aria-pressed="true"] {
  border-color: var(--yellow);
  background: var(--pill-yellow);
  color: var(--ink);
  font-weight: 600;
}

button.event-key-item[aria-pressed="true"] p {
  color: var(--ink);
}

.event-key-item strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.event-key-item p {
  margin: 0;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.3;
}

.event-key-dot {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
}

.dot-show     { background: var(--yellow); }
.dot-jam      { background: var(--green); }
.dot-workshop { background: var(--blue); }

.event-key-clear {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: transparent;
  border: 1px solid var(--border-soft);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  align-self: stretch;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.event-key-clear:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #fafafa;
}

.event-key-clear span {
  font-size: 0.85rem;
  line-height: 1;
}

.events-root.filter-show     .event-flip:not(.event-type-show),
.events-root.filter-jam      .event-flip:not(.event-type-jam),
.events-root.filter-workshop .event-flip:not(.event-type-workshop) {
  display: none;
}

/* -------------------------------------------------
   EVENT TYPE BADGE + STRIP
------------------------------------------------- */

.event-type-show     { border-top: 4px solid var(--yellow); }
.event-type-jam      { border-top: 4px solid var(--green); }
.event-type-workshop { border-top: 4px solid var(--blue); }

.event-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.55rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  transform: rotate(-2deg);
}

.event-type-show     .event-type-badge { color: #c9a100; }
.event-type-jam      .event-type-badge { color: #1faa58; }
.event-type-workshop .event-type-badge { color: var(--blue); }

/* -------------------------------------------------
   EVENT IMAGE (POSTER)
------------------------------------------------- */

.event-image {
  width: 100%;
  background: #f0f0f0;
  overflow: hidden;
  line-height: 0;
}

.event-image img {
  width: 100%;
  height: auto;
  /* Show the whole poster instead of cropping a tall one. The generous cap
     only kicks in for unusually long images. */
  max-height: 720px;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.025);
}

@media (max-width: 480px) {
  .event-image img {
    max-height: 520px;
  }
}

/* -------------------------------------------------
   EVENT TEXT
------------------------------------------------- */

.event-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  line-height: 1.2;
  color: var(--ink);
}

@media (min-width: 900px) {
  .event-title { font-size: 1.65rem; }
}

@media (min-width: 1200px) {
  .event-title { font-size: 1.8rem; }
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: #f5f5f5;
  border: 1px solid var(--border-soft);
  border-radius: 0;
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.8rem;
}

/* "+N more dates" tag for multi-day workshops. Sits inside the date pill,
   carries the workshop blue, and links to the full schedule. */
.event-date-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--blue);
  background: #eaf0fe;
  border: 1px solid #cfddfb;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.event-date-tag:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.event-excerpt {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.1rem;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -------------------------------------------------
   BUTTONS
------------------------------------------------- */

.event-buttons {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.58rem 1.1rem;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  letter-spacing: 0.01em;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background: var(--pill-yellow);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fff 0%, #fffbf5 100%);
  border-color: var(--ink);
  transform: translate(-2px, -2px) rotate(-1.5deg);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-primary:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 var(--ink) !important;
}

/* Applied client-side when District reports an event sold out / not on sale. */
.btn-disabled,
.btn-disabled:hover {
  background: #e6e6e6;
  color: var(--text-faint);
  border-color: #e6e6e6;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn-ghost {
  border: none;
  color: #999;
  background: transparent;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.btn-ghost:hover {
  color: #444;
}

/* -------------------------------------------------
   FLIP CARD
------------------------------------------------- */

.event-flip {
  perspective: 1600px;
  border-radius: 0;
  transition: box-shadow 0.3s ease;
}

.event-flip.event-type-show {
  box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.18), 0 8px 28px rgba(245, 196, 0, 0.22);
}

.event-flip.event-type-jam {
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18), 0 8px 28px rgba(46, 204, 113, 0.22);
}

.event-flip.event-type-workshop {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18), 0 8px 28px rgba(37, 99, 235, 0.22);
}

.event-flip.event-type-show:hover {
  box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.28), 0 14px 38px rgba(245, 196, 0, 0.32);
}

.event-flip.event-type-jam:hover {
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.28), 0 14px 38px rgba(46, 204, 113, 0.32);
}

.event-flip.event-type-workshop:hover {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.28), 0 14px 38px rgba(37, 99, 235, 0.32);
}

/* -------------------------------------------------
   PROMO / BOOK CARDS
------------------------------------------------- */

.book-offer-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.book-offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--card-bg);
  border: var(--card-border);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.book-offer-list li:hover {
  border-color: var(--yellow);
  box-shadow: var(--card-shadow-yellow);
}

.book-offer-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.book-offer-list strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.book-offer-list p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.book-cta-line {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 1rem;
}

.book-card .event-type-badge {
  color: var(--ink);
  background: var(--surface);
}

.promo-card {
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.08) 0%, rgba(255, 251, 245, 0.6) 100%);
  border-color: rgba(245, 196, 0, 0.3);
  border-style: dashed;
}

.promo-card .event-title {
  color: var(--ink);
}

.corporate-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border: var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.corporate-banner:hover {
  border-color: var(--yellow);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 196, 0, 0.15);
}

.corporate-banner-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.corporate-banner-text {
  flex: 1;
  font-size: 0.92rem;
  color: var(--ink);
}

.corporate-banner-text strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.corporate-banner-arrow {
  font-weight: 700;
  font-size: 1.1rem;
}

.more-line {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1rem 0 0;
}

.more-line a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.section-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0.9rem 1.1rem;
  background: linear-gradient(135deg, #fffdfb 0%, #fff 100%);
  border: 1.5px dashed var(--yellow);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.15s ease;
}

.section-jump:hover {
  color: #fff;
  border-color: var(--yellow);
  background: var(--pill-yellow);
}

.section-jump-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.section-jump:hover .section-jump-arrow {
  transform: translateY(3px);
}

/* -------------------------------------------------
   CONTACT
------------------------------------------------- */

/* Socials row at the top of the contact page: whole-card links with a
   brand-colored icon, one per social channel. Each link borrows the shared
   card surface and lights up in its channel's brand color on hover. */
.social-row {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

@media (min-width: 560px) {
  .social-row {
    grid-template-columns: 1fr 1fr;
  }
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  padding: 0.85rem 1rem;
  background: var(--card-bg);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--social-accent, var(--border-hover));
  box-shadow: 0 8px 24px var(--social-glow, rgba(245, 196, 0, 0.15));
}

.social-link--whatsapp  { --social-accent: #25d366; --social-glow: rgba(37, 211, 102, 0.22); }
.social-link--instagram { --social-accent: #e4405f; --social-glow: rgba(228, 64, 95, 0.22); }

.social-link-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--surface-warm);
  color: var(--social-accent, var(--ink));
  transition: background 0.15s ease, color 0.15s ease;
}

.social-link:hover .social-link-icon {
  background: var(--social-accent, var(--yellow));
  color: #fff;
}

.social-link-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.social-link-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.social-link-text span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.contact-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin: 0.4rem 0 1.4rem;
}

/* WhatsApp green accent so the direct-chat CTA reads as a phone action. */
.contact-wa-btn {
  background: linear-gradient(135deg, #25d366 0%, #1ebe5b 100%);
  color: #fff;
}

.contact-wa-btn:hover {
  background: linear-gradient(135deg, #2ee571 0%, #25d366 100%);
  color: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-field label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.12);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.contact-field textarea {
  resize: vertical;
  min-height: 7rem;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 4px 4px 0 rgba(37, 99, 235, 0.35);
  transform: translate(-1px, -1px);
}

.contact-status {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a7a3c;
}

/* -------------------------------------------------
   FOOTER
------------------------------------------------- */

.footer {
  text-align: center;
  font-size: 0.82rem;
  color: #8a7a72;
  padding: 2.5rem 1.5rem 2rem;
  letter-spacing: 0.02em;
  border-top: 1.5px solid rgba(245, 196, 0, 0.15);
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(255, 251, 245, 0.4) 0%, rgba(245, 196, 0, 0.06) 100%);
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

/* Match the wide content container so the footer doesn't read as a narrow
   island floating in an otherwise full-width page. */
@media (min-width: 900px) {
  .footer-inner {
    max-width: none;
  }
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 1.4rem 3.5rem;
  text-align: left;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col-title {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-col a {
  font-weight: 600;
  font-size: 0.9rem;
}

.footer a {
  color: #5a5650;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.coc-list {
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.coc-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.6rem;
}

.coc-list li strong {
  color: var(--ink);
}

.coc-list a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.coc-fineprint {
  font-size: 0.82rem;
  color: var(--text-faint);
  line-height: 1.55;
  margin: 1.4rem 0 0;
}

.coc-fineprint a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  font-size: 0.78rem;
  color: #b0a09a;
  line-height: 1.6;
}

.footer-legal p {
  margin: 0.2rem 0;
}

@media (max-width: 600px) {
  .footer {
    padding: 2rem 1.25rem 1.75rem;
  }

  .footer-inner {
    gap: 1.1rem;
  }

  /* Stack the three groups, but let each group's links flow inline and wrap
     instead of one-per-row. Keeps the labelled sections while cutting footer
     height roughly in half on a phone. */
  .footer-cols {
    display: block;
    text-align: center;
  }

  .footer-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem 1rem;
  }

  .footer-col + .footer-col {
    margin-top: 1rem;
  }

  .footer-col-title {
    flex-basis: 100%;
    margin: 0;
  }
}
