/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-decoration: none;
}

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

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

.btn--primary {
  background: var(--color-brand-red);
  color: var(--color-white);
  border-color: var(--color-brand-red);
}

.btn--primary:hover {
  background: var(--color-brand-red-dark);
  border-color: var(--color-brand-red-dark);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.btn--ghost:hover {
  background: var(--color-cream);
  color: var(--color-text);
  border-color: var(--color-text-muted);
}

.btn--header {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--header:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Cards */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card--flat:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-brand-red);
}

/* Forms */
.contact-form__field {
  margin-bottom: 1rem;
}

.contact-form__field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brand-red);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--color-brand-red-light);
  box-shadow: 0 0 0 3px var(--color-brand-red-soft);
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.contact-form__status {
  margin-bottom: 1rem;
  padding: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.45;
  border-radius: var(--radius);
  background: var(--color-brand-red-soft);
  color: var(--color-brand-red-deep);
}

.contact-form__status--error {
  background: rgba(208, 76, 76, 0.15);
}

/* Modal */
.contact-modal {
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.contact-modal--wide {
  width: min(720px, calc(100% - 2rem));
}

.contact-modal[open] {
  position: fixed;
  inset: 0;
  height: fit-content;
  margin: auto;
}

.contact-modal::backdrop {
  background: rgba(42, 36, 56, 0.6);
  backdrop-filter: blur(2px);
}

.contact-modal__inner {
  padding: 2rem 1.75rem 1.75rem;
  overflow-y: auto;
  max-height: calc(100dvh - 2rem);
}

.contact-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.contact-modal__close:hover {
  background: var(--color-brand-red-soft);
  color: var(--color-brand-red);
}

.contact-modal__title {
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}

.contact-modal__lead {
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* File list / events */
.events-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.event {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.event:hover {
  border-color: var(--color-brand-red);
  box-shadow: var(--shadow);
}

.event.is-active {
  border-color: var(--color-brand-red);
  background: var(--color-brand-red-soft);
  box-shadow: var(--shadow);
}

.event__details h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: var(--color-brand-red-deep);
}

.event__details p {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.breadcrumb button {
  background: none;
  border: none;
  color: var(--color-brand-red);
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
}

.breadcrumb span {
  color: var(--color-text-muted);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-navy);
}

.badge--unsaved {
  background: var(--color-brand-red-soft);
  color: var(--color-brand-red-deep);
}

/* Media grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.media-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.media-item:hover {
  border-color: var(--color-brand-red);
  box-shadow: var(--shadow);
}

.media-item img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: var(--color-cream);
}

.media-item__name {
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
