@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap');

/* Standard text sizes */
.text-xs {
  font-size: 1rem;
  /* 12px */
}

.text-sm {
  font-size: 1.125rem;
  /* 14px */
}

.text-md {
  font-size: 1.25rem;
  /* 16px */
}

.text-lg {
  font-size: 1.5rem;
  /* 20px */
}

.text-header {
  font-size: 1.75rem;
  font-weight: bold;
}

.text-title {
  /* This will fluidly scale the font size between 2rem and 3.25rem based on viewport width */
  font-size: clamp(2rem, 1rem + 4vw, 3.25rem);
  font-weight: 700;
}

.text-underline {
  text-decoration: underline;
}

.mb-2 {
  margin-bottom: 2rem;
}

button {
  background-color: transparent;
  border: none;
}

button:active {
  transform: translateY(0.5px);
  box-shadow: var(--warm-grey) 0 2px 6px;
  background-color: transparent;
  border: none;
}


.btn-outline {
  background-color: transparent;
  border: 2px solid var(--charcoal);
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  color: var(--charcoal);
  cursor: pointer;
}

:root {
  /* --white: #f3e8d2; */
  /* --white: #d4d994; */
  --white: #7a8450;
  --charcoal: #2c2c2c;
  --charcoal-2: #2c2c2c80;
  --charcoal-3: #f9cdd5;
  --warm-grey: #9aa767;
  --bg: var(--white);
  --text: var(--charcoal-3);
  --muted: var(--charcoal-2);
  --primary: var(--warm-grey);
  --primary-600: #8e857a;
  --ring: #e7dccf;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.05);
  --input-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.text-charcoal {
  color: var(--charcoal-3);
}

body {
  color: var(--charcoal-3);
  background: radial-gradient(1000px 600px at 50% -20%, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0) 60%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.018), rgba(0, 0, 0, 0.018) 1px, transparent 1px, transparent 3px),
    var(--white);
  font-size: 1.25rem;
}

* {
  font-family: "Dancing Script", cursive, serif;
}



section {
  padding: 2rem 0;
}

.copy-button {
  position: relative;
  color: var(--charcoal-3);
}

.margin-x-auto {
  margin-left: auto;
  margin-right: auto;
}

.is-mobile {
  display: none;
}

.hamburger-nav {
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 100;
  padding: 0.5rem 1rem;
}

.nav-button {
  color: var(--navbar);
  text-decoration: none;
}

.logo {
  font-size: 2rem;
  text-decoration: none;
}

.nav-panel {
  display: flex;
  gap: 1rem;
  background: var(--bg);

}

.notification {
  position: absolute;
  background-color: var(--warm-grey);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  font-weight: 500;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--warm-grey) transparent transparent transparent;
}

.hamburger {
  position: relative;
  width: 1.5em;
  height: 1.5em;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease-in-out;
  z-index: 100;
}

.hamburger_btn {
  width: 1.5rem;
  height: 0.2rem;
  background: var(--charcoal-2);
  transition: all 0.5s ease-in-out;
  border-radius: 5px;
}

.hamburger_btn::after {
  content: '';
  background: var(--charcoal-2);
  position: absolute;
  width: 1.5rem;
  height: 0.2rem;
  transition: all 0.5s ease-in-out;
  transform: translateY(-0.5rem);

}

.hamburger_btn::before {
  content: '';
  background: var(--charcoal-2);
  position: absolute;
  width: 1.5rem;
  height: 0.2rem;
  transition: all 0.5s ease-in-out;
  transform: translateY(0.5rem);
}

/* Hamburger animation */

.hamburger.open .hamburger_btn {
  transform: translateX(-50px);
  background: transparent;
}

.hamburger.open .hamburger_btn::before {
  transform: rotate(45deg) translate(35px, -35px)
}

.hamburger.open .hamburger_btn::after {
  transform: rotate(-45deg) translate(35px, 35px)
}

.nav-panel a {
  color: var(--navbar);
  position: relative;
  display: inline-block;
}

.nav-panel a:hover {
  color: var(--hover_link);
}

.nav-panel a::after {
  content: "";
  position: absolute;
  background-color: var(--hover_link);
  height: 3px;
  width: 0%;
  left: 0%;
  top: 100%;
  transition: 0.3s ease-in-out;
}

.nav-panel a:hover::after {
  width: 100%;
}

.visible {
  display: flex;
}


.invisible {
  display: none;
}


.names {
  letter-spacing: .2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0 1rem;
  /* Fluid typography that scales with viewport width */
  font-size: clamp(2rem, 1rem + 4vw, 3.25rem);
}

.and {
  opacity: .7;
  margin: 0 6px;
  display: inline-block;
}

.divider {
  height: 6rem;
  /* aspect-ratio: 30/8; */
  display: block;
  margin: 0 auto;
  opacity: 0.9
}

.hero-video {
  max-height: 300px;
}

.hero {
  display: grid;
  place-items: center;
}

.normal-margin {
  margin-right: 2rem;
  margin-left: 2rem
}

.navigation-bar {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  max-width: 600px
}

.navigation-bar h1 {
  width: 33%;
  display: flex;
  justify-content: center;
}

.flex-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.date {
  display: flex;
  align-items: center;
  font-weight: bold;
}


.paper-bg {
  background-image: url(assets/paper-bg2.png);
  background-size: 110% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  transform: rotate(random(-4deg, 4deg, 2deg));
  color: #893941;
  text-align: center;
}

.guess-name-placeholder {
  font-weight: bold;
}

.save-the-date {
  margin: 0px;
  padding: 0px;
}

#locations {
  margin-bottom: 0px;
  padding-bottom: 0px
}

#location-options label {
  padding: 0 1rem;
}

.bank-details {
  /* text-align: center; */
  width: fit-content;
}

.bank-detail-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.qr {
  margin: 0.5rem;
}

/* --- Layout --- */
.options-fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0;
  padding-top: 1rem;
  margin: 0;
}

/* --- Button-like labels --- */
.options-fieldset>label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 56px;
  padding: 12px 16px;
  color: var(--charcoal, #2c2c2c);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: transform .12s ease, background .2s ease;
}

/* Hide input visually */
.options-fieldset input[type="radio"],
.options-fieldset input[type="checkbox"] {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.options-fieldset>label:active {
  transform: translateY(0);
}

/* Brush ring */
.options-fieldset>label::after {
  content: "";
  position: absolute;
  inset: 0px;
  pointer-events: none;
  opacity: 0;
  transform: scale(.92) rotate(90deg);
  transition: opacity .25s ease, transform .3s ease;

  background-image: url("assets/circle2.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

/* Show when checked */
.options-fieldset>label:has(input:checked)::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}


.calendar-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: var(--white);
  min-width: 200px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  top: 100%;
  left: 0;
  margin-top: 2px;
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.dropdown-menu[aria-hidden='false'] {
  display: block;
}

.calendar-option {
  margin: 0;
}

.calendar-link {
  padding: 12px 16px;
  text-decoration: none;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--warm-grey);
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.calendar-option:last-child .calendar-link {
  border-bottom: none;
}

.calendar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-icon {
  color: var(--charcoal);
}

.map-icon>span {
  margin-top: auto;
  margin-bottom: auto;
  font-size: 2rem;
}

.location {
  display: flex;
  flex-direction: column;
}

.location h1 {
  margin-bottom: 8px;
}

.address {
  padding: 0 2rem;
  margin: auto;
  text-decoration: none;
}

.address-image {
  width: 100%;
}

/* 
.address-image img {
  max-height: 70vh;
  aspect-ratio: 16/9;
  display: block;
} */

.blended-image {
  mask: radial-gradient(circle at center, black 60%, transparent 100%);
  -webkit-mask: radial-gradient(circle at center, black 60%, transparent 100%);
}

/* More elegant single gradient approach */
.fade-all-edges {
  mask: radial-gradient(ellipse at center,
      black 0%,
      black 70%,
      transparent 90%);
  -webkit-mask: radial-gradient(ellipse at center,
      black 0%,
      black 70%,
      transparent 90%);
}

.fade-vertical {
  mask: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.fade-both {
  mask: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 5%, black 85%, transparent 100%);
  -webkit-mask: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 5%, black 85%, transparent 100%);

  /* Intersect the two masks */
  mask-composite: intersect;
  -webkit-mask-composite: destination-in;
}

.header {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
  /* flex: 1 1 0; */
}

.row {
  display: flex;
  flex-direction: row;
}

.col {
  display: flex;
  flex-direction: column;
}

/* Envelope overlay */
.envelope-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--warm-grey);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: all;
}

.envelope-overlay.revealed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.envelope-container {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.envelope-container:hover:not(.opening) {
  transform: scale(1.02);
}

.envelope {
  width: 280px;
  height: 180px;
  position: relative;
  perspective: 1000px;
  animation: tilt 4s infinite;
}

/* Envelope back (main body) */
.envelope-back {
  width: 100%;
  height: 100%;
  background: var(--white);
  border: 2px solid var(--charcoal);
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(44, 44, 44, 0.3);
  position: relative;
  overflow: hidden;
}

.envelope-back::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 25px;
  right: 25px;
  height: 2px;
  background: var(--charcoal);
  opacity: 0.3;
}

.envelope-back::after {
  content: '';
  position: absolute;
  top: 35px;
  left: 25px;
  right: 60px;
  height: 2px;
  background: var(--charcoal-2);
  opacity: 0.2;
}

/* Envelope flap (top triangular part) */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  background: var(--white);
  border: 2px solid var(--charcoal);
  border-bottom: none;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0%;
  transition: all 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 2;
  box-shadow: 0 5px 20px var(--charcoal-2);
}

/* Inner shadow for depth */
.envelope-flap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      transparent 0%,
      var(--charcoal) 100%);
  opacity: 0.2;
  clip-path: inherit;
}

/* Opened state */
.envelope-container.opening .envelope-flap {
  transform: rotateX(-180deg);
  box-shadow: 0 -5px 20px rgba(44, 44, 44, 0.2);
}

/* Letter peek effect */
.letter-content {
  position: absolute;
  top: 30px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: var(--white);
  border: 1px solid var(--charcoal-2);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  box-shadow: inset 0 0 10px rgba(44, 44, 44, 0.1);
  z-index: 1;
}

.letter-content::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  height: 2px;
  background: var(--charcoal);
  opacity: 0.4;
}

.letter-content::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 15px;
  right: 30px;
  height: 2px;
  background: var(--charcoal);
  opacity: 0.3;
}

.envelope-container.opening .letter-content {
  opacity: 1;
  transform: translateY(0);
}

.click-instruction {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--charcoal);
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(243, 232, 210, 0.5);
  width: 100%;
  text-align: center;
}

@keyframes tilt {

  0%,
  100% {
    opacity: 0.9;
    transform: rotate(-5deg) scale(1);
  }

  25% {
    transform: rotate(5deg) scale(1.05);
    opacity: 1;
  }

  50% {
    transform: rotate(-5deg) scale(1.05);
    opacity: 1;
  }

  75% {
    transform: rotate(5deg) scale(1.05);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sparkle particles */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 6px var(--white);
}

@keyframes sparkleFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.3) rotate(180deg);
  }
}

/* Envelope seal (optional decorative element) */
.envelope-seal {
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--charcoal);
  border-radius: 50%;
  z-index: 3;
  transition: all 0.8s ease;
  opacity: 0.8;
  box-shadow: 0 2px 8px rgba(44, 44, 44, 0.3);
}

.envelope-container.opening .envelope-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
}



#contactForm {
  display: flex;
  flex-direction: column;
  max-width: 700px;
}

#contactForm .form-group {
  display: grid;
  gap: .5rem;
  margin-bottom: 1rem;
}

#contactForm label {
  font-size: 1.25rem;
  color: var(--text);
  font-weight: 600;
}

#contactForm input[type="text"],
#contactForm input[type="tel"],
#contactForm textarea,
#contactForm fieldset #contactForm select {
  width: 100%;
  appearance: none;
  border: 1px solid #e7e0d7;
  background: #fff;
  color: var(--charcoal);
  border-radius: 10px;
  padding: .75rem .9rem;
  line-height: 1.35;
  box-shadow: var(
  --input-shadow);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

#contactForm textarea {
  resize: vertical;
  min-height: 120px;
}

#contactForm input:focus-visible,
#contactForm textarea:focus-visible,
#contactForm select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring), var(--input-shadow);
}

#contactForm input:invalid,
#contactForm textarea:invalid,
#contactForm select:invalid {
  border-color: #e7c1b2;
}

#attendance-options {
  display: flex;
  gap: 1rem;
}

/* ===============================
   Button
=================================*/
#contactForm button[type="submit"]:active {
  transform: translateY(1px);
}

/* ===============================
   Response Message
=================================*/
#responseMessage {
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--text);
}

#responseMessage.success {
  color: #2f7a4f;
}

#responseMessage.error {
  color: #a0483a;
}

#rsvp {
  padding: 0 0;
}

/* ===============================
   Desktop Layout
=================================*/
@media (min-width: 680px) {
  #rsvp>p {
    margin-bottom: 1.5rem;
  }

  #contactForm {
    padding: 1.75rem 2rem;
  }

  /* name + phone side by side */
  #contactForm .form-group:nth-of-type(-n+2) {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }

  #contactForm label {
    margin-right: .5rem;
    text-align: left;
  }

  #contactForm button[type="submit"] {
    width: auto;
    min-width: 220px;
  }
}

.hidden {
  display: none !important;
}


/* Hide the default appearance */
input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-radius: 4px;
  /* square edges like checkbox */
  display: inline-block;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
  margin-right: 6px;
}

/* Checked state */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--charcoal);
}

/* Optional checkmark */
input[type="checkbox"]:checked::after,
input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid var(--white);
  /* your white */
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

footer {
  margin-top: 2rem;
  padding: 1rem 0;
  color: var(--charcoal-2);
  font-size: 0.875rem;
}

footer p {
  text-align: center;
}

@media (min-width: 769px) {
  .address-image img {
    max-height: 70vh;
    aspect-ratio: 16/9;
    display: block;
  }
}

@media (max-width: 768px) {
  .address-image img {
    width: 100%;
    height: 100%;
    /* max-height: 70vh; */
    /* object-fit: cover; */
    display: block;
  }



  .hamburger {
    display: flex;
  }

  .is-mobile {
    display: block;
  }

  .nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    padding: 4rem;
    flex-direction: column;
    align-items: center;
    transition: all 0.5s ease-in-out;
    width: 100vw;
    transform: translateX(100%);
    background: var(--bg);
    z-index: 90;
  }

  .invisible {
    display: none;
  }

  .nav-panel.nav-active {
    transform: translateX(0%);
  }

  .navigation-bar {
    display: none;
  }

  .hero-video {
    max-height: auto;
    width: 100%;
    padding: 0 1rem;
  }
}