/* RunYan — warm editorial / emerald + amber theme. Distinct from Luyin (dark teal) and MiDa (light violet). */

:root {
  --cream: #FAF8F1;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Warm cream paper background */
.bg-cream {
  background-color: var(--cream);
}

/* Scroll reveal */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Rounded logo mark — filled square with monogram */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, #10B981 0%, #F59E0B 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: 0 4px 12px -4px rgba(16, 185, 129, 0.5);
}

.footer-mark {
  background: linear-gradient(135deg, #34D399 0%, #FBBF24 100%);
}

/* Decorative hand-drawn swash under a hero word */
.underline-swash {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -0.12em;
  height: 0.28em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 25 2, 50 6 T 98 5' fill='none' stroke='%23F59E0B' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Organic decorative blobs in the hero */
.hero-shape {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.hero-shape-1 {
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle at 30% 30%, rgba(110, 231, 183, 0.55), transparent 70%);
  top: -6rem;
  right: 28%;
  animation: float-a 14s ease-in-out infinite;
}

.hero-shape-2 {
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle at 60% 40%, rgba(251, 191, 36, 0.45), transparent 70%);
  bottom: -7rem;
  right: -4rem;
  animation: float-b 16s ease-in-out infinite;
}

.hero-shape-3 {
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle at 50% 50%, rgba(52, 211, 153, 0.35), transparent 70%);
  top: 30%;
  left: -5rem;
  animation: float-a 18s ease-in-out infinite reverse;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { transform: translate(10px, -16px) rotate(8deg); border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  50% { transform: translate(-12px, 12px) rotate(-10deg); border-radius: 63% 37% 58% 42% / 44% 56% 59% 41%; }
}

/* Soft glow blobs behind dark contact section */
.contact-shape {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.contact-shape-1 {
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.22), transparent 70%);
  top: -8rem;
  left: -6rem;
}

.contact-shape-2 {
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 70%);
  bottom: -8rem;
  right: -6rem;
}

/* Buttons */
.btn-primary {
  box-shadow: 0 8px 20px -4px rgba(5, 150, 105, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 10px 26px -4px rgba(5, 150, 105, 0.5);
}

.btn-outline {
  box-shadow: 0 4px 14px -6px rgba(5, 150, 105, 0.2);
}

/* Sticky navbar: transparent over cream hero, frosts white on scroll */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(250, 248, 241, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(6, 78, 59, 0.08);
  border-bottom: 1px solid rgba(167, 243, 208, 0.6);
}

/* Service row hover lift */
.service-row {
  transition: padding-left 0.25s ease;
}

.service-row:hover {
  padding-left: 0.5rem;
}

/* Pulsing live indicator dot in hero badge */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.animate-pulse-dot {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { transition: none; opacity: 1; transform: none; }
  .animate-pulse-dot,
  .hero-shape-1,
  .hero-shape-2,
  .hero-shape-3 { animation: none; }
  html { scroll-behavior: auto; }
}
