/* Google Fonts fallback — local font files are not included in the export */
:root {
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 9999px;
  background-color: var(--qalam-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Screen-reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Framer Motion initial state leaves hero invisible without React */
[style*="opacity:0"] {
  opacity: 1 !important;
  transform: none !important;
}

/* Sticky site header — solid background (backdrop-blur blurs nav text on scroll) */
header.sticky.top-0 {
  background-color: var(--qalam-cream);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-logo {
  display: flex;
  align-items: center;
  line-height: 0;
  min-width: 9rem;
  min-height: 2.25rem;
}

.site-logo--bg {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
}

.site-logo__picture {
  display: block;
  line-height: 0;
}

.site-logo__img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 10rem;
  aspect-ratio: 148 / 40;
}

picture {
  display: block;
  line-height: 0;
}

picture img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Fill a fixed-height or flex parent (hero, feature images) */
picture.picture-fill {
  width: 100%;
  height: 100%;
}

.picture-fill__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.site-logo--footer {
  display: inline-flex;
  margin-bottom: 0.25rem;
  min-width: 9rem;
  min-height: 2rem;
}

.site-logo--footer.site-logo--bg {
  filter: brightness(0) invert(1);
}

.site-logo__img--footer {
  height: 2rem;
  max-width: 9rem;
  filter: brightness(0) invert(1);
}

@media (min-width: 1024px) {
  .site-logo__img {
    height: 2.5rem;
    max-width: 11rem;
  }

  .site-logo--footer.site-logo--bg {
    min-width: 10rem;
    min-height: 2.25rem;
  }

  .site-logo__img--footer {
    height: 2.25rem;
    max-width: 10rem;
  }
}

/* Mobile navigation panel */
#mobile-navigation a {
  display: block;
  width: 100%;
  padding: 0.75rem 0;
  text-align: left;
  font-weight: 500;
}

#mobile-navigation.hidden {
  display: none;
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-status--success {
  color: rgba(31, 47, 74, 0.7);
}

footer .form-status--success {
  color: rgba(255, 255, 255, 0.7);
}

.form-status--error {
  color: #b45309;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  color: #b45309;
}

.field-error-visible {
  border-color: #b45309 !important;
}

/* Events card grid loading state */
[data-events-grid] {
  min-height: 4rem;
  align-items: stretch;
}

.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-card__media {
  display: block;
  flex-shrink: 0;
  height: 185px;
  line-height: 0;
  overflow: hidden;
  background: #ebe6dc;
}

.event-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.event-card__media img,
.event-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.event-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.event-card__body h3 {
  margin: 0;
  min-height: 4.5rem;
}

.event-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(31, 47, 74, 0.72);
}

.event-card__meta .event-card__icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.event-card__footer {
  margin-top: auto;
  padding-top: 1.25rem;
}

.event-card__btn {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  background: #1f2f4a;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.event-card__btn:hover {
  background: #152033;
}

.event-card__btn--soldout {
  background: #8b9199;
  cursor: pointer;
}

.event-card__btn--soldout:hover {
  background: #737982;
}

/* Event grid skeleton loading */
[data-events-grid].is-loading {
  min-height: 12rem;
}

.event-card--skeleton {
  pointer-events: none;
  user-select: none;
}

.event-skeleton-shimmer {
  background: linear-gradient(
    90deg,
    #e3ddd2 0%,
    #f3efe8 45%,
    #e3ddd2 90%
  );
  background-size: 200% 100%;
  animation: event-skeleton-shimmer 1.35s ease-in-out infinite;
}

@keyframes event-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.event-skeleton-title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 4.5rem;
}

.event-skeleton-line {
  height: 0.875rem;
  border-radius: 0.375rem;
  margin-top: 0.75rem;
}

.event-skeleton-title .event-skeleton-line {
  margin-top: 0;
  height: 1.125rem;
}

.event-skeleton-btn {
  width: 100%;
  height: 2.75rem;
  border-radius: 9999px;
}

@media (prefers-reduced-motion: reduce) {
  .event-skeleton-shimmer {
    animation: none;
    background: #e3ddd2;
  }
}
