:root {
  --ivory: #EDE8E2;
  --champagne: #EAD5C4;
  --rose-gold: #D3A5A5;
  --taupe: #A78B88;
  --mauve: #B47377;
}
html {scroll-behavior: smooth;}
body {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background-image: url('../pictures/rosegold-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
h1, h2, h3, h4, h5, h6, .w3-bar-item, .w3-button {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.w3-bar-item.w3-button:hover {
  background-color: var(--rose-gold) !important;
  color: #fff !important;
}

h1 { text-align: center; font-size: clamp(26px, 7vw, 60px); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
h2 { font-size: clamp(28px, 6vw, 52px); }
h3 { font-size: clamp(22px, 4vw, 36px); }
h4 { font-size: clamp(20px, 4.5vw, 34px); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); }
h5 { font-size: clamp(18px, 3.5vw, 28px); }

/* Underline for section headers starting from Venue */
#venue h1::after,
#rsvp h1::after,
#theme h1::after,
#accommodation h1::after,
#contact h1::after {
  content: "";
  display: block;
  width: 60px;
  height: 6px;
  background-color: var(--mauve);
  margin: 12px auto 0;
}

.w3-content.main-bg { background-color: var(--ivory); }

.invite-bg {
  background-image: url('../pictures/top-flowers.png'), url('../pictures/bg-invite2.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: left 60%, center;
  background-size: clamp(250px, 25vw, 450px) auto, cover;
}

.hero-text {
  background-color: rgba(237, 232, 226, 0.7); /* Ivory with transparency */
  color: #000;
  display: inline-block;
  font-size: clamp(18px, 5vw, 36px);
}
.custom-button {
  background-color: var(--mauve);
  background-image: url('../pictures/button-off.jpg');
  background-size: cover;
  background-position: center;
  color: #fff !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.custom-button:hover {
  background-color: var(--rose-gold) !important;
  background-image: url('../pictures/button-on.jpg') !important;
  color: #000 !important;
  box-shadow: none !important;
}
.custom-hr { border-top: 2px solid var(--rose-gold); }
.venue-map { width: 100%; height: 300px; border: 0; display: block; }
.bg-champagne { 
  background-color: var(--champagne); 
}

#venue,
#contact {
  background-image: url('../pictures/venue-bg.jpg');
  background-repeat: no-repeat;
  background-position: left top;
}

#contact .w3-card {
  background-color: var(--ivory);
}

#rsvp {
  background-image: url('../pictures/rsvp-bg.jpg'), url('../pictures/rsvp-bg-bottom.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: right top, bottom;
}

#accommodation {
  background-image: url('../pictures/acc-bg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.map-container {
  position: relative;
  width: 100%;
  height: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rsvp-form { 
  width: 100%; 
  /* Variable height: 150% of viewport height, but never less than 1200px or more than 1600px */
  height: clamp(1200px, 150vh, 1600px); 
  border: 0; 
  overflow: hidden; 
}

.invite-names {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  display: block;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.serif-text {
  font-family: "Playfair Display", serif;
  font-size: clamp(19px, 1.8vw, 26px);
}

.event-date {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(14px, 3.5vw, 36px);
  letter-spacing: 8px;
  margin: 24px 0;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .event-date {
    letter-spacing: 3px;
  }
  .invite-bg {
    background-position: left 70%, center;
  }
}

.event-time {
  font-family: "Montserrat", sans-serif;
}

#mySidebar {
  background-color: var(--ivory);
  color: var(--taupe);
}

.ampersand {
  color: var(--mauve);
}

.text-mauve {
  color: var(--mauve);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.venue-subtitle {
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.25);
}

.venue-img {
  border: 4px solid #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.color-palette {
  display: flex;
  justify-content: space-evenly;
  gap: 40px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.color-ribbon {
  width: 55px;
  height: 90px;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 85%, 0% 100%);
}

.ribbon-container {
  /* Applying the filter to the container prevents the clip-path from cutting off the shadow */
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.5)) 
          drop-shadow(0 8px 12px rgba(0,0,0,0.45));
  display: inline-block;
}

.hotel-item {
  display: flex;
  align-items: flex-start;
  background-color: var(--champagne);
  transition: background-color 0.3s ease;
  border: 1px solid #000 !important;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hotel-item:hover {
  background-color: var(--ivory);
}

.hotel-thumb {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #ddd;
  flex-shrink: 0;
}

.venue-contact-info {
  font-size: clamp(16px, 3vw, 20px);
}

.theme-bg {
  background-image: url('../pictures/theme-bg.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.theme-tagline {
  font-size: clamp(20px, 4vw, 32px);
  margin-bottom: 24px;
}

.keep-together {
  display: inline-block;
  white-space: nowrap;
}

.gift-message-primary {
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2.5vw, 22px);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.gift-message-secondary {
  font-size: clamp(15px, 2vw, 18px);
}

.main-footer {
  background-color: var(--taupe); /* Fallback color */
  background-image: url('../pictures/footer-bg2.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  max-width: 1600px;
  margin: auto;
}

.hotel-item a {
  color: var(--mauve);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s;
}

.hotel-item a:hover {
  color: var(--rose-gold);
}

.external-icon {
  margin-left: 5px;
}

/* Circular Reveal Overlay */
#reveal-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  box-shadow: 0 0 100px 150vmax var(--rose-gold); /* Added blur to the expanding edge */
  z-index: 10000;
  pointer-events: none; /* Prevents blocking clicks during animation */
  animation: circularReveal 2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes circularReveal {
  0% { width: 0; height: 0; opacity: 1; }
  70% { opacity: 1; }
  100% { width: 250vmax; height: 250vmax; opacity: 0; visibility: hidden; }
}