@font-face {
  font-family: 'Cavafy Script';
  src: url('fonts/CavafyScript.woff2') format('woff2'),
       url('fonts/CavafyScriptTT.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Romance Fatal';
  src: url('fonts/RomanceFatalW1G.woff2') format('woff2'),
       url('fonts/RomanceFatalW1G.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: #fdf6f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: 'Cavafy Script', Georgia, serif;
}

body.lang-el {
  font-family: 'Cavafy Script', Georgia, serif;
}

.invitation {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 50px rgba(0,0,0,0.15);
  overflow: hidden;
}

.border-top, .border-bottom, .border-left, .border-right {
  position: absolute;
  pointer-events: none;
}
.border-top {
  top: 0; left: 0; right: 0;
  width: 100%;
  height: auto;
}
.border-bottom {
  bottom: 0; left: 0; right: 0;
  width: 100%;
  height: auto;
}
.border-left {
  top: 0; left: 0; bottom: 0;
  height: 100%;
  width: auto;
}
.border-right {
  top: 0; right: 0; bottom: 0;
  height: 100%;
  width: auto;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12% 15% 10%;
  text-align: center;
}

.invite-text {
  font-size: clamp(0.85rem, 2vw, 1.35rem);
  color: #2657a7;
  line-height: 1.9;
  font-weight: normal;
}

body.lang-el .invite-text {
  font-size: clamp(0.95rem, 2.3vw, 1.5rem);
}

body.lang-el .invite-footer {
  font-size: clamp(0.9rem, 2vw, 1.35rem);
}

.invite-footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 8%;
  font-size: clamp(0.8rem, 1.8vw, 1.2rem);
  color: #2657a7;
  line-height: 1.6;
}

.invite-footer .footer-left,
.invite-footer .footer-right {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.invite-footer .role {
  white-space: nowrap;
}

.invite-footer .names p {
  margin: 0;
}

/* English version */
body.lang-en .invite-text {
  font-size: clamp(0.95rem, 2.3vw, 1.5rem);
}

body.lang-en .invite-footer {
  font-size: clamp(0.9rem, 2vw, 1.35rem);
}

/* Buttons */
.btn-group {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.more-btn {
  display: inline-block;
  background: #bb8588;
  color: white;
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 50px;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Cormorant Garamond', serif;
  transition: background 0.2s, transform 0.2s;
}
.more-btn:hover { background: #cd7250; transform: translateY(-1px); }

.more-btn--outline {
  background: transparent;
  border: 2px solid #889063;
  color: #889063;
}
.more-btn--outline:hover { background: #889063; color: white; }

/* Language toggle */
.lang-toggle {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.lang-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s, transform 0.2s;
}
.lang-btn.active { opacity: 1; transform: scale(1.15); }
.lang-btn:hover { opacity: 1; }

/* Language switching */
body.lang-en [data-lang="el"] { display: none !important; }
body.lang-el [data-lang="en"] { display: none !important; }
body.lang-el .more-btn { text-transform: none; }

/* Mobile */
@media (max-width: 600px) {
  .desktop-br { display: none; }
  .content { padding: 18% 12% 15%; }
  .border-top, .border-bottom { height: auto; width: 100%; }
  .border-left, .border-right { width: 8%; height: 100%; object-fit: cover; }
  .invite-footer {
    flex-direction: column;
    gap: 1.2em;
    align-items: center;
  }
  .invite-footer .footer-left,
  .invite-footer .footer-right {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
