/* wg:design-vars:start */
:root{--wg-surface:#f8f8f8;--wg-surface-alt:#f2f2f2;--wg-surface-inverse:#1b1b1b;--wg-ink:#1b1b1b;--wg-ink-muted:#585858;--wg-ink-inverse:#f8f8f8;--wg-primary:#7d3e6d;--wg-primary-hover:#622b54;--wg-primary-soft:#fff5fc;--wg-accent:#cd8e95;--wg-accent-soft:#fdedef;--wg-link:#622b54;--wg-link-inverse:#f1c5e3;--wg-line:#e4e4e4;--wg-line-inverse:#424242;--wg-primary-on:#ffffff;--wg-accent-on:#090909;--wg-font-display:'EB Garamond', Georgia, 'Times New Roman', serif;--wg-font-body:'Raleway', 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 */
/* ==========================================================================
   Reklamna Kuhinja — custom stylesheet
   Scope: keyframes/transitions, cookie banner, sticky header, form states,
   decorative details, print rules.
   ========================================================================== */

/* ---------- Decorative details ---------- */

.small-caps-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--wg-ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

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

.accent-rule {
  display: block;
  width: 3rem;
  height: 1px;
  background-color: var(--wg-accent);
  margin: 1rem 0;
}

.accent-rule-center {
  display: block;
  width: 3rem;
  height: 1px;
  background-color: var(--wg-accent);
  margin: 1rem auto;
}

hr.thin-line {
  border: none;
  border-top: 1px solid var(--wg-line);
  margin: 2rem 0;
}

/* ---------- Sticky header ---------- */

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

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

#site-header .logo-mark,
#site-header nav a {
  transition: opacity 0.3s ease, color 0.3s ease;
}

/* ---------- Mobile menu transitions (visibility via Tailwind .hidden) ---------- */

#mobile-menu {
  transition: opacity 0.3s ease;
}

/* ---------- Cookie banner ---------- */

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

#cookie-banner.cookie-visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- Back to top ---------- */

#back-to-top {
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

#back-to-top.show {
  opacity: 1;
}

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

/* ---------- Form focus & error states ---------- */

input,
textarea,
select {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

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.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.form-success {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

/* ---------- Accordion ---------- */

.accordion-header {
  transition: color 0.25s ease, border-color 0.25s ease;
}

.accordion-content {
  transition: opacity 0.3s ease;
}

.accordion-header .ph-caret-down,
.accordion-header i[class*="caret"] {
  transition: transform 0.3s ease;
}

.accordion-header.is-open i[class*="caret"] {
  transform: rotate(180deg);
}

/* ---------- Subtle animations ---------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lineGrow {
  from {
    width: 0;
  }
  to {
    width: 3rem;
  }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

.fade-in {
  animation: fadeIn 0.8s ease both;
}

.animate-rule {
  animation: lineGrow 0.9s ease both;
}

/* Stagger helper classes */
.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }

/* ---------- Links ---------- */

.link-inline,
a {
  transition: color 0.25s ease, border-color 0.25s ease;
}

/* ---------- Print rules ---------- */

@media print {
  #site-header,
  #mobile-menu,
  #mobile-menu-toggle,
  #cookie-banner,
  #back-to-top,
  footer .social-links,
  .no-print {
    display: none !important;
  }

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

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

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