/* JIARON default theme — reset, typography, containers, utilities. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--jr-font-body);
  font-size: var(--jr-text-base);
  line-height: 1.55;
  color: var(--jr-ink-2);
  background: var(--jr-surface);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--jr-dur) var(--jr-ease);
}

a:hover {
  color: var(--jr-primary);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--jr-font-display);
  font-weight: 700;
  color: var(--jr-ink);
  letter-spacing: var(--jr-tracking-tight);
  margin: 0 0 0.5rem;
}

h1 {
  font-size: var(--jr-h1-size);
  line-height: var(--jr-h1-lh);
}
h2 {
  font-size: var(--jr-h2-size);
  line-height: var(--jr-h2-lh);
}
h3 {
  font-size: var(--jr-h3-size);
  line-height: var(--jr-h3-lh);
}
h4 {
  font-size: var(--jr-h4-size);
  line-height: var(--jr-h4-lh);
}
h5 {
  font-size: var(--jr-h5-size);
  line-height: var(--jr-h5-lh);
  letter-spacing: normal;
}
h6 {
  font-size: var(--jr-h6-size);
  line-height: var(--jr-h6-lh);
  letter-spacing: normal;
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 2px solid var(--jr-primary);
  outline-offset: 2px;
}

/* ---------- Containers ---------- */
.jr-wrap {
  width: min(100% - 2 * var(--jr-space), var(--jr-max));
  margin-inline: auto;
}

.jr-wrap--text {
  width: min(100% - 2 * var(--jr-space), var(--jr-max-text));
  margin-inline: auto;
}

.jr-main {
  min-height: 50vh;
  background: var(--jr-gray-100);
}

/* ---------- Utilities ---------- */
.jr-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;
}

.jr-skip {
  position: absolute;
  left: 1rem;
  top: 0;
  z-index: 10000;
  transform: translateY(-120%);
  padding: 0.55rem 0.9rem;
  border-radius: var(--jr-r-sm);
  background: var(--jr-ink);
  color: #fff;
  font-size: var(--jr-text-sm);
  font-weight: 600;
  text-decoration: none;
}

.jr-skip:focus {
  transform: translateY(0.75rem);
  outline: 2px solid var(--jr-primary);
  outline-offset: 2px;
}

.jr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.jr-muted {
  color: var(--jr-muted);
}

.jr-prose {
  white-space: pre-line;
  color: var(--jr-muted);
  max-width: 44rem;
}

.jr-prose--html {
  white-space: normal;
  line-height: 1.7;
}

.jr-prose--html > *:first-child {
  margin-top: 0;
}

.jr-prose--html > *:last-child {
  margin-bottom: 0;
}

.jr-prose--html p,
.jr-prose--html ul,
.jr-prose--html ol,
.jr-prose--html blockquote,
.jr-prose--html figure {
  margin: 0 0 1rem;
}

.jr-prose--html h2,
.jr-prose--html h3,
.jr-prose--html h4 {
  color: var(--jr-ink, inherit);
  margin: 1.5rem 0 0.75rem;
  line-height: 1.3;
}

.jr-prose--html img {
  max-width: 100%;
  height: auto;
  border-radius: var(--jr-r-sm, 0.5rem);
  display: block;
}

.jr-prose--html .image,
.jr-prose--html figure.image {
  clear: both;
  display: table;
  margin: 0.9em auto 1rem;
  min-width: 50px;
  text-align: center;
}

.jr-prose--html .image img,
.jr-prose--html figure.image img {
  margin: 0 auto;
}

.jr-prose--html .image-style-side,
.jr-prose--html .image-style-align-left,
.jr-prose--html .image-style-align-right {
  max-width: 50%;
}

.jr-prose--html .image-style-side,
.jr-prose--html .image-style-align-right {
  float: right;
  margin-left: 1.5em;
}

.jr-prose--html .image-style-align-left {
  float: left;
  margin-right: 1.5em;
}

.jr-prose--html .image-style-block-align-left {
  margin-left: 0;
  margin-right: auto;
}

.jr-prose--html .image-style-block-align-right {
  margin-left: auto;
  margin-right: 0;
}

.jr-prose--html .image-style-align-center {
  margin-left: auto;
  margin-right: auto;
}

.jr-prose--html .image_resized {
  max-width: 100%;
}

.jr-prose--html .image_resized img {
  width: 100%;
}

.jr-prose--html::after {
  content: '';
  display: table;
  clear: both;
}

.jr-prose--html figure img {
  margin: 0 auto;
}

.jr-prose--html figcaption {
  margin-top: 0.5rem;
  font-size: var(--jr-text-sm, 0.875rem);
  text-align: center;
}

.jr-prose--html a {
  color: var(--jr-brand, inherit);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.jr-prose--html ul,
.jr-prose--html ol {
  padding-left: 1.25rem;
}

.jr-prose--html blockquote {
  border-left: 3px solid var(--jr-line, #e5e7eb);
  padding-left: 1rem;
  color: var(--jr-muted);
}

.jr-prose--html hr {
  border: 0;
  border-top: 1px solid var(--jr-line, #e5e7eb);
  margin: 1.5rem 0;
}

.jr-prose--html table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.95em;
}

.jr-prose--html th,
.jr-prose--html td {
  border: 1px solid var(--jr-line, #e5e7eb);
  padding: 0.5rem 0.65rem;
  vertical-align: top;
}

.jr-prose--html th {
  background: color-mix(in srgb, var(--jr-gray-100, #f3f4f6) 80%, transparent);
  font-weight: 600;
  color: var(--jr-ink, inherit);
}

.jr-prose--html caption {
  caption-side: bottom;
  margin-top: 0.5rem;
  font-size: var(--jr-text-sm, 0.875rem);
  color: var(--jr-muted);
}

.jr-prose--html .marker-yellow {
  background-color: #fdfd77;
}

.jr-prose--html .marker-green {
  background-color: #62f962;
}

.jr-prose--html .marker-pink {
  background-color: #fc7899;
}

.jr-prose--html .marker-blue {
  background-color: #72ccfd;
}

.jr-prose--html [style*='text-align:center'],
.jr-prose--html [style*='text-align: center'] {
  text-align: center;
}

.jr-prose--html [style*='text-align:right'],
.jr-prose--html [style*='text-align: right'] {
  text-align: right;
}

.jr-prose--html [style*='text-align:justify'],
.jr-prose--html [style*='text-align: justify'] {
  text-align: justify;
}

.jr-center {
  text-align: center;
  padding: clamp(3rem, 10vw, 5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.jr-center code {
  font-size: var(--jr-text-sm);
  background: var(--jr-gray-100);
  border: 1px solid var(--jr-line);
  padding: 0.15rem 0.4rem;
  border-radius: var(--jr-r-xs);
}

.jr-scroll-lock {
  overflow: hidden;
}

/* ---------- Scroll reveal (replaces WOW.js) ---------- */
.jr-reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 700ms var(--jr-ease),
    transform 700ms var(--jr-ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.jr-reveal.is-in {
  opacity: 1;
  transform: none;
}

.jr-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--jr-page-bg);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.jr-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.jr-preloader__bounce {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 3px solid color-mix(in srgb, var(--jr-primary) 25%, transparent);
  border-top-color: var(--jr-primary);
  animation: jr-spin 0.8s linear infinite;
}
@keyframes jr-spin {
  to { transform: rotate(360deg); }
}
.jr-scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--jr-primary);
  color: var(--jr-on-primary, #fff);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  cursor: pointer;
}

.jr-mobile-bar {
  display: none;
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
  }

  .jr-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    min-height: calc(4.25rem + env(safe-area-inset-bottom));
    padding: 0.4rem max(0.35rem, env(safe-area-inset-right)) calc(0.4rem + env(safe-area-inset-bottom)) max(0.35rem, env(safe-area-inset-left));
    border-top: 1px solid var(--jr-line);
    background: color-mix(in srgb, var(--jr-white) 94%, transparent);
    box-shadow: 0 -8px 24px rgba(20, 28, 37, 0.08);
    backdrop-filter: blur(12px);
  }

  .jr-mobile-bar a {
    position: relative;
    display: flex;
    min-width: 3.75rem;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--jr-muted);
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none;
  }

  .jr-mobile-bar a:hover,
  .jr-mobile-bar a:focus-visible {
    color: var(--jr-primary);
  }

  .jr-mobile-bar__icon {
    position: relative;
    display: inline-flex;
  }

  .jr-mobile-bar .jr-cart-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.8rem;
  }

  .jr-scroll-top {
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }
}

.jr-contact-split {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .jr-contact-split {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}
.jr-prose :where(h1,h2,h3,p,ul,ol) { margin: 0 0 0.85rem; }
.jr-prose img { max-width: 100%; height: auto; }

@keyframes jr-fade-up {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes jr-fade-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .jr-reveal {
    opacity: 1;
    transform: none;
  }
}
