/* ============================================
   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: 'Playfair Display', 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-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) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.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;
}

.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);
}

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

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

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

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

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

/* ============================================
   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 50s linear infinite; 
}

.slideshow li:nth-child(1) { 
  background-image: url(https://images.unsplash.com/photo-1504280390367-361c6d9f38f4?w=1920&q=80);
}

.slideshow li:nth-child(2) { 
  background-image: url(https://images.unsplash.com/photo-1517824806704-9040b037703b?w=1920&q=80);
  animation-delay: 10s; 
}

.slideshow li:nth-child(3) { 
  background-image: url(https://images.unsplash.com/photo-1476041800959-2f6bb412c8ce?w=1920&q=80);
  animation-delay: 20s; 
}

.slideshow li:nth-child(4) { 
  background-image: url(https://images.unsplash.com/photo-1445308394109-4ec2920981b1?w=1920&q=80);
  animation-delay: 30s; 
}

.slideshow li:nth-child(5) { 
  background-image: url(https://images.unsplash.com/photo-1534880606858-29b0e8a24e8d?w=1920&q=80);
  animation-delay: 40s; 
}

@keyframes imageAnimation { 
  0% { 
    opacity: 0; 
    animation-timing-function: ease-in;
  }
  10% {
    opacity: 1;
    animation-timing-function: ease-out;
  }
  20% {
    opacity: 1;
  }
  30% {
    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;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
  .landing-navbar .navbar-collapse {
    background: rgba(0,0,0,0.95);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
  }
}

@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;
  }
}
