/* wg:design-vars:start */
:root{--wg-surface:#fcf6e9;--wg-surface-alt:#f6ebdb;--wg-surface-inverse:#1d1a17;--wg-ink:#1d1a17;--wg-ink-muted:#5d5752;--wg-ink-inverse:#f9f8f7;--wg-primary:#a80015;--wg-primary-hover:#81000d;--wg-primary-soft:#fff6f5;--wg-accent:#79a8c6;--wg-accent-soft:#e9f4fb;--wg-link:#81000d;--wg-link-inverse:#ffc3bd;--wg-line:#e7e4e2;--wg-line-inverse:#47413d;--wg-primary-on:#ffffff;--wg-accent-on:#0b0907;--wg-font-display:'Bitter', Georgia, 'Times New Roman', serif;--wg-font-body:'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;--wg-radius-ui:12px;--wg-radius-card:18px;--wg-shadow-card:6px 6px 0 0 var(--wg-ink);--wg-section:6rem}
/* wg:design-vars:end */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sunburstSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gentlePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes stripeShift {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 80px 0;
  }
}

body {
  font-family: var(--wg-font-body);
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: var(--wg-font-display);
}

/* Cookie banner fade transition */
#cookie-banner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#cookie-banner:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

/* Sticky header */
#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}

#site-header.is-scrolled {
  box-shadow: 4px 4px 0 var(--wg-ink);
  border-bottom: 2px solid var(--wg-line);
}

/* Form focus and error states */
input,
select,
textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--wg-primary);
  box-shadow: 3px 3px 0 var(--wg-ink);
  transform: translate(-1px, -1px);
}

input.error,
select.error,
textarea.error {
  border-color: var(--wg-ink);
  background-color: var(--wg-accent-soft);
}

.error-message {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 600;
}

/* Decorative: thick borders + offset shadow helpers */
.offset-frame {
  position: relative;
}

.offset-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--wg-accent);
  border-radius: var(--wg-radius-card);
  transform: translate(10px, 10px);
  z-index: -1;
}

/* Sunburst accent */
.sunburst {
  position: relative;
  display: inline-block;
}

.sunburst::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: repeating-conic-gradient(
    var(--wg-accent-soft) 0deg 10deg,
    transparent 10deg 20deg
  );
  border-radius: 50%;
  z-index: -1;
  animation: sunburstSpin 40s linear infinite;
  opacity: 0.5;
}

/* Simple stripe accent band */
.stripe-band {
  background-image: repeating-linear-gradient(
    45deg,
    var(--wg-primary-soft) 0,
    var(--wg-primary-soft) 10px,
    transparent 10px,
    transparent 20px
  );
  background-size: 80px 80px;
  animation: stripeShift 6s linear infinite;
}

/* Reveal animation utility for sections/cards */
.reveal-up {
  animation: fadeInUp 0.6s ease both;
}

.card:hover,
.img-frame:hover {
  animation: gentlePulse 0.5s ease;
}

/* Back to top button */
#back-to-top {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-4px);
}

/* Accordion content transition */
.accordion-content {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.accordion-header i {
  transition: transform 0.3s ease;
}

.accordion-header.active i {
  transform: rotate(180deg);
}

/* Print rules */
@media print {
  #site-header,
  #cookie-banner,
  #back-to-top,
  #mobile-menu,
  footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }

  .card,
  .img-frame {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}