/* Smooth fade transitions for view switches */
.app-fade {
  transition: opacity 250ms ease;
}

.app-fade-out {
  opacity: 0 !important;
}

.app-fade-in {
  opacity: 1 !important;
}

/* Monogram overlay styling for hero */
.monogram-overlay {
  position: absolute;
  left: 50%;
  top: 38%; /* adjust to sit over names */
  transform: translate(-50%, -50%);
  z-index: 2; /* below the RSVP overlay */
  pointer-events: none;
}
.monogram-overlay img {
  width: clamp(120px, 22vw, 300px);
  opacity: 0.85; /* transparent look */
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

/* Ensure RSVP overlay sits above monogram */
.rsvp-hero-overlay {
  z-index: 3;
}

@media (max-width: 767.98px) {
  .monogram-overlay { top: 34%; }
  .monogram-overlay img { width: clamp(100px, 40vw, 200px); }
}

/* Handwriting script for hero names */
.hero-script-title {
  font-family: 'Mea Culpa', cursive;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.1;
}

/* Slightly larger for a graceful look on md+ */
@media (min-width: 768px) {
  .hero-script-title {
  font-size: 3.25rem; /* base fallback for other contexts */
  }
}

/* Monogram image above the hero names */
.hero-monogram {
  width: clamp(130px, 20vw, 220px);
  height: auto;
  display: inline-block;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

@media (min-width: 992px) {
  .hero-monogram {
    margin-bottom: 0.75rem;
  }
}

/* Larger sizes for the login hero title */
.rsvp-hero-overlay .hero-script-title {
  font-size: 2.75rem;
}

@media (min-width: 576px) {
  .rsvp-hero-overlay .hero-script-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 768px) {
  .rsvp-hero-overlay .hero-script-title {
    font-size: 4.25rem;
  }
}

@media (min-width: 992px) {
  .rsvp-hero-overlay .hero-script-title {
    font-size: 5rem;
  }
}

@media (min-width: 1200px) {
  .rsvp-hero-overlay .hero-script-title {
    font-size: 5.5rem;
  }
}
/* Updated Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Color Variables */
:root {
  --light-blue: #BFD7ED;
  --medium-blue: #A3BFD9;
  --dark-blue: #2D5D7B;
  --light-gray: #E5E5E5;
  --medium-gray: #CCCCCC;
  --dark-gray: #4F4F4F;
  --off-white: #F8F8F8;
  --white: #FFFFFF;
  
  /* Font families */
  --font-decorative: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  background-color: var(--off-white);
  color: var(--dark-gray);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-decorative);
  font-weight: 500;
}

/* Decorative headers */
.title-decorative {
  font-family: var(--font-decorative);
  font-size: 3rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--dark-blue);
}

/* Login page styling */
#background-container {
  background-position: center center;
  background-size: cover;
  filter: brightness(0.9);
}

.login-container {
  z-index: 1;
}

.login-container .card {
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.login-container .card-body {
  padding: 3rem;
}

.login-container .title-decorative {
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.login-container p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dark-gray);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--medium-blue), transparent);
  margin: 1.5rem auto;
  width: 60%;
}

/* Custom button styles */
.btn-primary {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 1px;
  padding: 10px 25px;
  transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--medium-blue);
  border-color: var(--medium-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: var(--dark-blue);
  border-color: var(--dark-blue);
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 1px;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--dark-blue);
  color: white;
  transform: translateY(-2px);
}

/* Form controls */
.form-control {
  border-radius: 0;
  padding: 12px;
  border: 1px solid var(--medium-gray);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--medium-blue);
  box-shadow: 0 0 0 0.25rem rgba(163, 191, 217, 0.25);
}

.form-control.form-control-lg {
  font-size: 1.2rem;
  padding: 15px;
}

/* Navigation */
.navbar {
  background-color: var(--white) !important;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-size: 1.8rem;
  color: var(--dark-blue) !important;
}

.nav-link {
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--dark-gray) !important;
  padding: 0.8rem 1.2rem !important;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--dark-blue) !important;
}

/* Ensure navbar is collapsed by default on mobile */
@media (max-width: 991.98px) {
  /* Hide collapsed menu unless explicitly shown by the toggler */
  .navbar .navbar-collapse.collapse {
    display: none !important;
  }
  .navbar .navbar-collapse.collapse.show {
    display: block !important;
  }
  /* Make sure the toggler is visible */
  .navbar .navbar-toggler {
    display: inline-block !important;
  }
}

/* Compact navbar on mobile: reduce space usage */
@media (max-width: 575.98px) {
  /* Reduce overall navbar padding and bottom margin */
  .navbar {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }
  .navbar.sticky-top {
    margin-bottom: 0.5rem !important; /* override mb-4 on phones */
  }
  /* Smaller brand size */
  .navbar .navbar-brand {
    font-size: 1.35rem; /* was ~1.8rem */
    line-height: 1.1;
    padding-top: 0;
    padding-bottom: 0;
  }
  /* Tighter toggler */
  .navbar .navbar-toggler {
    padding: 0.25rem 0.4rem;
    font-size: 1rem; /* default ~1.25rem */
    line-height: 1;
    border-radius: 0.2rem;
  }
  /* Compact collapsed menu */
  .navbar .navbar-collapse {
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
  }
  .navbar .navbar-collapse.show {
    max-height: 60vh;        /* avoid taking the whole screen */
    overflow-y: auto;        /* allow scrolling if many items */
  }
  /* Smaller links only when expanded */
  .navbar .navbar-collapse.show .nav-link {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  /* Dropdown menu compact */
  .navbar .navbar-collapse.show .dropdown-menu {
    padding: 0.25rem 0.25rem;
    font-size: 0.9rem;
  }
  .navbar .navbar-collapse.show .dropdown-item {
    padding: 0.35rem 0.75rem;
  }

  /* Restore roomier link padding when not expanded */
  .navbar .navbar-collapse:not(.show) .nav-link {
    padding: 0.8rem 1.2rem !important;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
}

/* Slightly compact on small tablets as well */
@media (min-width: 576px) and (max-width: 767.98px) {
  .navbar .navbar-brand { font-size: 1.5rem; }
  .navbar .nav-link { padding: 0.6rem 0.9rem !important; }
  .navbar.sticky-top { margin-bottom: 0.75rem !important; }
}

/* Main content styling */
.wedding-content {
  padding: 2rem 0;
}

/* Hero section */
.hero-section {
  margin-bottom: 4rem;
  padding: 3rem 0;
}

.hero-section .date {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.hero-section .invitation-text {
  font-family: var(--font-decorative);
  font-size: 2.2rem;
  color: var(--dark-blue);
  font-weight: 500;
  margin-top: 1.5rem;
}

/* Section titles */
.section-title {
  font-family: var(--font-decorative);
  font-size: 2.2rem;
  color: var(--dark-blue);
  margin-bottom: 2rem;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--medium-blue);
  margin: 1rem auto 0;
}

/* Timeline */
.timeline-container {
  background-color: var(--white);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.day-title {
  font-family: var(--font-decorative);
  font-size: 1.8rem;
  color: var(--dark-blue);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.event-card {
  padding: 1.5rem;
  background-color: var(--off-white);
  margin-bottom: 1rem;
  border-left: 4px solid var(--medium-blue);
}

.event-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.event-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.event-details {
  margin-bottom: 1rem;
}

.event-details p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Info cards */
.info-card {
  background-color: var(--white);
  padding: 2rem;
  height: 100%;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Contact cards */
.contact-card {
  background-color: var(--white);
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.contact-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

/* FAQ accordion */
.accordion-item {
  border: none;
  margin-bottom: 0.5rem;
}

.accordion-button {
  background-color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.2rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--dark-gray);
}

.accordion-button:not(.collapsed) {
  color: var(--dark-blue);
  background-color: var(--off-white);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--medium-gray);
}

.accordion-button::after {
  background-size: 1.2rem;
  transition: all 0.3s ease;
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--off-white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .title-decorative {
    font-size: 2.2rem;
  }
  
  .hero-section .invitation-text {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .day-title {
    font-size: 1.5rem;
  }
  
  .timeline-container, .info-card, .contact-card {
    padding: 1.5rem;
  }
}
