/* ================================================
   WEDDING WEBSITE - INFORMATION PAGE STYLES
   Styles specific to the information/details page
   ================================================ */

/* ================================================
   RIBBON HEADER SYSTEM - SIMPLE VERSION
   ================================================ */

/* Simple Ribbon Header - Just the image */
.ribbon-header-simple {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 4rem 0 3rem 0;
  width: 100vw;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 0 1rem;
}

.ribbon-header-simple .ribbon-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Peach theme - scale down to 70% */
.ribbon-header-simple.peach-theme .ribbon-image {
  max-width: 840px; /* 70% of 1200px */
}

/* Peach theme - move date down more */
.ribbon-header-simple.peach-theme .ribbon-subtitle {
  margin-top: 2rem;
}

/* Ribbon subtitle text */
.ribbon-header-simple .ribbon-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: #000000;
  text-align: center;
  margin: 1rem 0 0 0;
  opacity: 0.9;
}

/* Responsive sizing */
@media (max-width: 992px) {
  .ribbon-header-simple {
    margin: 3rem 0 2rem 0;
  }
  
  .ribbon-header-simple .ribbon-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .ribbon-header-simple {
    margin: 2rem 0 1.5rem 0;
    padding: 0 0.5rem;
  }
  
  .ribbon-header-simple .ribbon-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .ribbon-header-simple {
    margin: 1.5rem 0 1rem 0;
    padding: 0 0.25rem;
  }
  
  .ribbon-header-simple .ribbon-subtitle {
    font-size: 0.9rem;
  }
}

/* ================================================
   OLD RIBBON HEADER SYSTEM (DEPRECATED)
   Keep for reference or remove after testing
   ================================================ */

/* Base Ribbon Header Container */
.ribbon-header-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4rem 0 3rem 0;
  padding: 3rem 1rem;
  min-height: 300px;
  width: 100vw;
  left: 50%;
  right: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}

/* Ribbon Banner */
.ribbon-banner {
  position: relative;
  background-image: var(--ribbon-image, url('/assets/img/peach_ribbon.webp'));
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  padding: 1rem 3rem;
  margin-bottom: 1rem;
  width: 70%;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

/* Ribbon Text */
.ribbon-text {
  margin: 0;
  font-family: var(--fancy-font);
  font-size: 4rem;
  font-weight: 400;
  color: #000000;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  transform: translateY(-20px);
}

/* Blue Theme Ribbon Text - Specific styling */
.blue-theme .ribbon-text {
  transform: translateY(20px);
}

/* Peach Theme Ribbon Text - Move up 50px */
.peach-theme .ribbon-text {
  transform: translateY(-130px);
}

/* Ribbon Subtitle */
.ribbon-subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 300;
  color: #000000;
  text-align: center;
  margin: 0;
  opacity: 0.9;
  transform: translateY(-50px);
}

/* Peach Theme Ribbon Subtitle - Move up 50px */
.peach-theme .ribbon-subtitle {
  transform: translateY(-200px);
}

/* Bird Decorations */
.bird-left,
.bird-right {
  position: absolute;
  top: 2%;
  width: 280px;
  height: 400px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

.bird-left {
  left: -20px;
}

.bird-right {
  right: -20px;
}

/* ================================================
   COLOR THEME VARIANTS
   ================================================ */

/* Blue Theme (Macaws) */
.blue-theme {
  --ribbon-image: url('/assets/img/blue_ribbon.webp');
}

.blue-theme .bird-left {
  background-image: url('/assets/img/macaw_left.webp');
}

.blue-theme .bird-right {
  background-image: url('/assets/img/macaw_right.webp');
}

/* Peach Theme (Swallows) */
.peach-theme {
  --ribbon-image: url('/assets/img/peach_ribbon.webp');
}

.peach-theme .ribbon-banner {
  background-size: 100% auto;
  height: 460px;
}

.peach-theme .bird-left {
  background-image: url('/assets/img/swallow_left.webp');
  width: 140px;
  height: 200px;
  left: 15%;
}

.peach-theme .bird-right {
  background-image: url('/assets/img/swallow_right.webp');
  width: 140px;
  height: 200px;
  right: 15%;
}

/* Pink Theme (Peacocks) */
.pink-theme {
  --ribbon-image: url('/assets/img/pink_ribbon.webp');
}

.pink-theme .bird-left {
  background-image: url('/assets/img/peacock_left.webp');
}

.pink-theme .bird-right {
  background-image: url('/assets/img/peacock_right.webp');
}

/* ================================================
   MOBILE RESPONSIVENESS
   ================================================ */

/* Tablet and smaller desktop */
@media (max-width: 992px) {
  .ribbon-header-container {
    margin: 3rem 0 2rem 0;
    padding: 1.5rem 1rem;
    min-height: 150px;
  }

  .ribbon-banner {
    padding: 0.8rem 2.5rem;
  }

  .ribbon-text {
    font-size: 2rem;
  }

  .ribbon-subtitle {
    font-size: 1.1rem;
  }

  .bird-left,
  .bird-right {
    width: 150px;
    height: 200px;
    opacity: 0.6;
  }

  .bird-left {
    left: -60px;
  }

  .bird-right {
    right: -60px;
  }

  /* Peach theme swallows - 50% smaller on tablet */
  .peach-theme .bird-left,
  .peach-theme .bird-right {
    width: 75px;
    height: 100px;
  }
}

/* Mobile landscape and smaller tablets */
@media (max-width: 768px) {
  .ribbon-header-container {
    margin: 2.5rem 0 1.5rem 0;
    padding: 1rem;
    min-height: 120px;
  }

  .ribbon-banner {
    width: 70%;
    height: 100px;
    padding: 0.5rem 1.5rem;
  }

  .ribbon-text {
    font-size: 1.8rem;
  }

  /* Blue theme ribbon text - move up 30px on mobile */
  .blue-theme .ribbon-text {
    transform: translateY(-30px);
  }

  /* Blue theme ribbon subtitle - move up 10px on mobile */
  .blue-theme .ribbon-subtitle {
    transform: translateY(-10px);
  }

  /* Peach theme - The Wedding day down 30px total on mobile */
  .peach-theme .ribbon-text {
    transform: translateY(-70px); /* Was -100px, now -70px (down 30px total) */
  }

  /* Peach theme - Saturday subtitle down 100px total and on top of ribbon */
  .peach-theme .ribbon-subtitle {
    transform: translateY(-50px); /* Was -150px, now -50px (down 100px total) */
    z-index: 5; /* Higher than ribbon banner z-index: 3 */
    position: relative;
  }



  .ribbon-subtitle {
    font-size: 1rem;
  }

  .bird-left,
  .bird-right {
    width: 120px;
    height: 150px;
    opacity: 0.5;
  }

  .bird-left {
    left: 5%;
  }

  .bird-right {
    right: 5%;
  }

  /* Peach theme swallows - 50% smaller on mobile */
  .peach-theme .bird-left,
  .peach-theme .bird-right {
    width: 60px;
    height: 75px;
  }
}

/* Mobile portrait */
@media (max-width: 576px) {
  .ribbon-header-container {
    margin: 2rem 0 1rem 0;
    padding: 0.8rem 0.5rem;
    min-height: 100px;
  }

  .ribbon-banner {
    width: 70%;
    height: 80px;
    padding: 0.4rem 1rem;
  }

  .ribbon-text {
    font-size: 1.5rem;
  }

  .ribbon-subtitle {
    font-size: 0.9rem;
  }

  .bird-left,
  .bird-right {
    width: 100px;
    height: 120px;
    opacity: 0.4;
  }

  .bird-left {
    left: 2%;
  }

  .bird-right {
    right: 2%;
  }

  /* Peach theme swallows - 50% smaller on small mobile */
  .peach-theme .bird-left,
  .peach-theme .bird-right {
    width: 50px;
    height: 60px;
  }
}

/* Extra small mobile devices */
@media (max-width: 400px) {
  .ribbon-header-container {
    margin: 1.5rem 0 0.8rem 0;
    min-height: 80px;
  }

  .ribbon-banner {
    width: 70%;
    height: 70px;
    padding: 0.3rem 0.8rem;
  }

  .ribbon-text {
    font-size: 1.3rem;
  }

  .ribbon-subtitle {
    font-size: 0.8rem;
  }

  .bird-left,
  .bird-right {
    width: 28px;
    height: 28px;
  }

  .bird-left {
    left: 1%;
  }

  .bird-right {
    right: 1%;
  }
}

/* ================================================
   ADDITIONAL UTILITY STYLES FOR INFORMATION PAGES
   ================================================ */

/* Section spacing for information pages */
.info-section {
  margin-bottom: 3rem;
  position: relative;
}

/* Content containers that work well with ribbon headers */
.wedding-content {
  background: transparent;
  padding: 0 1rem;
}

/* Event cards that work with the ribbon theme */
.event-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.event-card h3 {
  font-family: var(--font-decorative);
  color: #000000;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Override h3 styling when title-decorative class is used */
h3.title-decorative {
  font-family: var(--fancy-font);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000000;
}

.event-card h4 {
  font-family: var(--font-decorative);
  color: #000000;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: bold;
}

.event-card h5 {
  font-family: var(--font-decorative);
  color: #000000;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.event-card p {
  color: #000000;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.event-card p:last-child {
  margin-bottom: 0;
}

/* Welcome Drinks specific styling with background image */
.welcome-drinks-card {
  background-image: url('../img/green_mountain_background.webp') !important;
  background-size: 100% auto !important;
  background-position: top center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  position: relative;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  /* Make it full width like ribbon headers */
  width: 100vw !important;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  padding: 2rem 15% !important;
  padding-bottom: 4rem !important;
  box-sizing: border-box;
  min-height: 600px;
}

/* Remove background from nested event cards inside welcome drinks */
.welcome-drinks-card .event-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 2rem 0 !important;
}

/* Wedding Day section with background image */
.wedding-day-background {
  background-image: url('../img/green_to_yellow_background.webp');
  background-size: contain;
  background-position: top center;
  background-repeat: repeat-y;
  padding: 2rem 0;
  position: relative;
  /* Make it full width like ribbon headers */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  /* Prevent blurriness */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Make event cards transparent inside wedding day background */
.wedding-day-background .event-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Travel & Accommodation section with background color */
.travel-accommodation-background {
  background-color: #ebb0a0;
  padding: 2rem 0;
  position: relative;
  /* Make it full width */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* Remove background from event cards inside travel & accommodation */
.travel-accommodation-background .event-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* FAQ & Contacts section with background color */
.faq-contacts-background {
  background-color: #5084a0;
  padding: 2rem 0 4rem 0;
  position: relative;
  /* Make it full width */
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* Remove background from event cards inside FAQ & contacts */
.faq-contacts-background .event-card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Style specific main section headings with decorative font - only the ones you mentioned */
/* Welcome Drinks heading */
.welcome-drinks-card > .row > .col-md-6 > h3:first-of-type {
  font-family: var(--fancy-font);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000000 !important;
  margin-bottom: 1.5rem;
}

/* Dress Code heading (inside welcome drinks card) */
.welcome-drinks-card > .event-card > h3 {
  font-family: var(--fancy-font);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000000 !important;
  margin-bottom: 1.5rem;
}

/* Venue Information heading */
.venue-with-map > .row > .col-md-6 > h3:first-of-type {
  font-family: var(--fancy-font);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000000 !important;
  margin-bottom: 1.5rem;
}

/* Dress Code: Smoking (Optional) and Photography Policy - side by side layout */
.wedding-day-background section + .container > .event-card.dress-photo-policies > .row > .col-md-6 > h3:first-of-type {
  font-family: var(--fancy-font);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000000 !important;
  margin-bottom: 1.5rem;
}

/* h4 headings within Dress Code and Photography Policy sections */
.wedding-day-background section + .container > .event-card.dress-photo-policies h4 {
  font-family: var(--fancy-font);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000000 !important;
}

/* Travel & Transportation and Accommodation headings */
.travel-accommodation-background > .container > h3 {
  font-family: var(--fancy-font);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000000 !important;
  margin-bottom: 1.5rem;
}

/* Accommodation divider line */
.accommodation-divider,
.section-divider {
  border: none;
  border-top: 3px solid #000000;
  width: 100vw;
  margin: 1.5rem 0 2rem 0;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* FAQ heading */
.faq-contacts-background .info-section > h3 {
  font-family: var(--fancy-font);
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000000 !important;
  margin-bottom: 1.5rem;
}

/* Contacts heading */
.faq-contacts-background h2.title-decorative {
  color: #000000 !important;
}

/* Remove bottom margin from last element in FAQ & Contacts section */
.faq-contacts-background .mb-5 {
  margin-bottom: 0 !important;
}

/* Keep other h3 and h4 elements black on blue background */
.faq-contacts-background h3:not(.info-section > h3),
.faq-contacts-background h4 {
  color: #000000;
}


.faq-contacts-background p,
.faq-contacts-background .accordion-button {
  color: #000000;
}

/* Map containers */
.map-container {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Venue with map side-by-side layout */
.venue-with-map .map-container {
  height: 100%;
  min-height: 350px;
  margin: 0;
}

.venue-with-map .row {
  align-items: stretch;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .venue-with-map .map-container {
    min-height: 300px;
    margin-top: 1.5rem;
  }
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Accordion styling for FAQ sections */
.accordion-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px !important;
  margin-bottom: 0.5rem;
}

.accordion-button {
  background-color: rgba(255, 255, 255, 0.95);
  color: #000000;
  font-family: var(--font-decorative);
  font-weight: 500;
  border-radius: 8px !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--light-blue);
  color: #000000;
}

.accordion-body {
  background-color: rgba(255, 255, 255, 0.98);
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Mobile responsiveness for content */
@media (max-width: 768px) {
  .wedding-content {
    padding: 0 0.5rem;
  }

  .event-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .event-card h3 {
    font-size: 1.3rem;
  }

  .event-card h4 {
    font-size: 1.2rem;
  }

  .event-card h5 {
    font-size: 1rem;
  }

  .map-container {
    height: 250px;
    margin: 1rem 0;
  }
}

@media (max-width: 576px) {
  .event-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .event-card h3 {
    font-size: 1.2rem;
  }

  .event-card h4 {
    font-size: 1.1rem;
  }

  .map-container {
    height: 200px;
  }
}