/* === GLOBAL === */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Satoshi', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #EEEDE8;
  color: #000;
  text-align: center;
}

/* === HEADER === */
header {
  padding-top: 2rem;
  position: relative;
}

.lang-switch {
  position: absolute;
  top: 1rem;
  right: 2rem;
}

.lang-switch a {
  text-decoration: none;
  color: black;
  margin-left: 1rem;
  font-size: 0.9rem;
}

.top-bar {
  width: 55vw;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 0 2rem;
  margin: 2rem auto;
  margin-bottom: 3.5rem;
  margin-top: 1.5rem;
}

.top-bar .middle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.wedding-date {
  text-align: center;
  font-size: 1rem;
  padding: 1.5rem 2rem;
  border: 1.5px solid black;
  border-radius: 50%;
  width: fit-content;
  margin: 0 auto 3rem auto; /* spacing below top-bar, above nav */
  font-weight: bold;
}

/* === NAVIGATION === */

.nav-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem auto;
  width: 55vw;
  max-width: 900px;
  gap: 1rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

/* Hide the checkbox */
.nav-toggle {
  display: none;
}

.nav-container a {
  text-decoration: none;
  color: black;
  font-family: 'Satoshi', sans-serif;
  font-weight: bold;
  font-size: 1rem;
}

nav a {
  text-decoration: none;
  color: black;
  position: relative;
}

nav a:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: black;
  bottom: -2px;
  left: 0;
}

/* === HAMBURGER NAVIGATION === */
/* Hamburger icon */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  position: absolute;
  left: 0;
  top: -3.5rem;
}

/* Nav links (desktop) */
.nav-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.nav-links a {
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  color: black;
}

/* === IMAGE PLACEHOLDER === */
.image-placeholder {
  width: 55vw;
  aspect-ratio: 3 /2;
  margin: 0 auto 3rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === MAIN SECTIONS === */
main section {
  margin: 5rem 0;
  padding: 0 2rem;
}

main a {
  color: #FE863D;
}

main a:visited {
  color: #FE863D;
}

h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 2rem;
  margin-bottom: -0rem;
}

p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.2rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto;
}

.rsvp-form fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rsvp-form label,
.rsvp-form legend {
  font-weight: 500;
}

.rsvp-form textarea,
.rsvp-form input[type="text"] {
  width: 100%;
  padding: 0.6rem;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.rsvp-form button {
  background-color: #FE863D;
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.rsvp-form button:hover {
  background-color: #e28e8e;
}

.thank-you-message {
  display: none;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #5c8d5e;
}

:target.thank-you-message {
  display: block;
}

/* === FOOTER === */
footer {
  position: relative;
  margin-top: 5rem;
  padding: 2rem;
}


/* === FLOWER ILLUSTRATION === */
.flower-sticky-right {
  position: fixed;
  top: 85%;                      
  transform: translateY(-50%);   
  right: 40px;                   
  z-index: 0;                    
  display: flex;
  justify-content: flex-end;
  padding-right: 1rem;           
}

.flower-sticky-right img {
  width: clamp(10px, 15vw, 500px);
  display: block;
}

.flower-sticky-left {
  position: fixed;
  top: 85%;                      
  transform: translateY(-50%);   
  left: 40px;                    
  z-index: 0;                    
  display: flex;
  justify-content: flex-end;
  padding-right: 1rem;           
}

.flower-sticky-left img {
  width: clamp(10px, 15vw, 500px);
  display: block;
}

.our-day-header {
  display: none; 
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.ourday-flower {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.ourday-flower.left {
  margin-right: auto;
  margin-left: -1rem;
  transform: rotate(-8deg);
}

.ourday-flower.right {
  margin-left: auto;
  margin-right: -1rem;
  transform: rotate(8deg);
}

.content-wrapper {
  width: 60%;
  max-width: 700px;
  margin: 0 auto;
}


/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 768px) {
  .top-bar {
    width: 100vw;
    text-align: center;
    gap: 0.5rem;
    font-size: 1.2rem;
  }

  .wedding-date {
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
    margin-top: 1rem;
  }

  .nav-container {
    width: 90vw;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: -3rem;
    left: 0rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #EEEDE8;
    width: 100%;
    text-align: center;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #ccc;
  }

  .nav-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }

  .image-placeholder {
    width: 90vw;
    aspect-ratio: 4 / 3;
  }

  .rsvp-form textarea,
  .rsvp-form input[type="text"] {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 1.05rem;
    padding: 0 1rem;
  }

  .flower-sticky-left,
  .flower-sticky-right {
    display: none;
  }

  .our-day-header {
    display: flex;
  }

  .lang-switch {
    top: 0.5rem;
    right: 1rem;
    font-size: 0.8rem;
  }

  .content-wrapper {
    width: 100%;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .content-wrapper {
    width: clamp(300px, 50vw, 700px);
  }
}