:root, body, .silika, .silika.original {
  --background-primary: #FAEFDB !important;
  --background-primary-rgb: 250, 239, 219 !important;
  --background-secondary: #E8CBA3 !important;
  --background-secondary-rgb: 232, 203, 163 !important;
  --background-tertiary: #7C332A !important;
  --background-tertiary-rgb: 124, 51, 42 !important;
  --text-primary: #7C332A !important;
  --text-primary-rgb: 124, 51, 42 !important;
  --text-secondary: #BA6927 !important;
  --text-secondary-rgb: 186, 105, 39 !important;
  --text-tertiary: #FFF !important;
  --text-tertiary-rgb: 255, 15, 0 !important;
  --button-text-primary: #F9EEDA !important;
  --button-text-primary-rgb: 249, 238, 218 !important;
  --button-background-primary: #BA6927 !important;
  --button-background-primary-rgb: 186, 105, 39 !important;
  --button-text-secondary: #FCFAED !important;
  --button-text-secondary-rgb: 252, 250, 237 !important;
  --button-background-secondary: #7C332A !important;
  --button-background-secondary-rgb: 124, 51, 42 !important;

  --texture-1: url("/media/template/exclusive/silika/original/texture-1.png");
  --frame-cover-mask: url("/media/template/exclusive/silika/original/mask-cover.png");
  --mask-couple: url("/media/template/exclusive/silika/original/mask-couple.png");
  --mask-ls: url("/media/template/exclusive/silika/original/mask-ls.png");
}

body.silika.original {
  --texture-1: url("/media/template/exclusive/silika/original/texture-1.png");
  --frame-cover-mask: url("/media/template/exclusive/silika/original/mask-cover.png");
  --mask-couple: url("/media/template/exclusive/silika/original/mask-couple.png");
  --mask-ls: url("/media/template/exclusive/silika/original/mask-ls.png");
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Opening cover smooth hide transition */
.top-cover.opened {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease, visibility 1s !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Lightbox & modal animations */
.custom-lightbox {
  animation: fadeInModal 0.25s ease-out;
}

.modal-video-overlay {
  animation: fadeInModal 0.25s ease-out;
}

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

/* Ensure secondary-pane scrolls cleanly on desktop */
@media (min-width: 961px) {
  html:has(body.silika), body.silika {
    height: 100vh;
    overflow: hidden;
  }

  .kat-page__side-to-side {
    height: 100vh !important;
    overflow: hidden !important;
  }

  .secondary-pane {
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

.kat-page__side-to-side {
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
}

@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.scroll-to-next-btn {
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-next-btn svg {
  animation: bounceSlow 2s infinite ease-in-out;
}

.scroll-to-next-btn:hover {
  opacity: 1;
  transform: translateY(2px);
}

/* Ensure AOS animated elements become fully visible and interactive */
[data-aos].aos-animate {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* ==========================================================================
   BUTTON DESIGN SYSTEM (Emil Kowalski Design Engineering Principles)
   ========================================================================== */

/* Base button properties: hardware accelerated, no layout thrashing */
button,
a.link,
.btn-primary,
.add-to-calendar,
.event-link,
.ig-filter-link,
.submit-comment,
.wedding-gift-page,
#moreComment,
#startToExplore {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  font-family: var(--body-text-family, 'Abhaya Libre', serif);
  box-sizing: border-box;
}

/* 1. HERO COVER BUTTON (Bigger, prominent, tactile, welcoming) */
#startToExplore,
section.top-cover .inner .details .link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background-color: var(--button-background-secondary, #7C332A) !important;
  color: var(--button-text-secondary, #FCFAED) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  padding: 16px 40px !important;
  min-width: 230px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(252, 250, 237, 0.3) !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: 0 8px 24px rgba(124, 51, 42, 0.38), 0 2px 6px rgba(0, 0, 0, 0.12) !important;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
              background-color 200ms ease,
              box-shadow 200ms ease,
              color 200ms ease !important;
}

/* 2. PRIMARY ACTION BUTTONS (Consistent pill shape, elevation, typography) */
.add-to-calendar,
.event-link,
.ig-filter-link,
.submit-comment,
.wedding-gift-page-wrap button.wedding-gift-page {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 9999px !important;
  font-family: var(--body-text-family, 'Abhaya Libre', serif) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  letter-spacing: 0.03em !important;
  padding: 13px 30px !important;
  border: none !important;
  cursor: pointer !important;
  outline: none !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(124, 51, 42, 0.22) !important;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
              background-color 200ms ease,
              box-shadow 200ms ease,
              color 200ms ease !important;
}

.add-to-calendar,
.event-link,
.ig-filter-link,
.wedding-gift-page-wrap button.wedding-gift-page {
  background-color: var(--button-background-secondary, #7C332A) !important;
  color: var(--button-text-secondary, #FCFAED) !important;
}

.submit-comment {
  background-color: var(--button-background-primary, #BA6927) !important;
  color: var(--button-text-primary, #F9EEDA) !important;
  box-shadow: 0 4px 16px rgba(186, 105, 39, 0.25) !important;
}

/* 3. SECONDARY / OUTLINE BUTTONS */
button.wedding-gift-page:not([type="submit"]),
#moreComment {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 9999px !important;
  font-family: var(--body-text-family, 'Abhaya Libre', serif) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  letter-spacing: 0.03em !important;
  padding: 11px 26px !important;
  border: 1.5px solid var(--text-primary, #7C332A) !important;
  background-color: rgba(124, 51, 42, 0.05) !important;
  color: var(--text-primary, #7C332A) !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(124, 51, 42, 0.1) !important;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1),
              background-color 200ms ease,
              color 200ms ease,
              box-shadow 200ms ease,
              border-color 200ms ease !important;
}

/* 4. RESPONSIVE ACTIVE PRESS STATES (Emil's scale(0.97) feedback) */
#startToExplore:active,
.add-to-calendar:active,
.event-link:active,
.ig-filter-link:active,
.submit-comment:active,
.wedding-gift-page:active,
#moreComment:active,
.play-btn:active,
.bank-button-wrap:active,
.bank-btn-accordion:active {
  transform: scale(0.97) !important;
}

/* 5. TACTILE HOVER STATES (Desktop fine pointer only) */
@media (hover: hover) and (pointer: fine) {
  #startToExplore:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(124, 51, 42, 0.48), 0 4px 10px rgba(0, 0, 0, 0.15) !important;
    background-color: #8C3A30 !important;
  }

  .add-to-calendar:hover,
  .event-link:hover,
  .ig-filter-link:hover,
  .wedding-gift-page-wrap button.wedding-gift-page:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(124, 51, 42, 0.35) !important;
    background-color: #8C3A30 !important;
  }

  .submit-comment:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(186, 105, 39, 0.38) !important;
    background-color: #C87530 !important;
  }

  button.wedding-gift-page:not([type="submit"]):hover,
  #moreComment:hover {
    transform: translateY(-2px) !important;
    background-color: var(--button-background-secondary, #7C332A) !important;
    color: var(--button-text-secondary, #FCFAED) !important;
    box-shadow: 0 6px 18px rgba(124, 51, 42, 0.25) !important;
  }
}


