/* Ghetto Yutte Bless — Multi-Page Watoto-Inspired Editorial Design */

:root {
  --bg-white: #ffffff;
  --bg-ivory: #faf7f2;
  --border-stone: #e7e5e4;
  --text-espresso: #292524;
  --text-stone: #57534e;
  --watoto-orange: #ea6a20;
  --watoto-orange-hover: #c85212;
  --watoto-green: #4a6b22;
  --watoto-green-dark: #3a541a;
  --watoto-green-light: #f3f7ec;
  --watoto-amber: #d97706;
}

/* Smooth Infinite Logo Stretch / Marquee */
.logo-marquee-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: logoMarquee 26s linear infinite;
  will-change: transform;
}

.logo-marquee-wrap:hover .logo-marquee-track {
  animation-play-state: paused;
}

@keyframes logoMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  background-color: var(--bg-white);
  color: var(--text-espresso);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

main,
section,
footer {
  max-width: 100%;
  overflow-x: clip;
}

.font-display {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.font-serif-editorial {
  font-family: 'Fraunces', Georgia, serif;
}

.font-mono-code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Warm Ivory Section Background with subtle organic dot-weave */
.bg-ivory {
  background-color: var(--bg-ivory);
}

.bg-warm-weave {
  background-color: var(--bg-ivory);
  background-image: radial-gradient(rgba(74, 107, 34, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Watoto Primary CTAs */
.btn-watoto-orange {
  background-color: var(--watoto-orange);
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-watoto-orange:hover {
  background-color: var(--watoto-orange-hover);
  box-shadow: 0 12px 26px -8px rgba(234, 106, 32, 0.45);
  transform: translateY(-1px);
}

.btn-watoto-green {
  background-color: var(--watoto-green);
  color: #ffffff;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-watoto-green:hover {
  background-color: var(--watoto-green-dark);
  box-shadow: 0 10px 22px -8px rgba(74, 107, 34, 0.4);
  transform: translateY(-1px);
}

/* Transparent-to-White Sticky Header */
.site-header {
  background: linear-gradient(to bottom, rgba(18, 16, 14, 0.62), rgba(18, 16, 14, 0.28));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header .nav-brand-title,
.site-header .nav-links > a,
.site-header .nav-links .nav-more-btn,
.site-header .nav-mobile-btn {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: color 0.25s ease;
}

.site-header .nav-brand-sub {
  color: #d9f99d;
  transition: color 0.25s ease;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.is-current {
  color: #ff944d;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.site-header .currency-pill {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.site-header .currency-btn-active {
  background-color: #ffffff;
  color: #4a6b22;
}

.site-header .currency-btn-idle {
  color: rgba(255, 255, 255, 0.85);
}

.site-header .bag-btn {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Sticky White State */
.site-header.is-sticky {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-stone);
  box-shadow: 0 8px 28px -12px rgba(41, 37, 36, 0.14);
}

.site-header.is-sticky .nav-brand-title,
.site-header.is-sticky .nav-links > a,
.site-header.is-sticky .nav-links .nav-more-btn,
.site-header.is-sticky .nav-mobile-btn {
  color: #292524;
  text-shadow: none;
}

.site-header.is-sticky .nav-brand-sub {
  color: #4a6b22;
}

.site-header.is-sticky .nav-links a:hover,
.site-header.is-sticky .nav-links a.is-current {
  color: #ea6a20;
}

.site-header.is-sticky .currency-pill {
  background: #f5f5f4;
  border: 1px solid #e7e5e4;
}

.site-header.is-sticky .currency-btn-active {
  background-color: #4a6b22;
  color: #ffffff;
}

.site-header.is-sticky .currency-btn-idle {
  color: #57534e;
}

.site-header.is-sticky .bag-btn {
  background: #f5f5f4;
  color: #292524;
  border: 1px solid #e7e5e4;
}

/* Parallax Hero Slider + Smooth Ken Burns Background Motion */
.parallax-slider {
  position: relative;
  overflow: hidden;
}

.parallax-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.parallax-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.06) translate3d(-1%, -0.6%, 0);
  }
}

.parallax-slide.is-active .parallax-bg {
  animation: heroKenBurns 24s ease-in-out infinite alternate;
}

.parallax-bg {
  will-change: transform;
  transform-origin: center center;
}

/* Fixed-attachment editorial parallax band (falls back gracefully on mobile) */
.parallax-band {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

@media (max-width: 768px) {
  .parallax-band {
    background-attachment: scroll;
  }
}

/* Modern Pill & Underline Tabs */
.tab-pill {
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.tab-pill.is-active {
  background-color: var(--watoto-green);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(74, 107, 34, 0.45);
}

/* Scroll-reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Editorial card hover with soft depth */
.card-hover {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -14px rgba(41, 37, 36, 0.14);
}

.card-img-zoom img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-hover:hover .card-img-zoom img {
  transform: scale(1.06);
}

/* Progress bar */
@keyframes progressShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.progress-bar-animated {
  background: linear-gradient(90deg, #4a6b22 0%, #628b2e 45%, #78a63c 50%, #628b2e 55%, #4a6b22 100%);
  background-size: 200% 100%;
  animation: progressShimmer 3.2s linear infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #faf7f2;
}

::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}

/* Modal & Drawer backdrop */
.modal-backdrop {
  background: rgba(28, 25, 23, 0.6);
  backdrop-filter: blur(5px);
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.35); }
}

.live-dot {
  animation: livePulse 1.8s ease-in-out infinite;
}

/* Watoto-style segmented color stroke (Warm Green -> Warm Orange) */
.watoto-stroke {
  height: 6px;
  width: 100%;
  background: linear-gradient(
    to right,
    #a3c959 0%, #a3c959 14.28%,
    #658e2f 14.28%, #658e2f 28.57%,
    #4a6b22 28.57%, #4a6b22 42.85%,
    #3a541a 42.85%, #3a541a 57.14%,
    #f59e0b 57.14%, #f59e0b 71.42%,
    #ea6a20 71.42%, #ea6a20 85.71%,
    #c85212 85.71%, #c85212 100%
  );
}
