/* ============================================
   Reset & Rise — Custom Styles
   ============================================ */

/* --- Glassmorphism Navigation --- */
.glass-nav {
  background: rgba(255, 248, 246, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(210, 196, 186, 0.15);
}

/* --- Ghost Border Utility --- */
.ghost-border {
  border: 1px solid rgba(210, 196, 186, 0.15);
}

/* --- Ambient Shadow --- */
.ambient-shadow {
  box-shadow: 0 8px 60px rgba(30, 27, 26, 0.05);
}

/* --- CTA Gradient Button --- */
.btn-cta {
  background: linear-gradient(135deg, #5a442f 0%, #745b45 100%);
  color: #ffffff;
  transition: all 0.5s ease;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #745b45 0%, #5a442f 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(90, 68, 47, 0.2);
}

/* --- CTA Inverted Button --- */
.btn-cta-inverted {
  background: #ffffff;
  color: #5a442f;
  transition: all 0.5s ease;
}
.btn-cta-inverted:hover {
  background: #faf2f0;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

/* --- Scroll Animations --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}
.fade-in.visible {
  opacity: 1;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.6s; }

/* --- Decorative Line --- */
.line-accent {
  width: 60px;
  height: 2px;
  background: #e1c1a6;
}

/* --- Marquee Scrolling Text --- */
.marquee-section {
  position: relative;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Mobile Menu --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
}

/* --- Smooth Link Underline --- */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #5a442f;
  transition: width 0.4s ease;
}
.link-underline:hover::after {
  width: 100%;
}

/* --- Rise Progress Bar --- */
.rise-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #e1c1a6;
  z-index: 40;
}
.rise-bar-fill {
  height: 100%;
  background: #5a442f;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Testimonial placeholder shimmer --- */
.testimonial-placeholder {
  background: linear-gradient(
    110deg,
    #faf2f0 8%,
    #f4ecea 18%,
    #faf2f0 33%
  );
  background-size: 200% 100%;
  animation: shimmer 2.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Custom Selection Color --- */
::selection {
  background: rgba(225, 193, 166, 0.4);
  color: #1e1b1a;
}

/* --- Scrollbar (webkit) --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fff8f6;
}
::-webkit-scrollbar-thumb {
  background: #d2c4ba;
}
::-webkit-scrollbar-thumb:hover {
  background: #5a442f;
}
