/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom
 * of the compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 * require_tree .
 * require_self
 */

/* Burgundy Old Money Aesthetic - Authentic Design Elements */

/* Fonts are defined in fonts.css */

/* Typography from the original website */
  .font-script {
    font-family: 'Miss Fajardose', 'Dancing Script', cursive;
    font-size: 1.2em;
  }

  .font-script-elegant {
    font-family: 'Miss Fajardose', cursive;
  }

  /* Apply Miss Fajardose to all titles */
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Miss Fajardose', cursive;
  }

  /* Timeline titles - 2x bigger */
  .timeline-title {
    font-family: 'Miss Fajardose', 'Dancing Script', cursive;
    font-size: 2em;
  }

.font-serif-elegant {
  font-family: 'Libre Baskerville', serif;
}

.font-sans-clean {
  font-family: 'Open Sans', sans-serif;
}

/* Authentic Color Palette from burgundy-old-money-website */
.bg-burgundy-primary {
  background-color: #4d2027;
}

.text-burgundy-primary {
  color: #4d2027;
}

.border-burgundy-primary {
  border-color: #4d2027;
}

.bg-cream-warm {
  background-color: #fcf9f6;
}

.text-cream-warm {
  color: #fcf9f6;
}

.bg-beige-neutral {
  background-color: #cac3b5;
}

.text-beige-neutral {
  color: #cac3b5;
}

.bg-gold-warm {
  background-color: #cbb396;
}

.text-gold-warm {
  color: #cbb396;
}

.bg-charcoal-dark {
  background-color: #181414;
}

.text-charcoal-dark {
  color: #181414;
}

/* Elegant text shadows and effects */
.text-elegant-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.text-script-shadow {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Elegant hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Vintage decorative elements */
.vintage-border {
  border: 2px solid #4d2027;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vintage-card {
  background: linear-gradient(135deg, #fcf9f6 0%, #cac3b5 100%);
  border: 1px solid #cbb396;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Elegant monogram styling */
.monogram-elegant {
  font-family: 'Great Vibes', cursive;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.05em;
}

.monogram-overlay {
  position: absolute;
  top: -8px;
  left: -8px;
  opacity: 0.3;
  z-index: 1;
}

.monogram-main {
  position: relative;
  z-index: 2;
}

/* Two-section layout */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #4d2027, transparent);
  opacity: 0.3;
}

  /* Elegant script text */
  .script-elegant {
    font-family: 'Miss Fajardose', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
  }

/* Navigation styling */
.nav-elegant {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
}

.nav-elegant:hover {
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Clean Photo Frames - No borders or animations */
.photo-frame-large {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

.photo-frame-medium {
  position: relative;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
}

.photo-frame-small {
  position: relative;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 20px 16px 16px;
  text-align: center;
  color: #fcf9f6;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-placeholder:hover .photo-overlay {
  opacity: 1;
}

/* Scroll link styling */
.scroll-link {
  position: relative;
  transition: all 0.3s ease;
}

.scroll-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #cbb396;
  transition: width 0.3s ease;
}

.scroll-link:hover::after {
  width: 100%;
}

/* Section transitions */
section {
  transition: all 0.5s ease;
}

/* Fixed navigation backdrop */
nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* Home section background styling */
#home {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Enhanced text shadows for better readability over background */
.drop-shadow-lg {
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.drop-shadow-md {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Responsive background image */
@media (max-width: 768px) {
  #home {
    background-attachment: scroll;
  }
}

/* Dynamic navbar - starts transparent, becomes burgundy on scroll */
.navbar-light {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar-burgundy {
  background-color: rgba(77, 32, 39, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Navbar link colors for transparent navbar */
.navbar-light .nav-elegant {
  color: #fcf9f6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-light .nav-elegant:hover {
  color: #cbb396;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

  /* Navbar link colors for burgundy navbar */
  .navbar-burgundy .nav-elegant {
    color: #fcf9f6;
  }

  .navbar-burgundy .nav-elegant:hover {
    color: #cbb396;
  }

/* Animation classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 {
  transition-delay: 0.2s;
}

.fade-in-delay-2 {
  transition-delay: 0.4s;
}

.fade-in-delay-3 {
  transition-delay: 0.6s;
}

.fade-in-delay-4 {
  transition-delay: 0.8s;
}

/* Photo Gallery - Classic Centered Layout */
.photo-gallery img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile Navigation Styles */
.mobile-nav-link {
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
}

.mobile-nav-link:hover {
  transform: translateY(-2px);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Mobile menu animations */
#mobile-menu {
  transition: all 0.4s ease-in-out;
  transform: translateY(-100%);
  opacity: 0;
}

#mobile-menu.mobile-menu-show {
  transform: translateY(0);
  opacity: 1;
}

#mobile-menu.mobile-menu-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

/* Animate menu links when menu appears */
#mobile-menu.mobile-menu-show .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--link-index) * 0.1s);
}

#mobile-menu.mobile-menu-show .mobile-nav-link:nth-child(1) { --link-index: 1; }
#mobile-menu.mobile-menu-show .mobile-nav-link:nth-child(2) { --link-index: 2; }
#mobile-menu.mobile-menu-show .mobile-nav-link:nth-child(3) { --link-index: 3; }
#mobile-menu.mobile-menu-show .mobile-nav-link:nth-child(4) { --link-index: 4; }
#mobile-menu.mobile-menu-show .mobile-nav-link:nth-child(5) { --link-index: 5; }
#mobile-menu.mobile-menu-show .mobile-nav-link:nth-child(6) { --link-index: 6; }
#mobile-menu.mobile-menu-show .mobile-nav-link:nth-child(7) { --link-index: 7; }

#hamburger-btn {
  transition: transform 0.3s ease;
}

#hamburger-btn:hover {
  transform: scale(1.1);
}

#mobile-close-btn {
  transition: transform 0.3s ease;
}

#mobile-close-btn:hover {
  transform: scale(1.1);
}

/* Ensure mobile menu is properly positioned */
#mobile-menu {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
}

/* Mobile menu links styling */
.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(252, 249, 246, 0.2);
  width: 100%;
  max-width: 300px;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Countdown Timer Styles */
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  min-width: 80px;
}

.countdown-number {
  font-family: 'Dancing Script', cursive;
  font-size: 3.5rem;
  font-weight: 600;
  color: #fcf9f6;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, rgba(252, 249, 246, 0.1), rgba(203, 179, 150, 0.1));
  border: 2px solid rgba(252, 249, 246, 0.3);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.countdown-number:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(252, 249, 246, 0.5);
}

.countdown-label {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  color: #fcf9f6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.countdown-separator {
  font-family: 'Dancing Script', cursive;
  font-size: 3rem;
  font-weight: 400;
  color: #fcf9f6;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  opacity: 0.8;
  margin: 0 0.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Responsive countdown */
@media (max-width: 768px) {
  .countdown-container {
    gap: 0.75rem;
  }
  
  .countdown-item {
    min-width: 50px;
  }
  
  .countdown-number {
    font-size: 1.75rem;
    padding: 0.5rem 0.25rem;
  }
  
  .countdown-label {
    font-size: 0.7rem;
  }
  
  .countdown-separator {
    font-size: 1.25rem;
    margin: 0 0.2rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .countdown-container {
    gap: 0.5rem;
  }
  
  .countdown-item {
    min-width: 45px;
  }
  
  .countdown-number {
    font-size: 1.5rem;
    padding: 0.4rem 0.2rem;
  }
  
  .countdown-label {
    font-size: 0.65rem;
  }
  
  .countdown-separator {
    font-size: 1rem;
    margin: 0 0.15rem;
  }
}

.masonry-gallery {
  column-count: 1;
  column-gap: 1.5rem;
  column-fill: balance;
}

@media (min-width: 640px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-gallery {
    column-count: 2;
  }
}

@media (min-width: 1280px) {
  .masonry-gallery {
    column-count: 2;
  }
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Image Lightbox Modal */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal.hidden {
  display: none;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
}

.image-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 10000;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-modal-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fcf9f6;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.image-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.image-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fcf9f6;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
  backdrop-filter: blur(10px);
}

.image-modal-nav:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.image-modal-nav-prev {
  left: 1.5rem;
}

.image-modal-nav-next {
  right: 1.5rem;
}

.image-modal-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fcf9f6;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  .image-modal-nav {
    padding: 0.75rem 1rem;
  }
  
  .image-modal-nav-prev {
    left: 0.5rem;
  }
  
  .image-modal-nav-next {
    right: 0.5rem;
  }
  
  .image-modal-close {
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
  }
  
  .image-modal-content {
    max-width: 95vw;
  }
  
  .image-modal-img {
    max-height: 80vh;
  }
}

/* Fixed CTA Bar Spacing */
body {
  padding-bottom: 55px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 60px;
  }
}
