/* wg:design-vars:start */
:root{--wg-surface:#ffffff;--wg-surface-alt:#f2f2f2;--wg-surface-inverse:#1b1b1b;--wg-ink:#1b1b1b;--wg-ink-muted:#585858;--wg-ink-inverse:#f8f8f8;--wg-primary:#53566d;--wg-primary-hover:#3e4155;--wg-primary-soft:#f8f8fc;--wg-accent:#ff6d4d;--wg-accent-soft:#ffede9;--wg-link:#3e4155;--wg-link-inverse:#d1d3e3;--wg-line:#e4e4e4;--wg-line-inverse:#424242;--wg-primary-on:#ffffff;--wg-accent-on:#090909;--wg-font-display:'Jost', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;--wg-font-body:'Jost', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;--wg-radius-ui:4px;--wg-radius-card:6px;--wg-shadow-card:none;--wg-section:8rem}
/* wg:design-vars:end */
:root{
  --ease-quiet: cubic-bezier(0.4, 0, 0.2, 1);
}

html{
  scroll-behavior: smooth;
}

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

/* Header sticky + scrolled state */
#site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  transition: box-shadow 0.3s var(--ease-quiet), border-color 0.3s var(--ease-quiet), padding 0.3s var(--ease-quiet);
  border-bottom: 1px solid transparent;
}

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

#site-header.is-scrolled .site-header-inner{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

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

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

/* Form focus states */
input,
textarea,
select{
  transition: border-color 0.25s var(--ease-quiet), box-shadow 0.25s var(--ease-quiet);
}

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

/* Form error states */
input.error,
textarea.error,
select.error{
  border-color: #dc2626;
}

input.error:focus,
textarea.error:focus,
select.error:focus{
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.error-message{
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.form-success{
  font-size: 0.9375rem;
}

/* Decorative: single accent underline per section heading */
.section-heading{
  position: relative;
  display: inline-block;
  padding-bottom: 0.65rem;
}

.section-heading::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 2px;
  background-color: var(--wg-accent);
}

.section-heading.is-centered::after{
  left: 50%;
  transform: translateX(-50%);
}

/* Tiny labels */
.tiny-label{
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wg-ink-muted);
}

.tiny-label::before{
  content: "";
  width: 0.9rem;
  height: 1px;
  background-color: var(--wg-accent);
  display: inline-block;
}

/* Subtle animations fitting a quiet, minimal direction */
@keyframes fade-up{
  from{
    opacity: 0;
    transform: translateY(10px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@keyframes quiet-pulse{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.55; }
}

.animate-fade-up{
  animation: fade-up 0.6s var(--ease-quiet) both;
}

.animate-fade-in{
  animation: fade-in 0.6s var(--ease-quiet) both;
}

.animate-delay-1{ animation-delay: 0.08s; }
.animate-delay-2{ animation-delay: 0.16s; }
.animate-delay-3{ animation-delay: 0.24s; }

.data-pulse{
  animation: quiet-pulse 2.4s var(--ease-quiet) infinite;
}

/* Accordion content transition feel */
.accordion-content{
  transition: opacity 0.3s var(--ease-quiet);
}

.accordion-header i{
  transition: transform 0.3s var(--ease-quiet);
}

.accordion-header[aria-expanded="true"] i.bi-chevron-down,
.accordion-header[aria-expanded="true"] i.bi-plus{
  transform: rotate(180deg);
}

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

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

/* Link underline motion, consistent with understated voice */
a{
  transition: color 0.2s var(--ease-quiet);
}

/* Mobile menu panel transition (visibility handled by Tailwind 'hidden') */
#mobile-menu{
  transition: opacity 0.25s var(--ease-quiet);
}

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

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

  a{
    color: #000;
    text-decoration: underline;
  }

  .section{
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}