/* ============================================
   BuenaVista - Landing Page Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --color-primary: #E07B39;
  --color-primary-dark: #C56A2D;
  --color-primary-light: #F4A574;
  --color-accent: #FFDFC4;
  --color-dark: #121212;
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: #000;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================
   Landing Navbar
   ============================================ */
.landing-navbar {
  background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: background 0.3s ease;
  z-index: 1000;
}

.landing-navbar.scrolled {
  background: rgba(0,0,0,0.95);
}

.landing-navbar .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-navbar .navbar-brand svg {
  fill: #fff;
}

.landing-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.landing-navbar .nav-link:hover {
  color: #fff !important;
}

.landing-navbar .btn-outline-light {
  border-width: 2px;
  font-weight: 500;
}

.landing-navbar .btn-outline-light:hover {
  background: #fff;
  color: var(--color-dark);
}

.landing-navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

.landing-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Alert Container
   ============================================ */
.alert-container {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 999;
}

/* ============================================
   Hero Section
   ============================================ */
#landing-header {
  z-index: 1;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-content {
  max-width: 700px;
}

/* ---- Hero entrance animation system ---- */
@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroSlideRight {
  from {
    opacity: 0;
    transform: translateX(-60px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes accentGlow {
  0%   { background-size: 100% 100%; background-position: 0% 50%; }
  50%  { background-size: 200% 200%; background-position: 100% 50%; }
  100% { background-size: 100% 100%; background-position: 0% 50%; }
}

@keyframes statCount {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 123, 57, 0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(224, 123, 57, 0); }
}

@keyframes typewriterBlink {
  0%, 100% { border-right-color: var(--color-primary); }
  50%      { border-right-color: transparent; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(8px); opacity: 1; }
}

@keyframes floatParticle {
  0%   { transform: translateY(0) translateX(0) scale(0); opacity: 0; }
  10%  { opacity: 0.6; transform: scale(1); }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) translateX(40px) scale(0.5); opacity: 0; }
}

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

@keyframes statBarFill {
  from { width: 0; }
  to   { width: 100%; }
}

/* Apply staggered reveals — each element fades up sequentially */
.hero-title,
.hero-subtitle,
.hero-buttons,
.hero-cta-nudge,
.hero-stats,
.hero-tagline {
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title       { animation: heroSlideRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards; opacity: 0; }
.hero-subtitle    { animation-delay: 0.6s; }
.hero-buttons     { animation-delay: 0.9s; }
.hero-cta-nudge   { animation-delay: 1.1s; }
.hero-stats       { animation-delay: 1.4s; }
.hero-tagline     { animation-delay: 1.7s; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-light) 50%, var(--color-primary) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroSlideRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards,
             accentGlow 3s ease-in-out 2s infinite;
  opacity: 0;
  border-right: 3px solid var(--color-primary);
  padding-right: 4px;
}
.text-accent.typed {
  border-right-color: transparent;
  animation: heroSlideRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards,
             accentGlow 3s ease-in-out 2s infinite,
             typewriterBlink 0.8s step-end 1.5s 4;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 550px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-buttons .btn-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  padding: 0.875rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: buttonPulse 2.5s ease-in-out 2s 3;
}

.hero-buttons .btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(224, 123, 57, 0.3);
  animation: none;
}

.hero-buttons .btn-outline-light {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-width: 2px;
  transition: all 0.3s ease;
}

.hero-buttons .btn-outline-light:hover {
  background: #fff;
  color: var(--color-dark);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: statCount 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  position: relative;
  padding-bottom: 8px;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 2px;
  animation: statBarFill 0.8s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 1.5s; }
.stat-item:nth-child(2) { animation-delay: 1.7s; }
.stat-item:nth-child(3) { animation-delay: 1.9s; }
.stat-item:nth-child(1)::after { animation-delay: 2.0s; }
.stat-item:nth-child(2)::after { animation-delay: 2.2s; }
.stat-item:nth-child(3)::after { animation-delay: 2.4s; }

.stat-item:hover .stat-number {
  transform: scale(1.1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-light);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: heroReveal 0.8s ease 2.5s forwards;
}
.scroll-indicator .scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  animation: scrollBounce 1.5s ease-in-out infinite;
}
.scroll-indicator .scroll-line {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

/* Floating particles behind hero */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particles .particle {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0;
  animation: floatParticle linear infinite;
}
.hero-particles .particle:nth-child(1) { left: 10%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 0s; }
.hero-particles .particle:nth-child(2) { left: 25%; width: 6px; height: 6px; animation-duration: 15s; animation-delay: 2s; }
.hero-particles .particle:nth-child(3) { left: 45%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 4s; }
.hero-particles .particle:nth-child(4) { left: 65%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 1s; }
.hero-particles .particle:nth-child(5) { left: 80%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 3s; }
.hero-particles .particle:nth-child(6) { left: 35%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: 5s; }
.hero-particles .particle:nth-child(7) { left: 55%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 6s; }
.hero-particles .particle:nth-child(8) { left: 90%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 7s; }

/* Gentle float on buttons after entrance */
.hero-buttons .btn-primary {
  animation: buttonPulse 2.5s ease-in-out 2s 3, gentleFloat 3s ease-in-out 8s infinite;
}

/* ============================================
   Background Slideshow
   ============================================ */
.slideshow { 
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.slideshow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.slideshow li {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  animation: imageAnimation 100s linear infinite;
  /* Ken Burns — subtle zoom & drift while each image is visible */
  transition: transform 10s ease-out;
}
.slideshow li.active-ken {
  transform: scale(1.08) translateX(-1%);
}

/* 
  ANIMATION TIMING: 10 images × 10s each = 100s total cycle
  Adjust your @keyframes imageAnimation duration to 100s
*/

.slideshow li:nth-child(1) { 
    background-image: url(https://images.unsplash.com/photo-1516483638261-f4dbaf036963?w=1920&q=80);
    /* Hallstatt, Austria – dreamy lakeside village */
  }
  
  .slideshow li:nth-child(2) { 
    background-image: url(https://images.unsplash.com/photo-1531366936337-7c912a4589a7?w=1920&q=80);
    animation-delay: 10s;
    /* Northern Lights, Iceland */
  }
  
  .slideshow li:nth-child(3) { 
    background-image: url(https://images.unsplash.com/photo-1564507592333-c60657eea523?w=1920&q=80);
    animation-delay: 20s;
    /* Taj Mahal, India */
  }
  
  .slideshow li:nth-child(4) { 
    background-image: url(https://images.unsplash.com/photo-1570077188670-e3a8d69ac5ff?w=1920&q=80);
    animation-delay: 30s;
    /* Santorini, Greece */
  }
  
  .slideshow li:nth-child(5) { 
    background-image: url(https://images.unsplash.com/photo-1526392060635-9d6019884377?w=1920&q=80);
    animation-delay: 40s;
    /* Machu Picchu, Peru */
  }
  
  .slideshow li:nth-child(6) { 
    background-image: url(https://images.unsplash.com/photo-1528164344705-47542687000d?w=1920&q=80);
    animation-delay: 50s;
    /* Chureito Pagoda & Mount Fuji, Japan */
  }
  
  .slideshow li:nth-child(7) { 
    background-image: url(https://images.unsplash.com/photo-1621414050946-1b936a78491f?w=1920&q=80);
    animation-delay: 60s;
    /* Mount Kilimanjaro, Tanzania */
  }
  
  .slideshow li:nth-child(8) { 
    background-image: url(https://images.unsplash.com/photo-1508804185872-d7badad00f7d?w=1920&q=80);
    animation-delay: 70s;
    /* Great Wall of China */
  }
  
  .slideshow li:nth-child(9) { 
    background-image: url(https://images.unsplash.com/photo-1537996194471-e657df975ab4?w=1920&q=80);
    animation-delay: 80s;
    /* Bali Rice Terraces, Indonesia */
  }
  
  .slideshow li:nth-child(10) { 
    background-image: url(https://images.unsplash.com/photo-1508739773434-c26b3d09e071?w=1920&q=80);
    animation-delay: 90s;
    /* Milford Sound, New Zealand */
  }

  @keyframes imageAnimation {
    0% { opacity: 0; animation-timing-function: ease-in; }
    2% { opacity: 1; animation-timing-function: ease-out; }
    10% { opacity: 1; }
    12% { opacity: 0; }
    100% { opacity: 0; }
  }
  

/* ============================================
   Landing Footer
   ============================================ */
.landing-footer {
  position: relative;
  z-index: 1;
  background: var(--color-dark);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand svg {
  fill: #fff;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ============================================
   Mobile Hamburger & Drawer (landing page)
   ============================================ */
.landing-navbar .mobile-hamburger {
  display: none;
}

/* Drawer reuse — landing page gets its own drawer */
.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-drawer-backdrop.open {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 88vw;
  height: 100%;
  background: #1a1a1a;
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}
.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.25rem;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.drawer-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.drawer-nav { padding: 12px 0; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.drawer-link i {
  font-size: 1.15rem;
  width: 22px;
  text-align: center;
}
.drawer-link:hover,
.drawer-link:focus {
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-left-color: var(--color-primary-light);
}
.drawer-link-primary {
  color: var(--color-primary-light) !important;
  font-weight: 600;
}
.drawer-divider {
  margin: 4px 20px;
  border-color: rgba(255,255,255,0.08);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
  /* Hide Bootstrap collapse, show hamburger + drawer */
  .landing-navbar .navbar-collapse {
    display: none !important;
  }
  .landing-navbar .navbar-toggler:not(.mobile-hamburger) {
    display: none !important;
  }
  .landing-navbar .mobile-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    order: 1;
    z-index: 2;
  }
  .hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .landing-navbar .mobile-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .landing-navbar .mobile-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  .landing-navbar .mobile-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .mobile-drawer { display: block; }

  /* Navbar: hamburger left, brand centered */
  .landing-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .landing-navbar .navbar-brand {
    order: 2;
    margin: 0;
    font-size: 1.35rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .landing-navbar .navbar-brand img {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 767.98px) {
  #landing-header {
    padding: 100px 0 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-stats {
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
