/* =============================================
   REGALIS — Premium Creative Layer
   ============================================= */

/* ---- Floating Ambient Orbs ---- */
.ambient-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  animation: orbFloat 18s ease-in-out infinite;
}

.ambient-orb--brown {
  width: 420px;
  height: 420px;
  background: rgba(94, 59, 36, 0.08);
  top: 10%;
  left: -8%;
}

.ambient-orb--green {
  width: 360px;
  height: 360px;
  background: rgba(59, 84, 55, 0.07);
  bottom: 15%;
  right: -6%;
  animation-delay: -6s;
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.navbar {
  z-index: 1060;
}

.preloader {
  z-index: 10000;
}

.mobile-menu {
  z-index: 1050;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

/* ---- Hero Premium ---- */
.hero-frame {
  position: absolute;
  inset: 40px 40px 100px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 2;
  pointer-events: none;
}

.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: var(--brand-brown-light);
  border-style: solid;
}

.hero-frame::before {
  top: -1px;
  left: -1px;
  border-width: 1px 0 0 1px;
}

.hero-frame::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 1px 1px 0;
}

.hero-side-text {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  z-index: 3;
  white-space: nowrap;
}

.hero-counter {
  position: absolute;
  left: 48px;
  bottom: 120px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text-on-dark-muted);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hero-counter #heroCurrent {
  font-size: 32px;
  color: var(--brand-brown-light);
}

.hero-counter-sep {
  opacity: 0.4;
  margin: 0 4px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  margin-bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-green);
  animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(59, 84, 55, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(59, 84, 55, 0); }
}

.hero-title .word {
  display: inline-block;
  overflow: hidden;
}

.hero-title .char {
  display: inline-block;
  transform: translateY(110%);
}

/* ---- Marquee ---- */
.marquee-strip {
  position: relative;
  z-index: 10;
  padding: 18px 0;
  background: linear-gradient(90deg, var(--brand-brown), var(--brand-green));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
}

.marquee-dot {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 8px !important;
  letter-spacing: 0 !important;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Section Premium Headers ---- */
.section-header-premium {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-header-premium.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 64px;
}

.section-ghost-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 120px);
  font-weight: 400;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(94, 59, 36, 0.1);
  user-select: none;
  flex-shrink: 0;
  opacity: 0.8;
}

.section-header-premium.centered .section-ghost-num {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.section-header-premium.centered .section-header-inner {
  position: relative;
  z-index: 1;
}

.section-header-inner {
  flex: 1;
  min-width: 0;
}

.section-ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.section-ornament::before,
.section-ornament::after {
  content: '';
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--brand-brown), var(--brand-green));
}

.section-ornament::before {
  background: linear-gradient(90deg, var(--brand-green), var(--brand-brown));
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 59, 36, 0.3), rgba(59, 84, 55, 0.3), transparent);
  margin: 0 auto 80px;
  max-width: 600px;
}

/* ---- Premium Frame ---- */
.premium-frame {
  position: relative;
}

.frame-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1px solid var(--brand-brown-light);
  z-index: 2;
  transition: all 0.5s ease;
}

.fc-tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.fc-tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.fc-bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.fc-br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

.premium-frame:hover .frame-corner {
  width: 32px;
  height: 32px;
  border-color: var(--brand-green-light);
}

.premium-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(94, 59, 36, 0.15) 0%, transparent 50%, rgba(59, 84, 55, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.premium-frame:hover::after {
  opacity: 1;
}

/* ---- Button Shine ---- */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.btn-shine:hover::before {
  left: 150%;
}

/* ---- Premium Cards ---- */
.premium-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-brown), var(--brand-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 2;
}

.premium-card:hover::before {
  transform: scaleX(1);
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(59, 84, 55, 0.12);
}

/* ---- Gallery Premium ---- */
.gallery-item-premium {
  position: relative;
  overflow: hidden;
}

.gallery-item-premium .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  z-index: 2;
  color: var(--white);
}

.gallery-item-premium .gallery-label {
  font-family: var(--font-display);
  font-size: 14px;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.gallery-item-premium:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-premium:hover .gallery-label {
  transform: translateY(0);
}

.gallery-item-premium img {
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- Stat Premium ---- */
.stat-item {
  position: relative;
  padding-left: 20px;
}

.stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-brown), var(--brand-green));
}

/* ---- Glass Enhanced ---- */
.glass-panel {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  background: var(--white);
}

.glass-panel:hover {
  border-color: rgba(59, 84, 55, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ---- Navbar Premium ---- */
.navbar.scrolled .nav-container {
  max-width: 1140px;
  transition: max-width 0.5s ease;
}

/* ---- Image Reveal Clip ---- */
.clip-reveal:not(.revealed) {
  opacity: 1;
  clip-path: inset(0 0 0 0);
}

.clip-reveal.revealed {
  animation: clipRevealIn 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes clipRevealIn {
  from {
    clip-path: inset(0 0 100% 0);
    opacity: 0.5;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* ---- Horizontal Scroll Showcase ---- */
.showcase-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.showcase-scroll::-webkit-scrollbar {
  display: none;
}

.showcase-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  padding: 36px;
  border-radius: 2px;
}

.showcase-card-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: rgba(94, 59, 36, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

/* ---- Page Hero Premium ---- */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 2;
  pointer-events: none;
}

/* ---- Preloader Premium ---- */
.preloader-inner::after {
  content: 'Loading Experience';
  display: block;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 20px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-frame { inset: 24px 24px 90px; }
  .hero-side-text { display: none; }
  .section-ghost-num { font-size: 60px; }
}

@media (max-width: 768px) {
  .hero-frame { display: none; }
  .hero-counter { left: 24px; bottom: 100px; }
  .section-header-premium { flex-direction: column; align-items: flex-start; }
  .homepage .section-header-premium { align-items: center; }
  .section-ghost-num { font-size: 48px; }
}




