:root {
  --yj-ink: #1f2933;
  --yj-muted: #64748b;
  --yj-paper: #ffffff;
  --yj-surface: #f4f7fb;
  --yj-line: rgba(148, 163, 184, 0.28);
  --yj-crimson: #a51c30;
  --yj-crimson-dark: #7f1524;
  --yj-radius: 0.75rem;
  --yj-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 247, 251, 0.9) 38%, rgba(248, 247, 243, 1));
  word-break: keep-all;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid rgba(165, 28, 48, 0.35);
  outline-offset: 3px;
}

.rounded-3xl,
.rounded-2xl {
  border-radius: var(--yj-radius) !important;
}

main > section,
main article,
#sidebar,
#sidebar-mobile {
  border-color: var(--yj-line) !important;
}

main > section,
main article {
  box-shadow: var(--yj-shadow);
}

main article,
main section a,
button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

main article:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.11);
}

#site-header header {
  z-index: 100;
}

#top-nav a {
  border-radius: 9999px;
}

#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

#mobile-menu-overlay:not(.hidden) {
  display: block;
}

#mobile-menu-overlay > [data-drawer-close="true"] {
  backdrop-filter: blur(3px);
}

#mobile-menu-drawer {
  min-height: 100dvh;
  transform: translateX(0);
  animation: yj-drawer-in 180ms ease-out;
}

#mobile-nav a {
  min-height: 44px;
}

#breadcrumbs {
  color: var(--yj-muted);
}

#global-cta > div {
  border-radius: var(--yj-radius) !important;
  background: linear-gradient(135deg, var(--yj-crimson), var(--yj-crimson-dark)) !important;
}

.mobile-contact-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 900;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  padding: 0.45rem;
}

.mobile-contact-bar a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: var(--yj-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-contact-bar a:first-child {
  background: var(--yj-crimson);
  color: #fff;
}

.mobile-menu-open .mobile-contact-bar {
  display: none !important;
}

@keyframes yj-drawer-in {
  from {
    transform: translateX(18px);
    opacity: 0.78;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 5.25rem;
  }

  main {
    padding-top: 2rem !important;
  }

  main > section {
    padding: 2rem 1.25rem !important;
  }

  .mobile-contact-bar {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
