/* ==========================================================================
   TAMAN SELINI WAHANA RESORT — "COMING SOON" STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   THEME VARIABLES & CONFIGURATION (Easily reskin palette and typography here)
   -------------------------------------------------------------------------- */
:root {
  /* Colors - Backgrounds & Surfaces */
  --bg-canvas: #FAF6F0;
  --bg-canvas-subtle: #F3ECE2;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-border: rgba(200, 155, 88, 0.22);
  --bg-badge: rgba(90, 115, 86, 0.08);
  --bg-badge-border: rgba(90, 115, 86, 0.22);
  --bg-pill: rgba(0, 0, 0, 0.04);
  --bg-pill-active: #FFFFFF;

  /* Colors - Typography */
  --text-primary: #2C2723;
  --text-secondary: #5E5851;
  --text-muted: #8E877E;
  --text-inverse: #FFFFFF;

  /* Accent Colors */
  --accent-gold: #C89B58;
  --accent-gold-hover: #B8863A;
  --accent-terracotta: #C26D53;
  --accent-terracotta-soft: rgba(194, 109, 83, 0.12);
  --accent-sage: #5A7356;
  --accent-sage-soft: rgba(90, 115, 86, 0.12);
  --accent-glow: rgba(200, 155, 88, 0.15);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 8px rgba(44, 39, 35, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(44, 39, 35, 0.08);
  --shadow-lg: 0 24px 60px -12px rgba(60, 45, 30, 0.09), 0 0 0 1px var(--bg-card-border);
  --shadow-pill: 0 2px 8px rgba(0, 0, 0, 0.08);

  /* Layout & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   BASE & RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(200, 155, 88, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(194, 109, 83, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(90, 115, 86, 0.04) 0%, transparent 60%);
}

/* --------------------------------------------------------------------------
   AMBIENT INTERACTIVE GLOW (Desktop)
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(200, 155, 88, 0) 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  z-index: 1;
  opacity: 0;
}

body:hover .ambient-glow {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   DECORATIVE BOTANICAL BACKGROUND FLOURISHES
   -------------------------------------------------------------------------- */
.botanical-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.botanical-leaf {
  position: absolute;
  color: var(--accent-sage);
  opacity: 0.35;
  transition: transform var(--transition-slow);
}

.botanical-top-left {
  top: -20px;
  left: -20px;
  width: clamp(140px, 25vw, 280px);
  animation: gentleFloatLeft 14s ease-in-out infinite alternate;
}

.botanical-bottom-right {
  bottom: -20px;
  right: -20px;
  width: clamp(160px, 28vw, 320px);
  color: var(--accent-gold);
  opacity: 0.3;
  animation: gentleFloatRight 16s ease-in-out infinite alternate;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.orb-1 {
  top: 10%;
  right: 15%;
  width: 250px;
  height: 250px;
  background: rgba(200, 155, 88, 0.08);
  animation: pulseOrb 12s ease-in-out infinite alternate;
}

.orb-2 {
  bottom: 15%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: rgba(194, 109, 83, 0.07);
  animation: pulseOrb 15s ease-in-out infinite alternate 2s;
}

.orb-3 {
  top: 45%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: rgba(90, 115, 86, 0.06);
  transform: translate(-50%, -50%);
}

/* --------------------------------------------------------------------------
   FLOATING BOTANICAL LEAVES (Drifting Garden Breeze)
   -------------------------------------------------------------------------- */
.floating-leaves-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.drifting-leaf {
  position: absolute;
  top: -60px;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 12px rgba(90, 115, 86, 0.08));
}

.drifting-leaf svg {
  display: block;
}

.leaf-1 {
  left: 8%;
  color: var(--accent-sage);
  opacity: 0.32;
  width: 38px;
  height: 38px;
  animation: floatDown1 22s cubic-bezier(0.25, 0.1, 0.25, 1) infinite -4s;
}

.leaf-2 {
  left: 85%;
  color: var(--accent-gold);
  opacity: 0.35;
  width: 30px;
  height: 30px;
  animation: floatDown2 19s cubic-bezier(0.25, 0.1, 0.25, 1) infinite -11s;
}

.leaf-3 {
  left: 24%;
  color: var(--accent-sage);
  opacity: 0.28;
  width: 44px;
  height: 44px;
  animation: floatDown3 26s cubic-bezier(0.25, 0.1, 0.25, 1) infinite -15s;
}

.leaf-4 {
  left: 72%;
  color: var(--accent-terracotta);
  opacity: 0.3;
  width: 32px;
  height: 32px;
  animation: floatDown1 24s cubic-bezier(0.25, 0.1, 0.25, 1) infinite -8s;
}

.leaf-5 {
  left: 45%;
  color: var(--accent-gold);
  opacity: 0.25;
  width: 40px;
  height: 40px;
  animation: floatDown2 28s cubic-bezier(0.25, 0.1, 0.25, 1) infinite -2s;
}

.leaf-6 {
  left: 92%;
  color: var(--accent-sage);
  opacity: 0.3;
  width: 28px;
  height: 28px;
  animation: floatDown3 18s cubic-bezier(0.25, 0.1, 0.25, 1) infinite -13s;
}

.leaf-7 {
  left: 15%;
  color: var(--accent-terracotta);
  opacity: 0.26;
  width: 34px;
  height: 34px;
  animation: floatDown2 23s cubic-bezier(0.25, 0.1, 0.25, 1) infinite -6s;
}

/* --------------------------------------------------------------------------
   LAYOUT WRAPPER
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 740px;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  animation: pageEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --------------------------------------------------------------------------
   HEADER & LANGUAGE SWITCHER
   -------------------------------------------------------------------------- */
.site-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.lang-switch-container {
  display: flex;
  align-items: center;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  background: var(--bg-pill);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-full);
  padding: 3px;
  backdrop-filter: blur(8px);
}

.lang-indicator {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--bg-pill-active);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-pill);
  transition: transform var(--transition-normal);
  pointer-events: none;
}

.lang-switch.id-active .lang-indicator {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.lang-btn .flag {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.75;
  letter-spacing: 0.03em;
}

.lang-btn.active {
  color: var(--text-primary);
  font-weight: 600;
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   MAIN CARD (Frosted Alabaster Sanctuary Card)
   -------------------------------------------------------------------------- */
.main-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--bg-card-border);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle gold top border highlight */
.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* --------------------------------------------------------------------------
   BRAND & LOGO SECTION
   -------------------------------------------------------------------------- */
.brand-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo-frame {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 246, 240, 0.7));
  border: 1.5px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(200, 155, 88, 0.18);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.brand-logo-frame:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(200, 155, 88, 0.26);
}

.brand-emblem {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: brightness(0.15); /* Ensures rich espresso charcoal tone regardless of system dark-mode */
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-top: 0.25rem;
}

.brand-tagline {
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   ORNAMENTAL DIVIDER
   -------------------------------------------------------------------------- */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 220px;
  margin: 1.5rem 0 1.25rem;
  color: var(--accent-gold);
  opacity: 0.7;
}

.ornament-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.flourish-icon {
  width: 14px;
  height: 14px;
  stroke: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   STATUS BADGE (Growing Seedling / In-Progress)
   -------------------------------------------------------------------------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--bg-badge);
  border: 1px solid var(--bg-badge-border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-sage);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.status-badge:hover {
  background: rgba(90, 115, 86, 0.12);
  transform: translateY(-1px);
}

.sprout-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sprout-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-sage);
}

.sprout-icon .leaf-left {
  transform-origin: 12px 14px;
  animation: swayLeafLeft 3s ease-in-out infinite alternate;
}

.sprout-icon .leaf-right {
  transform-origin: 12px 11px;
  animation: swayLeafRight 3s ease-in-out infinite alternate 0.5s;
}

.status-pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-sage);
  border-radius: 50%;
  display: inline-block;
  animation: dotPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --------------------------------------------------------------------------
   HEADLINE
   -------------------------------------------------------------------------- */
.headline-container {
  margin-bottom: 1.15rem;
  max-width: 580px;
}

.main-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.main-headline .italic-serif {
  font-style: italic;
  font-weight: 400;
}

.main-headline .highlight {
  color: var(--accent-terracotta);
  position: relative;
}

/* --------------------------------------------------------------------------
   STORY & NARRATIVE SUBTEXT
   -------------------------------------------------------------------------- */
.story-container {
  max-width: 540px;
  margin-bottom: 2rem;
}

.story-text {
  font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
}

.story-text strong {
  font-weight: 600;
  color: var(--text-primary);
}

.story-text .story-sub {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.noscript-notice {
  background: rgba(194, 109, 83, 0.08);
  border-left: 3px solid var(--accent-terracotta);
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: left;
}

/* --------------------------------------------------------------------------
   CONTACT & ACTIONS
   -------------------------------------------------------------------------- */
.contact-section {
  width: 100%;
  max-width: 480px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 1.5rem;
}

.contact-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 520px) {
  .contact-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Copy Email Button */
.email-copy-btn {
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.email-copy-btn:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.email-copy-btn:active {
  transform: translateY(0);
}

.action-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.email-display {
  font-weight: 500;
}

.copy-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.copy-badge-icon {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.email-copy-btn:hover .copy-badge-icon {
  opacity: 1;
  transform: scale(1.1);
  color: var(--accent-gold);
}

/* Social Icon Buttons */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--bg-card-border);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: stroke var(--transition-fast);
}

.social-btn:hover {
  color: var(--accent-terracotta);
  border-color: var(--accent-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-btn:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-note {
  letter-spacing: 0.02em;
}

.footer-note strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   TOAST NOTIFICATION
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: #7ED957;
  stroke: currentColor;
}

/* --------------------------------------------------------------------------
   KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes pageEntrance {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleFloatLeft {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(15px, 20px) rotate(4deg);
  }
}

@keyframes gentleFloatRight {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-18px, -15px) rotate(-3deg);
  }
}

@keyframes pulseOrb {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

@keyframes floatDown1 {
  0% {
    transform: translate3d(0, -60px, 0) rotate(0deg) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 0.35;
  }
  50% {
    transform: translate3d(50px, 50vh, 0) rotate(140deg) scale(1.05);
    opacity: 0.4;
  }
  90% {
    opacity: 0.35;
  }
  100% {
    transform: translate3d(-30px, 108vh, 0) rotate(280deg) scale(0.9);
    opacity: 0;
  }
}

@keyframes floatDown2 {
  0% {
    transform: translate3d(0, -60px, 0) rotate(45deg) scale(1);
    opacity: 0;
  }
  12% {
    opacity: 0.35;
  }
  50% {
    transform: translate3d(-55px, 52vh, 0) rotate(190deg) scale(0.92);
    opacity: 0.4;
  }
  88% {
    opacity: 0.35;
  }
  100% {
    transform: translate3d(40px, 108vh, 0) rotate(340deg) scale(1);
    opacity: 0;
  }
}

@keyframes floatDown3 {
  0% {
    transform: translate3d(0, -60px, 0) rotate(-20deg) scale(0.95);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  45% {
    transform: translate3d(40px, 48vh, 0) rotate(90deg) scale(1.08);
    opacity: 0.38;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translate3d(-45px, 108vh, 0) rotate(220deg) scale(0.95);
    opacity: 0;
  }
}

@keyframes swayLeafLeft {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-7deg);
  }
}

@keyframes swayLeafRight {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(6deg);
  }
}

@keyframes dotPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* --------------------------------------------------------------------------
   CROSS-FADE / LANGUAGE TRANSITIONS
   -------------------------------------------------------------------------- */
.lang-fade-in {
  animation: fadeInText 0.3s ease forwards;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
